-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshapes_rules.ttl
35 lines (32 loc) · 1.12 KB
/
shapes_rules.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix schema: <http://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix mep: <https://pi.pauwel.be/voc/distributionelement#> .
@prefix fso: <http://www.w3id.org/fso#> .
@prefix om: <http://openmetrics.eu/openmetrics#> .
fso:FittingShape
a sh:NodeShape ;
sh:targetClass fso:Fitting ;
sh:property [
sh:path fso:connectedWith ;
sh:minCount 1 ;
sh:name "Connection with other component" ;
] .
fso:FittingRuleShape
a sh:NodeShape ;
sh:targetClass fso:fitting ;
sh:rule [
a sh:SPARQLRule ;
sh:prefixes om: ;
sh:construct """
CONSTRUCT {
$this fso:connectedWith ?this .
}
WHERE {
$this fso:connectedWith ?component .
}
""";
sh:condition fso:fittingShape ; # Rule only applies to Fittings that conform to fso:fittingShape
] .