Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Merged 6_workflow_reference.tll files. #90

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

Open
EttoreM wants to merge 1 commit into develop
base: develop
Choose a base branch
Loading
from 73-flatten-6_workflow_referencettl-files
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


#=== MUST shapes ===#

five-safes-crate:ReferenceToWorkflowCrate
a sh:NodeShape ;
Expand Down Expand Up @@ -55,6 +56,7 @@ five-safes-crate:mainEntityHasProperConformsTo
a sh:NodeShape ;
sh:name "mainEntity" ;
sh:description "The mainEntity of the RootDataEntity MUST have a conformsTo property with an IRI starting with https://w3id.org/workflowhub/workflow-ro-crate" ;
sh:severity sh:Violation ;
sh:targetObjectsOf schema:mainEntity ;
sh:property [
a sh:PropertyShape ;
Expand All @@ -78,3 +80,35 @@ five-safes-crate:mainEntityHasProperConformsTo
}
""" ;
] .


#=== SHOULD shapes ===#

five-safes-crate:DatasetMustHaveDistributionIfURI
a sh:NodeShape ;
sh:name "mainEntity" ;
sh:targetObjectsOf schema:mainEntity ;
sh:description "If mainEntity has an HTTP(S) @id, it SHOULD have a distribution that is an HTTP(S) URL." ;
sh:severity sh:Warning ;

sh:sparql [
a sh:SPARQLConstraint ;
sh:name "distribution" ;
sh:description "If mainEntity has an HTTP(S) @id, it SHOULD have a distribution that is an HTTP(S) URL." ;
sh:prefixes ro-crate:sparqlPrefixes ;
sh:select """
SELECT $this
WHERE {
FILTER (STRSTARTS(STR($this), "http://") || STRSTARTS(STR($this), "https://")) .
FILTER NOT EXISTS {
$this schema:distribution ?dist .
FILTER (STRSTARTS(STR(?dist), "http://") || STRSTARTS(STR(?dist), "https://")) .
}
}
""" ;
sh:message "If mainEntity has an HTTP(S) @id SHOULD have at least one distribution with an HTTP(S) URL." ;
] .


#=== MAY shapes ===#
# (none)
View file Open in desktop

This file was deleted.

AltStyle によって変換されたページ (->オリジナル) /