default1: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.

Targets (1)

Property Constraints (2)

Focus nodes of this shape (solveit-observable:SortedTimelineEntry) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
solveit-observable:referencesTimelineEntry Links a sorted timeline entry to the original timeline entry it references.
sh:message referencesTimelineEntry must reference exactly one TimelineEntry
1 1 solveit-observable:TimelineEntry
solveit-observable:sortPosition The ordinal position of this entry within its sorted timeline. Multiple entries may share the same position to indicate they are tied (indistinguishable in order).
sh:message sortPosition must be exactly one xsd:nonNegativeInteger
1 1 xsd:nonNegativeInteger

Implementation

@prefix default1: <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#> .

default1: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 .