Showing
5 changed files
with
139 additions
and
86 deletions
... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
23 | 23 | ||
24 | <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> | 24 | <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> |
25 | rdf:type owl:Ontology ; | 25 | rdf:type owl:Ontology ; |
26 | - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; | 26 | + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; |
27 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 27 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
28 | 28 | ||
29 | ep-mpr-spin-lib:Function | 29 | ep-mpr-spin-lib:Function |
... | @@ -1586,6 +1586,40 @@ ep-mpr-spin-lib:selectFrequencyScale | ... | @@ -1586,6 +1586,40 @@ ep-mpr-spin-lib:selectFrequencyScale |
1586 | ]) | 1586 | ]) |
1587 | ] . | 1587 | ] . |
1588 | 1588 | ||
1589 | +ep-mpr-spin-lib:selectIdFromReportingHubUri | ||
1590 | + rdf:type spin:Function ; | ||
1591 | + rdfs:label "select ID from ReportingHub URI"^^xsd:string ; | ||
1592 | + rdfs:subClassOf ep-mpr-spin-lib:Function ; | ||
1593 | + spin:body | ||
1594 | + [ rdf:type sp:Select ; | ||
1595 | + sp:resultVariables ([ sp:varName "id"^^xsd:string | ||
1596 | + ]) ; | ||
1597 | + sp:where ([ rdf:type sp:Bind ; | ||
1598 | + sp:expression | ||
1599 | + [ rdf:type sp:if ; | ||
1600 | + sp:arg1 [ rdf:type sp:eq ; | ||
1601 | + sp:arg1 [ rdf:type fn:substring ; | ||
1602 | + sp:arg1 spin:_arg1 ; | ||
1603 | + sp:arg2 0 ; | ||
1604 | + sp:arg3 5 | ||
1605 | + ] ; | ||
1606 | + sp:arg2 "https" | ||
1607 | + ] ; | ||
1608 | + sp:arg2 [ rdf:type fn:substring ; | ||
1609 | + sp:arg1 spin:_arg1 ; | ||
1610 | + sp:arg2 8 | ||
1611 | + ] ; | ||
1612 | + sp:arg3 [ rdf:type fn:substring ; | ||
1613 | + sp:arg1 spin:_arg1 ; | ||
1614 | + sp:arg2 7 | ||
1615 | + ] | ||
1616 | + ] ; | ||
1617 | + sp:variable | ||
1618 | + [ sp:varName "id"^^xsd:string | ||
1619 | + ] | ||
1620 | + ]) | ||
1621 | + ] . | ||
1622 | + | ||
1589 | ep-mpr-spin-lib:selectInjectedFluidType | 1623 | ep-mpr-spin-lib:selectInjectedFluidType |
1590 | rdf:type spin:Function ; | 1624 | rdf:type spin:Function ; |
1591 | rdfs:label "select InjectedFluidType"^^xsd:string ; | 1625 | rdfs:label "select InjectedFluidType"^^xsd:string ; | ... | ... |
This diff could not be displayed because it is too large.
1 | # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-componentContent-v1.0 | 1 | # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-componentContent-v1.0 |
2 | # imports: http://spinrdf.org/spin | 2 | # imports: http://spinrdf.org/spin |
3 | # imports: http://www.epim.no/schemas/mprml/1 | 3 | # imports: http://www.epim.no/schemas/mprml/1 |
4 | +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib | ||
4 | # imports: http://www.reportinghub.no/ep/schema/1.0/core | 5 | # 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/flow |
6 | # imports: http://www.reportinghub.no/ep/schema/1.0/scale-maps-to-mpr-enumeration | 7 | # imports: http://www.reportinghub.no/ep/schema/1.0/scale-maps-to-mpr-enumeration |
... | @@ -97,6 +98,17 @@ | ... | @@ -97,6 +98,17 @@ |
97 | ] | 98 | ] |
98 | ] [ rdf:type sp:Bind ; | 99 | ] [ rdf:type sp:Bind ; |
99 | sp:expression | 100 | sp:expression |
101 | + [ rdf:type ep-mpr-spin-lib:selectIdFromReportingHubUri ; | ||
102 | + sp:arg1 [ rdf:type xsd:string ; | ||
103 | + sp:arg1 [ sp:varName "measurementFacility"^^xsd:string | ||
104 | + ] | ||
105 | + ] | ||
106 | + ] ; | ||
107 | + sp:variable | ||
108 | + [ sp:varName "measurementFacilityId"^^xsd:string | ||
109 | + ] | ||
110 | + ] [ rdf:type sp:Bind ; | ||
111 | + sp:expression | ||
100 | [ rdf:type sp:iri ; | 112 | [ rdf:type sp:iri ; |
101 | sp:arg1 [ rdf:type fn:concat ; | 113 | sp:arg1 [ rdf:type fn:concat ; |
102 | sp:arg1 [ rdf:type xsd:string ; | 114 | sp:arg1 [ rdf:type xsd:string ; |
... | @@ -104,9 +116,7 @@ | ... | @@ -104,9 +116,7 @@ |
104 | ] | 116 | ] |
105 | ] ; | 117 | ] ; |
106 | sp:arg2 "/" ; | 118 | sp:arg2 "/" ; |
107 | - sp:arg3 [ rdf:type xsd:string ; | 119 | + sp:arg3 [ sp:varName "measurementFacilityId"^^xsd:string |
108 | - sp:arg1 [ sp:varName "measurementFacility"^^xsd:string | ||
109 | - ] | ||
110 | ] | 120 | ] |
111 | ] | 121 | ] |
112 | ] ; | 122 | ] ; |
... | @@ -117,79 +127,77 @@ | ... | @@ -117,79 +127,77 @@ |
117 | ] ; | 127 | ] ; |
118 | spin:rule | 128 | spin:rule |
119 | [ rdf:type sp:Construct ; | 129 | [ rdf:type sp:Construct ; |
120 | - rdfs:comment "STEP 70100 record the component - actually flow and not inventory"^^xsd:string ; | 130 | + 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#Flow> ; | 131 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#Inventory> ; |
122 | sp:predicate rdf:type ; | 132 | sp:predicate rdf:type ; |
123 | sp:subject | 133 | sp:subject |
124 | - [ sp:varName "componentFlow"^^xsd:string | 134 | + [ sp:varName "componentInventory"^^xsd:string |
135 | + ] | ||
136 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
137 | + sp:predicate rdf:type ; | ||
138 | + sp:subject | ||
139 | + [ sp:varName "componentInventory"^^xsd:string | ||
125 | ] | 140 | ] |
126 | ] [ sp:object | 141 | ] [ sp:object |
127 | - [ sp:varName "componentFlow"^^xsd:string | 142 | + [ sp:varName "componentInventory"^^xsd:string |
128 | ] ; | 143 | ] ; |
129 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; | 144 | + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ; |
130 | sp:subject | 145 | sp:subject |
131 | - [ sp:varName "wholeFlow"^^xsd:string | 146 | + [ sp:varName "wholeInventory"^^xsd:string |
132 | ] | 147 | ] |
133 | ] [ sp:object | 148 | ] [ sp:object |
134 | [ sp:varName "intervalStart"^^xsd:string | 149 | [ sp:varName "intervalStart"^^xsd:string |
135 | ] ; | 150 | ] ; |
136 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 151 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
137 | sp:subject | 152 | sp:subject |
138 | - [ sp:varName "componentFlow"^^xsd:string | 153 | + [ sp:varName "componentInventory"^^xsd:string |
139 | ] | 154 | ] |
140 | ] [ sp:object | 155 | ] [ sp:object |
141 | [ sp:varName "intervalEnd"^^xsd:string | 156 | [ sp:varName "intervalEnd"^^xsd:string |
142 | ] ; | 157 | ] ; |
143 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 158 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
144 | sp:subject | 159 | sp:subject |
145 | - [ sp:varName "componentFlow"^^xsd:string | 160 | + [ sp:varName "componentInventory"^^xsd:string |
146 | ] | 161 | ] |
147 | ] [ sp:object | 162 | ] [ sp:object |
148 | [ sp:varName "interval"^^xsd:string | 163 | [ sp:varName "interval"^^xsd:string |
149 | ] ; | 164 | ] ; |
150 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; | 165 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; |
151 | sp:subject | 166 | sp:subject |
152 | - [ sp:varName "componentFlow"^^xsd:string | 167 | + [ sp:varName "componentInventory"^^xsd:string |
153 | ] | 168 | ] |
154 | ] [ sp:object | 169 | ] [ sp:object |
155 | [ sp:varName "temporalPartDurationType"^^xsd:string | 170 | [ sp:varName "temporalPartDurationType"^^xsd:string |
156 | ] ; | 171 | ] ; |
157 | sp:predicate rdf:type ; | 172 | sp:predicate rdf:type ; |
158 | sp:subject | 173 | sp:subject |
159 | - [ sp:varName "componentFlow"^^xsd:string | 174 | + [ sp:varName "componentInventory"^^xsd:string |
160 | - ] | ||
161 | - ] [ sp:object | ||
162 | - [ sp:varName "wholeFlowSourceOrDestination"^^xsd:string | ||
163 | - ] ; | ||
164 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ; | ||
165 | - sp:subject | ||
166 | - [ sp:varName "componentFlow"^^xsd:string | ||
167 | ] | 175 | ] |
168 | ] [ sp:object | 176 | ] [ sp:object |
169 | - [ sp:varName "componentFlow"^^xsd:string | 177 | + [ sp:varName "componentInventory"^^xsd:string |
170 | ] ; | 178 | ] ; |
171 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 179 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; |
172 | sp:subject | 180 | sp:subject |
173 | - [ sp:varName "wholeFlowContainingFacility"^^xsd:string | 181 | + [ sp:varName "wholeInventoryFacility"^^xsd:string |
174 | ] | 182 | ] |
175 | ] [ sp:object | 183 | ] [ sp:object |
176 | [ sp:varName "componentMaterialType"^^xsd:string | 184 | [ sp:varName "componentMaterialType"^^xsd:string |
177 | ] ; | 185 | ] ; |
178 | sp:predicate rdf:type ; | 186 | sp:predicate rdf:type ; |
179 | sp:subject | 187 | sp:subject |
180 | - [ sp:varName "componentFlow"^^xsd:string | 188 | + [ sp:varName "componentInventory"^^xsd:string |
181 | ] | 189 | ] |
182 | ] [ sp:object | 190 | ] [ sp:object |
183 | [ sp:varName "componentName"^^xsd:string | 191 | [ sp:varName "componentName"^^xsd:string |
184 | ] ; | 192 | ] ; |
185 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 193 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
186 | sp:subject | 194 | sp:subject |
187 | - [ sp:varName "componentFlow"^^xsd:string | 195 | + [ sp:varName "componentInventory"^^xsd:string |
188 | ] | 196 | ] |
189 | ] [ sp:object spin:_this ; | 197 | ] [ sp:object spin:_this ; |
190 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 198 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
191 | sp:subject | 199 | sp:subject |
192 | - [ sp:varName "componentFlow"^^xsd:string | 200 | + [ sp:varName "componentInventory"^^xsd:string |
193 | ] | 201 | ] |
194 | ] [ sp:object | 202 | ] [ sp:object |
195 | [ sp:varName "intervalIdentifier"^^xsd:string | 203 | [ sp:varName "intervalIdentifier"^^xsd:string |
... | @@ -252,12 +260,12 @@ | ... | @@ -252,12 +260,12 @@ |
252 | ] ; | 260 | ] ; |
253 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 261 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
254 | sp:subject | 262 | sp:subject |
255 | - [ sp:varName "wholeFlow"^^xsd:string | 263 | + [ sp:varName "wholeInventory"^^xsd:string |
256 | ] | 264 | ] |
257 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | 265 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Inventory> ; |
258 | sp:predicate rdf:type ; | 266 | sp:predicate rdf:type ; |
259 | sp:subject | 267 | sp:subject |
260 | - [ sp:varName "wholeFlow"^^xsd:string | 268 | + [ sp:varName "wholeInventory"^^xsd:string |
261 | ] | 269 | ] |
262 | ] [ rdf:type sp:Bind ; | 270 | ] [ rdf:type sp:Bind ; |
263 | sp:expression | 271 | sp:expression |
... | @@ -276,7 +284,7 @@ | ... | @@ -276,7 +284,7 @@ |
276 | [ rdf:type sp:iri ; | 284 | [ rdf:type sp:iri ; |
277 | sp:arg1 [ rdf:type fn:concat ; | 285 | sp:arg1 [ rdf:type fn:concat ; |
278 | sp:arg1 [ rdf:type xsd:string ; | 286 | sp:arg1 [ rdf:type xsd:string ; |
279 | - sp:arg1 [ sp:varName "wholeFlow"^^xsd:string | 287 | + sp:arg1 [ sp:varName "wholeInventory"^^xsd:string |
280 | ] | 288 | ] |
281 | ] ; | 289 | ] ; |
282 | sp:arg2 [ sp:varName "separatedComponentURISuffix"^^xsd:string | 290 | sp:arg2 [ sp:varName "separatedComponentURISuffix"^^xsd:string |
... | @@ -284,7 +292,7 @@ | ... | @@ -284,7 +292,7 @@ |
284 | ] | 292 | ] |
285 | ] ; | 293 | ] ; |
286 | sp:variable | 294 | sp:variable |
287 | - [ sp:varName "componentFlow"^^xsd:string | 295 | + [ sp:varName "componentInventory"^^xsd:string |
288 | ] | 296 | ] |
289 | ] [ rdf:type sp:Optional ; | 297 | ] [ rdf:type sp:Optional ; |
290 | sp:elements ([ sp:object | 298 | sp:elements ([ sp:object |
... | @@ -292,7 +300,7 @@ | ... | @@ -292,7 +300,7 @@ |
292 | ] ; | 300 | ] ; |
293 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 301 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
294 | sp:subject | 302 | sp:subject |
295 | - [ sp:varName "wholeFlow"^^xsd:string | 303 | + [ sp:varName "wholeInventory"^^xsd:string |
296 | ] | 304 | ] |
297 | ]) | 305 | ]) |
298 | ] [ rdf:type sp:Optional ; | 306 | ] [ rdf:type sp:Optional ; |
... | @@ -301,7 +309,7 @@ | ... | @@ -301,7 +309,7 @@ |
301 | ] ; | 309 | ] ; |
302 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 310 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
303 | sp:subject | 311 | sp:subject |
304 | - [ sp:varName "wholeFlow"^^xsd:string | 312 | + [ sp:varName "wholeInventory"^^xsd:string |
305 | ] | 313 | ] |
306 | ]) | 314 | ]) |
307 | ] [ rdf:type sp:Optional ; | 315 | ] [ rdf:type sp:Optional ; |
... | @@ -310,7 +318,7 @@ | ... | @@ -310,7 +318,7 @@ |
310 | ] ; | 318 | ] ; |
311 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; | 319 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; |
312 | sp:subject | 320 | sp:subject |
313 | - [ sp:varName "wholeFlow"^^xsd:string | 321 | + [ sp:varName "wholeInventory"^^xsd:string |
314 | ] | 322 | ] |
315 | ]) | 323 | ]) |
316 | ] [ rdf:type sp:Optional ; | 324 | ] [ rdf:type sp:Optional ; |
... | @@ -319,7 +327,7 @@ | ... | @@ -319,7 +327,7 @@ |
319 | ] ; | 327 | ] ; |
320 | sp:predicate rdf:type ; | 328 | sp:predicate rdf:type ; |
321 | sp:subject | 329 | sp:subject |
322 | - [ sp:varName "wholeFlow"^^xsd:string | 330 | + [ sp:varName "wholeInventory"^^xsd:string |
323 | ] | 331 | ] |
324 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartDurationType> ; | 332 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartDurationType> ; |
325 | sp:predicate rdf:type ; | 333 | sp:predicate rdf:type ; |
... | @@ -329,20 +337,16 @@ | ... | @@ -329,20 +337,16 @@ |
329 | ]) | 337 | ]) |
330 | ] [ rdf:type sp:Optional ; | 338 | ] [ rdf:type sp:Optional ; |
331 | sp:elements ([ sp:object | 339 | sp:elements ([ sp:object |
332 | - [ sp:varName "wholeFlowSourceOrDestination"^^xsd:string | 340 | + [ sp:varName "wholeInventory"^^xsd:string |
333 | ] ; | 341 | ] ; |
334 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ; | 342 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; |
335 | sp:subject | 343 | sp:subject |
336 | - [ sp:varName "wholeFlow"^^xsd:string | 344 | + [ sp:varName "wholeInventoryFacility"^^xsd:string |
337 | ] | 345 | ] |
338 | - ]) | 346 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
339 | - ] [ rdf:type sp:Optional ; | 347 | + sp:predicate rdf:type ; |
340 | - sp:elements ([ sp:object | ||
341 | - [ sp:varName "wholeFlow"^^xsd:string | ||
342 | - ] ; | ||
343 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
344 | sp:subject | 348 | sp:subject |
345 | - [ sp:varName "wholeFlowContainingFacility"^^xsd:string | 349 | + [ sp:varName "wholeInventoryFacility"^^xsd:string |
346 | ] | 350 | ] |
347 | ]) | 351 | ]) |
348 | ]) | 352 | ]) |
... | @@ -372,77 +376,79 @@ | ... | @@ -372,77 +376,79 @@ |
372 | ] ; | 376 | ] ; |
373 | spin:rule | 377 | spin:rule |
374 | [ rdf:type sp:Construct ; | 378 | [ rdf:type sp:Construct ; |
375 | - rdfs:comment "STEP 70102 record the product flow components - where \"flow\" means inventory and not a flow"^^xsd:string ; | 379 | + rdfs:comment "STEP 70100 record the component - actually flow and not inventory"^^xsd:string ; |
376 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#Inventory> ; | 380 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; |
377 | - sp:predicate rdf:type ; | ||
378 | - sp:subject | ||
379 | - [ sp:varName "componentInventory"^^xsd:string | ||
380 | - ] | ||
381 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
382 | sp:predicate rdf:type ; | 381 | sp:predicate rdf:type ; |
383 | sp:subject | 382 | sp:subject |
384 | - [ sp:varName "componentInventory"^^xsd:string | 383 | + [ sp:varName "componentFlow"^^xsd:string |
385 | ] | 384 | ] |
386 | ] [ sp:object | 385 | ] [ sp:object |
387 | - [ sp:varName "componentInventory"^^xsd:string | 386 | + [ sp:varName "componentFlow"^^xsd:string |
388 | ] ; | 387 | ] ; |
389 | - sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ; | 388 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; |
390 | sp:subject | 389 | sp:subject |
391 | - [ sp:varName "wholeInventory"^^xsd:string | 390 | + [ sp:varName "wholeFlow"^^xsd:string |
392 | ] | 391 | ] |
393 | ] [ sp:object | 392 | ] [ sp:object |
394 | [ sp:varName "intervalStart"^^xsd:string | 393 | [ sp:varName "intervalStart"^^xsd:string |
395 | ] ; | 394 | ] ; |
396 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 395 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
397 | sp:subject | 396 | sp:subject |
398 | - [ sp:varName "componentInventory"^^xsd:string | 397 | + [ sp:varName "componentFlow"^^xsd:string |
399 | ] | 398 | ] |
400 | ] [ sp:object | 399 | ] [ sp:object |
401 | [ sp:varName "intervalEnd"^^xsd:string | 400 | [ sp:varName "intervalEnd"^^xsd:string |
402 | ] ; | 401 | ] ; |
403 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 402 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
404 | sp:subject | 403 | sp:subject |
405 | - [ sp:varName "componentInventory"^^xsd:string | 404 | + [ sp:varName "componentFlow"^^xsd:string |
406 | ] | 405 | ] |
407 | ] [ sp:object | 406 | ] [ sp:object |
408 | [ sp:varName "interval"^^xsd:string | 407 | [ sp:varName "interval"^^xsd:string |
409 | ] ; | 408 | ] ; |
410 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; | 409 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; |
411 | sp:subject | 410 | sp:subject |
412 | - [ sp:varName "componentInventory"^^xsd:string | 411 | + [ sp:varName "componentFlow"^^xsd:string |
413 | ] | 412 | ] |
414 | ] [ sp:object | 413 | ] [ sp:object |
415 | [ sp:varName "temporalPartDurationType"^^xsd:string | 414 | [ sp:varName "temporalPartDurationType"^^xsd:string |
416 | ] ; | 415 | ] ; |
417 | sp:predicate rdf:type ; | 416 | sp:predicate rdf:type ; |
418 | sp:subject | 417 | sp:subject |
419 | - [ sp:varName "componentInventory"^^xsd:string | 418 | + [ sp:varName "componentFlow"^^xsd:string |
420 | ] | 419 | ] |
421 | ] [ sp:object | 420 | ] [ sp:object |
422 | - [ sp:varName "componentInventory"^^xsd:string | 421 | + [ sp:varName "wholeFlowSourceOrDestination"^^xsd:string |
423 | ] ; | 422 | ] ; |
424 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | 423 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ; |
425 | sp:subject | 424 | sp:subject |
426 | - [ sp:varName "wholeInventoryFacility"^^xsd:string | 425 | + [ sp:varName "componentFlow"^^xsd:string |
426 | + ] | ||
427 | + ] [ sp:object | ||
428 | + [ sp:varName "componentFlow"^^xsd:string | ||
429 | + ] ; | ||
430 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
431 | + sp:subject | ||
432 | + [ sp:varName "wholeFlowContainingFacility"^^xsd:string | ||
427 | ] | 433 | ] |
428 | ] [ sp:object | 434 | ] [ sp:object |
429 | [ sp:varName "componentMaterialType"^^xsd:string | 435 | [ sp:varName "componentMaterialType"^^xsd:string |
430 | ] ; | 436 | ] ; |
431 | sp:predicate rdf:type ; | 437 | sp:predicate rdf:type ; |
432 | sp:subject | 438 | sp:subject |
433 | - [ sp:varName "componentInventory"^^xsd:string | 439 | + [ sp:varName "componentFlow"^^xsd:string |
434 | ] | 440 | ] |
435 | ] [ sp:object | 441 | ] [ sp:object |
436 | [ sp:varName "componentName"^^xsd:string | 442 | [ sp:varName "componentName"^^xsd:string |
437 | ] ; | 443 | ] ; |
438 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 444 | sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
439 | sp:subject | 445 | sp:subject |
440 | - [ sp:varName "componentInventory"^^xsd:string | 446 | + [ sp:varName "componentFlow"^^xsd:string |
441 | ] | 447 | ] |
442 | ] [ sp:object spin:_this ; | 448 | ] [ sp:object spin:_this ; |
443 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 449 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
444 | sp:subject | 450 | sp:subject |
445 | - [ sp:varName "componentInventory"^^xsd:string | 451 | + [ sp:varName "componentFlow"^^xsd:string |
446 | ] | 452 | ] |
447 | ] [ sp:object | 453 | ] [ sp:object |
448 | [ sp:varName "intervalIdentifier"^^xsd:string | 454 | [ sp:varName "intervalIdentifier"^^xsd:string |
... | @@ -505,12 +511,12 @@ | ... | @@ -505,12 +511,12 @@ |
505 | ] ; | 511 | ] ; |
506 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 512 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
507 | sp:subject | 513 | sp:subject |
508 | - [ sp:varName "wholeInventory"^^xsd:string | 514 | + [ sp:varName "wholeFlow"^^xsd:string |
509 | ] | 515 | ] |
510 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Inventory> ; | 516 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; |
511 | sp:predicate rdf:type ; | 517 | sp:predicate rdf:type ; |
512 | sp:subject | 518 | sp:subject |
513 | - [ sp:varName "wholeInventory"^^xsd:string | 519 | + [ sp:varName "wholeFlow"^^xsd:string |
514 | ] | 520 | ] |
515 | ] [ rdf:type sp:Bind ; | 521 | ] [ rdf:type sp:Bind ; |
516 | sp:expression | 522 | sp:expression |
... | @@ -529,7 +535,7 @@ | ... | @@ -529,7 +535,7 @@ |
529 | [ rdf:type sp:iri ; | 535 | [ rdf:type sp:iri ; |
530 | sp:arg1 [ rdf:type fn:concat ; | 536 | sp:arg1 [ rdf:type fn:concat ; |
531 | sp:arg1 [ rdf:type xsd:string ; | 537 | sp:arg1 [ rdf:type xsd:string ; |
532 | - sp:arg1 [ sp:varName "wholeInventory"^^xsd:string | 538 | + sp:arg1 [ sp:varName "wholeFlow"^^xsd:string |
533 | ] | 539 | ] |
534 | ] ; | 540 | ] ; |
535 | sp:arg2 [ sp:varName "separatedComponentURISuffix"^^xsd:string | 541 | sp:arg2 [ sp:varName "separatedComponentURISuffix"^^xsd:string |
... | @@ -537,7 +543,7 @@ | ... | @@ -537,7 +543,7 @@ |
537 | ] | 543 | ] |
538 | ] ; | 544 | ] ; |
539 | sp:variable | 545 | sp:variable |
540 | - [ sp:varName "componentInventory"^^xsd:string | 546 | + [ sp:varName "componentFlow"^^xsd:string |
541 | ] | 547 | ] |
542 | ] [ rdf:type sp:Optional ; | 548 | ] [ rdf:type sp:Optional ; |
543 | sp:elements ([ sp:object | 549 | sp:elements ([ sp:object |
... | @@ -545,7 +551,7 @@ | ... | @@ -545,7 +551,7 @@ |
545 | ] ; | 551 | ] ; |
546 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 552 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
547 | sp:subject | 553 | sp:subject |
548 | - [ sp:varName "wholeInventory"^^xsd:string | 554 | + [ sp:varName "wholeFlow"^^xsd:string |
549 | ] | 555 | ] |
550 | ]) | 556 | ]) |
551 | ] [ rdf:type sp:Optional ; | 557 | ] [ rdf:type sp:Optional ; |
... | @@ -554,7 +560,7 @@ | ... | @@ -554,7 +560,7 @@ |
554 | ] ; | 560 | ] ; |
555 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 561 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
556 | sp:subject | 562 | sp:subject |
557 | - [ sp:varName "wholeInventory"^^xsd:string | 563 | + [ sp:varName "wholeFlow"^^xsd:string |
558 | ] | 564 | ] |
559 | ]) | 565 | ]) |
560 | ] [ rdf:type sp:Optional ; | 566 | ] [ rdf:type sp:Optional ; |
... | @@ -563,7 +569,7 @@ | ... | @@ -563,7 +569,7 @@ |
563 | ] ; | 569 | ] ; |
564 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; | 570 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#existsThroughout> ; |
565 | sp:subject | 571 | sp:subject |
566 | - [ sp:varName "wholeInventory"^^xsd:string | 572 | + [ sp:varName "wholeFlow"^^xsd:string |
567 | ] | 573 | ] |
568 | ]) | 574 | ]) |
569 | ] [ rdf:type sp:Optional ; | 575 | ] [ rdf:type sp:Optional ; |
... | @@ -572,7 +578,7 @@ | ... | @@ -572,7 +578,7 @@ |
572 | ] ; | 578 | ] ; |
573 | sp:predicate rdf:type ; | 579 | sp:predicate rdf:type ; |
574 | sp:subject | 580 | sp:subject |
575 | - [ sp:varName "wholeInventory"^^xsd:string | 581 | + [ sp:varName "wholeFlow"^^xsd:string |
576 | ] | 582 | ] |
577 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartDurationType> ; | 583 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartDurationType> ; |
578 | sp:predicate rdf:type ; | 584 | sp:predicate rdf:type ; |
... | @@ -582,16 +588,20 @@ | ... | @@ -582,16 +588,20 @@ |
582 | ]) | 588 | ]) |
583 | ] [ rdf:type sp:Optional ; | 589 | ] [ rdf:type sp:Optional ; |
584 | sp:elements ([ sp:object | 590 | sp:elements ([ sp:object |
585 | - [ sp:varName "wholeInventory"^^xsd:string | 591 | + [ sp:varName "wholeFlowSourceOrDestination"^^xsd:string |
586 | ] ; | 592 | ] ; |
587 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | 593 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ; |
588 | sp:subject | 594 | sp:subject |
589 | - [ sp:varName "wholeInventoryFacility"^^xsd:string | 595 | + [ sp:varName "wholeFlow"^^xsd:string |
590 | ] | 596 | ] |
591 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 597 | + ]) |
592 | - sp:predicate rdf:type ; | 598 | + ] [ rdf:type sp:Optional ; |
599 | + sp:elements ([ sp:object | ||
600 | + [ sp:varName "wholeFlow"^^xsd:string | ||
601 | + ] ; | ||
602 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
593 | sp:subject | 603 | sp:subject |
594 | - [ sp:varName "wholeInventoryFacility"^^xsd:string | 604 | + [ sp:varName "wholeFlowContainingFacility"^^xsd:string |
595 | ] | 605 | ] |
596 | ]) | 606 | ]) |
597 | ]) | 607 | ]) |
... | @@ -674,6 +684,17 @@ | ... | @@ -674,6 +684,17 @@ |
674 | ] | 684 | ] |
675 | ] [ rdf:type sp:Bind ; | 685 | ] [ rdf:type sp:Bind ; |
676 | sp:expression | 686 | sp:expression |
687 | + [ rdf:type ep-mpr-spin-lib:selectIdFromReportingHubUri ; | ||
688 | + sp:arg1 [ rdf:type xsd:string ; | ||
689 | + sp:arg1 [ sp:varName "measurementFacility"^^xsd:string | ||
690 | + ] | ||
691 | + ] | ||
692 | + ] ; | ||
693 | + sp:variable | ||
694 | + [ sp:varName "measurementFacilityId"^^xsd:string | ||
695 | + ] | ||
696 | + ] [ rdf:type sp:Bind ; | ||
697 | + sp:expression | ||
677 | [ rdf:type sp:iri ; | 698 | [ rdf:type sp:iri ; |
678 | sp:arg1 [ rdf:type fn:concat ; | 699 | sp:arg1 [ rdf:type fn:concat ; |
679 | sp:arg1 [ rdf:type xsd:string ; | 700 | sp:arg1 [ rdf:type xsd:string ; |
... | @@ -681,9 +702,7 @@ | ... | @@ -681,9 +702,7 @@ |
681 | ] | 702 | ] |
682 | ] ; | 703 | ] ; |
683 | sp:arg2 "/" ; | 704 | sp:arg2 "/" ; |
684 | - sp:arg3 [ rdf:type xsd:string ; | 705 | + sp:arg3 [ sp:varName "measurementFacilityId"^^xsd:string |
685 | - sp:arg1 [ sp:varName "measurementFacility"^^xsd:string | ||
686 | - ] | ||
687 | ] | 706 | ] |
688 | ] | 707 | ] |
689 | ] ; | 708 | ] ; |
... | @@ -695,5 +714,5 @@ | ... | @@ -695,5 +714,5 @@ |
695 | 714 | ||
696 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-componentContent-v1.0> | 715 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-componentContent-v1.0> |
697 | rdf:type owl:Ontology ; | 716 | rdf:type owl:Ontology ; |
698 | - owl:imports <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/scale-maps-to-mpr-enumeration> ; | 717 | + owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <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> ; |
699 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 718 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment