Ontology Version: 3.1.0

cacontology-undercover:DigitalIdentityShape leaf node


URI

https://cacontology.projectvic.org/undercover#DigitalIdentityShape

Label

Digital Identity Shape

Description

Validation shape for digital identity instances.

Targets (1)

  • cacontology-undercover:DigitalIdentity sh:targetClass

Property Constraints (3)

Focus nodes of this shape (cacontology-undercover:DigitalIdentity) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-undercover:digitalHistoryDepth
sh:message Digital history depth must be between 30 and 1095 days.
0 1 xsd:decimal
sh:minInclusive 30.0
sh:maxInclusive 1095.0
cacontology-undercover:emailAccounts
sh:message Digital identity must have between 1 and 10 email accounts.
1 1 xsd:nonNegativeInteger
sh:minInclusive 1
sh:maxInclusive 10
cacontology-undercover:socialMediaProfiles
sh:message Digital identity may have between 0 and 15 social media profiles.
0 1 xsd:nonNegativeInteger
sh:minInclusive 0
sh:maxInclusive 15

Implementation

@prefix cacontology-undercover: <https://cacontology.projectvic.org/undercover#> .
@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-undercover:DigitalIdentityShape a sh:NodeShape ;
    rdfs:label "Digital Identity Shape"@en ;
    rdfs:comment "Validation shape for digital identity instances."@en ;
    sh:property [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 15 ;
            sh:message "Digital identity may have between 0 and 15 social media profiles."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0 ;
            sh:path cacontology-undercover:socialMediaProfiles ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 10 ;
            sh:message "Digital identity must have between 1 and 10 email accounts."@en ;
            sh:minCount 1 ;
            sh:minInclusive 1 ;
            sh:path cacontology-undercover:emailAccounts ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 1095.0 ;
            sh:message "Digital history depth must be between 30 and 1095 days."@en ;
            sh:minCount 0 ;
            sh:minInclusive 30.0 ;
            sh:path cacontology-undercover:digitalHistoryDepth ] ;
    sh:targetClass cacontology-undercover:DigitalIdentity .