Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 73 additions & 73 deletions artifacts/openlabel-v2/openlabel-v2.shacl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -1614,12 +1614,12 @@ openlabel_v2:Behaviour a sh:NodeShape ;
sh:order 1 ;
sh:path openlabel_v2:MotionAccelerate ] ;
sh:sparql [ a sh:SPARQLConstraint ;
sh:message "If motionAccelerateValue is provided, MotionAccelerate must be true."@en ;
sh:message "If motionDriveValue is provided, MotionDrive must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/MotionAccelerate> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/motionAccelerateValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/MotionDrive> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/motionDriveValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
Expand All @@ -1629,17 +1629,17 @@ openlabel_v2:Behaviour a sh:NodeShape ;
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/MotionDecelerate> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/motionDecelerateValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If motionDriveValue is provided, MotionDrive must be true."@en ;
sh:message "If motionAccelerateValue is provided, MotionAccelerate must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/MotionDrive> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/motionDriveValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/MotionAccelerate> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/motionAccelerateValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ] ;
Expand Down Expand Up @@ -2073,32 +2073,22 @@ openlabel_v2:Odd a sh:NodeShape ;
sh:order 15 ;
sh:path openlabel_v2:IlluminationArtificial ] ;
sh:sparql [ a sh:SPARQLConstraint ;
sh:message "If trafficVolumeValue is provided, TrafficVolume must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/TrafficVolume> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/trafficVolumeValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If longitudinalDownSlopeValue is provided, LongitudinalDownSlope must be true."@en ;
sh:message "If weatherRainValue is provided, WeatherRain must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/LongitudinalDownSlope> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/longitudinalDownSlopeValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/WeatherRain> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/weatherRainValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If particulatesWaterValue is provided, ParticulatesWater must be true."@en ;
sh:message "If longitudinalUpSlopeValue is provided, LongitudinalUpSlope must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/ParticulatesWater> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/particulatesWaterValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/LongitudinalUpSlope> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/longitudinalUpSlopeValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
Expand All @@ -2110,72 +2100,72 @@ openlabel_v2:Odd a sh:NodeShape ;
FILTER (?other != <https://w3id.org/ascs-ev/envited-x/openlabel/v2/EdgeNone>)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If longitudinalUpSlopeValue is provided, LongitudinalUpSlope must be true."@en ;
sh:message "If horizontalCurvesValue is provided, HorizontalCurves must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/LongitudinalUpSlope> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/longitudinalUpSlopeValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/HorizontalCurves> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/horizontalCurvesValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If weatherSnowValue is provided, WeatherSnow must be true."@en ;
sh:message "If trafficAgentTypeValue is provided, TrafficAgentType must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/WeatherSnow> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/weatherSnowValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/TrafficAgentType> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/trafficAgentTypeValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If trafficAgentTypeValue is provided, TrafficAgentType must be true."@en ;
sh:message "If weatherSnowValue is provided, WeatherSnow must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/TrafficAgentType> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/trafficAgentTypeValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/WeatherSnow> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/weatherSnowValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If subjectVehicleSpeedValue is provided, SubjectVehicleSpeed must be true."@en ;
sh:message "If daySunElevationValue is provided, DaySunElevation must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/SubjectVehicleSpeed> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/subjectVehicleSpeedValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/DaySunElevation> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/daySunElevationValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If trafficAgentDensityValue is provided, TrafficAgentDensity must be true."@en ;
sh:message "If laneSpecificationLaneCountValue is provided, LaneSpecificationLaneCount must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/TrafficAgentDensity> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/trafficAgentDensityValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/LaneSpecificationLaneCount> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/laneSpecificationLaneCountValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If weatherRainValue is provided, WeatherRain must be true."@en ;
sh:message "If subjectVehicleSpeedValue is provided, SubjectVehicleSpeed must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/WeatherRain> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/weatherRainValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/SubjectVehicleSpeed> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/subjectVehicleSpeedValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If daySunElevationValue is provided, DaySunElevation must be true."@en ;
sh:message "If particulatesWaterValue is provided, ParticulatesWater must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/DaySunElevation> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/daySunElevationValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/ParticulatesWater> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/particulatesWaterValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
Expand All @@ -2185,27 +2175,27 @@ openlabel_v2:Odd a sh:NodeShape ;
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/WeatherWind> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/weatherWindValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If trafficFlowRateValue is provided, TrafficFlowRate must be true."@en ;
sh:message "If longitudinalDownSlopeValue is provided, LongitudinalDownSlope must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/TrafficFlowRate> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/trafficFlowRateValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/LongitudinalDownSlope> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/longitudinalDownSlopeValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If illuminationCloudinessValue is provided, IlluminationCloudiness must be true."@en ;
sh:message "If trafficAgentDensityValue is provided, TrafficAgentDensity must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/IlluminationCloudiness> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/illuminationCloudinessValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/TrafficAgentDensity> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/trafficAgentDensityValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
Expand All @@ -2215,27 +2205,37 @@ openlabel_v2:Odd a sh:NodeShape ;
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/LaneSpecificationDimensions> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/laneSpecificationDimensionsValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If laneSpecificationLaneCountValue is provided, LaneSpecificationLaneCount must be true."@en ;
sh:message "If trafficFlowRateValue is provided, TrafficFlowRate must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/LaneSpecificationLaneCount> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/laneSpecificationLaneCountValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/TrafficFlowRate> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/trafficFlowRateValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If horizontalCurvesValue is provided, HorizontalCurves must be true."@en ;
sh:message "If trafficVolumeValue is provided, TrafficVolume must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/HorizontalCurves> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/horizontalCurvesValue> ?value . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/TrafficVolume> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/trafficVolumeValue> ?value . }
FILTER (
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ],
[ a sh:SPARQLConstraint ;
sh:message "If illuminationCloudinessValue is provided, IlluminationCloudiness must be true."@en ;
sh:select """SELECT $this WHERE {
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/IlluminationCloudiness> ?flag . }
OPTIONAL { $this <https://w3id.org/ascs-ev/envited-x/openlabel/v2/illuminationCloudinessValue> ?value . }
FILTER (
( !BOUND(?flag) || ?flag != true ) &&
( !BOUND(?flag) || str(?flag) != "true" ) &&
BOUND(?value)
)
}""" ] ;
Expand Down
Loading
Loading