:SortedTimelineEntryShape leaf node


URI

https://ontology.solveit-df.org/solveit/observable/shapes/SortedTimelineEntryShape

Label

Sorted Timeline Entry Shape

Description

Validates that each SortedTimelineEntry has exactly one referencesTimelineEntry and exactly one sortPosition.

Shape Properties

Instances of solveit-observable:SortedTimelineEntry can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

solveit-observable:SortedTimelineEntry
solveit-observable:referencesTimelineEntry 1 1 solveit-observable:TimelineEntry
solveit-observable:sortPosition 1 1 xsd:nonNegativeInteger

Implementation

@prefix : <https://ontology.solveit-df.org/solveit/observable/shapes/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix solveit-observable: <https://ontology.solveit-df.org/solveit/observable/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

:SortedTimelineEntryShape a sh:NodeShape ;
    rdfs:label "Sorted Timeline Entry Shape"@en ;
    rdfs:comment "Validates that each SortedTimelineEntry has exactly one referencesTimelineEntry and exactly one sortPosition."@en ;
    sh:property [ sh:class solveit-observable:TimelineEntry ;
            sh:maxCount 1 ;
            sh:message "referencesTimelineEntry must reference exactly one TimelineEntry"@en ;
            sh:minCount 1 ;
            sh:path solveit-observable:referencesTimelineEntry ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:message "sortPosition must be exactly one xsd:nonNegativeInteger"@en ;
            sh:minCount 1 ;
            sh:path solveit-observable:sortPosition ] ;
    sh:targetClass solveit-observable:SortedTimelineEntry .