https://cacontology.projectvic.org/custodial#CustodialRelationshipGUFOShape
Validates custodial relationship instances with gUFO foundational constraints.
Instances of cacontology-custodial:CustodialRelationship can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-custodial:CustodialRelationship | ||||
| cacontology-custodial:accessLevel | 1 | 1 |
xsd:string
|
|
| cacontology-custodial:hasCustodyBeginPoint | 1 |
xsd:dateTimeStamp
|
||
| cacontology-custodial:hasCustodyEndPoint | 1 |
xsd:dateTimeStamp
|
||
| cacontology-custodial:inCustodyPhase | 1 | 1 |
gufo:Phase
|
|
| cacontology-custodial:relationshipDuration | 0 | 1 |
xsd:decimal
|
|
| cacontology-custodial:relationshipType | 1 | 1 |
xsd:string
|
|
| cacontology-custodial:trustLevel | 1 | 1 |
xsd:string
|
|
| 1 | ||||
| 0 | 1 |
xsd:dateTime
|
||
| 0 | 1 |
xsd:dateTime
|
||
@prefix cacontology-custodial: <https://cacontology.projectvic.org/custodial#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-custodial:CustodialRelationshipGUFOShape a sh:NodeShape ;
rdfs:label "gUFO Custodial Relationship Shape"@en ;
rdfs:comment "Validates custodial relationship instances with gUFO foundational constraints."@en ;
sh:property [ sh:hasValue gufo:Kind ;
sh:message "Custodial relationship must be typed as gUFO Kind"@en ;
sh:minCount 1 ;
sh:path rdf:type ],
[ sh:hasValue gufo:Object ;
sh:message "Custodial relationship must be typed as gUFO Object"@en ;
sh:minCount 1 ;
sh:path rdf:type ],
[ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Custodial relationship can have at most one begin point"@en ;
sh:path cacontology-custodial:hasCustodyBeginPoint ],
[ sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Custodial relationship can have at most one end point"@en ;
sh:path cacontology-custodial:hasCustodyEndPoint ],
[ sh:class gufo:Phase ;
sh:maxCount 1 ;
sh:message "Custodial relationship must be in exactly one phase"@en ;
sh:minCount 1 ;
sh:path cacontology-custodial:inCustodyPhase ] ;
sh:sparql [ sh:message "Custody begin point must precede end point"@en ;
sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/custodial#"^^xsd:anyURI ;
sh:prefix "cacontology-custodial" ] ] ;
sh:select """
PREFIX cacontology-custodial: <https://cacontology.projectvic.org/custodial#>
SELECT ?this
WHERE {
?this cacontology-custodial:hasCustodyBeginPoint ?begin ;
cacontology-custodial:hasCustodyEndPoint ?end .
FILTER (?begin >= ?end)
}
""" ] ;
sh:targetClass cacontology-custodial:CustodialRelationship .