A fix to the duplicate ProductionInventory bug, but not nice.
Showing
1 changed file
with
390 additions
and
436 deletions
... | @@ -21,23 +21,13 @@ | ... | @@ -21,23 +21,13 @@ |
21 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 21 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
22 | spin:rule | 22 | spin:rule |
23 | [ rdf:type sp:Construct ; | 23 | [ rdf:type sp:Construct ; |
24 | - rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; | 24 | + rdfs:comment "STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."^^xsd:string ; |
25 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | 25 | + sp:templates ([ sp:object _:b1 ; |
26 | - sp:predicate rdf:type ; | 26 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
27 | - sp:subject _:b1 | 27 | + sp:subject |
28 | - ] [ sp:object | 28 | + [ sp:varName "productVolumeReport"^^xsd:string |
29 | - [ sp:varName "productionReport"^^xsd:string | 29 | + ] |
30 | - ] ; | 30 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; |
31 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
32 | - sp:subject _:b1 | ||
33 | - ] [ sp:object | ||
34 | - [ sp:varName "name"^^xsd:string | ||
35 | - ] ; | ||
36 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
37 | - sp:subject _:b1 | ||
38 | - ] [ sp:object | ||
39 | - [ sp:varName "reportPeriodType"^^xsd:string | ||
40 | - ] ; | ||
41 | sp:predicate rdf:type ; | 31 | sp:predicate rdf:type ; |
42 | sp:subject _:b1 | 32 | sp:subject _:b1 |
43 | ] [ sp:object | 33 | ] [ sp:object |
... | @@ -45,131 +35,37 @@ | ... | @@ -45,131 +35,37 @@ |
45 | ] ; | 35 | ] ; |
46 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 36 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
47 | sp:subject _:b1 | 37 | sp:subject _:b1 |
48 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 38 | + ] [ sp:object _:b2 ; |
49 | - sp:predicate rdf:type ; | ||
50 | - sp:subject _:b2 | ||
51 | - ] [ sp:object | ||
52 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
53 | - ] ; | ||
54 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
55 | - sp:subject _:b2 | ||
56 | - ] [ sp:object _:b3 ; | ||
57 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 39 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
58 | - sp:subject _:b2 | 40 | + sp:subject _:b1 |
59 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 41 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; |
60 | sp:predicate rdf:type ; | 42 | sp:predicate rdf:type ; |
61 | - sp:subject _:b3 | ||
62 | - ] [ sp:object | ||
63 | - [] ; | ||
64 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
65 | sp:subject _:b2 | 43 | sp:subject _:b2 |
66 | - ] [ sp:object | 44 | + ] [ sp:object _:b1 ; |
67 | - [] ; | 45 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; |
68 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
69 | - sp:subject _:b3 | ||
70 | - ] [ sp:object | ||
71 | - [ sp:varName "title"^^xsd:string | ||
72 | - ] ; | ||
73 | - sp:predicate <http://purl.org/dc/elements/1.1/title> ; | ||
74 | - sp:subject _:b1 | ||
75 | - ]) ; | ||
76 | - sp:where ([ sp:object spin:_this ; | ||
77 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
78 | sp:subject | 46 | sp:subject |
79 | - [ sp:varName "productionReport"^^xsd:string | 47 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
80 | ] | 48 | ] |
81 | - ] [ sp:object | 49 | + ] [ sp:object _:b2 ; |
82 | - [ sp:varName "productVolumeRef"^^xsd:string | 50 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; |
83 | - ] ; | ||
84 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
85 | - sp:subject spin:_this | ||
86 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
87 | - sp:predicate rdf:type ; | ||
88 | sp:subject | 51 | sp:subject |
89 | - [ sp:varName "productVolumeRef"^^xsd:string | 52 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
90 | ] | 53 | ] |
91 | ] [ sp:object | 54 | ] [ sp:object |
92 | - [ sp:varName "nameRef"^^xsd:string | 55 | + [ sp:varName "facilityRef"^^xsd:string |
93 | ] ; | 56 | ] ; |
94 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 57 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
95 | - sp:subject | 58 | + sp:subject _:b1 |
96 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
97 | - ] | ||
98 | ] [ sp:object | 59 | ] [ sp:object |
99 | - [ sp:varName "name"^^xsd:string | 60 | + [ sp:varName "flowRef"^^xsd:string |
100 | - ] ; | ||
101 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
102 | - sp:subject | ||
103 | - [ sp:varName "nameRef"^^xsd:string | ||
104 | - ] | ||
105 | - ] [ rdf:type sp:Optional ; | ||
106 | - sp:elements ([ sp:object | ||
107 | - [ sp:varName "periodKindRef"^^xsd:string | ||
108 | - ] ; | ||
109 | - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; | ||
110 | - sp:subject | ||
111 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
112 | - ] | ||
113 | - ]) | ||
114 | - ] [ rdf:type sp:Optional ; | ||
115 | - sp:elements ([ sp:object | ||
116 | - [ sp:varName "titleRef"^^xsd:string | ||
117 | - ] ; | ||
118 | - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
119 | - sp:subject | ||
120 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
121 | - ] | ||
122 | - ] [ sp:object | ||
123 | - [ sp:varName "title"^^xsd:string | ||
124 | - ] ; | ||
125 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
126 | - sp:subject | ||
127 | - [ sp:varName "titleRef"^^xsd:string | ||
128 | - ] | ||
129 | - ]) | ||
130 | - ] [ rdf:type sp:Bind ; | ||
131 | - sp:expression | ||
132 | - [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; | ||
133 | - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
134 | - ] | ||
135 | ] ; | 61 | ] ; |
136 | - sp:variable | 62 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
137 | - [ sp:varName "reportPeriodType"^^xsd:string | 63 | + sp:subject _:b1 |
138 | - ] | ||
139 | - ]) | ||
140 | - ] ; | ||
141 | - spin:rule | ||
142 | - [ rdf:type sp:Construct ; | ||
143 | - rdfs:comment "STEP 20011 Create the period ProductionFlow and the ProductionFlowToDate - if necessary ."^^xsd:string ; | ||
144 | - sp:templates ([ sp:object _:b4 ; | ||
145 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
146 | - sp:subject | ||
147 | - [ sp:varName "productVolumeReport"^^xsd:string | ||
148 | - ] | ||
149 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | ||
150 | - sp:predicate rdf:type ; | ||
151 | - sp:subject _:b4 | ||
152 | ] [ sp:object | 64 | ] [ sp:object |
153 | - [ sp:varName "productVolumeRef"^^xsd:string | 65 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
154 | ] ; | 66 | ] ; |
155 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 67 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
156 | - sp:subject _:b4 | 68 | + sp:subject _:b1 |
157 | - ] [ sp:object _:b5 ; | ||
158 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
159 | - sp:subject _:b4 | ||
160 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | ||
161 | - sp:predicate rdf:type ; | ||
162 | - sp:subject _:b5 | ||
163 | - ] [ sp:object _:b4 ; | ||
164 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
165 | - sp:subject | ||
166 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
167 | - ] | ||
168 | - ] [ sp:object _:b5 ; | ||
169 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
170 | - sp:subject | ||
171 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
172 | - ] | ||
173 | ]) ; | 69 | ]) ; |
174 | sp:where ([ sp:object spin:_this ; | 70 | sp:where ([ sp:object spin:_this ; |
175 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 71 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
... | @@ -222,69 +118,73 @@ | ... | @@ -222,69 +118,73 @@ |
222 | sp:subject | 118 | sp:subject |
223 | [ sp:varName "productionFacilityToDate"^^xsd:string | 119 | [ sp:varName "productionFacilityToDate"^^xsd:string |
224 | ] | 120 | ] |
121 | + ]) | ||
122 | + ] ; | ||
123 | + spin:rule | ||
124 | + [ rdf:type sp:Construct ; | ||
125 | + rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; | ||
126 | + sp:templates ([ sp:object | ||
127 | + [ sp:varName "dTimStart"^^xsd:string | ||
128 | + ] ; | ||
129 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
130 | + sp:subject | ||
131 | + [ sp:varName "productionFlow"^^xsd:string | ||
132 | + ] | ||
225 | ] [ sp:object | 133 | ] [ sp:object |
226 | - [ sp:varName "facilityRef"^^xsd:string | 134 | + [ sp:varName "dTimEnd"^^xsd:string |
227 | ] ; | 135 | ] ; |
228 | - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; | 136 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
229 | sp:subject | 137 | sp:subject |
230 | - [ sp:varName "productVolumeRef"^^xsd:string | 138 | + [ sp:varName "productionFlow"^^xsd:string |
231 | ] | 139 | ] |
232 | ] [ sp:object | 140 | ] [ sp:object |
233 | - [ sp:varName "flowRef"^^xsd:string | 141 | + [ sp:varName "dTimEnd"^^xsd:string |
234 | ] ; | 142 | ] ; |
235 | - sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; | 143 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
236 | sp:subject | 144 | sp:subject |
237 | - [ sp:varName "facilityRef"^^xsd:string | 145 | + [ sp:varName "productionFlowToDate"^^xsd:string |
238 | ] | 146 | ] |
239 | - ] [ rdf:type sp:NotExists ; | 147 | + ] [ sp:object |
240 | - sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ; | 148 | + [ sp:varName "dTimStart"^^xsd:string |
241 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
242 | - sp:subject | ||
243 | - [ sp:varName "flowRef"^^xsd:string | ||
244 | - ] | ||
245 | - ]) | ||
246 | - ] [ rdf:type sp:NotExists ; | ||
247 | - sp:elements ([ sp:object | ||
248 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
249 | - ] ; | ||
250 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
251 | - sp:subject | ||
252 | - [ sp:varName "productionFlow"^^xsd:string | ||
253 | - ] | ||
254 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | ||
255 | - sp:predicate rdf:type ; | ||
256 | - sp:subject | ||
257 | - [ sp:varName "productionFlow"^^xsd:string | ||
258 | - ] | ||
259 | - ]) | ||
260 | - ]) | ||
261 | - ] ; | ||
262 | - spin:rule | ||
263 | - [ rdf:type sp:Construct ; | ||
264 | - rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ; | ||
265 | - sp:templates ([ sp:object | ||
266 | - [ sp:varName "reportKind"^^xsd:string | ||
267 | ] ; | 149 | ] ; |
268 | - sp:predicate rdf:type ; | 150 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
269 | sp:subject | 151 | sp:subject |
270 | - [ sp:varName "productVolumeReport"^^xsd:string | 152 | + [ sp:varName "productionInventory"^^xsd:string |
271 | ] | 153 | ] |
272 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ; | 154 | + ] [ sp:object |
273 | - sp:predicate rdf:type ; | 155 | + [ sp:varName "dTimEnd"^^xsd:string |
156 | + ] ; | ||
157 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
274 | sp:subject | 158 | sp:subject |
275 | - [ sp:varName "reportKind"^^xsd:string | 159 | + [ sp:varName "productionInventory"^^xsd:string |
276 | ] | 160 | ] |
277 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | 161 | + ] [ sp:object |
278 | - sp:predicate rdfs:subClassOf ; | 162 | + [ sp:varName "dTimEnd"^^xsd:string |
163 | + ] ; | ||
164 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
279 | sp:subject | 165 | sp:subject |
280 | - [ sp:varName "reportKind"^^xsd:string | 166 | + [ sp:varName "productionInventoryToDate"^^xsd:string |
281 | ] | 167 | ] |
282 | ] [ sp:object | 168 | ] [ sp:object |
283 | - [ sp:varName "kind"^^xsd:string | 169 | + [ sp:varName "dTimStart"^^xsd:string |
284 | ] ; | 170 | ] ; |
285 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | 171 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
286 | sp:subject | 172 | sp:subject |
287 | - [ sp:varName "reportKind"^^xsd:string | 173 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
174 | + ] | ||
175 | + ] [ sp:object | ||
176 | + [ sp:varName "dTimEnd"^^xsd:string | ||
177 | + ] ; | ||
178 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
179 | + sp:subject | ||
180 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
181 | + ] | ||
182 | + ] [ sp:object | ||
183 | + [ sp:varName "dTimEnd"^^xsd:string | ||
184 | + ] ; | ||
185 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
186 | + sp:subject | ||
187 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
288 | ] | 188 | ] |
289 | ]) ; | 189 | ]) ; |
290 | sp:where ([ sp:object | 190 | sp:where ([ sp:object |
... | @@ -298,88 +198,112 @@ | ... | @@ -298,88 +198,112 @@ |
298 | [ sp:varName "productVolumeRef"^^xsd:string | 198 | [ sp:varName "productVolumeRef"^^xsd:string |
299 | ] | 199 | ] |
300 | ] [ sp:object | 200 | ] [ sp:object |
301 | - [ sp:varName "productVolumeRef"^^xsd:string | 201 | + [ sp:varName "dTimStart"^^xsd:string |
302 | ] ; | 202 | ] ; |
303 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 203 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
304 | - sp:subject | ||
305 | - [ sp:varName "productVolumeReport"^^xsd:string | ||
306 | - ] | ||
307 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | ||
308 | - sp:predicate rdf:type ; | ||
309 | sp:subject | 204 | sp:subject |
310 | - [ sp:varName "productVolumeReport"^^xsd:string | 205 | + [ sp:varName "productVolumeRef"^^xsd:string |
311 | ] | 206 | ] |
312 | ] [ sp:object | 207 | ] [ sp:object |
313 | - [ sp:varName "nameRef"^^xsd:string | 208 | + [ sp:varName "dTimEnd"^^xsd:string |
314 | ] ; | 209 | ] ; |
315 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 210 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
316 | sp:subject | 211 | sp:subject |
317 | [ sp:varName "productVolumeRef"^^xsd:string | 212 | [ sp:varName "productVolumeRef"^^xsd:string |
318 | ] | 213 | ] |
319 | ] [ sp:object | 214 | ] [ sp:object |
320 | - [ sp:varName "name"^^xsd:string | 215 | + [ sp:varName "productVolumeRef"^^xsd:string |
321 | ] ; | 216 | ] ; |
322 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 217 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
323 | sp:subject | 218 | sp:subject |
324 | - [ sp:varName "nameRef"^^xsd:string | 219 | + [ sp:varName "productionFlow"^^xsd:string |
325 | ] | 220 | ] |
326 | - ] [ sp:object | 221 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; |
327 | - [ sp:varName "kind"^^xsd:string | 222 | + sp:predicate rdf:type ; |
328 | - ] ; | ||
329 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | ||
330 | sp:subject | 223 | sp:subject |
331 | - [ sp:varName "productVolumeRef"^^xsd:string | 224 | + [ sp:varName "productionFlow"^^xsd:string |
332 | ] | 225 | ] |
333 | - ] [ rdf:type sp:Bind ; | 226 | + ] [ sp:object |
334 | - sp:expression | 227 | + [ sp:varName "productionFlowToDate"^^xsd:string |
335 | - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | ||
336 | - sp:arg1 [ sp:varName "kind"^^xsd:string | ||
337 | - ] | ||
338 | ] ; | 228 | ] ; |
339 | - sp:variable | 229 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
340 | - [ sp:varName "reportKind"^^xsd:string | ||
341 | - ] | ||
342 | - ]) | ||
343 | - ] ; | ||
344 | - spin:rule | ||
345 | - [ rdf:type sp:Construct ; | ||
346 | - rdfs:comment "STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."^^xsd:string ; | ||
347 | - sp:templates ([ sp:object _:b6 ; | ||
348 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
349 | sp:subject | 230 | sp:subject |
350 | - [ sp:varName "productVolumeReport"^^xsd:string | 231 | + [ sp:varName "productionFlow"^^xsd:string |
351 | ] | 232 | ] |
352 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | 233 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
353 | sp:predicate rdf:type ; | 234 | sp:predicate rdf:type ; |
354 | - sp:subject _:b6 | 235 | + sp:subject |
236 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
237 | + ] | ||
355 | ] [ sp:object | 238 | ] [ sp:object |
356 | [ sp:varName "productVolumeRef"^^xsd:string | 239 | [ sp:varName "productVolumeRef"^^xsd:string |
357 | ] ; | 240 | ] ; |
358 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 241 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
359 | - sp:subject _:b6 | 242 | + sp:subject |
360 | - ] [ sp:object _:b7 ; | 243 | + [ sp:varName "productionInventory"^^xsd:string |
244 | + ] | ||
245 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
246 | + sp:predicate rdf:type ; | ||
247 | + sp:subject | ||
248 | + [ sp:varName "productionInventory"^^xsd:string | ||
249 | + ] | ||
250 | + ] [ sp:object | ||
251 | + [ sp:varName "productionInventoryToDate"^^xsd:string | ||
252 | + ] ; | ||
361 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 253 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
362 | - sp:subject _:b6 | 254 | + sp:subject |
255 | + [ sp:varName "productionInventory"^^xsd:string | ||
256 | + ] | ||
363 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | 257 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; |
364 | sp:predicate rdf:type ; | 258 | sp:predicate rdf:type ; |
365 | - sp:subject _:b7 | 259 | + sp:subject |
366 | - ] [ sp:object _:b6 ; | 260 | + [ sp:varName "productionInventoryToDate"^^xsd:string |
367 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | 261 | + ] |
262 | + ] [ sp:object | ||
263 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
264 | + ] ; | ||
265 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
368 | sp:subject | 266 | sp:subject |
369 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 267 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
370 | ] | 268 | ] |
371 | - ] [ sp:object _:b7 ; | 269 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
372 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | 270 | + sp:predicate rdf:type ; |
271 | + sp:subject | ||
272 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
273 | + ] | ||
274 | + ] [ sp:object | ||
275 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
276 | + ] ; | ||
277 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
278 | + sp:subject | ||
279 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
280 | + ] | ||
281 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
282 | + sp:predicate rdf:type ; | ||
373 | sp:subject | 283 | sp:subject |
374 | [ sp:varName "productionFacilityToDate"^^xsd:string | 284 | [ sp:varName "productionFacilityToDate"^^xsd:string |
375 | ] | 285 | ] |
376 | - ]) ; | 286 | + ]) |
377 | - sp:where ([ sp:object spin:_this ; | 287 | + ] ; |
378 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 288 | + spin:rule |
289 | + [ rdf:type sp:Construct ; | ||
290 | + rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; | ||
291 | + sp:templates ([ sp:object | ||
292 | + [ sp:varName "productionFacility"^^xsd:string | ||
293 | + ] ; | ||
294 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
379 | sp:subject | 295 | sp:subject |
380 | - [ sp:varName "productionReport"^^xsd:string | 296 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
381 | ] | 297 | ] |
382 | ] [ sp:object | 298 | ] [ sp:object |
299 | + [ sp:varName "productionFacility"^^xsd:string | ||
300 | + ] ; | ||
301 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
302 | + sp:subject | ||
303 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
304 | + ] | ||
305 | + ]) ; | ||
306 | + sp:where ([ sp:object | ||
383 | [ sp:varName "productVolumeRef"^^xsd:string | 307 | [ sp:varName "productVolumeRef"^^xsd:string |
384 | ] ; | 308 | ] ; |
385 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 309 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
... | @@ -390,16 +314,18 @@ | ... | @@ -390,16 +314,18 @@ |
390 | [ sp:varName "productVolumeRef"^^xsd:string | 314 | [ sp:varName "productVolumeRef"^^xsd:string |
391 | ] | 315 | ] |
392 | ] [ sp:object | 316 | ] [ sp:object |
393 | - [ sp:varName "productVolumeRef"^^xsd:string | 317 | + [ sp:varName "installationRef"^^xsd:string |
394 | ] ; | 318 | ] ; |
395 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 319 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
396 | sp:subject | 320 | sp:subject |
397 | - [ sp:varName "productVolumeReport"^^xsd:string | 321 | + [ sp:varName "productVolumeRef"^^xsd:string |
398 | ] | 322 | ] |
399 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | 323 | + ] [ sp:object |
400 | - sp:predicate rdf:type ; | 324 | + [ sp:varName "installationRef"^^xsd:string |
325 | + ] ; | ||
326 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
401 | sp:subject | 327 | sp:subject |
402 | - [ sp:varName "productVolumeReport"^^xsd:string | 328 | + [ sp:varName "productionFacility"^^xsd:string |
403 | ] | 329 | ] |
404 | ] [ sp:object | 330 | ] [ sp:object |
405 | [ sp:varName "productVolumeRef"^^xsd:string | 331 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -425,39 +351,62 @@ | ... | @@ -425,39 +351,62 @@ |
425 | sp:subject | 351 | sp:subject |
426 | [ sp:varName "productionFacilityToDate"^^xsd:string | 352 | [ sp:varName "productionFacilityToDate"^^xsd:string |
427 | ] | 353 | ] |
354 | + ]) | ||
355 | + ] ; | ||
356 | + spin:rule | ||
357 | + [ rdf:type sp:Construct ; | ||
358 | + rdfs:comment """STEP 20060 Set the facility operator | ||
359 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
360 | + sp:templates ([ sp:object _:b3 ; | ||
361 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
362 | + sp:subject | ||
363 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
364 | + ] | ||
365 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
366 | + sp:predicate rdf:type ; | ||
367 | + sp:subject _:b3 | ||
428 | ] [ sp:object | 368 | ] [ sp:object |
429 | - [ sp:varName "facilityRef"^^xsd:string | 369 | + [ sp:varName "operator"^^xsd:string |
370 | + ] ; | ||
371 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
372 | + sp:subject _:b3 | ||
373 | + ]) ; | ||
374 | + sp:where ([ sp:object | ||
375 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
376 | + ] ; | ||
377 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
378 | + sp:subject spin:_this | ||
379 | + ] [ sp:object | ||
380 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
430 | ] ; | 381 | ] ; |
431 | - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; | 382 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
383 | + sp:subject | ||
384 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
385 | + ] | ||
386 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
387 | + sp:predicate rdf:type ; | ||
388 | + sp:subject | ||
389 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
390 | + ] | ||
391 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
392 | + sp:predicate rdf:type ; | ||
432 | sp:subject | 393 | sp:subject |
433 | [ sp:varName "productVolumeRef"^^xsd:string | 394 | [ sp:varName "productVolumeRef"^^xsd:string |
434 | ] | 395 | ] |
435 | ] [ sp:object | 396 | ] [ sp:object |
436 | - [ sp:varName "flowRef"^^xsd:string | 397 | + [ sp:varName "operatorRef"^^xsd:string |
437 | ] ; | 398 | ] ; |
438 | - sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ; | 399 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
439 | sp:subject | 400 | sp:subject |
440 | - [ sp:varName "facilityRef"^^xsd:string | 401 | + [ sp:varName "productVolumeRef"^^xsd:string |
441 | ] | 402 | ] |
442 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ; | 403 | + ] [ sp:object |
443 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 404 | + [ sp:varName "operatorRef"^^xsd:string |
405 | + ] ; | ||
406 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
444 | sp:subject | 407 | sp:subject |
445 | - [ sp:varName "flowRef"^^xsd:string | 408 | + [ sp:varName "operator"^^xsd:string |
446 | ] | 409 | ] |
447 | - ] [ rdf:type sp:NotExists ; | ||
448 | - sp:elements ([ sp:object | ||
449 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
450 | - ] ; | ||
451 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
452 | - sp:subject | ||
453 | - [ sp:varName "productionInventory"^^xsd:string | ||
454 | - ] | ||
455 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
456 | - sp:predicate rdf:type ; | ||
457 | - sp:subject | ||
458 | - [ sp:varName "productionInventory"^^xsd:string | ||
459 | - ] | ||
460 | - ]) | ||
461 | ]) | 410 | ]) |
462 | ] ; | 411 | ] ; |
463 | spin:rule | 412 | spin:rule |
... | @@ -627,76 +576,81 @@ | ... | @@ -627,76 +576,81 @@ |
627 | ] ; | 576 | ] ; |
628 | spin:rule | 577 | spin:rule |
629 | [ rdf:type sp:Construct ; | 578 | [ rdf:type sp:Construct ; |
630 | - rdfs:comment """STEP 20060 Set the facility operator | 579 | + rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ; |
631 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | 580 | + sp:templates ([ sp:object |
632 | - sp:templates ([ sp:object _:b8 ; | 581 | + [ sp:varName "contextFacility"^^xsd:string |
633 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | 582 | + ] ; |
583 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
634 | sp:subject | 584 | sp:subject |
635 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 585 | + [ sp:varName "productionFacility"^^xsd:string |
636 | ] | 586 | ] |
637 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
638 | - sp:predicate rdf:type ; | ||
639 | - sp:subject _:b8 | ||
640 | - ] [ sp:object | ||
641 | - [ sp:varName "operator"^^xsd:string | ||
642 | - ] ; | ||
643 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
644 | - sp:subject _:b8 | ||
645 | ]) ; | 587 | ]) ; |
646 | sp:where ([ sp:object | 588 | sp:where ([ sp:object |
647 | [ sp:varName "productVolumeRef"^^xsd:string | 589 | [ sp:varName "productVolumeRef"^^xsd:string |
648 | ] ; | 590 | ] ; |
649 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 591 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
650 | sp:subject spin:_this | 592 | sp:subject spin:_this |
651 | - ] [ sp:object | 593 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
652 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
653 | - ] ; | ||
654 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
655 | - sp:subject | ||
656 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
657 | - ] | ||
658 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
659 | sp:predicate rdf:type ; | 594 | sp:predicate rdf:type ; |
660 | sp:subject | 595 | sp:subject |
661 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 596 | + [ sp:varName "productVolumeRef"^^xsd:string |
662 | ] | 597 | ] |
663 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 598 | + ] [ sp:object |
664 | - sp:predicate rdf:type ; | 599 | + [ sp:varName "installationRef"^^xsd:string |
600 | + ] ; | ||
601 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
665 | sp:subject | 602 | sp:subject |
666 | [ sp:varName "productVolumeRef"^^xsd:string | 603 | [ sp:varName "productVolumeRef"^^xsd:string |
667 | ] | 604 | ] |
668 | ] [ sp:object | 605 | ] [ sp:object |
669 | - [ sp:varName "operatorRef"^^xsd:string | 606 | + [ sp:varName "installationRef"^^xsd:string |
670 | ] ; | 607 | ] ; |
671 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | 608 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
609 | + sp:subject | ||
610 | + [ sp:varName "productionFacility"^^xsd:string | ||
611 | + ] | ||
612 | + ] [ sp:object | ||
613 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
614 | + ] ; | ||
615 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
672 | sp:subject | 616 | sp:subject |
673 | [ sp:varName "productVolumeRef"^^xsd:string | 617 | [ sp:varName "productVolumeRef"^^xsd:string |
674 | ] | 618 | ] |
675 | ] [ sp:object | 619 | ] [ sp:object |
676 | - [ sp:varName "operatorRef"^^xsd:string | 620 | + [ sp:varName "contextFacilityRef"^^xsd:string |
677 | ] ; | 621 | ] ; |
678 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 622 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
679 | sp:subject | 623 | sp:subject |
680 | - [ sp:varName "operator"^^xsd:string | 624 | + [ sp:varName "contextFacility"^^xsd:string |
681 | ] | 625 | ] |
682 | ]) | 626 | ]) |
683 | ] ; | 627 | ] ; |
684 | spin:rule | 628 | spin:rule |
685 | [ rdf:type sp:Construct ; | 629 | [ rdf:type sp:Construct ; |
686 | - rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; | 630 | + rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ; |
687 | sp:templates ([ sp:object | 631 | sp:templates ([ sp:object |
688 | - [ sp:varName "productionFacility"^^xsd:string | 632 | + [ sp:varName "reportKind"^^xsd:string |
689 | ] ; | 633 | ] ; |
690 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 634 | + sp:predicate rdf:type ; |
691 | sp:subject | 635 | sp:subject |
692 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 636 | + [ sp:varName "productVolumeReport"^^xsd:string |
637 | + ] | ||
638 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ; | ||
639 | + sp:predicate rdf:type ; | ||
640 | + sp:subject | ||
641 | + [ sp:varName "reportKind"^^xsd:string | ||
642 | + ] | ||
643 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
644 | + sp:predicate rdfs:subClassOf ; | ||
645 | + sp:subject | ||
646 | + [ sp:varName "reportKind"^^xsd:string | ||
693 | ] | 647 | ] |
694 | ] [ sp:object | 648 | ] [ sp:object |
695 | - [ sp:varName "productionFacility"^^xsd:string | 649 | + [ sp:varName "kind"^^xsd:string |
696 | ] ; | 650 | ] ; |
697 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 651 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; |
698 | sp:subject | 652 | sp:subject |
699 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 653 | + [ sp:varName "reportKind"^^xsd:string |
700 | ] | 654 | ] |
701 | ]) ; | 655 | ]) ; |
702 | sp:where ([ sp:object | 656 | sp:where ([ sp:object |
... | @@ -710,113 +664,88 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -710,113 +664,88 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
710 | [ sp:varName "productVolumeRef"^^xsd:string | 664 | [ sp:varName "productVolumeRef"^^xsd:string |
711 | ] | 665 | ] |
712 | ] [ sp:object | 666 | ] [ sp:object |
713 | - [ sp:varName "installationRef"^^xsd:string | 667 | + [ sp:varName "productVolumeRef"^^xsd:string |
714 | ] ; | 668 | ] ; |
715 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 669 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
716 | sp:subject | 670 | sp:subject |
717 | - [ sp:varName "productVolumeRef"^^xsd:string | 671 | + [ sp:varName "productVolumeReport"^^xsd:string |
672 | + ] | ||
673 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | ||
674 | + sp:predicate rdf:type ; | ||
675 | + sp:subject | ||
676 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
718 | ] | 677 | ] |
719 | ] [ sp:object | 678 | ] [ sp:object |
720 | - [ sp:varName "installationRef"^^xsd:string | 679 | + [ sp:varName "nameRef"^^xsd:string |
721 | ] ; | 680 | ] ; |
722 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 681 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
723 | sp:subject | 682 | sp:subject |
724 | - [ sp:varName "productionFacility"^^xsd:string | 683 | + [ sp:varName "productVolumeRef"^^xsd:string |
725 | ] | 684 | ] |
726 | ] [ sp:object | 685 | ] [ sp:object |
727 | - [ sp:varName "productVolumeRef"^^xsd:string | 686 | + [ sp:varName "name"^^xsd:string |
728 | ] ; | 687 | ] ; |
729 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 688 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
730 | - sp:subject | ||
731 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
732 | - ] | ||
733 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
734 | - sp:predicate rdf:type ; | ||
735 | sp:subject | 689 | sp:subject |
736 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 690 | + [ sp:varName "nameRef"^^xsd:string |
737 | ] | 691 | ] |
738 | ] [ sp:object | 692 | ] [ sp:object |
739 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 693 | + [ sp:varName "kind"^^xsd:string |
740 | ] ; | 694 | ] ; |
741 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 695 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; |
742 | sp:subject | 696 | sp:subject |
743 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 697 | + [ sp:varName "productVolumeRef"^^xsd:string |
744 | ] | 698 | ] |
745 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 699 | + ] [ rdf:type sp:Bind ; |
746 | - sp:predicate rdf:type ; | 700 | + sp:expression |
747 | - sp:subject | 701 | + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; |
748 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 702 | + sp:arg1 [ sp:varName "kind"^^xsd:string |
703 | + ] | ||
704 | + ] ; | ||
705 | + sp:variable | ||
706 | + [ sp:varName "reportKind"^^xsd:string | ||
749 | ] | 707 | ] |
750 | ]) | 708 | ]) |
751 | ] ; | 709 | ] ; |
752 | spin:rule | 710 | spin:rule |
753 | [ rdf:type sp:Construct ; | 711 | [ rdf:type sp:Construct ; |
754 | - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; | 712 | + rdfs:comment "STEP 20011 Create the period ProductionFlow and the ProductionFlowToDate - if necessary ."^^xsd:string ; |
755 | - sp:templates ([ sp:object | 713 | + sp:templates ([ sp:object _:b4 ; |
756 | - [ sp:varName "dTimStart"^^xsd:string | 714 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
757 | - ] ; | ||
758 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
759 | - sp:subject | ||
760 | - [ sp:varName "productionFlow"^^xsd:string | ||
761 | - ] | ||
762 | - ] [ sp:object | ||
763 | - [ sp:varName "dTimEnd"^^xsd:string | ||
764 | - ] ; | ||
765 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
766 | - sp:subject | ||
767 | - [ sp:varName "productionFlow"^^xsd:string | ||
768 | - ] | ||
769 | - ] [ sp:object | ||
770 | - [ sp:varName "dTimEnd"^^xsd:string | ||
771 | - ] ; | ||
772 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
773 | - sp:subject | ||
774 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
775 | - ] | ||
776 | - ] [ sp:object | ||
777 | - [ sp:varName "dTimStart"^^xsd:string | ||
778 | - ] ; | ||
779 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
780 | - sp:subject | ||
781 | - [ sp:varName "productionInventory"^^xsd:string | ||
782 | - ] | ||
783 | - ] [ sp:object | ||
784 | - [ sp:varName "dTimEnd"^^xsd:string | ||
785 | - ] ; | ||
786 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
787 | - sp:subject | ||
788 | - [ sp:varName "productionInventory"^^xsd:string | ||
789 | - ] | ||
790 | - ] [ sp:object | ||
791 | - [ sp:varName "dTimEnd"^^xsd:string | ||
792 | - ] ; | ||
793 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
794 | - sp:subject | ||
795 | - [ sp:varName "productionInventoryToDate"^^xsd:string | ||
796 | - ] | ||
797 | - ] [ sp:object | ||
798 | - [ sp:varName "dTimStart"^^xsd:string | ||
799 | - ] ; | ||
800 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
801 | sp:subject | 715 | sp:subject |
802 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 716 | + [ sp:varName "productVolumeReport"^^xsd:string |
803 | ] | 717 | ] |
718 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | ||
719 | + sp:predicate rdf:type ; | ||
720 | + sp:subject _:b4 | ||
804 | ] [ sp:object | 721 | ] [ sp:object |
805 | - [ sp:varName "dTimEnd"^^xsd:string | 722 | + [ sp:varName "productVolumeRef"^^xsd:string |
806 | ] ; | 723 | ] ; |
807 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 724 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
725 | + sp:subject _:b4 | ||
726 | + ] [ sp:object _:b5 ; | ||
727 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
728 | + sp:subject _:b4 | ||
729 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | ||
730 | + sp:predicate rdf:type ; | ||
731 | + sp:subject _:b5 | ||
732 | + ] [ sp:object _:b4 ; | ||
733 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
808 | sp:subject | 734 | sp:subject |
809 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 735 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
810 | ] | 736 | ] |
811 | - ] [ sp:object | 737 | + ] [ sp:object _:b5 ; |
812 | - [ sp:varName "dTimEnd"^^xsd:string | 738 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
813 | - ] ; | ||
814 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
815 | sp:subject | 739 | sp:subject |
816 | [ sp:varName "productionFacilityToDate"^^xsd:string | 740 | [ sp:varName "productionFacilityToDate"^^xsd:string |
817 | ] | 741 | ] |
818 | ]) ; | 742 | ]) ; |
819 | - sp:where ([ sp:object | 743 | + sp:where ([ sp:object spin:_this ; |
744 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
745 | + sp:subject | ||
746 | + [ sp:varName "productionReport"^^xsd:string | ||
747 | + ] | ||
748 | + ] [ sp:object | ||
820 | [ sp:varName "productVolumeRef"^^xsd:string | 749 | [ sp:varName "productVolumeRef"^^xsd:string |
821 | ] ; | 750 | ] ; |
822 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 751 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
... | @@ -827,105 +756,110 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -827,105 +756,110 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
827 | [ sp:varName "productVolumeRef"^^xsd:string | 756 | [ sp:varName "productVolumeRef"^^xsd:string |
828 | ] | 757 | ] |
829 | ] [ sp:object | 758 | ] [ sp:object |
830 | - [ sp:varName "dTimStart"^^xsd:string | 759 | + [ sp:varName "productVolumeRef"^^xsd:string |
831 | ] ; | 760 | ] ; |
832 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 761 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
833 | sp:subject | 762 | sp:subject |
834 | - [ sp:varName "productVolumeRef"^^xsd:string | 763 | + [ sp:varName "productVolumeReport"^^xsd:string |
835 | ] | 764 | ] |
836 | - ] [ sp:object | 765 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; |
837 | - [ sp:varName "dTimEnd"^^xsd:string | 766 | + sp:predicate rdf:type ; |
838 | - ] ; | ||
839 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
840 | sp:subject | 767 | sp:subject |
841 | - [ sp:varName "productVolumeRef"^^xsd:string | 768 | + [ sp:varName "productVolumeReport"^^xsd:string |
842 | ] | 769 | ] |
843 | ] [ sp:object | 770 | ] [ sp:object |
844 | [ sp:varName "productVolumeRef"^^xsd:string | 771 | [ sp:varName "productVolumeRef"^^xsd:string |
845 | ] ; | 772 | ] ; |
846 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 773 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
847 | sp:subject | 774 | sp:subject |
848 | - [ sp:varName "productionFlow"^^xsd:string | 775 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
849 | ] | 776 | ] |
850 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | 777 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
851 | sp:predicate rdf:type ; | 778 | sp:predicate rdf:type ; |
852 | sp:subject | 779 | sp:subject |
853 | - [ sp:varName "productionFlow"^^xsd:string | 780 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
854 | ] | 781 | ] |
855 | ] [ sp:object | 782 | ] [ sp:object |
856 | - [ sp:varName "productionFlowToDate"^^xsd:string | 783 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
857 | ] ; | 784 | ] ; |
858 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 785 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
859 | sp:subject | 786 | sp:subject |
860 | - [ sp:varName "productionFlow"^^xsd:string | 787 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
861 | ] | 788 | ] |
862 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | 789 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
863 | sp:predicate rdf:type ; | 790 | sp:predicate rdf:type ; |
864 | sp:subject | 791 | sp:subject |
865 | - [ sp:varName "productionFlowToDate"^^xsd:string | 792 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
866 | ] | 793 | ] |
794 | + ] [ rdf:type sp:NotExists ; | ||
795 | + sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ; | ||
796 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
797 | + sp:subject | ||
798 | + [ sp:varName "flowRef"^^xsd:string | ||
799 | + ] | ||
800 | + ]) | ||
801 | + ]) | ||
802 | + ] ; | ||
803 | + spin:rule | ||
804 | + [ rdf:type sp:Construct ; | ||
805 | + rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; | ||
806 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | ||
807 | + sp:predicate rdf:type ; | ||
808 | + sp:subject _:b6 | ||
867 | ] [ sp:object | 809 | ] [ sp:object |
868 | - [ sp:varName "productVolumeRef"^^xsd:string | 810 | + [ sp:varName "productionReport"^^xsd:string |
869 | ] ; | 811 | ] ; |
870 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 812 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; |
871 | - sp:subject | 813 | + sp:subject _:b6 |
872 | - [ sp:varName "productionInventory"^^xsd:string | ||
873 | - ] | ||
874 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
875 | - sp:predicate rdf:type ; | ||
876 | - sp:subject | ||
877 | - [ sp:varName "productionInventory"^^xsd:string | ||
878 | - ] | ||
879 | ] [ sp:object | 814 | ] [ sp:object |
880 | - [ sp:varName "productionInventoryToDate"^^xsd:string | 815 | + [ sp:varName "name"^^xsd:string |
816 | + ] ; | ||
817 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
818 | + sp:subject _:b6 | ||
819 | + ] [ sp:object | ||
820 | + [ sp:varName "reportPeriodType"^^xsd:string | ||
881 | ] ; | 821 | ] ; |
882 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
883 | - sp:subject | ||
884 | - [ sp:varName "productionInventory"^^xsd:string | ||
885 | - ] | ||
886 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | ||
887 | sp:predicate rdf:type ; | 822 | sp:predicate rdf:type ; |
888 | - sp:subject | 823 | + sp:subject _:b6 |
889 | - [ sp:varName "productionInventoryToDate"^^xsd:string | ||
890 | - ] | ||
891 | ] [ sp:object | 824 | ] [ sp:object |
892 | [ sp:varName "productVolumeRef"^^xsd:string | 825 | [ sp:varName "productVolumeRef"^^xsd:string |
893 | ] ; | 826 | ] ; |
894 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 827 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; |
895 | - sp:subject | 828 | + sp:subject _:b6 |
896 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
897 | - ] | ||
898 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 829 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
899 | sp:predicate rdf:type ; | 830 | sp:predicate rdf:type ; |
900 | - sp:subject | 831 | + sp:subject _:b7 |
901 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
902 | - ] | ||
903 | ] [ sp:object | 832 | ] [ sp:object |
904 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 833 | + [ sp:varName "productVolumeRef"^^xsd:string |
905 | ] ; | 834 | ] ; |
835 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
836 | + sp:subject _:b7 | ||
837 | + ] [ sp:object _:b8 ; | ||
906 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 838 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
907 | - sp:subject | 839 | + sp:subject _:b7 |
908 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
909 | - ] | ||
910 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 840 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
911 | sp:predicate rdf:type ; | 841 | sp:predicate rdf:type ; |
912 | - sp:subject | 842 | + sp:subject _:b8 |
913 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 843 | + ] [ sp:object |
914 | - ] | 844 | + [] ; |
915 | - ]) | 845 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
916 | - ] ; | 846 | + sp:subject _:b7 |
917 | - spin:rule | 847 | + ] [ sp:object |
918 | - [ rdf:type sp:Construct ; | 848 | + [] ; |
919 | - rdfs:comment "STEP 20050 Set the context facility - installation is always specified"^^xsd:string ; | 849 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
920 | - sp:templates ([ sp:object | 850 | + sp:subject _:b8 |
921 | - [ sp:varName "contextFacility"^^xsd:string | 851 | + ] [ sp:object |
852 | + [ sp:varName "title"^^xsd:string | ||
922 | ] ; | 853 | ] ; |
923 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | 854 | + sp:predicate <http://purl.org/dc/elements/1.1/title> ; |
855 | + sp:subject _:b6 | ||
856 | + ]) ; | ||
857 | + sp:where ([ sp:object spin:_this ; | ||
858 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
924 | sp:subject | 859 | sp:subject |
925 | - [ sp:varName "productionFacility"^^xsd:string | 860 | + [ sp:varName "productionReport"^^xsd:string |
926 | ] | 861 | ] |
927 | - ]) ; | 862 | + ] [ sp:object |
928 | - sp:where ([ sp:object | ||
929 | [ sp:varName "productVolumeRef"^^xsd:string | 863 | [ sp:varName "productVolumeRef"^^xsd:string |
930 | ] ; | 864 | ] ; |
931 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 865 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
... | @@ -936,37 +870,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -936,37 +870,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
936 | [ sp:varName "productVolumeRef"^^xsd:string | 870 | [ sp:varName "productVolumeRef"^^xsd:string |
937 | ] | 871 | ] |
938 | ] [ sp:object | 872 | ] [ sp:object |
939 | - [ sp:varName "installationRef"^^xsd:string | 873 | + [ sp:varName "nameRef"^^xsd:string |
940 | ] ; | 874 | ] ; |
941 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 875 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
942 | sp:subject | 876 | sp:subject |
943 | [ sp:varName "productVolumeRef"^^xsd:string | 877 | [ sp:varName "productVolumeRef"^^xsd:string |
944 | ] | 878 | ] |
945 | ] [ sp:object | 879 | ] [ sp:object |
946 | - [ sp:varName "installationRef"^^xsd:string | 880 | + [ sp:varName "name"^^xsd:string |
947 | - ] ; | ||
948 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | ||
949 | - sp:subject | ||
950 | - [ sp:varName "productionFacility"^^xsd:string | ||
951 | - ] | ||
952 | - ] [ sp:object | ||
953 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
954 | ] ; | 881 | ] ; |
955 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 882 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
956 | sp:subject | 883 | sp:subject |
957 | - [ sp:varName "productVolumeRef"^^xsd:string | 884 | + [ sp:varName "nameRef"^^xsd:string |
958 | ] | 885 | ] |
959 | - ] [ sp:object | 886 | + ] [ rdf:type sp:Optional ; |
960 | - [ sp:varName "contextFacilityRef"^^xsd:string | 887 | + sp:elements ([ sp:object |
888 | + [ sp:varName "periodKindRef"^^xsd:string | ||
889 | + ] ; | ||
890 | + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; | ||
891 | + sp:subject | ||
892 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
893 | + ] | ||
894 | + ]) | ||
895 | + ] [ rdf:type sp:Optional ; | ||
896 | + sp:elements ([ sp:object | ||
897 | + [ sp:varName "titleRef"^^xsd:string | ||
898 | + ] ; | ||
899 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
900 | + sp:subject | ||
901 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
902 | + ] | ||
903 | + ] [ sp:object | ||
904 | + [ sp:varName "title"^^xsd:string | ||
905 | + ] ; | ||
906 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
907 | + sp:subject | ||
908 | + [ sp:varName "titleRef"^^xsd:string | ||
909 | + ] | ||
910 | + ]) | ||
911 | + ] [ rdf:type sp:Bind ; | ||
912 | + sp:expression | ||
913 | + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; | ||
914 | + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
915 | + ] | ||
961 | ] ; | 916 | ] ; |
962 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#derivedFrom> ; | 917 | + sp:variable |
963 | - sp:subject | 918 | + [ sp:varName "reportPeriodType"^^xsd:string |
964 | - [ sp:varName "contextFacility"^^xsd:string | ||
965 | ] | 919 | ] |
966 | ]) | 920 | ]) |
967 | ] . | 921 | ] . |
968 | 922 | ||
969 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> | 923 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> |
970 | rdf:type owl:Ontology ; | 924 | rdf:type owl:Ontology ; |
971 | - owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ; | 925 | + owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; |
972 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 926 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment