Showing
2 changed files
with
207 additions
and
207 deletions
This diff could not be displayed because it is too large.
... | @@ -21,152 +21,112 @@ | ... | @@ -21,152 +21,112 @@ |
21 | 21 | ||
22 | <http://www.reportinghub.no/ep/transform/1.0/dpr/dailyProductionActivity> | 22 | <http://www.reportinghub.no/ep/transform/1.0/dpr/dailyProductionActivity> |
23 | rdf:type owl:Ontology ; | 23 | rdf:type owl:Ontology ; |
24 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://spinrdf.org/spin> ; | 24 | + owl:imports <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-well> ; |
25 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 25 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
26 | 26 | ||
27 | <http://www.witsml.org/schemas/131/addendum/combo#A_Global-WITSMLComposite> | 27 | <http://www.witsml.org/schemas/131/addendum/combo#A_Global-WITSMLComposite> |
28 | spin:rule | 28 | spin:rule |
29 | [ rdf:type sp:Construct ; | 29 | [ rdf:type sp:Construct ; |
30 | - rdfs:comment "STEP 10003 Set the overall daily activity installation and its operator"^^xsd:string ; | 30 | + rdfs:comment "STEP 10001 Create the DailyProductionReport"^^xsd:string ; |
31 | - sp:templates ([ sp:object _:b1 ; | 31 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> ; |
32 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#productionOperator> ; | 32 | + sp:predicate rdf:type ; |
33 | sp:subject | 33 | sp:subject |
34 | - [ sp:varName "dailyProductionActivity"^^xsd:string | 34 | + [ sp:varName "dailyProductionReport"^^xsd:string |
35 | ] | 35 | ] |
36 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Company> ; | ||
37 | - sp:predicate rdf:type ; | ||
38 | - sp:subject _:b1 | ||
39 | - ] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
40 | - sp:predicate rdf:type ; | ||
41 | - sp:subject _:b1 | ||
42 | ] [ sp:object | 36 | ] [ sp:object |
43 | - [ sp:varName "operatorName"^^xsd:string | 37 | + [ sp:varName "docName"^^xsd:string |
44 | ] ; | 38 | ] ; |
45 | sp:predicate rdfs:label ; | 39 | sp:predicate rdfs:label ; |
46 | - sp:subject _:b1 | ||
47 | - ] [ sp:object _:b2 ; | ||
48 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ; | ||
49 | sp:subject | 40 | sp:subject |
50 | - [ sp:varName "dailyProductionActivity"^^xsd:string | 41 | + [ sp:varName "dailyProductionReport"^^xsd:string |
51 | ] | 42 | ] |
52 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
53 | - sp:predicate rdf:type ; | ||
54 | - sp:subject _:b2 | ||
55 | ] [ sp:object | 43 | ] [ sp:object |
56 | - [ sp:varName "productionInstallation"^^xsd:string | 44 | + [ sp:varName "docDate"^^xsd:string |
57 | ] ; | 45 | ] ; |
58 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 46 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-report#dateCoveredByReport> ; |
59 | - sp:subject _:b2 | ||
60 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
61 | - sp:predicate rdf:type ; | ||
62 | sp:subject | 47 | sp:subject |
63 | - [ sp:varName "productionInstallation"^^xsd:string | 48 | + [ sp:varName "dailyProductionReport"^^xsd:string |
64 | ] | 49 | ] |
65 | ] [ sp:object | 50 | ] [ sp:object |
66 | - [ sp:varName "productionInstallationType"^^xsd:string | 51 | + [ sp:varName "fileCreationDate"^^xsd:string |
67 | ] ; | 52 | ] ; |
68 | - sp:predicate rdf:type ; | 53 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; |
69 | sp:subject | 54 | sp:subject |
70 | - [ sp:varName "productionInstallation"^^xsd:string | 55 | + [ sp:varName "dailyProductionReport"^^xsd:string |
71 | ] | 56 | ] |
72 | - ]) ; | 57 | + ] [ sp:object spin:_this ; |
73 | - sp:where ([ sp:object spin:_this ; | ||
74 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 58 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
75 | sp:subject | 59 | sp:subject |
76 | [ sp:varName "dailyProductionReport"^^xsd:string | 60 | [ sp:varName "dailyProductionReport"^^xsd:string |
77 | ] | 61 | ] |
62 | + ]) ; | ||
63 | + sp:where ([ sp:object | ||
64 | + [ sp:varName "documentInfoRef"^^xsd:string | ||
65 | + ] ; | ||
66 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#documentInfoRef> ; | ||
67 | + sp:subject spin:_this | ||
78 | ] [ sp:object | 68 | ] [ sp:object |
79 | - [ sp:varName "dailyProductionActivity"^^xsd:string | 69 | + [ sp:varName "documentNameRef"^^xsd:string |
80 | ] ; | 70 | ] ; |
81 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 71 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#documentNameRef> ; |
82 | sp:subject | 72 | sp:subject |
83 | - [ sp:varName "dailyProductionReport"^^xsd:string | 73 | + [ sp:varName "documentInfoRef"^^xsd:string |
84 | ] | 74 | ] |
85 | ] [ sp:object | 75 | ] [ sp:object |
86 | - [ sp:varName "productionOperationSetRef"^^xsd:string | 76 | + [ sp:varName "documentName"^^xsd:string |
87 | ] ; | 77 | ] ; |
88 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationSetRef> ; | 78 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
89 | - sp:subject spin:_this | 79 | + sp:subject |
80 | + [ sp:varName "documentNameRef"^^xsd:string | ||
81 | + ] | ||
90 | ] [ sp:object | 82 | ] [ sp:object |
91 | - [ sp:varName "productionOperationRef"^^xsd:string | 83 | + [ sp:varName "documentDate"^^xsd:string |
92 | ] ; | 84 | ] ; |
93 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationRef> ; | 85 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#documentDate> ; |
94 | sp:subject | 86 | sp:subject |
95 | - [ sp:varName "productionOperationSetRef"^^xsd:string | 87 | + [ sp:varName "documentInfoRef"^^xsd:string |
96 | ] | 88 | ] |
97 | ] [ rdf:type sp:Optional ; | 89 | ] [ rdf:type sp:Optional ; |
98 | sp:elements ([ sp:object | 90 | sp:elements ([ sp:object |
99 | - [ sp:varName "installationRef"^^xsd:string | 91 | + [ sp:varName "fileCreationInformationRef"^^xsd:string |
100 | - ] ; | ||
101 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#installationRef> ; | ||
102 | - sp:subject | ||
103 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
104 | - ] | ||
105 | - ] [ sp:object | ||
106 | - [ sp:varName "installationName"^^xsd:string | ||
107 | - ] ; | ||
108 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
109 | - sp:subject | ||
110 | - [ sp:varName "installationRef"^^xsd:string | ||
111 | - ] | ||
112 | - ] [ rdf:type sp:Optional ; | ||
113 | - sp:elements ([ sp:object | ||
114 | - [ sp:varName "installationKind"^^xsd:string | ||
115 | - ] ; | ||
116 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
117 | - sp:subject | ||
118 | - [ sp:varName "installationRef"^^xsd:string | ||
119 | - ] | ||
120 | - ]) | ||
121 | - ]) | ||
122 | - ] [ rdf:type sp:Optional ; | ||
123 | - sp:elements ([ sp:object | ||
124 | - [ sp:varName "operator"^^xsd:string | ||
125 | ] ; | 92 | ] ; |
126 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#operatorRef> ; | 93 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fileCreationInformationRef> ; |
127 | sp:subject | 94 | sp:subject |
128 | - [ sp:varName "productionOperationRef"^^xsd:string | 95 | + [ sp:varName "documentInfoRe"^^xsd:string |
129 | ] | 96 | ] |
130 | ] [ sp:object | 97 | ] [ sp:object |
131 | - [ sp:varName "operatorName"^^xsd:string | 98 | + [ sp:varName "fileCreationDate"^^xsd:string |
132 | ] ; | 99 | ] ; |
133 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | 100 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fileCreationDate> ; |
134 | sp:subject | 101 | sp:subject |
135 | - [ sp:varName "operator"^^xsd:string | 102 | + [ sp:varName "fileCreationInformationRef"^^xsd:string |
136 | ] | 103 | ] |
137 | ]) | 104 | ]) |
138 | ] [ rdf:type sp:Bind ; | 105 | ] [ rdf:type sp:Bind ; |
139 | sp:expression | 106 | sp:expression |
140 | [ rdf:type ep-spin-lib:normalizeString ; | 107 | [ rdf:type ep-spin-lib:normalizeString ; |
141 | - sp:arg1 [ sp:varName "installationName"^^xsd:string | 108 | + sp:arg1 [ sp:varName "documentName"^^xsd:string |
142 | - ] | ||
143 | - ] ; | ||
144 | - sp:variable | ||
145 | - [ sp:varName "normalizedInstallationName"^^xsd:string | ||
146 | - ] | ||
147 | - ] [ rdf:type sp:Bind ; | ||
148 | - sp:expression | ||
149 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
150 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
151 | ] | 109 | ] |
152 | ] ; | 110 | ] ; |
153 | sp:variable | 111 | sp:variable |
154 | - [ sp:varName "productionInstallation"^^xsd:string | 112 | + [ sp:varName "normalizedDocumentName"^^xsd:string |
155 | ] | 113 | ] |
156 | ] [ rdf:type sp:Bind ; | 114 | ] [ rdf:type sp:Bind ; |
157 | sp:expression | 115 | sp:expression |
158 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | 116 | + [ rdf:type ep-dpr-spin-lib:buildDailyProductionReportURI ; |
159 | - sp:arg1 [ sp:varName "installationKind"^^xsd:string | 117 | + sp:arg1 [ sp:varName "normalizedDocumentName"^^xsd:string |
118 | + ] ; | ||
119 | + sp:arg2 [ sp:varName "documentDate"^^xsd:string | ||
160 | ] | 120 | ] |
161 | ] ; | 121 | ] ; |
162 | sp:variable | 122 | sp:variable |
163 | - [ sp:varName "productionInstallationType"^^xsd:string | 123 | + [ sp:varName "dailyProductionReport"^^xsd:string |
164 | ] | 124 | ] |
165 | ]) | 125 | ]) |
166 | ] ; | 126 | ] ; |
167 | spin:rule | 127 | spin:rule |
168 | [ rdf:type sp:Construct ; | 128 | [ rdf:type sp:Construct ; |
169 | - rdfs:comment """STEP 10002b Create the DailyProductionActivity - start and end dates | 129 | + rdfs:comment """STEP 10002a Create the DailyProductionActivity - start and end date-times |
170 | The DPR transform will fall in a heap unless productionOperation/installationRef is supplied. The XML schema says it is optional."""^^xsd:string ; | 130 | The DPR transform will fall in a heap unless productionOperation/installationRef is supplied. The XML schema says it is optional."""^^xsd:string ; |
171 | sp:templates ([ sp:object | 131 | sp:templates ([ sp:object |
172 | [ sp:varName "dailyProductionActivity"^^xsd:string | 132 | [ sp:varName "dailyProductionActivity"^^xsd:string |
... | @@ -181,14 +141,14 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -181,14 +141,14 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
181 | [ sp:varName "dailyProductionActivity"^^xsd:string | 141 | [ sp:varName "dailyProductionActivity"^^xsd:string |
182 | ] | 142 | ] |
183 | ] [ sp:object | 143 | ] [ sp:object |
184 | - [ sp:varName "startDate"^^xsd:string | 144 | + [ sp:varName "startDateTime"^^xsd:string |
185 | ] ; | 145 | ] ; |
186 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 146 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
187 | sp:subject | 147 | sp:subject |
188 | [ sp:varName "dailyProductionActivity"^^xsd:string | 148 | [ sp:varName "dailyProductionActivity"^^xsd:string |
189 | ] | 149 | ] |
190 | ] [ sp:object | 150 | ] [ sp:object |
191 | - [ sp:varName "endDate"^^xsd:string | 151 | + [ sp:varName "endDateTime"^^xsd:string |
192 | ] ; | 152 | ] ; |
193 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 153 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
194 | sp:subject | 154 | sp:subject |
... | @@ -200,7 +160,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -200,7 +160,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
200 | [ sp:varName "annualProductionActivityToDate"^^xsd:string | 160 | [ sp:varName "annualProductionActivityToDate"^^xsd:string |
201 | ] | 161 | ] |
202 | ] [ sp:object | 162 | ] [ sp:object |
203 | - [ sp:varName "endDate"^^xsd:string | 163 | + [ sp:varName "endDateTime"^^xsd:string |
204 | ] ; | 164 | ] ; |
205 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 165 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
206 | sp:subject | 166 | sp:subject |
... | @@ -219,7 +179,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -219,7 +179,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
219 | [ sp:varName "dailyProductionActivity"^^xsd:string | 179 | [ sp:varName "dailyProductionActivity"^^xsd:string |
220 | ] | 180 | ] |
221 | ] [ sp:object | 181 | ] [ sp:object |
222 | - [ sp:varName "endDate"^^xsd:string | 182 | + [ sp:varName "endDateTime"^^xsd:string |
223 | ] ; | 183 | ] ; |
224 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 184 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
225 | sp:subject | 185 | sp:subject |
... | @@ -272,16 +232,16 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -272,16 +232,16 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
272 | [ sp:varName "installationRef"^^xsd:string | 232 | [ sp:varName "installationRef"^^xsd:string |
273 | ] | 233 | ] |
274 | ] [ sp:object | 234 | ] [ sp:object |
275 | - [ sp:varName "startDate"^^xsd:string | 235 | + [ sp:varName "startDateTime"^^xsd:string |
276 | ] ; | 236 | ] ; |
277 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ; | 237 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ; |
278 | sp:subject | 238 | sp:subject |
279 | [ sp:varName "productionOperationRef"^^xsd:string | 239 | [ sp:varName "productionOperationRef"^^xsd:string |
280 | ] | 240 | ] |
281 | ] [ sp:object | 241 | ] [ sp:object |
282 | - [ sp:varName "endDate"^^xsd:string | 242 | + [ sp:varName "endDateTime"^^xsd:string |
283 | ] ; | 243 | ] ; |
284 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateEnd> ; | 244 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ; |
285 | sp:subject | 245 | sp:subject |
286 | [ sp:varName "productionOperationRef"^^xsd:string | 246 | [ sp:varName "productionOperationRef"^^xsd:string |
287 | ] | 247 | ] |
... | @@ -301,7 +261,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -301,7 +261,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
301 | ] ; | 261 | ] ; |
302 | sp:arg2 [ sp:varName "startDateTime"^^xsd:string | 262 | sp:arg2 [ sp:varName "startDateTime"^^xsd:string |
303 | ] ; | 263 | ] ; |
304 | - sp:arg3 [ sp:varName "endDate"^^xsd:string | 264 | + sp:arg3 [ sp:varName "endDateTime"^^xsd:string |
305 | ] | 265 | ] |
306 | ] ; | 266 | ] ; |
307 | sp:variable | 267 | sp:variable |
... | @@ -312,7 +272,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -312,7 +272,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
312 | [ rdf:type ep-dpr-spin-lib:buildAnnualProductionActivityToEndOfPeriodURI ; | 272 | [ rdf:type ep-dpr-spin-lib:buildAnnualProductionActivityToEndOfPeriodURI ; |
313 | sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | 273 | sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string |
314 | ] ; | 274 | ] ; |
315 | - sp:arg2 [ sp:varName "endDate"^^xsd:string | 275 | + sp:arg2 [ sp:varName "endDateTime"^^xsd:string |
316 | ] | 276 | ] |
317 | ] ; | 277 | ] ; |
318 | sp:variable | 278 | sp:variable |
... | @@ -323,7 +283,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -323,7 +283,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
323 | [ rdf:type ep-dpr-spin-lib:buildProductionActivityToDateURI ; | 283 | [ rdf:type ep-dpr-spin-lib:buildProductionActivityToDateURI ; |
324 | sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | 284 | sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string |
325 | ] ; | 285 | ] ; |
326 | - sp:arg2 [ sp:varName "endDate"^^xsd:string | 286 | + sp:arg2 [ sp:varName "endDateTime"^^xsd:string |
327 | ] | 287 | ] |
328 | ] ; | 288 | ] ; |
329 | sp:variable | 289 | sp:variable |
... | @@ -333,106 +293,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -333,106 +293,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
333 | ] ; | 293 | ] ; |
334 | spin:rule | 294 | spin:rule |
335 | [ rdf:type sp:Construct ; | 295 | [ rdf:type sp:Construct ; |
336 | - rdfs:comment "STEP 10001 Create the DailyProductionReport"^^xsd:string ; | 296 | + rdfs:comment """STEP 10002b Create the DailyProductionActivity - start and end dates |
337 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> ; | ||
338 | - sp:predicate rdf:type ; | ||
339 | - sp:subject | ||
340 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
341 | - ] | ||
342 | - ] [ sp:object | ||
343 | - [ sp:varName "docName"^^xsd:string | ||
344 | - ] ; | ||
345 | - sp:predicate rdfs:label ; | ||
346 | - sp:subject | ||
347 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
348 | - ] | ||
349 | - ] [ sp:object | ||
350 | - [ sp:varName "docDate"^^xsd:string | ||
351 | - ] ; | ||
352 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-report#dateCoveredByReport> ; | ||
353 | - sp:subject | ||
354 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
355 | - ] | ||
356 | - ] [ sp:object | ||
357 | - [ sp:varName "fileCreationDate"^^xsd:string | ||
358 | - ] ; | ||
359 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; | ||
360 | - sp:subject | ||
361 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
362 | - ] | ||
363 | - ] [ sp:object spin:_this ; | ||
364 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
365 | - sp:subject | ||
366 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
367 | - ] | ||
368 | - ]) ; | ||
369 | - sp:where ([ sp:object | ||
370 | - [ sp:varName "documentInfoRef"^^xsd:string | ||
371 | - ] ; | ||
372 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#documentInfoRef> ; | ||
373 | - sp:subject spin:_this | ||
374 | - ] [ sp:object | ||
375 | - [ sp:varName "documentNameRef"^^xsd:string | ||
376 | - ] ; | ||
377 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#documentNameRef> ; | ||
378 | - sp:subject | ||
379 | - [ sp:varName "documentInfoRef"^^xsd:string | ||
380 | - ] | ||
381 | - ] [ sp:object | ||
382 | - [ sp:varName "documentName"^^xsd:string | ||
383 | - ] ; | ||
384 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
385 | - sp:subject | ||
386 | - [ sp:varName "documentNameRef"^^xsd:string | ||
387 | - ] | ||
388 | - ] [ sp:object | ||
389 | - [ sp:varName "documentDate"^^xsd:string | ||
390 | - ] ; | ||
391 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#documentDate> ; | ||
392 | - sp:subject | ||
393 | - [ sp:varName "documentInfoRef"^^xsd:string | ||
394 | - ] | ||
395 | - ] [ rdf:type sp:Optional ; | ||
396 | - sp:elements ([ sp:object | ||
397 | - [ sp:varName "fileCreationInformationRef"^^xsd:string | ||
398 | - ] ; | ||
399 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fileCreationInformationRef> ; | ||
400 | - sp:subject | ||
401 | - [ sp:varName "documentInfoRe"^^xsd:string | ||
402 | - ] | ||
403 | - ] [ sp:object | ||
404 | - [ sp:varName "fileCreationDate"^^xsd:string | ||
405 | - ] ; | ||
406 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fileCreationDate> ; | ||
407 | - sp:subject | ||
408 | - [ sp:varName "fileCreationInformationRef"^^xsd:string | ||
409 | - ] | ||
410 | - ]) | ||
411 | - ] [ rdf:type sp:Bind ; | ||
412 | - sp:expression | ||
413 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
414 | - sp:arg1 [ sp:varName "documentName"^^xsd:string | ||
415 | - ] | ||
416 | - ] ; | ||
417 | - sp:variable | ||
418 | - [ sp:varName "normalizedDocumentName"^^xsd:string | ||
419 | - ] | ||
420 | - ] [ rdf:type sp:Bind ; | ||
421 | - sp:expression | ||
422 | - [ rdf:type ep-spin-lib:buildDailyProductionReportURI ; | ||
423 | - sp:arg1 [ sp:varName "normalizedDocumentName"^^xsd:string | ||
424 | - ] ; | ||
425 | - sp:arg2 [ sp:varName "documentDate"^^xsd:string | ||
426 | - ] | ||
427 | - ] ; | ||
428 | - sp:variable | ||
429 | - [ sp:varName "dailyProductionReport"^^xsd:string | ||
430 | - ] | ||
431 | - ]) | ||
432 | - ] ; | ||
433 | - spin:rule | ||
434 | - [ rdf:type sp:Construct ; | ||
435 | - rdfs:comment """STEP 10002a Create the DailyProductionActivity - start and end date-times | ||
436 | The DPR transform will fall in a heap unless productionOperation/installationRef is supplied. The XML schema says it is optional."""^^xsd:string ; | 297 | The DPR transform will fall in a heap unless productionOperation/installationRef is supplied. The XML schema says it is optional."""^^xsd:string ; |
437 | sp:templates ([ sp:object | 298 | sp:templates ([ sp:object |
438 | [ sp:varName "dailyProductionActivity"^^xsd:string | 299 | [ sp:varName "dailyProductionActivity"^^xsd:string |
... | @@ -447,14 +308,14 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -447,14 +308,14 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
447 | [ sp:varName "dailyProductionActivity"^^xsd:string | 308 | [ sp:varName "dailyProductionActivity"^^xsd:string |
448 | ] | 309 | ] |
449 | ] [ sp:object | 310 | ] [ sp:object |
450 | - [ sp:varName "startDateTime"^^xsd:string | 311 | + [ sp:varName "startDate"^^xsd:string |
451 | ] ; | 312 | ] ; |
452 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 313 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
453 | sp:subject | 314 | sp:subject |
454 | [ sp:varName "dailyProductionActivity"^^xsd:string | 315 | [ sp:varName "dailyProductionActivity"^^xsd:string |
455 | ] | 316 | ] |
456 | ] [ sp:object | 317 | ] [ sp:object |
457 | - [ sp:varName "endDateTime"^^xsd:string | 318 | + [ sp:varName "endDate"^^xsd:string |
458 | ] ; | 319 | ] ; |
459 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 320 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
460 | sp:subject | 321 | sp:subject |
... | @@ -466,7 +327,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -466,7 +327,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
466 | [ sp:varName "annualProductionActivityToDate"^^xsd:string | 327 | [ sp:varName "annualProductionActivityToDate"^^xsd:string |
467 | ] | 328 | ] |
468 | ] [ sp:object | 329 | ] [ sp:object |
469 | - [ sp:varName "endDateTime"^^xsd:string | 330 | + [ sp:varName "endDate"^^xsd:string |
470 | ] ; | 331 | ] ; |
471 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 332 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
472 | sp:subject | 333 | sp:subject |
... | @@ -485,7 +346,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -485,7 +346,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
485 | [ sp:varName "dailyProductionActivity"^^xsd:string | 346 | [ sp:varName "dailyProductionActivity"^^xsd:string |
486 | ] | 347 | ] |
487 | ] [ sp:object | 348 | ] [ sp:object |
488 | - [ sp:varName "endDateTime"^^xsd:string | 349 | + [ sp:varName "endDate"^^xsd:string |
489 | ] ; | 350 | ] ; |
490 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 351 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
491 | sp:subject | 352 | sp:subject |
... | @@ -538,16 +399,16 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -538,16 +399,16 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
538 | [ sp:varName "installationRef"^^xsd:string | 399 | [ sp:varName "installationRef"^^xsd:string |
539 | ] | 400 | ] |
540 | ] [ sp:object | 401 | ] [ sp:object |
541 | - [ sp:varName "startDateTime"^^xsd:string | 402 | + [ sp:varName "startDate"^^xsd:string |
542 | ] ; | 403 | ] ; |
543 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ; | 404 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ; |
544 | sp:subject | 405 | sp:subject |
545 | [ sp:varName "productionOperationRef"^^xsd:string | 406 | [ sp:varName "productionOperationRef"^^xsd:string |
546 | ] | 407 | ] |
547 | ] [ sp:object | 408 | ] [ sp:object |
548 | - [ sp:varName "endDateTime"^^xsd:string | 409 | + [ sp:varName "endDate"^^xsd:string |
549 | ] ; | 410 | ] ; |
550 | - sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ; | 411 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateEnd> ; |
551 | sp:subject | 412 | sp:subject |
552 | [ sp:varName "productionOperationRef"^^xsd:string | 413 | [ sp:varName "productionOperationRef"^^xsd:string |
553 | ] | 414 | ] |
... | @@ -567,7 +428,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -567,7 +428,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
567 | ] ; | 428 | ] ; |
568 | sp:arg2 [ sp:varName "startDateTime"^^xsd:string | 429 | sp:arg2 [ sp:varName "startDateTime"^^xsd:string |
569 | ] ; | 430 | ] ; |
570 | - sp:arg3 [ sp:varName "endDateTime"^^xsd:string | 431 | + sp:arg3 [ sp:varName "endDate"^^xsd:string |
571 | ] | 432 | ] |
572 | ] ; | 433 | ] ; |
573 | sp:variable | 434 | sp:variable |
... | @@ -578,7 +439,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -578,7 +439,7 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
578 | [ rdf:type ep-dpr-spin-lib:buildAnnualProductionActivityToEndOfPeriodURI ; | 439 | [ rdf:type ep-dpr-spin-lib:buildAnnualProductionActivityToEndOfPeriodURI ; |
579 | sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | 440 | sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string |
580 | ] ; | 441 | ] ; |
581 | - sp:arg2 [ sp:varName "endDateTime"^^xsd:string | 442 | + sp:arg2 [ sp:varName "endDate"^^xsd:string |
582 | ] | 443 | ] |
583 | ] ; | 444 | ] ; |
584 | sp:variable | 445 | sp:variable |
... | @@ -589,11 +450,150 @@ The DPR transform will fall in a heap unless productionOperation/installationRef | ... | @@ -589,11 +450,150 @@ The DPR transform will fall in a heap unless productionOperation/installationRef |
589 | [ rdf:type ep-dpr-spin-lib:buildProductionActivityToDateURI ; | 450 | [ rdf:type ep-dpr-spin-lib:buildProductionActivityToDateURI ; |
590 | sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | 451 | sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string |
591 | ] ; | 452 | ] ; |
592 | - sp:arg2 [ sp:varName "endDateTime"^^xsd:string | 453 | + sp:arg2 [ sp:varName "endDate"^^xsd:string |
593 | ] | 454 | ] |
594 | ] ; | 455 | ] ; |
595 | sp:variable | 456 | sp:variable |
596 | [ sp:varName "productionActivityToDate"^^xsd:string | 457 | [ sp:varName "productionActivityToDate"^^xsd:string |
597 | ] | 458 | ] |
598 | ]) | 459 | ]) |
460 | + ] ; | ||
461 | + spin:rule | ||
462 | + [ rdf:type sp:Construct ; | ||
463 | + rdfs:comment "STEP 10003 Set the overall daily activity installation and its operator"^^xsd:string ; | ||
464 | + sp:templates ([ sp:object _:b1 ; | ||
465 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#productionOperator> ; | ||
466 | + sp:subject | ||
467 | + [ sp:varName "dailyProductionActivity"^^xsd:string | ||
468 | + ] | ||
469 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Company> ; | ||
470 | + sp:predicate rdf:type ; | ||
471 | + sp:subject _:b1 | ||
472 | + ] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
473 | + sp:predicate rdf:type ; | ||
474 | + sp:subject _:b1 | ||
475 | + ] [ sp:object | ||
476 | + [ sp:varName "operatorName"^^xsd:string | ||
477 | + ] ; | ||
478 | + sp:predicate rdfs:label ; | ||
479 | + sp:subject _:b1 | ||
480 | + ] [ sp:object _:b2 ; | ||
481 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ; | ||
482 | + sp:subject | ||
483 | + [ sp:varName "dailyProductionActivity"^^xsd:string | ||
484 | + ] | ||
485 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
486 | + sp:predicate rdf:type ; | ||
487 | + sp:subject _:b2 | ||
488 | + ] [ sp:object | ||
489 | + [ sp:varName "productionInstallation"^^xsd:string | ||
490 | + ] ; | ||
491 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
492 | + sp:subject _:b2 | ||
493 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
494 | + sp:predicate rdf:type ; | ||
495 | + sp:subject | ||
496 | + [ sp:varName "productionInstallation"^^xsd:string | ||
497 | + ] | ||
498 | + ] [ sp:object | ||
499 | + [ sp:varName "productionInstallationType"^^xsd:string | ||
500 | + ] ; | ||
501 | + sp:predicate rdf:type ; | ||
502 | + sp:subject | ||
503 | + [ sp:varName "productionInstallation"^^xsd:string | ||
504 | + ] | ||
505 | + ]) ; | ||
506 | + sp:where ([ sp:object spin:_this ; | ||
507 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
508 | + sp:subject | ||
509 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
510 | + ] | ||
511 | + ] [ sp:object | ||
512 | + [ sp:varName "dailyProductionActivity"^^xsd:string | ||
513 | + ] ; | ||
514 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
515 | + sp:subject | ||
516 | + [ sp:varName "dailyProductionReport"^^xsd:string | ||
517 | + ] | ||
518 | + ] [ sp:object | ||
519 | + [ sp:varName "productionOperationSetRef"^^xsd:string | ||
520 | + ] ; | ||
521 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationSetRef> ; | ||
522 | + sp:subject spin:_this | ||
523 | + ] [ sp:object | ||
524 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
525 | + ] ; | ||
526 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationRef> ; | ||
527 | + sp:subject | ||
528 | + [ sp:varName "productionOperationSetRef"^^xsd:string | ||
529 | + ] | ||
530 | + ] [ rdf:type sp:Optional ; | ||
531 | + sp:elements ([ sp:object | ||
532 | + [ sp:varName "installationRef"^^xsd:string | ||
533 | + ] ; | ||
534 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#installationRef> ; | ||
535 | + sp:subject | ||
536 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
537 | + ] | ||
538 | + ] [ sp:object | ||
539 | + [ sp:varName "installationName"^^xsd:string | ||
540 | + ] ; | ||
541 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
542 | + sp:subject | ||
543 | + [ sp:varName "installationRef"^^xsd:string | ||
544 | + ] | ||
545 | + ] [ rdf:type sp:Optional ; | ||
546 | + sp:elements ([ sp:object | ||
547 | + [ sp:varName "installationKind"^^xsd:string | ||
548 | + ] ; | ||
549 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ; | ||
550 | + sp:subject | ||
551 | + [ sp:varName "installationRef"^^xsd:string | ||
552 | + ] | ||
553 | + ]) | ||
554 | + ]) | ||
555 | + ] [ rdf:type sp:Optional ; | ||
556 | + sp:elements ([ sp:object | ||
557 | + [ sp:varName "operator"^^xsd:string | ||
558 | + ] ; | ||
559 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#operatorRef> ; | ||
560 | + sp:subject | ||
561 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
562 | + ] | ||
563 | + ] [ sp:object | ||
564 | + [ sp:varName "operatorName"^^xsd:string | ||
565 | + ] ; | ||
566 | + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ; | ||
567 | + sp:subject | ||
568 | + [ sp:varName "operator"^^xsd:string | ||
569 | + ] | ||
570 | + ]) | ||
571 | + ] [ rdf:type sp:Bind ; | ||
572 | + sp:expression | ||
573 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
574 | + sp:arg1 [ sp:varName "installationName"^^xsd:string | ||
575 | + ] | ||
576 | + ] ; | ||
577 | + sp:variable | ||
578 | + [ sp:varName "normalizedInstallationName"^^xsd:string | ||
579 | + ] | ||
580 | + ] [ rdf:type sp:Bind ; | ||
581 | + sp:expression | ||
582 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
583 | + sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
584 | + ] | ||
585 | + ] ; | ||
586 | + sp:variable | ||
587 | + [ sp:varName "productionInstallation"^^xsd:string | ||
588 | + ] | ||
589 | + ] [ rdf:type sp:Bind ; | ||
590 | + sp:expression | ||
591 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
592 | + sp:arg1 [ sp:varName "installationKind"^^xsd:string | ||
593 | + ] | ||
594 | + ] ; | ||
595 | + sp:variable | ||
596 | + [ sp:varName "productionInstallationType"^^xsd:string | ||
597 | + ] | ||
598 | + ]) | ||
599 | ] . | 599 | ] . | ... | ... |
-
Please register or login to post a comment