Showing
1 changed file
with
489 additions
and
496 deletions
... | @@ -23,19 +23,29 @@ | ... | @@ -23,19 +23,29 @@ |
23 | <http://www.epim.no/schemas/mprml/1#Cs_productVolumeFacility> | 23 | <http://www.epim.no/schemas/mprml/1#Cs_productVolumeFacility> |
24 | spin:rule | 24 | spin:rule |
25 | [ rdf:type sp:Construct ; | 25 | [ rdf:type sp:Construct ; |
26 | - rdfs:comment "STEP 80000a Find the classes of spatial part that need to be created for the parameter set properties."^^xsd:string ; | 26 | + rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates"^^xsd:string ; |
27 | - sp:templates ([ sp:object spin:_this ; | 27 | + sp:templates ([ sp:object |
28 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
29 | - sp:subject | ||
30 | [ sp:varName "classOfSpatialPart"^^xsd:string | 28 | [ sp:varName "classOfSpatialPart"^^xsd:string |
31 | - ] | ||
32 | - ]) ; | ||
33 | - sp:where ([ sp:object | ||
34 | - [ sp:varName "parameterSetRef"^^xsd:string | ||
35 | ] ; | 29 | ] ; |
36 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | 30 | + sp:predicate rdf:type ; |
37 | - sp:subject spin:_this | 31 | + sp:subject _:b1 |
38 | - ] [ sp:object spin:_this ; | 32 | + ] [ sp:object |
33 | + [ sp:varName "intervalStart"^^xsd:string | ||
34 | + ] ; | ||
35 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
36 | + sp:subject _:b1 | ||
37 | + ] [ sp:object | ||
38 | + [ sp:varName "intervalEnd"^^xsd:string | ||
39 | + ] ; | ||
40 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
41 | + sp:subject _:b1 | ||
42 | + ] [ sp:object | ||
43 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
44 | + ] ; | ||
45 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
46 | + sp:subject _:b1 | ||
47 | + ]) ; | ||
48 | + sp:where ([ sp:object spin:_this ; | ||
39 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 49 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
40 | sp:subject | 50 | sp:subject |
41 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 51 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
... | @@ -46,28 +56,58 @@ | ... | @@ -46,28 +56,58 @@ |
46 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 56 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
47 | ] | 57 | ] |
48 | ] [ sp:object | 58 | ] [ sp:object |
49 | - [ sp:varName "nameRef"^^xsd:string | 59 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
50 | ] ; | 60 | ] ; |
51 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 61 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; |
52 | sp:subject | 62 | sp:subject |
53 | - [ sp:varName "parameterSetRef"^^xsd:string | 63 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
54 | ] | 64 | ] |
55 | ] [ sp:object | 65 | ] [ sp:object |
56 | - [ sp:varName "nameRef"^^xsd:string | 66 | + [ sp:varName "classOfSpatialPart"^^xsd:string |
57 | ] ; | 67 | ] ; |
58 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | 68 | + sp:predicate rdf:type ; |
59 | sp:subject | 69 | sp:subject |
60 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 70 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
61 | ] | 71 | ] |
62 | - ] [ rdf:type sp:NotExists ; | 72 | + ] [ sp:object |
63 | - sp:elements ([ sp:object | 73 | + [ sp:varName "intervalString"^^xsd:string |
64 | - [ sp:varName "classOfSpatialPart"^^xsd:string | ||
65 | ] ; | 74 | ] ; |
66 | - sp:predicate rdf:type ; | 75 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; |
67 | sp:subject | 76 | sp:subject |
68 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 77 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
78 | + ] | ||
79 | + ] [ rdf:type sp:Bind ; | ||
80 | + sp:expression | ||
81 | + [ rdf:type afn:substr ; | ||
82 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
83 | + ] ; | ||
84 | + sp:arg2 0 ; | ||
85 | + sp:arg3 [ rdf:type smf:indexOf ; | ||
86 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
87 | + ] ; | ||
88 | + sp:arg2 "$" | ||
89 | + ] | ||
90 | + ] ; | ||
91 | + sp:variable | ||
92 | + [ sp:varName "intervalStart"^^xsd:string | ||
93 | + ] | ||
94 | + ] [ rdf:type sp:Bind ; | ||
95 | + sp:expression | ||
96 | + [ rdf:type afn:substr ; | ||
97 | + sp:arg1 [ rdf:type afn:substr ; | ||
98 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
99 | + ] ; | ||
100 | + sp:arg2 [ rdf:type smf:indexOf ; | ||
101 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
102 | + ] ; | ||
103 | + sp:arg2 "$" | ||
104 | + ] | ||
105 | + ] ; | ||
106 | + sp:arg2 1 | ||
107 | + ] ; | ||
108 | + sp:variable | ||
109 | + [ sp:varName "intervalEnd"^^xsd:string | ||
69 | ] | 110 | ] |
70 | - ]) | ||
71 | ]) | 111 | ]) |
72 | ] ; | 112 | ] ; |
73 | spin:rule | 113 | spin:rule |
... | @@ -77,22 +117,22 @@ | ... | @@ -77,22 +117,22 @@ |
77 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 117 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
78 | ] ; | 118 | ] ; |
79 | sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 119 | sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; |
80 | - sp:subject _:b1 | 120 | + sp:subject _:b2 |
81 | ] [ sp:object | 121 | ] [ sp:object |
82 | [ sp:varName "classOfSpatialPart"^^xsd:string | 122 | [ sp:varName "classOfSpatialPart"^^xsd:string |
83 | ] ; | 123 | ] ; |
84 | sp:predicate rdf:type ; | 124 | sp:predicate rdf:type ; |
85 | - sp:subject _:b1 | 125 | + sp:subject _:b2 |
86 | ] [ sp:object | 126 | ] [ sp:object |
87 | [ sp:varName "startedAt"^^xsd:string | 127 | [ sp:varName "startedAt"^^xsd:string |
88 | ] ; | 128 | ] ; |
89 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 129 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
90 | - sp:subject _:b1 | 130 | + sp:subject _:b2 |
91 | ] [ sp:object | 131 | ] [ sp:object |
92 | [ sp:varName "finishedAt"^^xsd:string | 132 | [ sp:varName "finishedAt"^^xsd:string |
93 | ] ; | 133 | ] ; |
94 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 134 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
95 | - sp:subject _:b1 | 135 | + sp:subject _:b2 |
96 | ]) ; | 136 | ]) ; |
97 | sp:where ([ sp:object spin:_this ; | 137 | sp:where ([ sp:object spin:_this ; |
98 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 138 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
... | @@ -133,78 +173,108 @@ | ... | @@ -133,78 +173,108 @@ |
133 | ] | 173 | ] |
134 | ]) | 174 | ]) |
135 | ]) | 175 | ]) |
136 | - ] . | 176 | + ] ; |
137 | - | ||
138 | -<http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> | ||
139 | spin:rule | 177 | spin:rule |
140 | [ rdf:type sp:Construct ; | 178 | [ rdf:type sp:Construct ; |
141 | - rdfs:comment "STEP 80002a Create temporal part of parameterSet facility corresponding to the nominal time, if necessary"^^xsd:string ; | 179 | + rdfs:comment "STEP 80000a Find the classes of spatial part that need to be created for the parameter set properties."^^xsd:string ; |
142 | - sp:templates ([ sp:object | 180 | + sp:templates ([ sp:object spin:_this ; |
143 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | 181 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
182 | + sp:subject | ||
183 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
184 | + ] | ||
185 | + ]) ; | ||
186 | + sp:where ([ sp:object | ||
187 | + [ sp:varName "parameterSetRef"^^xsd:string | ||
144 | ] ; | 188 | ] ; |
189 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | ||
190 | + sp:subject spin:_this | ||
191 | + ] [ sp:object spin:_this ; | ||
192 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
193 | + sp:subject | ||
194 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
195 | + ] | ||
196 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
145 | sp:predicate rdf:type ; | 197 | sp:predicate rdf:type ; |
146 | - sp:subject _:b2 | 198 | + sp:subject |
199 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
200 | + ] | ||
147 | ] [ sp:object | 201 | ] [ sp:object |
148 | - [ sp:varName "dTim"^^xsd:string | 202 | + [ sp:varName "nameRef"^^xsd:string |
149 | ] ; | 203 | ] ; |
150 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 204 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
151 | - sp:subject _:b2 | 205 | + sp:subject |
206 | + [ sp:varName "parameterSetRef"^^xsd:string | ||
207 | + ] | ||
152 | ] [ sp:object | 208 | ] [ sp:object |
153 | - [ sp:varName "parameterSetFacility"^^xsd:string | 209 | + [ sp:varName "nameRef"^^xsd:string |
154 | ] ; | 210 | ] ; |
155 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 211 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; |
156 | - sp:subject _:b2 | 212 | + sp:subject |
157 | - ] [ sp:object | 213 | + [ sp:varName "classOfSpatialPart"^^xsd:string |
158 | - [ sp:varName "parameterRef"^^xsd:string | 214 | + ] |
215 | + ] [ rdf:type sp:NotExists ; | ||
216 | + sp:elements ([ sp:object | ||
217 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
159 | ] ; | 218 | ] ; |
219 | + sp:predicate rdf:type ; | ||
220 | + sp:subject | ||
221 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
222 | + ] | ||
223 | + ]) | ||
224 | + ]) | ||
225 | + ] . | ||
226 | + | ||
227 | +<http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> | ||
228 | + spin:rule | ||
229 | + [ rdf:type sp:Construct ; | ||
230 | + rdfs:comment "STEP 80000d The whole production facility has the parameterSet property"^^xsd:string ; | ||
231 | + sp:templates ([ sp:object spin:_this ; | ||
160 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 232 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
161 | - sp:subject _:b2 | 233 | + sp:subject |
234 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
235 | + ] | ||
162 | ]) ; | 236 | ]) ; |
163 | sp:where ([ sp:object spin:_this ; | 237 | sp:where ([ sp:object spin:_this ; |
164 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 238 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; |
165 | sp:subject | 239 | sp:subject |
166 | - [ sp:varName "parameterSetFacility"^^xsd:string | 240 | + [ sp:varName "facilityRef"^^xsd:string |
167 | ] | 241 | ] |
168 | ] [ sp:object | 242 | ] [ sp:object |
169 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | 243 | + [ sp:varName "facilityRef"^^xsd:string |
170 | ] ; | 244 | ] ; |
245 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
246 | + sp:subject | ||
247 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
248 | + ] | ||
249 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
171 | sp:predicate rdf:type ; | 250 | sp:predicate rdf:type ; |
172 | sp:subject | 251 | sp:subject |
173 | - [ sp:varName "parameterSetFacility"^^xsd:string | 252 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
174 | ] | 253 | ] |
175 | ] [ sp:object | 254 | ] [ sp:object |
176 | - [ sp:varName "parameterRef"^^xsd:string | 255 | + [ sp:varName "nameRef"^^xsd:string |
177 | ] ; | 256 | ] ; |
178 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 257 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
179 | sp:subject spin:_this | 258 | sp:subject spin:_this |
180 | ] [ sp:object | 259 | ] [ sp:object |
181 | - [ sp:varName "dTim"^^xsd:string | 260 | + [ sp:varName "nameRef"^^xsd:string |
182 | - ] ; | ||
183 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | ||
184 | - sp:subject | ||
185 | - [ sp:varName "parameterRef"^^xsd:string | ||
186 | - ] | ||
187 | - ] [ rdf:type sp:NotExists ; | ||
188 | - sp:elements ([ sp:object | ||
189 | - [ sp:varName "dTim"^^xsd:string | ||
190 | ] ; | 261 | ] ; |
191 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 262 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; |
192 | sp:subject | 263 | sp:subject |
193 | - [ sp:varName "parameterFacility"^^xsd:string | 264 | + [ sp:varName "classOfProductionFacility"^^xsd:string |
194 | ] | 265 | ] |
195 | ] [ sp:object | 266 | ] [ sp:object |
196 | - [ sp:varName "parameterSetFacility"^^xsd:string | 267 | + [ sp:varName "classOfProductionFacility"^^xsd:string |
197 | ] ; | 268 | ] ; |
198 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 269 | + sp:predicate rdf:type ; |
199 | sp:subject | 270 | sp:subject |
200 | - [ sp:varName "parameterFacility"^^xsd:string | 271 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
201 | ] | 272 | ] |
202 | ]) | 273 | ]) |
203 | - ]) | ||
204 | ] ; | 274 | ] ; |
205 | spin:rule | 275 | spin:rule |
206 | [ rdf:type sp:Construct ; | 276 | [ rdf:type sp:Construct ; |
207 | - rdfs:comment "STEP 80002b Find existing temporal part of parameterSet facility corresponding to the nominal time"^^xsd:string ; | 277 | + rdfs:comment "STEP 80003c Assign temporal parts of parameterSet facility to parameter elements"^^xsd:string ; |
208 | sp:templates ([ sp:object | 278 | sp:templates ([ sp:object |
209 | [ sp:varName "parameterRef"^^xsd:string | 279 | [ sp:varName "parameterRef"^^xsd:string |
210 | ] ; | 280 | ] ; |
... | @@ -219,21 +289,30 @@ | ... | @@ -219,21 +289,30 @@ |
219 | [ sp:varName "parameterSetFacility"^^xsd:string | 289 | [ sp:varName "parameterSetFacility"^^xsd:string |
220 | ] | 290 | ] |
221 | ] [ sp:object | 291 | ] [ sp:object |
222 | - [ sp:varName "parameterRef"^^xsd:string | 292 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
223 | ] ; | 293 | ] ; |
224 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 294 | + sp:predicate rdf:type ; |
225 | - sp:subject spin:_this | 295 | + sp:subject |
296 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
297 | + ] | ||
226 | ] [ sp:object | 298 | ] [ sp:object |
227 | - [ sp:varName "dTim"^^xsd:string | 299 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
228 | ] ; | 300 | ] ; |
229 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | 301 | + sp:predicate rdf:type ; |
230 | sp:subject | 302 | sp:subject |
231 | - [ sp:varName "parameterRef"^^xsd:string | 303 | + [ sp:varName "parameterFacility"^^xsd:string |
232 | ] | 304 | ] |
233 | ] [ sp:object | 305 | ] [ sp:object |
234 | - [ sp:varName "dTim"^^xsd:string | 306 | + [ sp:varName "intervalStart"^^xsd:string |
235 | ] ; | 307 | ] ; |
236 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 308 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
309 | + sp:subject | ||
310 | + [ sp:varName "parameterFacility"^^xsd:string | ||
311 | + ] | ||
312 | + ] [ sp:object | ||
313 | + [ sp:varName "intervalEnd"^^xsd:string | ||
314 | + ] ; | ||
315 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
237 | sp:subject | 316 | sp:subject |
238 | [ sp:varName "parameterFacility"^^xsd:string | 317 | [ sp:varName "parameterFacility"^^xsd:string |
239 | ] | 318 | ] |
... | @@ -244,15 +323,34 @@ | ... | @@ -244,15 +323,34 @@ |
244 | sp:subject | 323 | sp:subject |
245 | [ sp:varName "parameterFacility"^^xsd:string | 324 | [ sp:varName "parameterFacility"^^xsd:string |
246 | ] | 325 | ] |
326 | + ] [ sp:object | ||
327 | + [ sp:varName "parameterRef"^^xsd:string | ||
328 | + ] ; | ||
329 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
330 | + sp:subject spin:_this | ||
331 | + ] [ sp:object | ||
332 | + [ sp:varName "intervalStart"^^xsd:string | ||
333 | + ] ; | ||
334 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
335 | + sp:subject | ||
336 | + [ sp:varName "parameterRef"^^xsd:string | ||
337 | + ] | ||
338 | + ] [ sp:object | ||
339 | + [ sp:varName "intervalEnd"^^xsd:string | ||
340 | + ] ; | ||
341 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
342 | + sp:subject | ||
343 | + [ sp:varName "parameterRef"^^xsd:string | ||
344 | + ] | ||
247 | ]) | 345 | ]) |
248 | ] ; | 346 | ] ; |
249 | spin:rule | 347 | spin:rule |
250 | [ rdf:type sp:Construct ; | 348 | [ rdf:type sp:Construct ; |
251 | - rdfs:comment "STEP 80003a Create list of necessary temporal parts of parameterSet facility corresponding to the start and end"^^xsd:string ; | 349 | + rdfs:comment "STEP 80003d No temporal part of the parameterSetFacility is required"^^xsd:string ; |
252 | sp:templates ([ sp:object | 350 | sp:templates ([ sp:object |
253 | - [ sp:varName "intervalString"^^xsd:string | 351 | + [ sp:varName "parameterRef"^^xsd:string |
254 | ] ; | 352 | ] ; |
255 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; | 353 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
256 | sp:subject | 354 | sp:subject |
257 | [ sp:varName "parameterSetFacility"^^xsd:string | 355 | [ sp:varName "parameterSetFacility"^^xsd:string |
258 | ] | 356 | ] |
... | @@ -288,8 +386,7 @@ | ... | @@ -288,8 +386,7 @@ |
288 | sp:subject | 386 | sp:subject |
289 | [ sp:varName "parameterRef"^^xsd:string | 387 | [ sp:varName "parameterRef"^^xsd:string |
290 | ] | 388 | ] |
291 | - ] [ rdf:type sp:NotExists ; | 389 | + ] [ sp:object |
292 | - sp:elements ([ sp:object | ||
293 | [ sp:varName "intervalStart"^^xsd:string | 390 | [ sp:varName "intervalStart"^^xsd:string |
294 | ] ; | 391 | ] ; |
295 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 392 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
... | @@ -304,17 +401,45 @@ | ... | @@ -304,17 +401,45 @@ |
304 | [ sp:varName "parameterSetFacility"^^xsd:string | 401 | [ sp:varName "parameterSetFacility"^^xsd:string |
305 | ] | 402 | ] |
306 | ]) | 403 | ]) |
307 | - ] [ rdf:type sp:Bind ; | ||
308 | - sp:expression | ||
309 | - [ rdf:type fn:concat ; | ||
310 | - sp:arg1 [ sp:varName "intervalStart"^^xsd:string | ||
311 | ] ; | 404 | ] ; |
312 | - sp:arg2 "$" ; | 405 | + spin:rule |
313 | - sp:arg3 [ sp:varName "intervalEnd"^^xsd:string | 406 | + [ rdf:type sp:Construct ; |
407 | + rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates - moved to a rule on Cs_productVolumeFacility"^^xsd:string ; | ||
408 | + sp:templates () ; | ||
409 | + sp:where () | ||
410 | + ] ; | ||
411 | + spin:rule | ||
412 | + [ rdf:type sp:Construct ; | ||
413 | + rdfs:comment "STEP 80004b Measurement qualifier not specified"^^xsd:string ; | ||
414 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | ||
415 | + sp:predicate rdf:type ; | ||
416 | + sp:subject | ||
417 | + [ sp:varName "parameterFacility"^^xsd:string | ||
418 | + ] | ||
419 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; | ||
420 | + sp:predicate rdf:type ; | ||
421 | + sp:subject | ||
422 | + [ sp:varName "parameterFacility"^^xsd:string | ||
314 | ] | 423 | ] |
424 | + ]) ; | ||
425 | + sp:where ([ rdf:type sp:NotExists ; | ||
426 | + sp:elements ([ sp:object | ||
427 | + [ sp:varName "qualifierRef"^^xsd:string | ||
315 | ] ; | 428 | ] ; |
316 | - sp:variable | 429 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; |
317 | - [ sp:varName "intervalString"^^xsd:string | 430 | + sp:subject spin:_this |
431 | + ]) | ||
432 | + ] [ sp:object | ||
433 | + [ sp:varName "parameterRef"^^xsd:string | ||
434 | + ] ; | ||
435 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
436 | + sp:subject spin:_this | ||
437 | + ] [ sp:object | ||
438 | + [ sp:varName "parameterRef"^^xsd:string | ||
439 | + ] ; | ||
440 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
441 | + sp:subject | ||
442 | + [ sp:varName "parameterFacility"^^xsd:string | ||
318 | ] | 443 | ] |
319 | ]) | 444 | ]) |
320 | ] ; | 445 | ] ; |
... | @@ -322,28 +447,28 @@ | ... | @@ -322,28 +447,28 @@ |
322 | [ rdf:type sp:Construct ; | 447 | [ rdf:type sp:Construct ; |
323 | rdfs:comment "STEP 80001a Regularise start and end times - time specified by parameter element"^^xsd:string ; | 448 | rdfs:comment "STEP 80001a Regularise start and end times - time specified by parameter element"^^xsd:string ; |
324 | sp:templates ([ sp:object | 449 | sp:templates ([ sp:object |
325 | - [ sp:varName "start1"^^xsd:string | 450 | + [ sp:varName "dTimStartString"^^xsd:string |
326 | ] ; | 451 | ] ; |
327 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 452 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
328 | sp:subject | 453 | sp:subject |
329 | [ sp:varName "parameterRef"^^xsd:string | 454 | [ sp:varName "parameterRef"^^xsd:string |
330 | ] | 455 | ] |
331 | ] [ sp:object | 456 | ] [ sp:object |
332 | - [ sp:varName "start2"^^xsd:string | 457 | + [ sp:varName "dateStartString"^^xsd:string |
333 | ] ; | 458 | ] ; |
334 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 459 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
335 | sp:subject | 460 | sp:subject |
336 | [ sp:varName "parameterRef"^^xsd:string | 461 | [ sp:varName "parameterRef"^^xsd:string |
337 | ] | 462 | ] |
338 | ] [ sp:object | 463 | ] [ sp:object |
339 | - [ sp:varName "end1"^^xsd:string | 464 | + [ sp:varName "dTimEndString"^^xsd:string |
340 | ] ; | 465 | ] ; |
341 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 466 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
342 | sp:subject | 467 | sp:subject |
343 | [ sp:varName "parameterRef"^^xsd:string | 468 | [ sp:varName "parameterRef"^^xsd:string |
344 | ] | 469 | ] |
345 | ] [ sp:object | 470 | ] [ sp:object |
346 | - [ sp:varName "end2"^^xsd:string | 471 | + [ sp:varName "dateEndString"^^xsd:string |
347 | ] ; | 472 | ] ; |
348 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 473 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
349 | sp:subject | 474 | sp:subject |
... | @@ -363,43 +488,43 @@ | ... | @@ -363,43 +488,43 @@ |
363 | sp:subject | 488 | sp:subject |
364 | [ sp:varName "parameterRef"^^xsd:string | 489 | [ sp:varName "parameterRef"^^xsd:string |
365 | ] | 490 | ] |
366 | - ]) | 491 | + ] [ rdf:type sp:Bind ; |
367 | - ] [ rdf:type sp:Optional ; | 492 | + sp:expression |
368 | - sp:elements ([ sp:object | 493 | + [ rdf:type smf:cast ; |
369 | - [ sp:varName "dTimEnd"^^xsd:string | 494 | + arg:datatype xsd:string ; |
370 | - ] ; | 495 | + sp:arg1 [ sp:varName "dTimStart"^^xsd:string |
371 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
372 | - sp:subject | ||
373 | - [ sp:varName "parameterRef"^^xsd:string | ||
374 | ] | 496 | ] |
375 | - ]) | ||
376 | - ] [ rdf:type sp:Optional ; | ||
377 | - sp:elements ([ sp:object | ||
378 | - [ sp:varName "dateStart"^^xsd:string | ||
379 | ] ; | 497 | ] ; |
380 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 498 | + sp:variable |
381 | - sp:subject | 499 | + [ sp:varName "dTimStartString"^^xsd:string |
382 | - [ sp:varName "parameterRef"^^xsd:string | ||
383 | ] | 500 | ] |
384 | ]) | 501 | ]) |
385 | ] [ rdf:type sp:Optional ; | 502 | ] [ rdf:type sp:Optional ; |
386 | sp:elements ([ sp:object | 503 | sp:elements ([ sp:object |
387 | - [ sp:varName "dateEnd"^^xsd:string | 504 | + [ sp:varName "dTimEnd"^^xsd:string |
388 | ] ; | 505 | ] ; |
389 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 506 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
390 | sp:subject | 507 | sp:subject |
391 | [ sp:varName "parameterRef"^^xsd:string | 508 | [ sp:varName "parameterRef"^^xsd:string |
392 | ] | 509 | ] |
393 | - ]) | ||
394 | ] [ rdf:type sp:Bind ; | 510 | ] [ rdf:type sp:Bind ; |
395 | sp:expression | 511 | sp:expression |
396 | [ rdf:type smf:cast ; | 512 | [ rdf:type smf:cast ; |
397 | arg:datatype xsd:string ; | 513 | arg:datatype xsd:string ; |
398 | - sp:arg1 [ sp:varName "dTimStart"^^xsd:string | 514 | + sp:arg1 [ sp:varName "dTimEnd"^^xsd:string |
399 | ] | 515 | ] |
400 | ] ; | 516 | ] ; |
401 | sp:variable | 517 | sp:variable |
402 | - [ sp:varName "start1"^^xsd:string | 518 | + [ sp:varName "dTimEndString"^^xsd:string |
519 | + ] | ||
520 | + ]) | ||
521 | + ] [ rdf:type sp:Optional ; | ||
522 | + sp:elements ([ sp:object | ||
523 | + [ sp:varName "dateStart"^^xsd:string | ||
524 | + ] ; | ||
525 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
526 | + sp:subject | ||
527 | + [ sp:varName "parameterRef"^^xsd:string | ||
403 | ] | 528 | ] |
404 | ] [ rdf:type sp:Bind ; | 529 | ] [ rdf:type sp:Bind ; |
405 | sp:expression | 530 | sp:expression |
... | @@ -409,17 +534,16 @@ | ... | @@ -409,17 +534,16 @@ |
409 | ] | 534 | ] |
410 | ] ; | 535 | ] ; |
411 | sp:variable | 536 | sp:variable |
412 | - [ sp:varName "start2"^^xsd:string | 537 | + [ sp:varName "dateStartString"^^xsd:string |
413 | - ] | ||
414 | - ] [ rdf:type sp:Bind ; | ||
415 | - sp:expression | ||
416 | - [ rdf:type smf:cast ; | ||
417 | - arg:datatype xsd:string ; | ||
418 | - sp:arg1 [ sp:varName "dTimEnd"^^xsd:string | ||
419 | ] | 538 | ] |
539 | + ]) | ||
540 | + ] [ rdf:type sp:Optional ; | ||
541 | + sp:elements ([ sp:object | ||
542 | + [ sp:varName "dateEnd"^^xsd:string | ||
420 | ] ; | 543 | ] ; |
421 | - sp:variable | 544 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
422 | - [ sp:varName "end1"^^xsd:string | 545 | + sp:subject |
546 | + [ sp:varName "parameterRef"^^xsd:string | ||
423 | ] | 547 | ] |
424 | ] [ rdf:type sp:Bind ; | 548 | ] [ rdf:type sp:Bind ; |
425 | sp:expression | 549 | sp:expression |
... | @@ -429,105 +553,155 @@ | ... | @@ -429,105 +553,155 @@ |
429 | ] | 553 | ] |
430 | ] ; | 554 | ] ; |
431 | sp:variable | 555 | sp:variable |
432 | - [ sp:varName "end2"^^xsd:string | 556 | + [ sp:varName "dateEndString"^^xsd:string |
433 | ] | 557 | ] |
434 | ]) | 558 | ]) |
559 | + ]) | ||
435 | ] ; | 560 | ] ; |
436 | spin:rule | 561 | spin:rule |
437 | [ rdf:type sp:Construct ; | 562 | [ rdf:type sp:Construct ; |
438 | - rdfs:comment "STEP 80003c Assign temporal parts of parameterSet facility to parameter elements"^^xsd:string ; | 563 | + rdfs:comment "STEP 80005 Assign parameter value"^^xsd:string ; |
439 | - sp:templates ([ sp:object | 564 | + sp:templates ([ sp:object _:b3 ; |
440 | - [ sp:varName "parameterRef"^^xsd:string | 565 | + sp:predicate |
566 | + [ sp:varName "propertyType"^^xsd:string | ||
441 | ] ; | 567 | ] ; |
442 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
443 | - sp:subject | ||
444 | - [ sp:varName "parameterFacility"^^xsd:string | ||
445 | - ] | ||
446 | - ] [ sp:object "80003c" ; | ||
447 | - sp:predicate rdfs:label ; | ||
448 | sp:subject | 568 | sp:subject |
449 | [ sp:varName "parameterFacility"^^xsd:string | 569 | [ sp:varName "parameterFacility"^^xsd:string |
450 | ] | 570 | ] |
571 | + ] [ sp:object | ||
572 | + [ sp:varName "quantityType"^^xsd:string | ||
573 | + ] ; | ||
574 | + sp:predicate rdf:type ; | ||
575 | + sp:subject _:b3 | ||
576 | + ] [ sp:object | ||
577 | + [ sp:varName "measureValue"^^xsd:string | ||
578 | + ] ; | ||
579 | + sp:predicate | ||
580 | + [ sp:varName "measureScale"^^xsd:string | ||
581 | + ] ; | ||
582 | + sp:subject _:b3 | ||
451 | ]) ; | 583 | ]) ; |
452 | - sp:where ([ sp:object spin:_this ; | 584 | + sp:where ([ sp:object |
453 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 585 | + [ sp:varName "nameRef"^^xsd:string |
586 | + ] ; | ||
587 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
588 | + sp:subject spin:_this | ||
589 | + ] [ sp:object | ||
590 | + [ sp:varName "nameRef"^^xsd:string | ||
591 | + ] ; | ||
592 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#propertyMapsToMPREnumeration> ; | ||
454 | sp:subject | 593 | sp:subject |
455 | - [ sp:varName "parameterSetFacility"^^xsd:string | 594 | + [ sp:varName "propertyType"^^xsd:string |
456 | ] | 595 | ] |
457 | ] [ sp:object | 596 | ] [ sp:object |
458 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | 597 | + [ sp:varName "nameRef"^^xsd:string |
459 | ] ; | 598 | ] ; |
460 | - sp:predicate rdf:type ; | 599 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#rangeOfPropertyMapsToMPREnumeration> ; |
461 | sp:subject | 600 | sp:subject |
462 | - [ sp:varName "parameterSetFacility"^^xsd:string | 601 | + [ sp:varName "quantityType"^^xsd:string |
463 | ] | 602 | ] |
464 | ] [ sp:object | 603 | ] [ sp:object |
465 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | 604 | + [ sp:varName "parameterRef"^^xsd:string |
466 | ] ; | 605 | ] ; |
467 | - sp:predicate rdf:type ; | 606 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
607 | + sp:subject spin:_this | ||
608 | + ] [ sp:object | ||
609 | + [ sp:varName "parameterRef"^^xsd:string | ||
610 | + ] ; | ||
611 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
468 | sp:subject | 612 | sp:subject |
469 | [ sp:varName "parameterFacility"^^xsd:string | 613 | [ sp:varName "parameterFacility"^^xsd:string |
470 | ] | 614 | ] |
471 | ] [ sp:object | 615 | ] [ sp:object |
472 | - [ sp:varName "intervalStartString"^^xsd:string | 616 | + [ sp:varName "measureValueRef"^^xsd:string |
473 | ] ; | 617 | ] ; |
474 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 618 | + sp:predicate <http://www.epim.no/schemas/mprml/1#measureValueRef> ; |
475 | sp:subject | 619 | sp:subject |
476 | - [ sp:varName "parameterFacility"^^xsd:string | 620 | + [ sp:varName "parameterRef"^^xsd:string |
477 | ] | 621 | ] |
478 | ] [ sp:object | 622 | ] [ sp:object |
479 | - [ sp:varName "intervalEndString"^^xsd:string | 623 | + [ sp:varName "measureValue"^^xsd:string |
480 | ] ; | 624 | ] ; |
481 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 625 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
482 | sp:subject | 626 | sp:subject |
483 | - [ sp:varName "parameterFacility"^^xsd:string | 627 | + [ sp:varName "measureValueRef"^^xsd:string |
484 | ] | 628 | ] |
485 | ] [ sp:object | 629 | ] [ sp:object |
486 | - [ sp:varName "parameterSetFacility"^^xsd:string | 630 | + [ sp:varName "measureUomString"^^xsd:string |
487 | ] ; | 631 | ] ; |
488 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 632 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uom> ; |
489 | sp:subject | 633 | sp:subject |
490 | - [ sp:varName "parameterFacility"^^xsd:string | 634 | + [ sp:varName "measureValueRef"^^xsd:string |
491 | ] | 635 | ] |
492 | - ] [ sp:object | 636 | + ] [ rdf:type sp:Bind ; |
493 | - [ sp:varName "parameterRef"^^xsd:string | 637 | + sp:expression |
638 | + [ rdf:type ep-mpr-spin-lib:selectQuantityTypeUomScale ; | ||
639 | + sp:arg1 [ sp:varName "quantityType"^^xsd:string | ||
494 | ] ; | 640 | ] ; |
495 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 641 | + sp:arg2 [ sp:varName "measureUomString"^^xsd:string |
496 | - sp:subject spin:_this | 642 | + ] |
497 | - ] [ sp:object | ||
498 | - [ sp:varName "intervalStart"^^xsd:string | ||
499 | ] ; | 643 | ] ; |
500 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 644 | + sp:variable |
645 | + [ sp:varName "measureScale"^^xsd:string | ||
646 | + ] | ||
647 | + ]) | ||
648 | + ] ; | ||
649 | + spin:rule | ||
650 | + [ rdf:type sp:Construct ; | ||
651 | + rdfs:comment "STEP 80001c Regularise start and end times - end time inherited from temporal part of production facility"^^xsd:string ; | ||
652 | + sp:templates ([ sp:object | ||
653 | + [ sp:varName "endString"^^xsd:string | ||
654 | + ] ; | ||
655 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
501 | sp:subject | 656 | sp:subject |
502 | [ sp:varName "parameterRef"^^xsd:string | 657 | [ sp:varName "parameterRef"^^xsd:string |
503 | ] | 658 | ] |
659 | + ]) ; | ||
660 | + sp:where ([ sp:object spin:_this ; | ||
661 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
662 | + sp:subject | ||
663 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
664 | + ] | ||
504 | ] [ sp:object | 665 | ] [ sp:object |
505 | - [ sp:varName "intervalEnd"^^xsd:string | 666 | + [ sp:varName "finishedAt"^^xsd:string |
506 | ] ; | 667 | ] ; |
507 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 668 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
508 | sp:subject | 669 | sp:subject |
509 | - [ sp:varName "parameterRef"^^xsd:string | 670 | + [ sp:varName "parameterSetFacility"^^xsd:string |
510 | ] | 671 | ] |
511 | ] [ rdf:type sp:Bind ; | 672 | ] [ rdf:type sp:Bind ; |
512 | sp:expression | 673 | sp:expression |
513 | [ rdf:type smf:cast ; | 674 | [ rdf:type smf:cast ; |
514 | arg:datatype xsd:string ; | 675 | arg:datatype xsd:string ; |
515 | - sp:arg1 [ sp:varName "intervalStart"^^xsd:string | 676 | + sp:arg1 [ sp:varName "finishedAt"^^xsd:string |
516 | ] | 677 | ] |
517 | ] ; | 678 | ] ; |
518 | sp:variable | 679 | sp:variable |
519 | - [ sp:varName "intervalStartString"^^xsd:string | 680 | + [ sp:varName "endString"^^xsd:string |
520 | ] | 681 | ] |
521 | - ] [ rdf:type sp:Bind ; | 682 | + ] [ sp:object |
522 | - sp:expression | 683 | + [ sp:varName "parameterRef"^^xsd:string |
523 | - [ rdf:type smf:cast ; | 684 | + ] ; |
524 | - arg:datatype xsd:string ; | 685 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
525 | - sp:arg1 [ sp:varName "intervalEnd"^^xsd:string | 686 | + sp:subject spin:_this |
687 | + ] [ rdf:type sp:NotExists ; | ||
688 | + sp:elements ([ rdf:type sp:Union ; | ||
689 | + sp:elements (([ sp:object | ||
690 | + [ sp:varName "dTimEnd"^^xsd:string | ||
691 | + ] ; | ||
692 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
693 | + sp:subject | ||
694 | + [ sp:varName "parameterRef"^^xsd:string | ||
526 | ] | 695 | ] |
696 | + ]) ([ sp:object | ||
697 | + [ sp:varName "dateEnd"^^xsd:string | ||
527 | ] ; | 698 | ] ; |
528 | - sp:variable | 699 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
529 | - [ sp:varName "intervalEndString"^^xsd:string | 700 | + sp:subject |
701 | + [ sp:varName "parameterRef"^^xsd:string | ||
530 | ] | 702 | ] |
703 | + ])) | ||
704 | + ]) | ||
531 | ]) | 705 | ]) |
532 | ] ; | 706 | ] ; |
533 | spin:rule | 707 | spin:rule |
... | @@ -576,179 +750,148 @@ | ... | @@ -576,179 +750,148 @@ |
576 | ] ; | 750 | ] ; |
577 | spin:rule | 751 | spin:rule |
578 | [ rdf:type sp:Construct ; | 752 | [ rdf:type sp:Construct ; |
579 | - rdfs:comment "STEP 80000c Create the spatial parts that have the parameterSet property"^^xsd:string ; | 753 | + rdfs:comment "STEP 80001b Regularise start and end times - start time inherited from temporal part of production facility"^^xsd:string ; |
580 | - sp:templates ([ sp:object spin:_this ; | 754 | + sp:templates ([ sp:object |
581 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 755 | + [ sp:varName "startString"^^xsd:string |
756 | + ] ; | ||
757 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
582 | sp:subject | 758 | sp:subject |
583 | - [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | 759 | + [ sp:varName "parameterRef"^^xsd:string |
584 | ] | 760 | ] |
585 | ]) ; | 761 | ]) ; |
586 | sp:where ([ sp:object spin:_this ; | 762 | sp:where ([ sp:object spin:_this ; |
587 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | 763 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
588 | sp:subject | 764 | sp:subject |
589 | - [ sp:varName "facilityRef"^^xsd:string | 765 | + [ sp:varName "parameterSetFacility"^^xsd:string |
590 | ] | 766 | ] |
591 | ] [ sp:object | 767 | ] [ sp:object |
592 | - [ sp:varName "facilityRef"^^xsd:string | 768 | + [ sp:varName "startedAt"^^xsd:string |
593 | ] ; | 769 | ] ; |
594 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 770 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
595 | sp:subject | 771 | sp:subject |
596 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 772 | + [ sp:varName "parameterSetFacility"^^xsd:string |
597 | ] | 773 | ] |
598 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 774 | + ] [ rdf:type sp:Bind ; |
599 | - sp:predicate rdf:type ; | 775 | + sp:expression |
600 | - sp:subject | 776 | + [ rdf:type smf:cast ; |
601 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 777 | + arg:datatype xsd:string ; |
778 | + sp:arg1 [ sp:varName "startedAt"^^xsd:string | ||
602 | ] | 779 | ] |
603 | - ] [ sp:object | ||
604 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
605 | ] ; | 780 | ] ; |
606 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 781 | + sp:variable |
607 | - sp:subject | 782 | + [ sp:varName "startString"^^xsd:string |
608 | - [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
609 | ] | 783 | ] |
610 | ] [ sp:object | 784 | ] [ sp:object |
611 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 785 | + [ sp:varName "parameterRef"^^xsd:string |
612 | ] ; | 786 | ] ; |
613 | - sp:predicate rdf:type ; | 787 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
614 | - sp:subject | ||
615 | - [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
616 | - ] | ||
617 | - ] [ sp:object | ||
618 | - [ sp:varName "nameRef"^^xsd:string | ||
619 | - ] ; | ||
620 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
621 | sp:subject spin:_this | 788 | sp:subject spin:_this |
622 | - ] [ sp:object | 789 | + ] [ rdf:type sp:NotExists ; |
623 | - [ sp:varName "nameRef"^^xsd:string | 790 | + sp:elements ([ rdf:type sp:Union ; |
791 | + sp:elements (([ sp:object | ||
792 | + [ sp:varName "dTimStart"^^xsd:string | ||
624 | ] ; | 793 | ] ; |
625 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | 794 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
626 | sp:subject | 795 | sp:subject |
627 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 796 | + [ sp:varName "parameterRef"^^xsd:string |
628 | ] | 797 | ] |
629 | - ] [ rdf:type sp:NotExists ; | 798 | + ]) ([ sp:object |
630 | - sp:elements ([ sp:object | 799 | + [ sp:varName "dateStart"^^xsd:string |
631 | - [ sp:varName "classOfSpatialPart"^^xsd:string | ||
632 | ] ; | 800 | ] ; |
633 | - sp:predicate rdf:type ; | 801 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
634 | sp:subject | 802 | sp:subject |
635 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 803 | + [ sp:varName "parameterRef"^^xsd:string |
636 | ] | 804 | ] |
805 | + ])) | ||
637 | ]) | 806 | ]) |
638 | ]) | 807 | ]) |
639 | ] ; | 808 | ] ; |
640 | spin:rule | 809 | spin:rule |
641 | [ rdf:type sp:Construct ; | 810 | [ rdf:type sp:Construct ; |
642 | - rdfs:comment "STEP 80004a Measurement qualifier specified"^^xsd:string ; | 811 | + rdfs:comment "STEP 80000c Create the spatial parts that have the parameterSet property"^^xsd:string ; |
643 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | 812 | + sp:templates ([ sp:object spin:_this ; |
644 | - sp:predicate rdf:type ; | 813 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
645 | sp:subject | 814 | sp:subject |
646 | - [ sp:varName "parameterFacility"^^xsd:string | 815 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
647 | ] | 816 | ] |
648 | - ] [ sp:object | 817 | + ]) ; |
649 | - [ sp:varName "measuredQualityType"^^xsd:string | 818 | + sp:where ([ sp:object spin:_this ; |
650 | - ] ; | 819 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; |
651 | - sp:predicate rdf:type ; | ||
652 | sp:subject | 820 | sp:subject |
653 | - [ sp:varName "parameterFacility"^^xsd:string | 821 | + [ sp:varName "facilityRef"^^xsd:string |
654 | ] | 822 | ] |
655 | - ]) ; | ||
656 | - sp:where ([ sp:object | ||
657 | - [ sp:varName "qualifierRef"^^xsd:string | ||
658 | - ] ; | ||
659 | - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
660 | - sp:subject spin:_this | ||
661 | - ] [ sp:object | ||
662 | - [ sp:varName "parameterRef"^^xsd:string | ||
663 | - ] ; | ||
664 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
665 | - sp:subject spin:_this | ||
666 | ] [ sp:object | 823 | ] [ sp:object |
667 | - [ sp:varName "parameterRef"^^xsd:string | 824 | + [ sp:varName "facilityRef"^^xsd:string |
668 | ] ; | 825 | ] ; |
669 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 826 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
670 | sp:subject | 827 | sp:subject |
671 | - [ sp:varName "parameterFacility"^^xsd:string | 828 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
672 | - ] | ||
673 | - ] [ rdf:type sp:Bind ; | ||
674 | - sp:expression | ||
675 | - [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
676 | - sp:arg1 [ sp:varName "qualifierRef"^^xsd:string | ||
677 | - ] | ||
678 | - ] ; | ||
679 | - sp:variable | ||
680 | - [ sp:varName "measuredQualityType"^^xsd:string | ||
681 | ] | 829 | ] |
682 | - ]) | 830 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
683 | - ] ; | 831 | + sp:predicate rdf:type ; |
684 | - spin:rule | ||
685 | - [ rdf:type sp:Construct ; | ||
686 | - rdfs:comment "STEP 80001c Regularise start and end times - end time inherited from temporal part of production facility"^^xsd:string ; | ||
687 | - sp:templates ([ sp:object | ||
688 | - [ sp:varName "end"^^xsd:string | ||
689 | - ] ; | ||
690 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
691 | sp:subject | 832 | sp:subject |
692 | - [ sp:varName "parameterRef"^^xsd:string | 833 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
693 | ] | 834 | ] |
694 | - ]) ; | 835 | + ] [ sp:object |
695 | - sp:where ([ sp:object spin:_this ; | 836 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
696 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 837 | + ] ; |
838 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
697 | sp:subject | 839 | sp:subject |
698 | - [ sp:varName "parameterSetFacility"^^xsd:string | 840 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
699 | ] | 841 | ] |
700 | ] [ sp:object | 842 | ] [ sp:object |
701 | - [ sp:varName "finishedAt"^^xsd:string | 843 | + [ sp:varName "classOfSpatialPart"^^xsd:string |
702 | ] ; | 844 | ] ; |
703 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 845 | + sp:predicate rdf:type ; |
704 | sp:subject | 846 | sp:subject |
705 | - [ sp:varName "parameterSetFacility"^^xsd:string | 847 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
706 | ] | 848 | ] |
707 | ] [ sp:object | 849 | ] [ sp:object |
708 | - [ sp:varName "parameterRef"^^xsd:string | 850 | + [ sp:varName "nameRef"^^xsd:string |
709 | ] ; | 851 | ] ; |
710 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 852 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
711 | sp:subject spin:_this | 853 | sp:subject spin:_this |
712 | - ] [ rdf:type sp:NotExists ; | 854 | + ] [ sp:object |
713 | - sp:elements ([ rdf:type sp:Union ; | 855 | + [ sp:varName "nameRef"^^xsd:string |
714 | - sp:elements (([ sp:object | ||
715 | - [ sp:varName "dTimEnd"^^xsd:string | ||
716 | ] ; | 856 | ] ; |
717 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 857 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; |
718 | sp:subject | 858 | sp:subject |
719 | - [ sp:varName "parameterRef"^^xsd:string | 859 | + [ sp:varName "classOfSpatialPart"^^xsd:string |
720 | ] | 860 | ] |
721 | - ]) ([ sp:object | 861 | + ] [ rdf:type sp:NotExists ; |
722 | - [ sp:varName "dateEnd"^^xsd:string | 862 | + sp:elements ([ sp:object |
863 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
723 | ] ; | 864 | ] ; |
724 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 865 | + sp:predicate rdf:type ; |
725 | sp:subject | 866 | sp:subject |
726 | - [ sp:varName "parameterRef"^^xsd:string | 867 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
727 | ] | 868 | ] |
728 | - ])) | ||
729 | ]) | 869 | ]) |
730 | - ] [ rdf:type sp:Bind ; | ||
731 | - sp:expression | ||
732 | - [ rdf:type smf:cast ; | ||
733 | - arg:datatype xsd:string ; | ||
734 | - sp:arg1 [ sp:varName "finishedAt"^^xsd:string | ||
735 | - ] | ||
736 | - ] ; | ||
737 | - sp:variable | ||
738 | - [ sp:varName "end"^^xsd:string | ||
739 | - ] | ||
740 | ]) | 870 | ]) |
741 | ] ; | 871 | ] ; |
742 | spin:rule | 872 | spin:rule |
743 | [ rdf:type sp:Construct ; | 873 | [ rdf:type sp:Construct ; |
744 | - rdfs:comment "STEP 80003d No temporal part of the parameterSetFacility is required"^^xsd:string ; | 874 | + rdfs:comment "STEP 80002a Create temporal part of parameterSet facility corresponding to the nominal time, if necessary"^^xsd:string ; |
745 | sp:templates ([ sp:object | 875 | sp:templates ([ sp:object |
876 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
877 | + ] ; | ||
878 | + sp:predicate rdf:type ; | ||
879 | + sp:subject _:b4 | ||
880 | + ] [ sp:object | ||
881 | + [ sp:varName "dTim"^^xsd:string | ||
882 | + ] ; | ||
883 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
884 | + sp:subject _:b4 | ||
885 | + ] [ sp:object | ||
886 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
887 | + ] ; | ||
888 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
889 | + sp:subject _:b4 | ||
890 | + ] [ sp:object | ||
746 | [ sp:varName "parameterRef"^^xsd:string | 891 | [ sp:varName "parameterRef"^^xsd:string |
747 | ] ; | 892 | ] ; |
748 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 893 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
749 | - sp:subject | 894 | + sp:subject _:b4 |
750 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
751 | - ] | ||
752 | ]) ; | 895 | ]) ; |
753 | sp:where ([ sp:object spin:_this ; | 896 | sp:where ([ sp:object spin:_this ; |
754 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 897 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
... | @@ -768,76 +911,45 @@ | ... | @@ -768,76 +911,45 @@ |
768 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 911 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
769 | sp:subject spin:_this | 912 | sp:subject spin:_this |
770 | ] [ sp:object | 913 | ] [ sp:object |
771 | - [ sp:varName "intervalStart"^^xsd:string | 914 | + [ sp:varName "dTim"^^xsd:string |
772 | ] ; | 915 | ] ; |
773 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 916 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; |
774 | sp:subject | 917 | sp:subject |
775 | [ sp:varName "parameterRef"^^xsd:string | 918 | [ sp:varName "parameterRef"^^xsd:string |
776 | ] | 919 | ] |
777 | - ] [ sp:object | 920 | + ] [ rdf:type sp:NotExists ; |
778 | - [ sp:varName "intervalEnd"^^xsd:string | 921 | + sp:elements ([ sp:object |
922 | + [ sp:varName "dTim"^^xsd:string | ||
779 | ] ; | 923 | ] ; |
780 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 924 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; |
781 | sp:subject | 925 | sp:subject |
782 | - [ sp:varName "parameterRef"^^xsd:string | 926 | + [ sp:varName "parameterFacility"^^xsd:string |
783 | ] | 927 | ] |
784 | ] [ sp:object | 928 | ] [ sp:object |
785 | - [ sp:varName "intervalStart"^^xsd:string | ||
786 | - ] ; | ||
787 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
788 | - sp:subject | ||
789 | [ sp:varName "parameterSetFacility"^^xsd:string | 929 | [ sp:varName "parameterSetFacility"^^xsd:string |
790 | - ] | ||
791 | - ] [ sp:object | ||
792 | - [ sp:varName "intervalEnd"^^xsd:string | ||
793 | ] ; | 930 | ] ; |
794 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 931 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
795 | sp:subject | 932 | sp:subject |
796 | - [ sp:varName "parameterSetFacility"^^xsd:string | 933 | + [ sp:varName "parameterFacility"^^xsd:string |
797 | ] | 934 | ] |
798 | ]) | 935 | ]) |
936 | + ]) | ||
799 | ] ; | 937 | ] ; |
800 | spin:rule | 938 | spin:rule |
801 | [ rdf:type sp:Construct ; | 939 | [ rdf:type sp:Construct ; |
802 | - rdfs:comment "STEP 80005 Assign parameter value"^^xsd:string ; | 940 | + rdfs:comment "STEP 80002b Find existing temporal part of parameterSet facility corresponding to the nominal time"^^xsd:string ; |
803 | - sp:templates ([ sp:object _:b3 ; | 941 | + sp:templates ([ sp:object |
804 | - sp:predicate | 942 | + [ sp:varName "parameterRef"^^xsd:string |
805 | - [ sp:varName "propertyType"^^xsd:string | ||
806 | ] ; | 943 | ] ; |
944 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
807 | sp:subject | 945 | sp:subject |
808 | [ sp:varName "parameterFacility"^^xsd:string | 946 | [ sp:varName "parameterFacility"^^xsd:string |
809 | ] | 947 | ] |
810 | - ] [ sp:object | ||
811 | - [ sp:varName "quantityType"^^xsd:string | ||
812 | - ] ; | ||
813 | - sp:predicate rdf:type ; | ||
814 | - sp:subject _:b3 | ||
815 | - ] [ sp:object | ||
816 | - [ sp:varName "measureValue"^^xsd:string | ||
817 | - ] ; | ||
818 | - sp:predicate | ||
819 | - [ sp:varName "measureScale"^^xsd:string | ||
820 | - ] ; | ||
821 | - sp:subject _:b3 | ||
822 | ]) ; | 948 | ]) ; |
823 | - sp:where ([ sp:object | 949 | + sp:where ([ sp:object spin:_this ; |
824 | - [ sp:varName "nameRef"^^xsd:string | 950 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
825 | - ] ; | ||
826 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
827 | - sp:subject spin:_this | ||
828 | - ] [ sp:object | ||
829 | - [ sp:varName "nameRef"^^xsd:string | ||
830 | - ] ; | ||
831 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#propertyMapsToMPREnumeration> ; | ||
832 | - sp:subject | ||
833 | - [ sp:varName "propertyType"^^xsd:string | ||
834 | - ] | ||
835 | - ] [ sp:object | ||
836 | - [ sp:varName "nameRef"^^xsd:string | ||
837 | - ] ; | ||
838 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#rangeOfPropertyMapsToMPREnumeration> ; | ||
839 | sp:subject | 951 | sp:subject |
840 | - [ sp:varName "quantityType"^^xsd:string | 952 | + [ sp:varName "parameterSetFacility"^^xsd:string |
841 | ] | 953 | ] |
842 | ] [ sp:object | 954 | ] [ sp:object |
843 | [ sp:varName "parameterRef"^^xsd:string | 955 | [ sp:varName "parameterRef"^^xsd:string |
... | @@ -845,76 +957,23 @@ | ... | @@ -845,76 +957,23 @@ |
845 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 957 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
846 | sp:subject spin:_this | 958 | sp:subject spin:_this |
847 | ] [ sp:object | 959 | ] [ sp:object |
848 | - [ sp:varName "parameterRef"^^xsd:string | 960 | + [ sp:varName "dTim"^^xsd:string |
849 | - ] ; | ||
850 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
851 | - sp:subject | ||
852 | - [ sp:varName "parameterFacility"^^xsd:string | ||
853 | - ] | ||
854 | - ] [ sp:object | ||
855 | - [ sp:varName "measureValueRef"^^xsd:string | ||
856 | ] ; | 961 | ] ; |
857 | - sp:predicate <http://www.epim.no/schemas/mprml/1#measureValueRef> ; | 962 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; |
858 | sp:subject | 963 | sp:subject |
859 | [ sp:varName "parameterRef"^^xsd:string | 964 | [ sp:varName "parameterRef"^^xsd:string |
860 | ] | 965 | ] |
861 | ] [ sp:object | 966 | ] [ sp:object |
862 | - [ sp:varName "measureValue"^^xsd:string | 967 | + [ sp:varName "dTim"^^xsd:string |
863 | - ] ; | ||
864 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
865 | - sp:subject | ||
866 | - [ sp:varName "measureValueRef"^^xsd:string | ||
867 | - ] | ||
868 | - ] [ sp:object | ||
869 | - [ sp:varName "measureUomString"^^xsd:string | ||
870 | - ] ; | ||
871 | - sp:predicate <http://www.epim.no/schemas/mprml/1#uom> ; | ||
872 | - sp:subject | ||
873 | - [ sp:varName "measureValueRef"^^xsd:string | ||
874 | - ] | ||
875 | - ] [ rdf:type sp:Bind ; | ||
876 | - sp:expression | ||
877 | - [ rdf:type ep-mpr-spin-lib:selectQuantityTypeUomScale ; | ||
878 | - sp:arg1 [ sp:varName "quantityType"^^xsd:string | ||
879 | - ] ; | ||
880 | - sp:arg2 [ sp:varName "measureUomString"^^xsd:string | ||
881 | - ] | ||
882 | - ] ; | ||
883 | - sp:variable | ||
884 | - [ sp:varName "measureScale"^^xsd:string | ||
885 | - ] | ||
886 | - ]) | ||
887 | ] ; | 968 | ] ; |
888 | - spin:rule | 969 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; |
889 | - [ rdf:type sp:Construct ; | ||
890 | - rdfs:comment "STEP 80004b Measurement qualifier not specified"^^xsd:string ; | ||
891 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | ||
892 | - sp:predicate rdf:type ; | ||
893 | - sp:subject | ||
894 | - [ sp:varName "parameterFacility"^^xsd:string | ||
895 | - ] | ||
896 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; | ||
897 | - sp:predicate rdf:type ; | ||
898 | sp:subject | 970 | sp:subject |
899 | [ sp:varName "parameterFacility"^^xsd:string | 971 | [ sp:varName "parameterFacility"^^xsd:string |
900 | ] | 972 | ] |
901 | - ]) ; | ||
902 | - sp:where ([ rdf:type sp:NotExists ; | ||
903 | - sp:elements ([ sp:object | ||
904 | - [ sp:varName "qualifierRef"^^xsd:string | ||
905 | - ] ; | ||
906 | - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
907 | - sp:subject spin:_this | ||
908 | - ]) | ||
909 | ] [ sp:object | 973 | ] [ sp:object |
910 | - [ sp:varName "parameterRef"^^xsd:string | 974 | + [ sp:varName "parameterSetFacility"^^xsd:string |
911 | - ] ; | ||
912 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
913 | - sp:subject spin:_this | ||
914 | - ] [ sp:object | ||
915 | - [ sp:varName "parameterRef"^^xsd:string | ||
916 | ] ; | 975 | ] ; |
917 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 976 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
918 | sp:subject | 977 | sp:subject |
919 | [ sp:varName "parameterFacility"^^xsd:string | 978 | [ sp:varName "parameterFacility"^^xsd:string |
920 | ] | 979 | ] |
... | @@ -922,13 +981,13 @@ | ... | @@ -922,13 +981,13 @@ |
922 | ] ; | 981 | ] ; |
923 | spin:rule | 982 | spin:rule |
924 | [ rdf:type sp:Construct ; | 983 | [ rdf:type sp:Construct ; |
925 | - rdfs:comment "STEP 80001b Regularise start and end times - start time inherited from temporal part of production facility"^^xsd:string ; | 984 | + rdfs:comment "STEP 80003a Create list of necessary temporal parts of parameterSet facility corresponding to the start and end"^^xsd:string ; |
926 | sp:templates ([ sp:object | 985 | sp:templates ([ sp:object |
927 | - [ sp:varName "start"^^xsd:string | 986 | + [ sp:varName "intervalString"^^xsd:string |
928 | ] ; | 987 | ] ; |
929 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 988 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; |
930 | sp:subject | 989 | sp:subject |
931 | - [ sp:varName "parameterRef"^^xsd:string | 990 | + [ sp:varName "parameterSetFacility"^^xsd:string |
932 | ] | 991 | ] |
933 | ]) ; | 992 | ]) ; |
934 | sp:where ([ sp:object spin:_this ; | 993 | sp:where ([ sp:object spin:_this ; |
... | @@ -937,9 +996,9 @@ | ... | @@ -937,9 +996,9 @@ |
937 | [ sp:varName "parameterSetFacility"^^xsd:string | 996 | [ sp:varName "parameterSetFacility"^^xsd:string |
938 | ] | 997 | ] |
939 | ] [ sp:object | 998 | ] [ sp:object |
940 | - [ sp:varName "startedAt"^^xsd:string | 999 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
941 | ] ; | 1000 | ] ; |
942 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1001 | + sp:predicate rdf:type ; |
943 | sp:subject | 1002 | sp:subject |
944 | [ sp:varName "parameterSetFacility"^^xsd:string | 1003 | [ sp:varName "parameterSetFacility"^^xsd:string |
945 | ] | 1004 | ] |
... | @@ -948,162 +1007,96 @@ | ... | @@ -948,162 +1007,96 @@ |
948 | ] ; | 1007 | ] ; |
949 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 1008 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
950 | sp:subject spin:_this | 1009 | sp:subject spin:_this |
951 | - ] [ rdf:type sp:NotExists ; | 1010 | + ] [ sp:object |
952 | - sp:elements ([ rdf:type sp:Union ; | 1011 | + [ sp:varName "intervalStart"^^xsd:string |
953 | - sp:elements (([ sp:object | ||
954 | - [ sp:varName "dTimStart"^^xsd:string | ||
955 | ] ; | 1012 | ] ; |
956 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 1013 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
957 | sp:subject | 1014 | sp:subject |
958 | [ sp:varName "parameterRef"^^xsd:string | 1015 | [ sp:varName "parameterRef"^^xsd:string |
959 | ] | 1016 | ] |
960 | - ]) ([ sp:object | 1017 | + ] [ sp:object |
961 | - [ sp:varName "dateStart"^^xsd:string | 1018 | + [ sp:varName "intervalEnd"^^xsd:string |
962 | ] ; | 1019 | ] ; |
963 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 1020 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
964 | sp:subject | 1021 | sp:subject |
965 | [ sp:varName "parameterRef"^^xsd:string | 1022 | [ sp:varName "parameterRef"^^xsd:string |
966 | ] | 1023 | ] |
967 | - ])) | 1024 | + ] [ rdf:type sp:NotExists ; |
968 | - ]) | 1025 | + sp:elements ([ sp:object |
969 | - ] [ rdf:type sp:Bind ; | ||
970 | - sp:expression | ||
971 | - [ rdf:type smf:cast ; | ||
972 | - arg:datatype xsd:string ; | ||
973 | - sp:arg1 [ sp:varName "startedAt"^^xsd:string | ||
974 | - ] | ||
975 | - ] ; | ||
976 | - sp:variable | ||
977 | - [ sp:varName "start"^^xsd:string | ||
978 | - ] | ||
979 | - ]) | ||
980 | - ] ; | ||
981 | - spin:rule | ||
982 | - [ rdf:type sp:Construct ; | ||
983 | - rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates"^^xsd:string ; | ||
984 | - sp:templates ([ sp:object | ||
985 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
986 | - ] ; | ||
987 | - sp:predicate rdf:type ; | ||
988 | - sp:subject _:b4 | ||
989 | - ] [ sp:object | ||
990 | [ sp:varName "intervalStart"^^xsd:string | 1026 | [ sp:varName "intervalStart"^^xsd:string |
991 | ] ; | 1027 | ] ; |
992 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1028 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
993 | - sp:subject _:b4 | ||
994 | - ] [ sp:object | ||
995 | - [ sp:varName "intervalEnd"^^xsd:string | ||
996 | - ] ; | ||
997 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
998 | - sp:subject _:b4 | ||
999 | - ] [ sp:object | ||
1000 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
1001 | - ] ; | ||
1002 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1003 | - sp:subject _:b4 | ||
1004 | - ]) ; | ||
1005 | - sp:where ([ sp:object spin:_this ; | ||
1006 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
1007 | - sp:subject | ||
1008 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
1009 | - ] | ||
1010 | - ] [ sp:object | ||
1011 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
1012 | - ] ; | ||
1013 | - sp:predicate rdf:type ; | ||
1014 | sp:subject | 1029 | sp:subject |
1015 | [ sp:varName "parameterSetFacility"^^xsd:string | 1030 | [ sp:varName "parameterSetFacility"^^xsd:string |
1016 | ] | 1031 | ] |
1017 | ] [ sp:object | 1032 | ] [ sp:object |
1018 | - [ sp:varName "intervalString"^^xsd:string | 1033 | + [ sp:varName "intervalEnd"^^xsd:string |
1019 | ] ; | 1034 | ] ; |
1020 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; | 1035 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
1021 | sp:subject | 1036 | sp:subject |
1022 | [ sp:varName "parameterSetFacility"^^xsd:string | 1037 | [ sp:varName "parameterSetFacility"^^xsd:string |
1023 | ] | 1038 | ] |
1039 | + ]) | ||
1024 | ] [ rdf:type sp:Bind ; | 1040 | ] [ rdf:type sp:Bind ; |
1025 | sp:expression | 1041 | sp:expression |
1026 | - [ rdf:type afn:substr ; | 1042 | + [ rdf:type fn:concat ; |
1027 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | 1043 | + sp:arg1 [ sp:varName "intervalStart"^^xsd:string |
1028 | - ] ; | ||
1029 | - sp:arg2 0 ; | ||
1030 | - sp:arg3 [ rdf:type smf:indexOf ; | ||
1031 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
1032 | ] ; | 1044 | ] ; |
1033 | - sp:arg2 "$" | 1045 | + sp:arg2 "$" ; |
1046 | + sp:arg3 [ sp:varName "intervalEnd"^^xsd:string | ||
1034 | ] | 1047 | ] |
1035 | ] ; | 1048 | ] ; |
1036 | sp:variable | 1049 | sp:variable |
1037 | - [ sp:varName "intervalStart"^^xsd:string | 1050 | + [ sp:varName "intervalString"^^xsd:string |
1038 | - ] | ||
1039 | - ] [ rdf:type sp:Bind ; | ||
1040 | - sp:expression | ||
1041 | - [ rdf:type afn:substr ; | ||
1042 | - sp:arg1 [ rdf:type afn:substr ; | ||
1043 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
1044 | - ] ; | ||
1045 | - sp:arg2 [ rdf:type smf:indexOf ; | ||
1046 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
1047 | - ] ; | ||
1048 | - sp:arg2 "$" | ||
1049 | - ] | ||
1050 | - ] ; | ||
1051 | - sp:arg2 1 | ||
1052 | - ] ; | ||
1053 | - sp:variable | ||
1054 | - [ sp:varName "intervalEnd"^^xsd:string | ||
1055 | ] | 1051 | ] |
1056 | ]) | 1052 | ]) |
1057 | ] ; | 1053 | ] ; |
1058 | spin:rule | 1054 | spin:rule |
1059 | [ rdf:type sp:Construct ; | 1055 | [ rdf:type sp:Construct ; |
1060 | - rdfs:comment "STEP 80000d The whole production facility has the parameterSet property"^^xsd:string ; | 1056 | + rdfs:comment "STEP 80004a Measurement qualifier specified"^^xsd:string ; |
1061 | - sp:templates ([ sp:object spin:_this ; | 1057 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; |
1062 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1058 | + sp:predicate rdf:type ; |
1063 | - sp:subject | ||
1064 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1065 | - ] | ||
1066 | - ]) ; | ||
1067 | - sp:where ([ sp:object spin:_this ; | ||
1068 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | ||
1069 | sp:subject | 1059 | sp:subject |
1070 | - [ sp:varName "facilityRef"^^xsd:string | 1060 | + [ sp:varName "parameterFacility"^^xsd:string |
1071 | ] | 1061 | ] |
1072 | ] [ sp:object | 1062 | ] [ sp:object |
1073 | - [ sp:varName "facilityRef"^^xsd:string | 1063 | + [ sp:varName "measuredQualityType"^^xsd:string |
1074 | ] ; | 1064 | ] ; |
1075 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
1076 | - sp:subject | ||
1077 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1078 | - ] | ||
1079 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
1080 | sp:predicate rdf:type ; | 1065 | sp:predicate rdf:type ; |
1081 | sp:subject | 1066 | sp:subject |
1082 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1067 | + [ sp:varName "parameterFacility"^^xsd:string |
1083 | ] | 1068 | ] |
1069 | + ]) ; | ||
1070 | + sp:where ([ sp:object | ||
1071 | + [ sp:varName "qualifierRef"^^xsd:string | ||
1072 | + ] ; | ||
1073 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
1074 | + sp:subject spin:_this | ||
1084 | ] [ sp:object | 1075 | ] [ sp:object |
1085 | - [ sp:varName "nameRef"^^xsd:string | 1076 | + [ sp:varName "parameterRef"^^xsd:string |
1086 | ] ; | 1077 | ] ; |
1087 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 1078 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
1088 | sp:subject spin:_this | 1079 | sp:subject spin:_this |
1089 | ] [ sp:object | 1080 | ] [ sp:object |
1090 | - [ sp:varName "nameRef"^^xsd:string | 1081 | + [ sp:varName "parameterRef"^^xsd:string |
1091 | ] ; | 1082 | ] ; |
1092 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | 1083 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
1093 | sp:subject | 1084 | sp:subject |
1094 | - [ sp:varName "classOfProductionFacility"^^xsd:string | 1085 | + [ sp:varName "parameterFacility"^^xsd:string |
1086 | + ] | ||
1087 | + ] [ rdf:type sp:Bind ; | ||
1088 | + sp:expression | ||
1089 | + [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
1090 | + sp:arg1 [ sp:varName "qualifierRef"^^xsd:string | ||
1095 | ] | 1091 | ] |
1096 | - ] [ sp:object | ||
1097 | - [ sp:varName "classOfProductionFacility"^^xsd:string | ||
1098 | ] ; | 1092 | ] ; |
1099 | - sp:predicate rdf:type ; | 1093 | + sp:variable |
1100 | - sp:subject | 1094 | + [ sp:varName "measuredQualityType"^^xsd:string |
1101 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1102 | ] | 1095 | ] |
1103 | ]) | 1096 | ]) |
1104 | ] . | 1097 | ] . |
1105 | 1098 | ||
1106 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1> | 1099 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1> |
1107 | rdf:type owl:Ontology ; | 1100 | rdf:type owl:Ontology ; |
1108 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/unnamed> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ; | 1101 | + owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/schema/1.0/unnamed> ; |
1109 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 1102 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment