forked from minhnh/metamodels-bdd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
time.shacl.ttl
45 lines (41 loc) · 1.06 KB
/
time.shacl.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
36
37
38
39
40
41
42
43
44
45
# SPDX-License-Identifier: MPL-2.0
# Author: Minh Nguyen ([email protected])
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix time: <https://secorolab.github.io/metamodels/time#> .
time:OfConstraintShape
a sh:PropertyShape ;
sh:description ":of-constraint must link to :TimeConstraint" ;
sh:path time:of-constraint ;
sh:class time:TimeConstraint ;
sh:nodeKind sh:IRI ;
sh:minCount 1 ;
sh:maxCount 1 .
time:RefEventShape
a sh:PropertyShape ;
sh:description ":ref-event must link to :Event" ;
sh:path time:ref-event ;
sh:class time:Event ;
sh:nodeKind sh:IRI ;
sh:minCount 1 .
time:AfterEventConstraintShape
a sh:NodeShpe ;
sh:targetClass time:AfterEventConstraint ;
sh:property time:OfConstraintShape ;
sh:and(
time:RefEventShape
[
sh:path time:ref-event ;
sh:maxCount 1 ;
]
) .
time:BeforeEventConstraintShape
a sh:NodeShape ;
sh:targetClass time:BeforeEventConstraint ;
sh:property time:OfConstraintShape ;
sh:and(
time:RefEventShape
[
sh:path time:ref-event ;
sh:maxCount 1 ;
]
) .