Skip to content

Commit

Permalink
Merge pull request #469 from djarecka/satra_ref/linkml1
Browse files Browse the repository at this point in the history
additional changes based on testing library
  • Loading branch information
djarecka authored Apr 2, 2024
2 parents e5bf779 + befbd8c commit a1d0421
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contexts/reproschema
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@type": "xsd:string"
},
"compute": {
"@container": "@list"
"@id": "reproschema:compute"
},
"contentUrl": {
"@type": "@id",
Expand Down
1 change: 1 addition & 0 deletions linkml-schema/reproschema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ classes:
ResponseOption:
title: Response option
description: An element (object or by URL)to describe the properties of response of the Item.
is_a: CreativeWork
slots:
- choices
- datumType
Expand Down
8 changes: 5 additions & 3 deletions linkml-schema/reproschema_linkml.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Activity(CreativeWork):
altLabel: Optional[Dict[str, str]] = Field(default_factory=dict, title="alternate label", description="""The alternate label.""")
associatedMedia: Optional[str] = Field(None, title="associatedMedia", description="""A media object that encodes this CreativeWork. This property is a synonym for encoding.""")
citation: Optional[Dict[str, str]] = Field(default_factory=dict)
compute: Optional[List[ComputeSpecification]] = Field(default_factory=list, title="computation", description="""An array of objects indicating computations in an activity or protocol and maps it to the corresponding Item. scoring logic is a subset of all computations that could be performed and not all computations will be scoring. For example, one may want to do conversion from one unit to another.""")
compute: Optional[Union[List[ComputeSpecification], ComputeSpecification]] = Field(default_factory=list, title="computation", description="""An array of objects indicating computations in an activity or protocol and maps it to the corresponding Item. scoring logic is a subset of all computations that could be performed and not all computations will be scoring. For example, one may want to do conversion from one unit to another.""")
cronTable: Optional[str] = Field(None, title="cronTable", description="""TODO not described in reproschema""")
description: Optional[Dict[str, str]] = Field(default_factory=dict)
image: Optional[Union[ImageObject, str]] = Field(None, title="image", description="""An image of the item. This can be a <a class=\"localLink\" href=\"http://schema.org/URL\">URL</a> or a fully described <a class=\"localLink\" href=\"http://schema.org/ImageObject\">ImageObject</a>.""")
Expand Down Expand Up @@ -240,7 +240,7 @@ class Protocol(CreativeWork):
about: Optional[str] = Field(None, description="""The subject matter of the Field.""")
altLabel: Optional[Dict[str, str]] = Field(default_factory=dict, title="alternate label", description="""The alternate label.""")
associatedMedia: Optional[str] = Field(None, title="associatedMedia", description="""A media object that encodes this CreativeWork. This property is a synonym for encoding.""")
compute: Optional[List[ComputeSpecification]] = Field(default_factory=list, title="computation", description="""An array of objects indicating computations in an activity or protocol and maps it to the corresponding Item. scoring logic is a subset of all computations that could be performed and not all computations will be scoring. For example, one may want to do conversion from one unit to another.""")
compute: Optional[Union[List[ComputeSpecification], ComputeSpecification]] = Field(default_factory=list, title="computation", description="""An array of objects indicating computations in an activity or protocol and maps it to the corresponding Item. scoring logic is a subset of all computations that could be performed and not all computations will be scoring. For example, one may want to do conversion from one unit to another.""")
cronTable: Optional[str] = Field(None, title="cronTable", description="""TODO not described in reproschema""")
description: Optional[Dict[str, str]] = Field(default_factory=dict)
landingPage: Optional[List[Union[LandingPage, str]]] = Field(default_factory=list, title="Landing page content", description="""An element (by URL) to point to the protocol readme or landing page.""")
Expand Down Expand Up @@ -281,7 +281,7 @@ class ResponseActivity(CreativeWork):



class ResponseOption(ConfiguredBaseModel):
class ResponseOption(CreativeWork):
"""
An element (object or by URL)to describe the properties of response of the Item.
"""
Expand All @@ -292,6 +292,8 @@ class ResponseOption(ConfiguredBaseModel):
multipleChoice: Optional[bool] = Field(None, title="Multiple choice response expectation", description="""Indicates (by bool) if response for the Item has one or more answer.""")
unitOptions: Optional[List[UnitOption]] = Field(default_factory=list, title="unitOptions", description="""A list of objects to represent a human displayable name alongside the more formal value for units.""")
valueType: Optional[List[str]] = Field(default_factory=list, title="The type of the response", description="""The type of the response of an item. For example, string, integer, etc.""")
id: Optional[str] = Field(None)
category: Optional[str] = Field(None)



Expand Down

0 comments on commit a1d0421

Please sign in to comment.