Skip to content

Commit

Permalink
generate another formats
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 30, 2024
1 parent a977433 commit 4c01399
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
15 changes: 7 additions & 8 deletions jsonld-context-autogen/anatomical_structure.context.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"source": "anatomical_structure.yaml"
},
"@context": {
"ANSRS": "https://w3id.org/my-org/ansrs-schema/",
"AnS": "https://w3id.org/my-org/anatomical-structure-schema/",
"PATO": {
"@id": "http://purl.obolibrary.org/obo/PATO_",
Expand All @@ -26,10 +25,10 @@
},
"category": {
"@type": "@id",
"@id": "ANSRS:category"
"@id": "category"
},
"description": {
"@id": "ANSRS:description"
"@id": "description"
},
"id": "@id",
"unit": {
Expand Down Expand Up @@ -93,7 +92,7 @@
"@id": "z_size"
},
"name": {
"@id": "ANSRS:name"
"@id": "name"
},
"internal_identifier": {
"@id": "internal_identifier"
Expand Down Expand Up @@ -166,10 +165,10 @@
},
"revision_of": {
"@type": "@id",
"@id": "ANSRS:revision_of"
"@id": "revision_of"
},
"version": {
"@id": "ANSRS:version"
"@id": "version"
},
"AnatomicalAnnotationSet": {
"@id": "AnatomicalAnnotationSet"
Expand All @@ -181,7 +180,7 @@
"@id": "ImageDataset"
},
"NamedThing": {
"@id": "ANSRS:NamedThing"
"@id": "NamedThing"
},
"ParcellationAnnotation": {
"@id": "ParcellationAnnotation"
Expand All @@ -208,7 +207,7 @@
"@id": "ParcellationTermSet"
},
"VersionedNamedThing": {
"@id": "ANSRS:VersionedNamedThing"
"@id": "VersionedNamedThing"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"source": "anatomical_structure_core.yaml"
},
"@context": {
"ANSRS": "https://w3id.org/my-org/ansrs-schema/",
"AnS": "https://w3id.org/my-org/anatomical-structure-schema/",
"PATO": {
"@id": "http://purl.obolibrary.org/obo/PATO_",
"@prefix": true
Expand All @@ -13,7 +13,7 @@
"example": "https://example.org/",
"linkml": "https://w3id.org/linkml/",
"schema": "http://schema.org/",
"@vocab": "https://w3id.org/my-org/ansrs-schema/",
"@vocab": "https://w3id.org/my-org/anatomical-structure-schema/",
"category": {
"@type": "@id",
"@id": "category"
Expand Down
8 changes: 4 additions & 4 deletions models_py-autogen/anatomical_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,24 @@ class DISTANCEUNIT(str, Enum):

class NamedThing(ConfiguredBaseModel):
"""
Core base entity for ANSRS schema representing an entity with an identifier name and description.
Core base entity for Anatomical Structure schema representing an entity with an identifier name and description.
"""
id: str = Field(...)
name: str = Field(...)
description: str = Field(...)
category: List[Literal["https://w3id.org/my-org/ansrs-schema/NamedThing","ANSRS:NamedThing"]] = Field(["ANSRS:NamedThing"])
category: List[Literal["https://w3id.org/my-org/anatomical-structure-schema/NamedThing","AnS:NamedThing"]] = Field(["AnS:NamedThing"])


class VersionedNamedThing(NamedThing):
"""
Core base entity for ANSRS schema representing an versioned named thing.
Core base entity for Anatomical Structure schema representing an versioned named thing.
"""
version: str = Field(...)
revision_of: Optional[str] = Field(None)
id: str = Field(...)
name: str = Field(...)
description: str = Field(...)
category: List[Literal["https://w3id.org/my-org/ansrs-schema/VersionedNamedThing","ANSRS:VersionedNamedThing"]] = Field(["ANSRS:VersionedNamedThing"])
category: List[Literal["https://w3id.org/my-org/anatomical-structure-schema/VersionedNamedThing","AnS:VersionedNamedThing"]] = Field(["AnS:VersionedNamedThing"])


class ImageDataset(VersionedNamedThing):
Expand Down
8 changes: 4 additions & 4 deletions models_py-autogen/anatomical_structure_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,24 @@ class ConfiguredBaseModel(BaseModel):

class NamedThing(ConfiguredBaseModel):
"""
Core base entity for ANSRS schema representing an entity with an identifier name and description.
Core base entity for Anatomical Structure schema representing an entity with an identifier name and description.
"""
id: str = Field(...)
name: str = Field(...)
description: str = Field(...)
category: List[Literal["https://w3id.org/my-org/ansrs-schema/NamedThing","ANSRS:NamedThing"]] = Field(["ANSRS:NamedThing"])
category: List[Literal["https://w3id.org/my-org/anatomical-structure-schema/NamedThing","AnS:NamedThing"]] = Field(["AnS:NamedThing"])


class VersionedNamedThing(NamedThing):
"""
Core base entity for ANSRS schema representing an versioned named thing.
Core base entity for Anatomical Structure schema representing an versioned named thing.
"""
version: str = Field(...)
revision_of: Optional[str] = Field(None)
id: str = Field(...)
name: str = Field(...)
description: str = Field(...)
category: List[Literal["https://w3id.org/my-org/ansrs-schema/VersionedNamedThing","ANSRS:VersionedNamedThing"]] = Field(["ANSRS:VersionedNamedThing"])
category: List[Literal["https://w3id.org/my-org/anatomical-structure-schema/VersionedNamedThing","AnS:VersionedNamedThing"]] = Field(["AnS:VersionedNamedThing"])


# Model rebuild
Expand Down

0 comments on commit 4c01399

Please sign in to comment.