Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow-run: add resourceUsage #21

Merged
merged 3 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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