Skip to content
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 @@ -22,6 +22,8 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


#=== MUST shapes ===#

five-safes-crate:RootDataEntityMentionsCreateAction
a sh:NodeShape ;
sh:name "RootDataEntity" ;
Expand Down Expand Up @@ -54,7 +56,16 @@ five-safes-crate:CreateActionInstrumentAndStatus
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "`CreateAction` MUST have the `instrument` property" ;
] ;
] .


five-safes-crate:CreateActionInstrumentAndStatus
a sh:NodeShape ;
sh:name "CreateAction" ;
sh:targetClass schema:CreateAction ;
sh:description "" ;
sh:severity sh:Violation ;

sh:sparql [
a sh:SPARQLConstraint ;
sh:name "instrument" ;
Expand All @@ -67,7 +78,6 @@ five-safes-crate:CreateActionInstrumentAndStatus
FILTER (?instrument != ?main)
}
""" ;
sh:severity sh:Violation ;
sh:message "`CreateAction` --> `instrument` MUST reference the same entity as `Root Data Entity` --> `mainEntity`" ;
] ;
sh:sparql [
Expand All @@ -81,6 +91,25 @@ five-safes-crate:CreateActionInstrumentAndStatus
FILTER NOT EXISTS { ?object a ?type . }
}
""" ;
sh:severity sh:Violation ;
sh:message "Each `object` in `CreateAction` MUST reference an existing entity." ;
] .
] .


#=== SHOULD shapes ===#

# CreateAction SHOULD have object property with minimum cardinality 1
five-safes-crate:CreateActionShouldHaveObjectProperty
a sh:NodeShape ;
sh:targetClass schema:CreateAction ;
sh:name "CreateAction" ;
sh:property [
sh:path schema:object ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
sh:severity sh:Warning ;
sh:message "`CreateAction` SHOULD have the property `object` with IRI values." ;
] .


#=== MAY shapes ===#
# (none)

This file was deleted.