https://cacontology.projectvic.org/custodial#CustodialRelationshipShape
Validation shape for custodial relationship instances.
Focus nodes of this shape (cacontology-custodial:CustodialRelationship) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| cacontology-custodial:accessLevel | Level of access to child (supervised, unsupervised, unrestricted, private). sh:message Custodial relationship must specify access level from the allowed list. |
1 | 1 | xsd:string |
sh:in
none, supervised, limited_unsupervised, unsupervised, unrestricted, unsupervised_opportunity
|
| cacontology-custodial:relationshipDuration | Duration of custodial relationship in months. sh:message Relationship duration must be between 0 and 50 years. |
0 | 1 | xsd:decimal |
sh:minInclusive
0.0
sh:maxInclusive
50.0
|
| cacontology-custodial:relationshipType | Type of custodial relationship (guardian, babysitter, relative, teacher, coach, mentor, daycare). sh:message Custodial relationship must specify type from the allowed list. |
1 | 1 | xsd:string |
sh:in
parent, guardian, babysitter, teacher, coach, mentor, caregiver, family_friend, relative, foster_parent, step_parent, neighbor
|
| cacontology-custodial:trustLevel | Level of trust placed in authority figure (low, moderate, high, complete). sh:message Custodial relationship must specify trust level from the allowed list. |
1 | 1 | xsd:string |
sh:in
none, minimal, moderate, high, complete, absolute
|
uco-core:endTime |
sh:message Custodial relationship may have an end time. |
0 | 1 | xsd:dateTime | |
uco-core:startTime |
sh:message Custodial relationship may have a start time. |
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 .