Showing
4 changed files
with
627 additions
and
2 deletions
1 | +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-componentContent-v1.0 | ||
2 | +# imports: http://spinrdf.org/spin | ||
3 | +# imports: http://www.epim.no/schemas/mprml/1 | ||
4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
5 | +# imports: http://www.reportinghub.no/ep/schema/1.0/flow | ||
6 | +# imports: http://www.reportinghub.no/ep/schema/1.0/scale-maps-to-mpr-enumeration | ||
7 | + | ||
8 | +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-componentContent-v1.0#> . | ||
9 | +@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | ||
10 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | ||
11 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
12 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
13 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
14 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
15 | +@prefix scale-maps-to-mpr-enumeration: <http://www.reportinghub.no/ep/schema/1.0/scale-maps-to-mpr-enumeration#> . | ||
16 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
17 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
18 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
19 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
20 | + | ||
21 | +<http://www.epim.no/schemas/mprml/1#Cs_productVolumeComponentContent> | ||
22 | + spin:rule | ||
23 | + [ rdf:type sp:Construct ; | ||
24 | + rdfs:comment "STEP 70101 Set the component flow measuring facility"^^xsd:string ; | ||
25 | + sp:templates ([ sp:object | ||
26 | + [ sp:varName "componentFlow"^^xsd:string | ||
27 | + ] ; | ||
28 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
29 | + sp:subject | ||
30 | + [ sp:varName "measuredComponentFlow"^^xsd:string | ||
31 | + ] | ||
32 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
33 | + sp:predicate rdf:type ; | ||
34 | + sp:subject | ||
35 | + [ sp:varName "measuredComponentFlow"^^xsd:string | ||
36 | + ] | ||
37 | + ] [ sp:object | ||
38 | + [ sp:varName "wholeFlowMeasurementFacility"^^xsd:string | ||
39 | + ] ; | ||
40 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowMeasuredOrCalculatedAt> ; | ||
41 | + sp:subject | ||
42 | + [ sp:varName "measuredComponentFlow"^^xsd:string | ||
43 | + ] | ||
44 | + ]) ; | ||
45 | + sp:where ([ sp:object spin:_this ; | ||
46 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
47 | + sp:subject | ||
48 | + [ sp:varName "componentFlow"^^xsd:string | ||
49 | + ] | ||
50 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
51 | + sp:predicate rdf:type ; | ||
52 | + sp:subject | ||
53 | + [ sp:varName "componentFlow"^^xsd:string | ||
54 | + ] | ||
55 | + ] [ sp:object spin:_this ; | ||
56 | + sp:predicate <http://www.epim.no/schemas/mprml/1#componentContentRef> ; | ||
57 | + sp:subject | ||
58 | + [ sp:varName "target"^^xsd:string | ||
59 | + ] | ||
60 | + ] [ sp:object | ||
61 | + [ sp:varName "target"^^xsd:string | ||
62 | + ] ; | ||
63 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
64 | + sp:subject | ||
65 | + [ sp:varName "wholeFlow"^^xsd:string | ||
66 | + ] | ||
67 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
68 | + sp:predicate rdf:type ; | ||
69 | + sp:subject | ||
70 | + [ sp:varName "wholeFlow"^^xsd:string | ||
71 | + ] | ||
72 | + ] [ sp:object | ||
73 | + [ sp:varName "wholeFlow"^^xsd:string | ||
74 | + ] ; | ||
75 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
76 | + sp:subject | ||
77 | + [ sp:varName "measuredWholeFlow"^^xsd:string | ||
78 | + ] | ||
79 | + ] [ sp:object | ||
80 | + [ sp:varName "wholeFlowMeasurementFacility"^^xsd:string | ||
81 | + ] ; | ||
82 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowMeasuredOrCalculatedAt> ; | ||
83 | + sp:subject | ||
84 | + [ sp:varName "measuredWholeFlow"^^xsd:string | ||
85 | + ] | ||
86 | + ] [ sp:object | ||
87 | + [ sp:varName "measurementFacility"^^xsd:string | ||
88 | + ] ; | ||
89 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
90 | + sp:subject | ||
91 | + [ sp:varName "wholeFlowMeasurementFacility"^^xsd:string | ||
92 | + ] | ||
93 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
94 | + sp:predicate rdf:type ; | ||
95 | + sp:subject | ||
96 | + [ sp:varName "measurementFacility"^^xsd:string | ||
97 | + ] | ||
98 | + ] [ rdf:type sp:Bind ; | ||
99 | + sp:expression | ||
100 | + [ rdf:type sp:iri ; | ||
101 | + sp:arg1 [ rdf:type fn:concat ; | ||
102 | + sp:arg1 [ rdf:type xsd:string ; | ||
103 | + sp:arg1 [ sp:varName "componentFlow"^^xsd:string | ||
104 | + ] | ||
105 | + ] ; | ||
106 | + sp:arg2 "/" ; | ||
107 | + sp:arg3 [ rdf:type xsd:string ; | ||
108 | + sp:arg1 [ sp:varName "measurementFacility"^^xsd:string | ||
109 | + ] | ||
110 | + ] | ||
111 | + ] | ||
112 | + ] ; | ||
113 | + sp:variable | ||
114 | + [ sp:varName "measuredComponentFlow"^^xsd:string | ||
115 | + ] | ||
116 | + ]) | ||
117 | + ] ; | ||
118 | + spin:rule | ||
119 | + [ rdf:type sp:Construct ; | ||
120 | + rdfs:comment "STEP 70102 record the product flow components - where \"flow\" means inventory and not a flow"^^xsd:string ; | ||
121 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#Inventory> ; | ||
122 | + sp:predicate rdf:type ; | ||
123 | + sp:subject | ||
124 | + [ sp:varName "componentInventory"^^xsd:string | ||
125 | + ] | ||
126 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
127 | + sp:predicate rdf:type ; | ||
128 | + sp:subject | ||
129 | + [ sp:varName "componentInventory"^^xsd:string | ||
130 | + ] | ||
131 | + ] [ sp:object | ||
132 | + [ sp:varName "componentInventory"^^xsd:string | ||
133 | + ] ; | ||
134 | + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ; | ||
135 | + sp:subject | ||
136 | + [ sp:varName "wholeInventory"^^xsd:string | ||
137 | + ] | ||
138 | + ] [ sp:object | ||
139 | + [ sp:varName "intervalStart"^^xsd:string | ||
140 | + ] ; | ||
141 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
142 | + sp:subject | ||
143 | + [ sp:varName "componentInventory"^^xsd:string | ||
144 | + ] | ||
145 | + ] [ sp:object | ||
146 | + [ sp:varName "intervalEnd"^^xsd:string | ||
147 | + ] ; | ||
148 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
149 | + sp:subject | ||
150 | + [ sp:varName "componentInventory"^^xsd:string | ||
151 | + ] | ||
152 | + ] [ sp:object | ||
153 | + [ sp:varName "interval"^^xsd:string | ||
154 | + ] ; | ||
155 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; | ||
156 | + sp:subject | ||
157 | + [ sp:varName "componentInventory"^^xsd:string | ||
158 | + ] | ||
159 | + ] [ sp:object | ||
160 | + [ sp:varName "temporalPartDurationType"^^xsd:string | ||
161 | + ] ; | ||
162 | + sp:predicate rdf:type ; | ||
163 | + sp:subject | ||
164 | + [ sp:varName "componentInventory"^^xsd:string | ||
165 | + ] | ||
166 | + ] [ sp:object | ||
167 | + [ sp:varName "componentInventory"^^xsd:string | ||
168 | + ] ; | ||
169 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | ||
170 | + sp:subject | ||
171 | + [ sp:varName "wholeInventoryFacility"^^xsd:string | ||
172 | + ] | ||
173 | + ] [ sp:object | ||
174 | + [ sp:varName "componentMaterialType"^^xsd:string | ||
175 | + ] ; | ||
176 | + sp:predicate rdf:type ; | ||
177 | + sp:subject | ||
178 | + [ sp:varName "componentInventory"^^xsd:string | ||
179 | + ] | ||
180 | + ] [ sp:object | ||
181 | + [ sp:varName "componentName"^^xsd:string | ||
182 | + ] ; | ||
183 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
184 | + sp:subject | ||
185 | + [ sp:varName "componentInventory"^^xsd:string | ||
186 | + ] | ||
187 | + ] [ sp:object spin:_this ; | ||
188 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
189 | + sp:subject | ||
190 | + [ sp:varName "componentInventory"^^xsd:string | ||
191 | + ] | ||
192 | + ] [ sp:object | ||
193 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
194 | + ] ; | ||
195 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
196 | + sp:subject spin:_this | ||
197 | + ]) ; | ||
198 | + sp:where ([ sp:object | ||
199 | + [ sp:varName "componentKind"^^xsd:string | ||
200 | + ] ; | ||
201 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
202 | + sp:subject spin:_this | ||
203 | + ] [ rdf:type sp:Bind ; | ||
204 | + sp:expression | ||
205 | + [ rdf:type ep-mpr-spin-lib:selectProductMaterialType ; | ||
206 | + sp:arg1 [ sp:varName "componentKind"^^xsd:string | ||
207 | + ] | ||
208 | + ] ; | ||
209 | + sp:variable | ||
210 | + [ sp:varName "componentMaterialType"^^xsd:string | ||
211 | + ] | ||
212 | + ] [ rdf:type sp:Bind ; | ||
213 | + sp:expression | ||
214 | + [ rdf:type spl:object ; | ||
215 | + sp:arg1 [ sp:varName "componentMaterialType"^^xsd:string | ||
216 | + ] ; | ||
217 | + sp:arg2 rdfs:label | ||
218 | + ] ; | ||
219 | + sp:variable | ||
220 | + [ sp:varName "componentMaterialName"^^xsd:string | ||
221 | + ] | ||
222 | + ] [ rdf:type sp:Optional ; | ||
223 | + sp:elements ([ sp:object | ||
224 | + [ sp:varName "componentNameRef"^^xsd:string | ||
225 | + ] ; | ||
226 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
227 | + sp:subject spin:_this | ||
228 | + ] [ sp:object | ||
229 | + [ sp:varName "componentName"^^xsd:string | ||
230 | + ] ; | ||
231 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
232 | + sp:subject | ||
233 | + [ sp:varName "componentNameRef"^^xsd:string | ||
234 | + ] | ||
235 | + ]) | ||
236 | + ] [ sp:object spin:_this ; | ||
237 | + sp:predicate <http://www.epim.no/schemas/mprml/1#componentContentRef> ; | ||
238 | + sp:subject | ||
239 | + [ sp:varName "target"^^xsd:string | ||
240 | + ] | ||
241 | + ] [ sp:object | ||
242 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
243 | + ] ; | ||
244 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
245 | + sp:subject | ||
246 | + [ sp:varName "target"^^xsd:string | ||
247 | + ] | ||
248 | + ] [ sp:object | ||
249 | + [ sp:varName "target"^^xsd:string | ||
250 | + ] ; | ||
251 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
252 | + sp:subject | ||
253 | + [ sp:varName "wholeInventory"^^xsd:string | ||
254 | + ] | ||
255 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Inventory> ; | ||
256 | + sp:predicate rdf:type ; | ||
257 | + sp:subject | ||
258 | + [ sp:varName "wholeInventory"^^xsd:string | ||
259 | + ] | ||
260 | + ] [ rdf:type sp:Bind ; | ||
261 | + sp:expression | ||
262 | + [ rdf:type fn:concat ; | ||
263 | + sp:arg1 "/" ; | ||
264 | + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ; | ||
265 | + sp:arg1 [ sp:varName "componentMaterialName"^^xsd:string | ||
266 | + ] | ||
267 | + ] | ||
268 | + ] ; | ||
269 | + sp:variable | ||
270 | + [ sp:varName "separatedComponentURISuffix"^^xsd:string | ||
271 | + ] | ||
272 | + ] [ rdf:type sp:Bind ; | ||
273 | + sp:expression | ||
274 | + [ rdf:type sp:iri ; | ||
275 | + sp:arg1 [ rdf:type fn:concat ; | ||
276 | + sp:arg1 [ rdf:type xsd:string ; | ||
277 | + sp:arg1 [ sp:varName "wholeInventory"^^xsd:string | ||
278 | + ] | ||
279 | + ] ; | ||
280 | + sp:arg2 [ sp:varName "separatedComponentURISuffix"^^xsd:string | ||
281 | + ] | ||
282 | + ] | ||
283 | + ] ; | ||
284 | + sp:variable | ||
285 | + [ sp:varName "componentInventory"^^xsd:string | ||
286 | + ] | ||
287 | + ] [ rdf:type sp:Optional ; | ||
288 | + sp:elements ([ sp:object | ||
289 | + [ sp:varName "intervalStart"^^xsd:string | ||
290 | + ] ; | ||
291 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
292 | + sp:subject | ||
293 | + [ sp:varName "wholeInventory"^^xsd:string | ||
294 | + ] | ||
295 | + ]) | ||
296 | + ] [ rdf:type sp:Optional ; | ||
297 | + sp:elements ([ sp:object | ||
298 | + [ sp:varName "intervalEnd"^^xsd:string | ||
299 | + ] ; | ||
300 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
301 | + sp:subject | ||
302 | + [ sp:varName "wholeInventory"^^xsd:string | ||
303 | + ] | ||
304 | + ]) | ||
305 | + ] [ rdf:type sp:Optional ; | ||
306 | + sp:elements ([ sp:object | ||
307 | + [ sp:varName "interval"^^xsd:string | ||
308 | + ] ; | ||
309 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; | ||
310 | + sp:subject | ||
311 | + [ sp:varName "wholeInventory"^^xsd:string | ||
312 | + ] | ||
313 | + ]) | ||
314 | + ] [ rdf:type sp:Optional ; | ||
315 | + sp:elements ([ sp:object | ||
316 | + [ sp:varName "temporalPartDurationType"^^xsd:string | ||
317 | + ] ; | ||
318 | + sp:predicate rdf:type ; | ||
319 | + sp:subject | ||
320 | + [ sp:varName "wholeInventory"^^xsd:string | ||
321 | + ] | ||
322 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartDurationType> ; | ||
323 | + sp:predicate rdf:type ; | ||
324 | + sp:subject | ||
325 | + [ sp:varName "temporalPartDurationType"^^xsd:string | ||
326 | + ] | ||
327 | + ]) | ||
328 | + ] [ rdf:type sp:Optional ; | ||
329 | + sp:elements ([ sp:object | ||
330 | + [ sp:varName "wholeInventory"^^xsd:string | ||
331 | + ] ; | ||
332 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | ||
333 | + sp:subject | ||
334 | + [ sp:varName "wholeInventoryFacility"^^xsd:string | ||
335 | + ] | ||
336 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
337 | + sp:predicate rdf:type ; | ||
338 | + sp:subject | ||
339 | + [ sp:varName "wholeInventoryFacility"^^xsd:string | ||
340 | + ] | ||
341 | + ]) | ||
342 | + ]) | ||
343 | + ] ; | ||
344 | + spin:rule | ||
345 | + [ rdf:type sp:Construct ; | ||
346 | + rdfs:comment "STEP 70111 associate standard conditions with a component"^^xsd:string ; | ||
347 | + sp:templates ([ sp:object | ||
348 | + [ sp:varName "standardTempPresRef"^^xsd:string | ||
349 | + ] ; | ||
350 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#standardTempPres> ; | ||
351 | + sp:subject spin:_this | ||
352 | + ]) ; | ||
353 | + sp:where ([ sp:object spin:_this ; | ||
354 | + sp:predicate <http://www.epim.no/schemas/mprml/1#componentContentRef> ; | ||
355 | + sp:subject | ||
356 | + [ sp:varName "target"^^xsd:string | ||
357 | + ] | ||
358 | + ] [ sp:object | ||
359 | + [ sp:varName "standardTempPresRef"^^xsd:string | ||
360 | + ] ; | ||
361 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#standardTempPres> ; | ||
362 | + sp:subject | ||
363 | + [ sp:varName "target"^^xsd:string | ||
364 | + ] | ||
365 | + ]) | ||
366 | + ] ; | ||
367 | + spin:rule | ||
368 | + [ rdf:type sp:Construct ; | ||
369 | + rdfs:comment "STEP 70100 record the component - actually flow and not inventory"^^xsd:string ; | ||
370 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
371 | + sp:predicate rdf:type ; | ||
372 | + sp:subject | ||
373 | + [ sp:varName "componentFlow"^^xsd:string | ||
374 | + ] | ||
375 | + ] [ sp:object | ||
376 | + [ sp:varName "componentFlow"^^xsd:string | ||
377 | + ] ; | ||
378 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; | ||
379 | + sp:subject | ||
380 | + [ sp:varName "wholeFlow"^^xsd:string | ||
381 | + ] | ||
382 | + ] [ sp:object | ||
383 | + [ sp:varName "intervalStart"^^xsd:string | ||
384 | + ] ; | ||
385 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
386 | + sp:subject | ||
387 | + [ sp:varName "componentFlow"^^xsd:string | ||
388 | + ] | ||
389 | + ] [ sp:object | ||
390 | + [ sp:varName "intervalEnd"^^xsd:string | ||
391 | + ] ; | ||
392 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
393 | + sp:subject | ||
394 | + [ sp:varName "componentFlow"^^xsd:string | ||
395 | + ] | ||
396 | + ] [ sp:object | ||
397 | + [ sp:varName "interval"^^xsd:string | ||
398 | + ] ; | ||
399 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; | ||
400 | + sp:subject | ||
401 | + [ sp:varName "componentFlow"^^xsd:string | ||
402 | + ] | ||
403 | + ] [ sp:object | ||
404 | + [ sp:varName "temporalPartDurationType"^^xsd:string | ||
405 | + ] ; | ||
406 | + sp:predicate rdf:type ; | ||
407 | + sp:subject | ||
408 | + [ sp:varName "componentFlow"^^xsd:string | ||
409 | + ] | ||
410 | + ] [ sp:object | ||
411 | + [ sp:varName "wholeFlowSourceOrDestination"^^xsd:string | ||
412 | + ] ; | ||
413 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ; | ||
414 | + sp:subject | ||
415 | + [ sp:varName "componentFlow"^^xsd:string | ||
416 | + ] | ||
417 | + ] [ sp:object | ||
418 | + [ sp:varName "componentFlow"^^xsd:string | ||
419 | + ] ; | ||
420 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
421 | + sp:subject | ||
422 | + [ sp:varName "wholeFlowContainingFacility"^^xsd:string | ||
423 | + ] | ||
424 | + ] [ sp:object | ||
425 | + [ sp:varName "componentMaterialType"^^xsd:string | ||
426 | + ] ; | ||
427 | + sp:predicate rdf:type ; | ||
428 | + sp:subject | ||
429 | + [ sp:varName "componentFlow"^^xsd:string | ||
430 | + ] | ||
431 | + ] [ sp:object | ||
432 | + [ sp:varName "componentName"^^xsd:string | ||
433 | + ] ; | ||
434 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
435 | + sp:subject | ||
436 | + [ sp:varName "componentFlow"^^xsd:string | ||
437 | + ] | ||
438 | + ] [ sp:object spin:_this ; | ||
439 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
440 | + sp:subject | ||
441 | + [ sp:varName "componentFlow"^^xsd:string | ||
442 | + ] | ||
443 | + ] [ sp:object | ||
444 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
445 | + ] ; | ||
446 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
447 | + sp:subject spin:_this | ||
448 | + ]) ; | ||
449 | + sp:where ([ sp:object | ||
450 | + [ sp:varName "componentKind"^^xsd:string | ||
451 | + ] ; | ||
452 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
453 | + sp:subject spin:_this | ||
454 | + ] [ rdf:type sp:Bind ; | ||
455 | + sp:expression | ||
456 | + [ rdf:type ep-mpr-spin-lib:selectProductMaterialType ; | ||
457 | + sp:arg1 [ sp:varName "componentKind"^^xsd:string | ||
458 | + ] | ||
459 | + ] ; | ||
460 | + sp:variable | ||
461 | + [ sp:varName "componentMaterialType"^^xsd:string | ||
462 | + ] | ||
463 | + ] [ rdf:type sp:Bind ; | ||
464 | + sp:expression | ||
465 | + [ rdf:type spl:object ; | ||
466 | + sp:arg1 [ sp:varName "componentMaterialType"^^xsd:string | ||
467 | + ] ; | ||
468 | + sp:arg2 rdfs:label | ||
469 | + ] ; | ||
470 | + sp:variable | ||
471 | + [ sp:varName "componentMaterialName"^^xsd:string | ||
472 | + ] | ||
473 | + ] [ rdf:type sp:Optional ; | ||
474 | + sp:elements ([ sp:object | ||
475 | + [ sp:varName "componentNameRef"^^xsd:string | ||
476 | + ] ; | ||
477 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
478 | + sp:subject spin:_this | ||
479 | + ] [ sp:object | ||
480 | + [ sp:varName "componentName"^^xsd:string | ||
481 | + ] ; | ||
482 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
483 | + sp:subject | ||
484 | + [ sp:varName "componentNameRef"^^xsd:string | ||
485 | + ] | ||
486 | + ]) | ||
487 | + ] [ sp:object spin:_this ; | ||
488 | + sp:predicate <http://www.epim.no/schemas/mprml/1#componentContentRef> ; | ||
489 | + sp:subject | ||
490 | + [ sp:varName "target"^^xsd:string | ||
491 | + ] | ||
492 | + ] [ sp:object | ||
493 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
494 | + ] ; | ||
495 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; | ||
496 | + sp:subject | ||
497 | + [ sp:varName "target"^^xsd:string | ||
498 | + ] | ||
499 | + ] [ sp:object | ||
500 | + [ sp:varName "target"^^xsd:string | ||
501 | + ] ; | ||
502 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
503 | + sp:subject | ||
504 | + [ sp:varName "wholeFlow"^^xsd:string | ||
505 | + ] | ||
506 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
507 | + sp:predicate rdf:type ; | ||
508 | + sp:subject | ||
509 | + [ sp:varName "wholeFlow"^^xsd:string | ||
510 | + ] | ||
511 | + ] [ rdf:type sp:Bind ; | ||
512 | + sp:expression | ||
513 | + [ rdf:type fn:concat ; | ||
514 | + sp:arg1 "/" ; | ||
515 | + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ; | ||
516 | + sp:arg1 [ sp:varName "componentMaterialName"^^xsd:string | ||
517 | + ] | ||
518 | + ] | ||
519 | + ] ; | ||
520 | + sp:variable | ||
521 | + [ sp:varName "separatedComponentURISuffix"^^xsd:string | ||
522 | + ] | ||
523 | + ] [ rdf:type sp:Bind ; | ||
524 | + sp:expression | ||
525 | + [ rdf:type sp:iri ; | ||
526 | + sp:arg1 [ rdf:type fn:concat ; | ||
527 | + sp:arg1 [ rdf:type xsd:string ; | ||
528 | + sp:arg1 [ sp:varName "wholeFlow"^^xsd:string | ||
529 | + ] | ||
530 | + ] ; | ||
531 | + sp:arg2 [ sp:varName "separatedComponentURISuffix"^^xsd:string | ||
532 | + ] | ||
533 | + ] | ||
534 | + ] ; | ||
535 | + sp:variable | ||
536 | + [ sp:varName "componentFlow"^^xsd:string | ||
537 | + ] | ||
538 | + ] [ rdf:type sp:Optional ; | ||
539 | + sp:elements ([ sp:object | ||
540 | + [ sp:varName "intervalStart"^^xsd:string | ||
541 | + ] ; | ||
542 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
543 | + sp:subject | ||
544 | + [ sp:varName "wholeFlow"^^xsd:string | ||
545 | + ] | ||
546 | + ]) | ||
547 | + ] [ rdf:type sp:Optional ; | ||
548 | + sp:elements ([ sp:object | ||
549 | + [ sp:varName "intervalEnd"^^xsd:string | ||
550 | + ] ; | ||
551 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
552 | + sp:subject | ||
553 | + [ sp:varName "wholeFlow"^^xsd:string | ||
554 | + ] | ||
555 | + ]) | ||
556 | + ] [ rdf:type sp:Optional ; | ||
557 | + sp:elements ([ sp:object | ||
558 | + [ sp:varName "interval"^^xsd:string | ||
559 | + ] ; | ||
560 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; | ||
561 | + sp:subject | ||
562 | + [ sp:varName "wholeFlow"^^xsd:string | ||
563 | + ] | ||
564 | + ]) | ||
565 | + ] [ rdf:type sp:Optional ; | ||
566 | + sp:elements ([ sp:object | ||
567 | + [ sp:varName "temporalPartDurationType"^^xsd:string | ||
568 | + ] ; | ||
569 | + sp:predicate rdf:type ; | ||
570 | + sp:subject | ||
571 | + [ sp:varName "wholeFlow"^^xsd:string | ||
572 | + ] | ||
573 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartDurationType> ; | ||
574 | + sp:predicate rdf:type ; | ||
575 | + sp:subject | ||
576 | + [ sp:varName "temporalPartDurationType"^^xsd:string | ||
577 | + ] | ||
578 | + ]) | ||
579 | + ] [ rdf:type sp:Optional ; | ||
580 | + sp:elements ([ sp:object | ||
581 | + [ sp:varName "wholeFlowSourceOrDestination"^^xsd:string | ||
582 | + ] ; | ||
583 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ; | ||
584 | + sp:subject | ||
585 | + [ sp:varName "wholeFlow"^^xsd:string | ||
586 | + ] | ||
587 | + ]) | ||
588 | + ] [ rdf:type sp:Optional ; | ||
589 | + sp:elements ([ sp:object | ||
590 | + [ sp:varName "wholeFlow"^^xsd:string | ||
591 | + ] ; | ||
592 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
593 | + sp:subject | ||
594 | + [ sp:varName "wholeFlowContainingFacility"^^xsd:string | ||
595 | + ] | ||
596 | + ]) | ||
597 | + ]) | ||
598 | + ] . | ||
599 | + | ||
600 | +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-componentContent-v1.0> | ||
601 | + rdf:type owl:Ontology ; | ||
602 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/scale-maps-to-mpr-enumeration> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ; | ||
603 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
1 | +# baseURI: null | ||
2 | + | ||
3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
11 | + | ||
12 | +[] rdf:type inference:Configuration ; | ||
13 | + composite:child | ||
14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
15 | + composite:index "0"^^xsd:int | ||
16 | + ] . |
... | @@ -6,6 +6,8 @@ | ... | @@ -6,6 +6,8 @@ |
6 | # imports: http://www.reportinghub.no/np/data/npd | 6 | # imports: http://www.reportinghub.no/np/data/npd |
7 | 7 | ||
8 | @prefix : <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest#> . | 8 | @prefix : <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest#> . |
9 | +@prefix ASGARD_DAY_2012-03-01_final: <file:///www.reportinghub.no/test/dpr2/testcase/epim-dpr2/BA_ASGARD/ASGARD_DAY_2012-03-01_final.xml#> . | ||
10 | +@prefix ASGARD_DAY_2012-03-01_final-production-flow-parameterSet: <file:///www.reportinghub.no/test/dpr2/testcase/epim-dpr2/BA_ASGARD/ASGARD_DAY_2012-03-01_final-production-flow-parameterSet.xml#> . | ||
9 | @prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . | 11 | @prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . |
10 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 12 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
11 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 13 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
... | @@ -17,5 +19,5 @@ | ... | @@ -17,5 +19,5 @@ |
17 | 19 | ||
18 | <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest> | 20 | <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest> |
19 | rdf:type owl:Ontology ; | 21 | rdf:type owl:Ontology ; |
20 | - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/spin/prod-property> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ; | 22 | + owl:imports <http://www.reportinghub.no/np/data/npd> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/ep/spin/prod-property> , <http://www.reportinghub.no/data/erh> , <http://spinrdf.org/spin> ; |
21 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 23 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
1 | # baseURI: http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest-NoFacts | 1 | # baseURI: http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest-NoFacts |
2 | +# imports: file:///www.reportinghub.no/test/mpr/testcase/epim-mpr-partner/MPRP1.0/PL147/TRYM-MONTH_AND_DAY_2012-03-01_final-dl-parameterSet.xml | ||
2 | # imports: http://spinrdf.org/spin | 3 | # imports: http://spinrdf.org/spin |
3 | # imports: http://www.epim.no/schemas/mprml/1 | 4 | # imports: http://www.epim.no/schemas/mprml/1 |
4 | # imports: http://www.reportinghub.no/ep/schema/1.0/erhfacts | 5 | # imports: http://www.reportinghub.no/ep/schema/1.0/erhfacts |
... | @@ -9,8 +10,11 @@ | ... | @@ -9,8 +10,11 @@ |
9 | @prefix : <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest-NoFacts#> . | 10 | @prefix : <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest-NoFacts#> . |
10 | @prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . | 11 | @prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . |
11 | @prefix TRYM-MONTH_2012-02-01_final-mprg: <file:///www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/PL147/tqedits/TRYM-MONTH_2012-02-01_final-mprg.xml#> . | 12 | @prefix TRYM-MONTH_2012-02-01_final-mprg: <file:///www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/PL147/tqedits/TRYM-MONTH_2012-02-01_final-mprg.xml#> . |
13 | +@prefix TRYM-MONTH_AND_DAY_2012-03-01_final-dl-parameterSet: <file:///www.reportinghub.no/test/mpr/testcase/epim-mpr-partner/MPRP1.0/PL147/TRYM-MONTH_AND_DAY_2012-03-01_final-dl-parameterSet.xml#> . | ||
12 | @prefix TRYM-volumes_2011-08-27_final: <file:///EPIM-Ontologies/www.reportinghub.no/test/mpr/testcase/DongEnergy/dpr-mprformat/TRYM-volumes_2011-08-27_final.xml#> . | 14 | @prefix TRYM-volumes_2011-08-27_final: <file:///EPIM-Ontologies/www.reportinghub.no/test/mpr/testcase/DongEnergy/dpr-mprformat/TRYM-volumes_2011-08-27_final.xml#> . |
13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 15 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
16 | +@prefix p20DL: <file:///www.reportinghub.no/test/mpr/testcase/epim-mpr-partner/MPRP1.0/PL147/tqedits/TRYM-MONTH_AND_DAY_2012-03-01_final-mprp-parameterSet%20-%20DL.xml#> . | ||
17 | +@prefix p20available: <file:///www.reportinghub.no/test/mpr/testcase/epim-mpr-partner/MPRP1.0/PL147/tqedits/TRYM-MONTH_AND_DAY_2012-03-01_final-mprp-parameterSet%20-%20DL%20-%20available.xml#> . | ||
14 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 18 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
15 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 19 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
16 | @prefix sp: <http://spinrdf.org/sp#> . | 20 | @prefix sp: <http://spinrdf.org/sp#> . |
... | @@ -20,5 +24,5 @@ | ... | @@ -20,5 +24,5 @@ |
20 | 24 | ||
21 | <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest-NoFacts> | 25 | <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest-NoFacts> |
22 | rdf:type owl:Ontology ; | 26 | rdf:type owl:Ontology ; |
23 | - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/erhfacts> , <http://www.reportinghub.no/ep/spin/prod-property> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/schema/1.0/npd> ; | 27 | + owl:imports <file:///www.reportinghub.no/test/mpr/testcase/epim-mpr-partner/MPRP1.0/PL147/TRYM-MONTH_AND_DAY_2012-03-01_final-dl-parameterSet.xml> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/erhfacts> , <http://www.reportinghub.no/ep/spin/prod-property> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/schema/1.0/npd> ; |
24 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 28 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment