Skip to content

Commit

Permalink
Merge pull request #21 from crs4/wfrun_resource_usage
Browse files Browse the repository at this point in the history
workflow-run: add resourceUsage
  • Loading branch information
simleo authored May 30, 2024
2 parents 5297c05 + b6614f5 commit d0fb908
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 2 deletions.
3 changes: 2 additions & 1 deletion workflow-run/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"environment": "https://w3id.org/ro/terms/workflow-run#environment",
"registry": "https://w3id.org/ro/terms/workflow-run#registry",
"tag": "https://w3id.org/ro/terms/workflow-run#tag",
"containerImage": "https://w3id.org/ro/terms/workflow-run#containerImage"
"containerImage": "https://w3id.org/ro/terms/workflow-run#containerImage",
"resourceUsage": "https://w3id.org/ro/terms/workflow-run#resourceUsage"
}
]
}
1 change: 1 addition & 0 deletions workflow-run/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ For updates to terms, remember to:
| registry | Property | registry | A service to register software products, such as container images | ContainerImage | Text |
| tag | Property | tag | A tag assigned to a software product, such as a container image | ContainerImage | Text |
| containerImage | Property | containerImage | A container image associated with this entity | CreateAction | ContainerImage URL |
| resourceUsage | Property | resourceUsage | A resource usage item, such as peak memory | CreateAction | PropertyValue |
1 change: 1 addition & 0 deletions workflow-run/vocabulary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
"registry","Property","registry","A service to register software products, such as container images","ContainerImage","Text"
"tag","Property","tag","A tag assigned to a software product, such as a container image","ContainerImage","Text"
"containerImage","Property","containerImage","A container image associated with this entity","CreateAction","ContainerImage URL"
"resourceUsage","Property","resourceUsage","A resource usage item, such as peak memory","CreateAction","PropertyValue"
26 changes: 25 additions & 1 deletion workflow-run/wfrun.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"registry": "https://w3id.org/ro/terms/workflow-run#registry",
"tag": "https://w3id.org/ro/terms/workflow-run#tag",
"containerImage": "https://w3id.org/ro/terms/workflow-run#containerImage",

