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