forked from charlesvardeman/pidinst-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pidinst-shapes.ttl
263 lines (257 loc) · 7.82 KB
/
pidinst-shapes.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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
@prefix : <http://example.org/PIDINST/> .
@prefix schema: <http://schema.org/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix : <http://example.org/PIDINST/> .
@prefix schema: <http://schema.org/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
:InstrumentInstanceShape a sh:NodeShape ;
sh:targetClass :InstrumentInstance ;
sh:property [
sh:path :identifier ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "An instrument instance must have a unique identifier." ;
] ;
sh:property [
sh:path :identifierType ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "An instrument instance must have an identifier type." ;
] ;
sh:property [
sh:path :schemaVersion ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "An instrument instance must have a schema version." ;
] ;
sh:property [
sh:path :landingPage ;
sh:datatype xsd:anyURI ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "An instrument instance must have a landing page." ;
] ;
sh:property [
sh:path :name ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "An instrument instance must have a name." ;
] ;
sh:property [
sh:path :owner ;
sh:node :OwnerShape ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "An instrument instance must have at least one owner." ;
] ;
sh:property [
sh:path :hasManufacturer ;
sh:name "hasManufacturer" ;
sh:description "The instrument's manufacturer(s) or developer." ;
sh:class :Manufacturer ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
] ,
sh:property [
sh:path :hasModel ;
sh:name "hasModel" ;
sh:description "Name of the model or type of device as attributed by the manufacturer." ;
sh:class :Model ;
sh:maxCount 1 ;
sh:nodeKind sh:IRI ;
] ,
sh:property [
sh:path :description ;
sh:name "description" ;
sh:description "Technical description of the device and its capabilities." ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] ,
sh:property [
sh:path :hasInstrumentType ;
sh:name "hasInstrumentType" ;
sh:description "Classification of the type of the instrument." ;
sh:class :InstrumentType ;
sh:nodeKind sh:IRI ;
] ;
sh:property [
sh:path :measuredVariable ;
sh:name "measuredVariable" ;
sh:description "The variable(s) that this instrument measures or observes" ;
sh:datatype xsd:string ;
sh:minCount 0 ;
] ;
sh:property [
sh:path :date ;
sh:name "date" ;
sh:description "Dates relevant to the instrument" ;
sh:datatype xsd:dateTime ;
sh:minCount 0 ;
] ;
sh:property [
sh:path :dateType ;
sh:name "dateType" ;
sh:description "The type of the date" ;
sh:class :DateType ;
sh:minCount 1 ;
] ;
sh:property [
sh:path :relatedIdentifier ;
sh:name "relatedIdentifier" ;
sh:description "Identifiers of related resources" ;
sh:datatype xsd:string ;
sh:minCount 0 ;
] ;
sh:property [
sh:path :relatedIdentifierType ;
sh:name "relatedIdentifierType" ;
sh:description "Type of the identifier" ;
sh:class :RelatedIdentifierType ;
sh:minCount 1 ;
] ;
sh:property [
sh:path :relationType ;
sh:name "relationType" ;
sh:description "Description of the relationship" ;
sh:class :RelationType ;
sh:minCount 1 ;
] ;
sh:property [
sh:path :relatedIdentifierName ;
sh:name "relatedIdentifierName" ;
sh:description "A name for the related resource, may be used to give a hint on the content of that resource" ;
sh:datatype xsd:string ;
sh:minCount 0 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path :alternateIdentifier ;
sh:name "alternateIdentifier" ;
sh:description "Identifiers other than the PIDINST pertaining to the same instrument instance. This should be used if the instrument has a serial number. Other possible uses include an owner's inventory number or an entry in some instrument data base." ;
sh:datatype xsd:string ;
sh:minCount 0 ;
] ;
sh:property [
sh:path :alternateIdentifierType ;
sh:name "alternateIdentifierType" ;
sh:description "Type of the identifier" ;
sh:class :AlternateIdentifierType ;
sh:minCount 1 ;
] ;
sh:property [
sh:path :alternateIdentifierName ;
sh:name "alternateIdentifierName" ;
sh:description "A supplementary name for the identifier type. This is mostly useful if alternateIdentifierType is Other." ;
sh:datatype xsd:string ;
sh:minCount 0 ;
sh:maxCount 1 ;
] .
:OwnerShape a sh:NodeShape ;
sh:targetClass :Owner ;
sh:property [
sh:path :ownerName ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "An owner must have a name." ;
] ;
sh:property [
sh:path :ownerContact ;
sh:datatype xsd:string ;
sh:minCount 0 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "An owner may have a contact address." ;
] ;
sh:property [
sh:path :ownerIdentifier ;
sh:datatype xsd:string ;
sh:minCount 0 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "An owner may have an identifier." ;
] ;
sh:property [
sh:path :ownerIdentifierType ;
sh:datatype xsd:string ;
sh:minCount 0 ;
sh:maxCount 1 ;
sh:severity sh:Warning ;
sh:message "An owner may have an identifier type." ;
] .
:ManufacturerShape a sh:NodeShape ;
sh:targetClass :Manufacturer ;
sh:property [
sh:path :manufacturerName ;
sh:name "manufacturerName" ;
sh:datatype xsd:string ;
sh:minCount 1 ;
] ,
sh:property [
sh:path :manufacturerIdentifier ;
sh:name "manufacturerIdentifier" ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] ,
sh:property [
sh:path :manufacturerIdentifierType ;
sh:name "manufacturerIdentifierType" ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] .
:ModelShape a sh:NodeShape ;
sh:targetClass :Model ;
sh:property [
sh:path :modelName ;
sh:name "modelName" ;
sh:datatype xsd:string ;
sh:minCount 1 ;
] ,
sh:property [
sh:path :modelIdentifier ;
sh:name "modelIdentifier" ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] ,
sh:property [
sh:path :modelIdentifierType ;
sh:name "modelIdentifierType" ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] .
:InstrumentTypeShape a sh:NodeShape ;
sh:targetClass :InstrumentType ;
sh:property [
sh:path :instrumentTypeName ;
sh:name "instrumentTypeName" ;
sh:datatype xsd:string ;
sh:minCount 1 ;
] ,
sh:property [
sh:path :instrumentTypeIdentifier ;
sh:name "instrumentTypeIdentifier" ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] ,
sh:property [
sh:path :instrumentTypeIdentifierType ;
sh:name "instrumentTypeIdentifierType" ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] .