bioimageio.spec.dataset.v0_2
1from typing import TYPE_CHECKING, ClassVar, Literal, Optional 2 3from .._internal.common_nodes import Node 4from .._internal.io_basics import AbsoluteFilePath as AbsoluteFilePath 5from .._internal.url import HttpUrl as HttpUrl 6from ..generic.v0_2 import VALID_COVER_IMAGE_EXTENSIONS as VALID_COVER_IMAGE_EXTENSIONS 7from ..generic.v0_2 import AttachmentsDescr as AttachmentsDescr 8from ..generic.v0_2 import Author as Author 9from ..generic.v0_2 import BadgeDescr as BadgeDescr 10from ..generic.v0_2 import CiteEntry as CiteEntry 11from ..generic.v0_2 import Doi as Doi 12from ..generic.v0_2 import GenericDescrBase, ResourceId 13from ..generic.v0_2 import LinkedResource as LinkedResource 14from ..generic.v0_2 import Maintainer as Maintainer 15from ..generic.v0_2 import OrcidId as OrcidId 16from ..generic.v0_2 import RelativeFilePath as RelativeFilePath 17from ..generic.v0_2 import Uploader as Uploader 18from ..generic.v0_2 import Version as Version 19 20 21class DatasetId(ResourceId): 22 pass 23 24 25class DatasetDescr(GenericDescrBase): 26 """A bioimage.io dataset resource description file (dataset RDF) describes a dataset relevant to bioimage 27 processing. 28 """ 29 30 implemented_type: ClassVar[Literal["dataset"]] = "dataset" 31 if TYPE_CHECKING: 32 type: Literal["dataset"] = "dataset" 33 else: 34 type: Literal["dataset"] 35 36 id: Optional[DatasetId] = None 37 """bioimage.io-wide unique resource identifier 38 assigned by bioimage.io; version **un**specific.""" 39 40 source: Optional[HttpUrl] = None 41 """"URL to the source of the dataset.""" 42 43 44class LinkedDataset(Node): 45 """Reference to a bioimage.io dataset.""" 46 47 id: DatasetId 48 """A valid dataset `id` from the bioimage.io collection.""" 49 50 version_number: Optional[int] = None 51 """version number (n-th published version, not the semantic version) of linked dataset"""
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
Inherited Members
26class DatasetDescr(GenericDescrBase): 27 """A bioimage.io dataset resource description file (dataset RDF) describes a dataset relevant to bioimage 28 processing. 29 """ 30 31 implemented_type: ClassVar[Literal["dataset"]] = "dataset" 32 if TYPE_CHECKING: 33 type: Literal["dataset"] = "dataset" 34 else: 35 type: Literal["dataset"] 36 37 id: Optional[DatasetId] = None 38 """bioimage.io-wide unique resource identifier 39 assigned by bioimage.io; version **un**specific.""" 40 41 source: Optional[HttpUrl] = None 42 """"URL to the source of the dataset."""
A bioimage.io dataset resource description file (dataset RDF) describes a dataset relevant to bioimage processing.
bioimage.io-wide unique resource identifier assigned by bioimage.io; version unspecific.
124 def wrapped_model_post_init(self: BaseModel, context: Any, /) -> None: 125 """We need to both initialize private attributes and call the user-defined model_post_init 126 method. 127 """ 128 init_private_attributes(self, context) 129 original_model_post_init(self, context)
We need to both initialize private attributes and call the user-defined model_post_init method.
Inherited Members
45class LinkedDataset(Node): 46 """Reference to a bioimage.io dataset.""" 47 48 id: DatasetId 49 """A valid dataset `id` from the bioimage.io collection.""" 50 51 version_number: Optional[int] = None 52 """version number (n-th published version, not the semantic version) of linked dataset"""
Reference to a bioimage.io dataset.