-
Notifications
You must be signed in to change notification settings - Fork 6
/
SubmodelElementCollectionShape.ttl
215 lines (195 loc) · 5.92 KB
/
SubmodelElementCollectionShape.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rami: <https://w3id.org/i40/rami#> .
<<<<<<< HEAD
<#SubmodelElementCollection>
a sh:SubmodelElementCollection ;
sh:path rami:SubmodelElementCollection ;
sh:minCount 1 ;
sh:property [
sh:path rami:value ;
sh:class rami:SubmodelElement ; #TODO: check if already available (Protégé)
sh:minCount 0 ;
sh:severaty sh:Violation ;
sh:message "rami:value needs to be instance of rami:SubModelElement"@en^^xsd:string ;
=======
<#SubmodelElementCollectionShape>
# a sh:SubmodelElementCollection ;
# sh:path rami:SubmodelElementCollection ;
# sh:minCount 1 ;
a sh:NodeShape ;
sh:targetClass rami:SubmodelElementCollection ;
sh:property [
sh:path rdf:type ;
sh:minCount 1 ; # redundant
] ;
sh:property [
sh:path rami:value ;
sh:class rami:SubmodelElement ;
sh:minCount 0 ;
sh:severity sh:Violation ;
sh:message "rami:value needs to be instance of rami:SubModelElement"@en ;
>>>>>>> details_of_the_AAS_1.1
] ;
sh:property [
sh:path rami:ordered ;
<<<<<<< HEAD
sh:class xsd:boolean ;
sh:minCount 0 ;
sh:maxCount 1 ;
sh:severaty sh:Violation ;
sh:message "the attribute ordered is optional and is of type boolean"@en^^xsd:string ;
=======
sh:valueDatatype xsd:boolean ;
sh:minCount 0 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "the attribute ordered is optional and is of type boolean"@en ;
] ;
sh:property [
sh:path rami:allowDuplicates ;
sh:minCount 0 ;
sh:maxCount 1 ;
#DEFAULT-VALUE ?
sh:valueDatatype xsd:boolean ;
sh:severity sh:Violation ;
#sh:message ""@en ;
>>>>>>> details_of_the_AAS_1.1
] ;
#########################################
# inherits from SubmodelElements #
# SubmodelElements inherits from: #
# - HasDataSpecification #
# – Referable #
# – Qualifiable #
# - HasSemantics #
# – hasKind #
#########################################
# inherits from hasDataSpecification (abstract)
sh:property [
sh:path rami:hasDataSpecification ;
sh:minCount 0 ;
<<<<<<< HEAD
sh:nodeKind sh:IRI ; # class Reference is not part of the ontology
sh:severity sh:Violation ;
sh:message "rami:hasDataSpecification must point to a proper URI."@en ;
=======
sh:nodeKind sh:IRDI ;
sh:severity sh:Violation ;
sh:message "rami:hasDataSpecification must point to a proper IRDI."@en ;
>>>>>>> details_of_the_AAS_1.1
] ;
#inherits from Referable
sh:property [
sh:path rami:idShort ;
<<<<<<< HEAD
sh:class xsd:string ; #TODO: check!
#sh:valueDatatype xsd:string ;
=======
sh:valueDatatype xsd:string ;
>>>>>>> details_of_the_AAS_1.1
sh:minCount 0 ;
sh:maxCount 1 ;
sh:severity sh:violation ;
sh:message "..."@en ;
] ;
sh:property [
sh:path rami:category ;
<<<<<<< HEAD
sh:class xsd:string ;
#sh:valueDatatype xsd:string ;
=======
sh:valueDatatype xsd:string ;
>>>>>>> details_of_the_AAS_1.1
sh:minCount 0 ;
sh:maxCount 1 ;
sh:severity sh:violation ;
sh:message "..."@en ;
] ;
sh:property [
sh:path rami:description ;
<<<<<<< HEAD
sh:class xsd:langString ;
#sh:valueDatatype xsd:langString ;
=======
sh:valueDatatype xsd:langString ;
>>>>>>> details_of_the_AAS_1.1
sh:minCount 0 ;
sh:maxCount 1 ;
sh:severity sh:violation ;
sh:message "..."@en ;
] ;
sh:property [
sh:path rami:parent ;
<<<<<<< HEAD
sh:class rami:Referable ; #reference to an abstract class ?? (polymorphism?) #TODO: CHECK THIS
=======
sh:class rami:Referable ;
>>>>>>> details_of_the_AAS_1.1
sh:minCount 0 ;
sh:maxCount 1 ;
sh:severity sh:violation ;
sh:message "..."@en ;
] ;
# inherits from Qualifiable
###########
# copied! #
###########
sh:property [
sh:path rami:qualifier ;
<<<<<<< HEAD
sh:minCount 0 ;
sh:constraint [
sh:nodeKind sh:URI ; # Contraints are not part of the ontology
] ;
=======
sh:class rami:Constraint ; # problem: constraint is abstract
sh:minCount 0 ;
sh:constraint [
sh:nodeKind sh:URI ; # Contraints are not part of the ontology
] ;
>>>>>>> details_of_the_AAS_1.1
sh:severity sh:Violation ;
sh:message "rami:qualifier must be point to a proper URI."@en ;
] ;
# inherits from HasSemantics
#########################################################
# hasSemantics requirements are fulfilled by RDF itself #
#########################################################
# inherits from Haskind
###########
# copied! #
###########
sh:property [
sh:path rami:hasKind ;
sh:minCount 0 ;
sh:maxCount 1 ;
<<<<<<< HEAD
sh:someOf [
sh:constraint [
sh:nodeKind sh:Type ;
] ;
sh:constraint [
sh:nodeKind rami:Instance ;
] ;
] ;
sh:severity sh:Violation ;
sh:message "rami:hasKind must be either a rami:Instance or a rami:Type ."@en ;
] .
=======
sh:someOf [
sh:constraint [
sh:nodeKind sh:Type ;
] ;
sh:constraint [
sh:nodeKind rami:Instance ;
] ;
] ;
sh:severity sh:Violation ;
sh:message "rami:hasKind must be either a rami:Instance or a rami:Type."@en ;
] .
>>>>>>> details_of_the_AAS_1.1