https://cacontology.projectvic.org/custodial#CustodialRelationshipGUFOShape
Validates custodial relationship instances with gUFO foundational constraints.
Focus nodes of this shape (cacontology-custodial:CustodialRelationship) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-custodial:hasCustodyBeginPoint | Temporal begin point when custodial relationship started. sh:message Custodial relationship can have at most one begin point |
0 | 1 | xsd:dateTimeStamp | |
| cacontology-custodial:hasCustodyEndPoint | Temporal end point when custodial relationship terminated. sh:message Custodial relationship can have at most one end point |
0 | 1 | xsd:dateTimeStamp | |
| cacontology-custodial:inCustodyPhase | Links custodial relationship to its current phase. Enhanced with gUFO phase transitions. sh:message Custodial relationship must be in exactly one phase |
1 | 1 | cac-core:Phase | |
rdf:type |
sh:message Custodial relationship must be typed as gUFO Kind |
1 | * |
sh:hasValue
gufo:Kind
|
@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@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: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 cac-core: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 .