"resourceUsage": "https://w3id.org/ro/terms/workflow-run#resourceUsage",
"input": "https://bioschemas.org/properties/input",
"output": "https://bioschemas.org/properties/output",
"wfrun": "https://w3id.org/ro/terms/workflow-run#",
Expand Down Expand Up @@ -65,6 +65,9 @@
{
"@id": "wfrun:containerImage"
},
{
"@id": "wfrun:resourceUsage"
},
{
"@id": "wfrun:md5"
},
Expand Down Expand Up @@ -400,6 +403,27 @@
},
"@type": "rdf:Property"
},
{
"@id": "wfrun:resourceUsage",
"rdfs:comment": {
"@language": "en-gb",
"@value": "A resource usage item, such as peak memory"
},
"rdfs:label": {
"@language": "en-gb",
"@value": "resourceUsage"
},
"rdfs:isDefinedBy": {
"@id": "https://w3id.org/ro/terms/workflow-run#"
},
"rangeIncludes": {
"@id": "PropertyValue"
},
"domainIncludes": {
"@id": "CreateAction"
},
"@type": "rdf:Property"
},
{
"@id": "wfrun:md5",
"rdfs:comment": {
Expand Down
6 changes: 6 additions & 0 deletions workflow-run/wfrun.nt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
<https://w3id.org/ro/terms/workflow-run#containerImage> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <https://w3id.org/ro/terms/workflow-run#> .
<https://w3id.org/ro/terms/workflow-run#containerImage> <http://www.w3.org/2000/01/rdf-schema#label> "containerImage"@en-gb .
<https://w3id.org/ro/terms/workflow-run#containerImage> <http://www.w3.org/2000/01/rdf-schema#comment> "A container image associated with this entity"@en-gb .
<https://w3id.org/ro/terms/workflow-run#resourceUsage> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
<https://w3id.org/ro/terms/workflow-run#resourceUsage> <http://schema.org/domainIncludes> <http://schema.org/CreateAction> .
<https://w3id.org/ro/terms/workflow-run#resourceUsage> <http://schema.org/rangeIncludes> <http://schema.org/PropertyValue> .
<https://w3id.org/ro/terms/workflow-run#resourceUsage> <http://www.w3.org/2000/01/rdf-schema#isDefinedBy> <https://w3id.org/ro/terms/workflow-run#> .
<https://w3id.org/ro/terms/workflow-run#resourceUsage> <http://www.w3.org/2000/01/rdf-schema#label> "resourceUsage"@en-gb .
<https://w3id.org/ro/terms/workflow-run#resourceUsage> <http://www.w3.org/2000/01/rdf-schema#comment> "A resource usage item, such as peak memory"@en-gb .
<https://w3id.org/ro/terms/workflow-run#environment> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
<https://w3id.org/ro/terms/workflow-run#environment> <http://schema.org/domainIncludes> <http://schema.org/CreateAction> .
<https://w3id.org/ro/terms/workflow-run#environment> <http://schema.org/domainIncludes> <http://schema.org/SoftwareApplication> .
Expand Down
9 changes: 9 additions & 0 deletions workflow-run/wfrun.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<s:hasDefinedTerm rdf:resource="https://w3id.org/ro/terms/workflow-run#sourceParameter"/>
<s:hasDefinedTerm rdf:resource="https://w3id.org/ro/terms/workflow-run#environment"/>
<s:hasDefinedTerm rdf:resource="https://w3id.org/ro/terms/workflow-run#containerImage"/>
<s:hasDefinedTerm rdf:resource="https://w3id.org/ro/terms/workflow-run#resourceUsage"/>
<s:description>A Schema.org style Schema definitin of WRROC terms</s:description>
<s:hasDefinedTerm rdf:resource="https://w3id.org/ro/terms/workflow-run#md5"/>
<s:hasDefinedTerm rdf:resource="https://w3id.org/ro/terms/workflow-run#DockerImage"/>
Expand All @@ -87,6 +88,14 @@
<s:domainIncludes rdf:resource="http://schema.org/CreateAction"/>
<rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
</rdf:Description>
<rdf:Description rdf:about="https://w3id.org/ro/terms/workflow-run#resourceUsage">
<rdfs:comment xml:lang="en-gb">A resource usage item, such as peak memory</rdfs:comment>
<rdfs:label xml:lang="en-gb">resourceUsage</rdfs:label>
<rdfs:isDefinedBy rdf:resource="https://w3id.org/ro/terms/workflow-run#"/>
<s:rangeIncludes rdf:resource="https://w3id.org/ro/terms/workflow-run#PropertyValue"/>
<s:domainIncludes rdf:resource="http://schema.org/CreateAction"/>
<rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
</rdf:Description>
<rdf:Description rdf:about="https://w3id.org/ro/terms/workflow-run#ParameterConnection">
<rdfs:comment xml:lang="en-gb">A connection between parameters of different applications</rdfs:comment>
<rdfs:label xml:lang="en-gb">ParameterConnection</rdfs:label>
Expand Down
7 changes: 7 additions & 0 deletions workflow-run/wfrun.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ wfrun:containerImage rdf:type rdf:Property ;
rdfs:label "containerImage"@en-gb ;
rdfs:comment "A container image associated with this entity"@en-gb .

wfrun:resourceUsage rdf:type rdf:Property ;
s:domainIncludes s:CreateAction ;
s:rangeIncludes s:PropertyValue ;
rdfs:isDefinedBy wfrun: ;
rdfs:label "resourceUsage"@en-gb ;
rdfs:comment "A resource usage item, such as peak memory"@en-gb .

wfrun:environment rdf:type rdf:Property ;
s:domainIncludes s:CreateAction,
s:SoftwareApplication,
Expand Down

0 comments on commit d0fb908

Please sign in to comment.