:TimelineEntryShape leaf node


URI

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

Label

Timeline Entry Shape

Description

Validates that TimelineEntry has exactly one value of the correct type.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

solveit-observable:TimelineEntry
solveit-observable:timelineEntryValue 1 1

Implementation

@prefix : <https://ontology.solveit-df.org/solveit/observable/shapes/> .
@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 solveit-observable: <https://ontology.solveit-df.org/solveit/observable/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

:TimelineEntryShape a sh:NodeShape ;
    rdfs:label "Timeline Entry Shape"@en ;
    rdfs:comment "Validates that TimelineEntry has exactly one value of the correct type."@en ;
    sh:property [ sh:maxCount 1 ;
            sh:message "timelineEntryValue must be exactly one DateTimeStamp, DateTimeRange, or ImplicitTimingInformation"@en ;
            sh:minCount 1 ;
            sh:or ( [ sh:class solveit-observable:DateTimeStamp ] [ sh:class solveit-observable:DateTimeRange ] [ sh:class solveit-observable:ImplicitTimingInformation ] ) ;
            sh:path solveit-observable:timelineEntryValue ] ;
    sh:targetClass solveit-observable:TimelineEntry .