https://cacontology.projectvic.org/custodial#CustodialRelationshipShape
Validation shape for custodial relationship instances.
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 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 uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-custodial:CustodialRelationshipShape a sh:NodeShape ;
rdfs:label "Custodial Relationship Shape"@en ;
rdfs:comment "Validation shape for custodial relationship instances."@en ;
sh:property [ sh:datatype xsd:string ;
sh:in ( "none" "minimal" "moderate" "high" "complete" "absolute" ) ;
sh:maxCount 1 ;
sh:message "Custodial relationship must specify trust level from the allowed list."@en ;
sh:minCount 1 ;
sh:path cacontology-custodial:trustLevel ],
[ sh:datatype xsd:string ;
sh:in ( "none" "supervised" "limited_unsupervised" "unsupervised" "unrestricted" "unsupervised_opportunity" ) ;
sh:maxCount 1 ;
sh:message "Custodial relationship must specify access level from the allowed list."@en ;
sh:minCount 1 ;
sh:path cacontology-custodial:accessLevel ],
[ sh:datatype xsd:decimal ;
sh:maxCount 1 ;
sh:maxInclusive 50.0 ;
sh:message "Relationship duration must be between 0 and 50 years."@en ;
sh:minCount 0 ;
sh:minInclusive 0.0 ;
sh:path cacontology-custodial:relationshipDuration ],
[ sh:datatype xsd:dateTime ;
sh:maxCount 1 ;
sh:message "Custodial relationship may have a start time."@en ;
sh:minCount 0 ;
sh:path uco-core:startTime ],
[ sh:datatype xsd:dateTime ;
sh:maxCount 1 ;
sh:message "Custodial relationship may have an end time."@en ;
sh:minCount 0 ;
sh:path uco-core:endTime ],
[ sh:datatype xsd:string ;
sh:in ( "parent" "guardian" "babysitter" "teacher" "coach" "mentor" "caregiver" "family_friend" "relative" "foster_parent" "step_parent" "neighbor" ) ;
sh:maxCount 1 ;
sh:message "Custodial relationship must specify type from the allowed list."@en ;
sh:minCount 1 ;
sh:path cacontology-custodial:relationshipType ] ;
sh:targetClass cacontology-custodial:CustodialRelationship .