Showing
6 changed files
with
852 additions
and
835 deletions
... | @@ -6,6 +6,7 @@ | ... | @@ -6,6 +6,7 @@ |
6 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1 | 6 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1 |
7 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1 | 7 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1 |
8 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0 | 8 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0 |
9 | +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1 | ||
9 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1 | 10 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1 |
10 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0 | 11 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0 |
11 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0 | 12 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0 |
... | @@ -15,6 +16,7 @@ | ... | @@ -15,6 +16,7 @@ |
15 | @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . | 16 | @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . |
16 | @prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . | 17 | @prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . |
17 | @prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> . | 18 | @prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> . |
19 | +@prefix TRANSFORM_mpr-geographicContext-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1#> . | ||
18 | @prefix TRANSFORM_mpr-organization-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> . | 20 | @prefix TRANSFORM_mpr-organization-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> . |
19 | @prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> . | 21 | @prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> . |
20 | @prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> . | 22 | @prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> . |
... | @@ -36,5 +38,5 @@ | ... | @@ -36,5 +38,5 @@ |
36 | 38 | ||
37 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> | 39 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> |
38 | rdf:type owl:Ontology ; | 40 | rdf:type owl:Ontology ; |
39 | - owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> ; | 41 | + owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> ; |
40 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 42 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
1 | +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1 | ||
2 | +# imports: http://spinrdf.org/spin | ||
3 | +# imports: http://www.epim.no/schemas/mprml/1 | ||
4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
5 | +# imports: http://www.reportinghub.no/ep/schema/1.0/geography | ||
6 | + | ||
7 | +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1#> . | ||
8 | +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . | ||
9 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | ||
10 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
11 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
12 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
13 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
14 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
15 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
16 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
17 | + | ||
18 | +<http://www.epim.no/schemas/mprml/1#Cs_geographicContext> | ||
19 | + spin:rule | ||
20 | + [ rdf:type sp:Construct ; | ||
21 | + rdfs:comment "STEP 90106 Set the geographic context - offshore location - blockId"^^xsd:string ; | ||
22 | + sp:templates ([ sp:object | ||
23 | + [ sp:varName "block"^^xsd:string | ||
24 | + ] ; | ||
25 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
26 | + sp:subject | ||
27 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
28 | + ] | ||
29 | + ] [ sp:object | ||
30 | + [ sp:varName "blockId"^^xsd:string | ||
31 | + ] ; | ||
32 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
33 | + sp:subject | ||
34 | + [ sp:varName "block"^^xsd:string | ||
35 | + ] | ||
36 | + ]) ; | ||
37 | + sp:where ([ sp:object spin:_this ; | ||
38 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
39 | + sp:subject | ||
40 | + [ sp:varName "target"^^xsd:string | ||
41 | + ] | ||
42 | + ] [ sp:object | ||
43 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
44 | + ] ; | ||
45 | + sp:predicate <http://www.epim.no/schemas/mprml/1#offshoreLocationRef> ; | ||
46 | + sp:subject spin:_this | ||
47 | + ] [ sp:object | ||
48 | + [ sp:varName "blockId"^^xsd:string | ||
49 | + ] ; | ||
50 | + sp:predicate <http://www.epim.no/schemas/mprml/1#blockID> ; | ||
51 | + sp:subject | ||
52 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
53 | + ] | ||
54 | + ] [ sp:object | ||
55 | + [ sp:varName "target"^^xsd:string | ||
56 | + ] ; | ||
57 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
58 | + sp:subject | ||
59 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
60 | + ] | ||
61 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
62 | + sp:predicate rdf:type ; | ||
63 | + sp:subject | ||
64 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
65 | + ] | ||
66 | + ] [ sp:object | ||
67 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
68 | + ] ; | ||
69 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; | ||
70 | + sp:subject | ||
71 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
72 | + ] | ||
73 | + ] [ rdf:type sp:Bind ; | ||
74 | + sp:expression | ||
75 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
76 | + sp:arg1 [ sp:varName "blockId"^^xsd:string | ||
77 | + ] | ||
78 | + ] ; | ||
79 | + sp:variable | ||
80 | + [ sp:varName "normalizedBlockId"^^xsd:string | ||
81 | + ] | ||
82 | + ] [ rdf:type sp:Bind ; | ||
83 | + sp:expression | ||
84 | + [ rdf:type ep-dpr-spin-lib:buildBlockURI ; | ||
85 | + sp:arg1 [ sp:varName "normalizedBlockId"^^xsd:string | ||
86 | + ] | ||
87 | + ] ; | ||
88 | + sp:variable | ||
89 | + [ sp:varName "block"^^xsd:string | ||
90 | + ] | ||
91 | + ]) | ||
92 | + ] ; | ||
93 | + spin:rule | ||
94 | + [ rdf:type sp:Construct ; | ||
95 | + rdfs:comment "STEP 90105 Set the geographic context - offshore location"^^xsd:string ; | ||
96 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/geography#OffshoreLocation> ; | ||
97 | + sp:predicate rdf:type ; | ||
98 | + sp:subject | ||
99 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
100 | + ] | ||
101 | + ] [ sp:object | ||
102 | + [ sp:varName "quadrant"^^xsd:string | ||
103 | + ] ; | ||
104 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasNorthSeaQuadrantId> ; | ||
105 | + sp:subject | ||
106 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
107 | + ] | ||
108 | + ] [ sp:object | ||
109 | + [ sp:varName "blockSuffix"^^xsd:string | ||
110 | + ] ; | ||
111 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasNorthSeaBlockSuffixId> ; | ||
112 | + sp:subject | ||
113 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
114 | + ] | ||
115 | + ] [ sp:object | ||
116 | + [ sp:varName "areaName"^^xsd:string | ||
117 | + ] ; | ||
118 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasAreaName> ; | ||
119 | + sp:subject | ||
120 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
121 | + ] | ||
122 | + ] [ sp:object | ||
123 | + [ sp:varName "areaNameNorthSeaOffshore"^^xsd:string | ||
124 | + ] ; | ||
125 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasNorthSeaAreaName> ; | ||
126 | + sp:subject | ||
127 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
128 | + ] | ||
129 | + ] [ sp:object | ||
130 | + [ sp:varName "commentOffshoreLocation"^^xsd:string | ||
131 | + ] ; | ||
132 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasOffshoreLocationComment> ; | ||
133 | + sp:subject | ||
134 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
135 | + ] | ||
136 | + ]) ; | ||
137 | + sp:where ([ sp:object spin:_this ; | ||
138 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
139 | + sp:subject | ||
140 | + [ sp:varName "target"^^xsd:string | ||
141 | + ] | ||
142 | + ] [ sp:object | ||
143 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
144 | + ] ; | ||
145 | + sp:predicate <http://www.epim.no/schemas/mprml/1#offshoreLocationRef> ; | ||
146 | + sp:subject spin:_this | ||
147 | + ] [ sp:object | ||
148 | + [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
149 | + ] ; | ||
150 | + sp:predicate <http://www.epim.no/schemas/mprml/1#northSeaOffshoreRef> ; | ||
151 | + sp:subject | ||
152 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
153 | + ] | ||
154 | + ] [ sp:object | ||
155 | + [ sp:varName "quadrant"^^xsd:string | ||
156 | + ] ; | ||
157 | + sp:predicate <http://www.epim.no/schemas/mprml/1#quadrant> ; | ||
158 | + sp:subject | ||
159 | + [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
160 | + ] | ||
161 | + ] [ rdf:type sp:Optional ; | ||
162 | + sp:elements ([ sp:object | ||
163 | + [ sp:varName "areaNameNorthSeaOffshore"^^xsd:string | ||
164 | + ] ; | ||
165 | + sp:predicate <http://www.epim.no/schemas/mprml/1#areaName> ; | ||
166 | + sp:subject | ||
167 | + [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
168 | + ] | ||
169 | + ]) | ||
170 | + ] [ rdf:type sp:Optional ; | ||
171 | + sp:elements ([ sp:object | ||
172 | + [ sp:varName "blockSuffix"^^xsd:string | ||
173 | + ] ; | ||
174 | + sp:predicate <http://www.epim.no/schemas/mprml/1#blockSuffix> ; | ||
175 | + sp:subject | ||
176 | + [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
177 | + ] | ||
178 | + ]) | ||
179 | + ] [ rdf:type sp:Optional ; | ||
180 | + sp:elements ([ sp:object | ||
181 | + [ sp:varName "areaName"^^xsd:string | ||
182 | + ] ; | ||
183 | + sp:predicate <http://www.epim.no/schemas/mprml/1#areaName> ; | ||
184 | + sp:subject | ||
185 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
186 | + ] | ||
187 | + ]) | ||
188 | + ] [ rdf:type sp:Optional ; | ||
189 | + sp:elements ([ sp:object | ||
190 | + [ sp:varName "commentOffshoreLocation"^^xsd:string | ||
191 | + ] ; | ||
192 | + sp:predicate <http://www.epim.no/schemas/mprml/1#comment> ; | ||
193 | + sp:subject | ||
194 | + [ sp:varName "offshoreLocationRef"^^xsd:string | ||
195 | + ] | ||
196 | + ]) | ||
197 | + ] [ sp:object | ||
198 | + [ sp:varName "target"^^xsd:string | ||
199 | + ] ; | ||
200 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
201 | + sp:subject | ||
202 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
203 | + ] | ||
204 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
205 | + sp:predicate rdf:type ; | ||
206 | + sp:subject | ||
207 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
208 | + ] | ||
209 | + ] [ sp:object | ||
210 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
211 | + ] ; | ||
212 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; | ||
213 | + sp:subject | ||
214 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
215 | + ] | ||
216 | + ]) | ||
217 | + ] ; | ||
218 | + spin:rule | ||
219 | + [ rdf:type sp:Construct ; | ||
220 | + rdfs:comment "STEP 90101 Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext"^^xsd:string ; | ||
221 | + sp:templates ([ sp:object _:b1 ; | ||
222 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; | ||
223 | + sp:subject | ||
224 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
225 | + ] | ||
226 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
227 | + sp:predicate rdf:type ; | ||
228 | + sp:subject _:b1 | ||
229 | + ] [ sp:object | ||
230 | + [ sp:varName "comment"^^xsd:string | ||
231 | + ] ; | ||
232 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ; | ||
233 | + sp:subject _:b1 | ||
234 | + ]) ; | ||
235 | + sp:where ([ sp:object spin:_this ; | ||
236 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
237 | + sp:subject | ||
238 | + [ sp:varName "target"^^xsd:string | ||
239 | + ] | ||
240 | + ] [ rdf:type sp:Optional ; | ||
241 | + sp:elements ([ sp:object | ||
242 | + [ sp:varName "comment"^^xsd:string | ||
243 | + ] ; | ||
244 | + sp:predicate <http://www.epim.no/schemas/mprml/1#comment> ; | ||
245 | + sp:subject spin:_this | ||
246 | + ]) | ||
247 | + ] [ sp:object | ||
248 | + [ sp:varName "target"^^xsd:string | ||
249 | + ] ; | ||
250 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
251 | + sp:subject | ||
252 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
253 | + ] | ||
254 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
255 | + sp:predicate rdf:type ; | ||
256 | + sp:subject | ||
257 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
258 | + ] | ||
259 | + ]) | ||
260 | + ] ; | ||
261 | + spin:rule | ||
262 | + [ rdf:type sp:Construct ; | ||
263 | + rdfs:comment "STEP 90102 Set the geographic context - country"^^xsd:string ; | ||
264 | + sp:templates ([ sp:object | ||
265 | + [ sp:varName "country"^^xsd:string | ||
266 | + ] ; | ||
267 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
268 | + sp:subject | ||
269 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
270 | + ] | ||
271 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ; | ||
272 | + sp:predicate rdf:type ; | ||
273 | + sp:subject | ||
274 | + [ sp:varName "country"^^xsd:string | ||
275 | + ] | ||
276 | + ] [ sp:object | ||
277 | + [ sp:varName "countryName"^^xsd:string | ||
278 | + ] ; | ||
279 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
280 | + sp:subject | ||
281 | + [ sp:varName "country"^^xsd:string | ||
282 | + ] | ||
283 | + ]) ; | ||
284 | + sp:where ([ sp:object spin:_this ; | ||
285 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
286 | + sp:subject | ||
287 | + [ sp:varName "target"^^xsd:string | ||
288 | + ] | ||
289 | + ] [ sp:object | ||
290 | + [ sp:varName "countryName"^^xsd:string | ||
291 | + ] ; | ||
292 | + sp:predicate <http://www.epim.no/schemas/mprml/1#country> ; | ||
293 | + sp:subject spin:_this | ||
294 | + ] [ sp:object | ||
295 | + [ sp:varName "target"^^xsd:string | ||
296 | + ] ; | ||
297 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
298 | + sp:subject | ||
299 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
300 | + ] | ||
301 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
302 | + sp:predicate rdf:type ; | ||
303 | + sp:subject | ||
304 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
305 | + ] | ||
306 | + ] [ rdf:type sp:Bind ; | ||
307 | + sp:expression | ||
308 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
309 | + sp:arg1 [ sp:varName "countryName"^^xsd:string | ||
310 | + ] | ||
311 | + ] ; | ||
312 | + sp:variable | ||
313 | + [ sp:varName "normalizedCountryName"^^xsd:string | ||
314 | + ] | ||
315 | + ] [ rdf:type sp:Bind ; | ||
316 | + sp:expression | ||
317 | + [ rdf:type ep-dpr-spin-lib:buildCountryURI ; | ||
318 | + sp:arg1 [ sp:varName "normalizedCountryName"^^xsd:string | ||
319 | + ] | ||
320 | + ] ; | ||
321 | + sp:variable | ||
322 | + [ sp:varName "country"^^xsd:string | ||
323 | + ] | ||
324 | + ]) | ||
325 | + ] ; | ||
326 | + spin:rule | ||
327 | + [ rdf:type sp:Construct ; | ||
328 | + rdfs:comment "STEP 90103 Set the geographic context - state"^^xsd:string ; | ||
329 | + sp:templates ([ sp:object | ||
330 | + [ sp:varName "country"^^xsd:string | ||
331 | + ] ; | ||
332 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
333 | + sp:subject | ||
334 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
335 | + ] | ||
336 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ; | ||
337 | + sp:predicate rdf:type ; | ||
338 | + sp:subject | ||
339 | + [ sp:varName "country"^^xsd:string | ||
340 | + ] | ||
341 | + ] [ sp:object | ||
342 | + [ sp:varName "stateName"^^xsd:string | ||
343 | + ] ; | ||
344 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
345 | + sp:subject | ||
346 | + [ sp:varName "country"^^xsd:string | ||
347 | + ] | ||
348 | + ]) ; | ||
349 | + sp:where ([ sp:object spin:_this ; | ||
350 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
351 | + sp:subject | ||
352 | + [ sp:varName "target"^^xsd:string | ||
353 | + ] | ||
354 | + ] [ sp:object | ||
355 | + [ sp:varName "stateName"^^xsd:string | ||
356 | + ] ; | ||
357 | + sp:predicate <http://www.epim.no/schemas/mprml/1#state> ; | ||
358 | + sp:subject spin:_this | ||
359 | + ] [ sp:object | ||
360 | + [ sp:varName "target"^^xsd:string | ||
361 | + ] ; | ||
362 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
363 | + sp:subject | ||
364 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
365 | + ] | ||
366 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
367 | + sp:predicate rdf:type ; | ||
368 | + sp:subject | ||
369 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
370 | + ] | ||
371 | + ] [ rdf:type sp:Bind ; | ||
372 | + sp:expression | ||
373 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
374 | + sp:arg1 [ sp:varName "countryName"^^xsd:string | ||
375 | + ] | ||
376 | + ] ; | ||
377 | + sp:variable | ||
378 | + [ sp:varName "normalizedCountryName"^^xsd:string | ||
379 | + ] | ||
380 | + ] [ rdf:type sp:Bind ; | ||
381 | + sp:expression | ||
382 | + [ rdf:type ep-dpr-spin-lib:buildCountryURI ; | ||
383 | + sp:arg1 [ sp:varName "normalizedCountryName"^^xsd:string | ||
384 | + ] | ||
385 | + ] ; | ||
386 | + sp:variable | ||
387 | + [ sp:varName "country"^^xsd:string | ||
388 | + ] | ||
389 | + ]) | ||
390 | + ] ; | ||
391 | + spin:rule | ||
392 | + [ rdf:type sp:Construct ; | ||
393 | + rdfs:comment "STEP 90104 Set the geographic context - field"^^xsd:string ; | ||
394 | + sp:templates ([ sp:object | ||
395 | + [ sp:varName "field"^^xsd:string | ||
396 | + ] ; | ||
397 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
398 | + sp:subject | ||
399 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
400 | + ] | ||
401 | + ]) ; | ||
402 | + sp:where ([ sp:object spin:_this ; | ||
403 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
404 | + sp:subject | ||
405 | + [ sp:varName "target"^^xsd:string | ||
406 | + ] | ||
407 | + ] [ sp:object | ||
408 | + [ sp:varName "fieldRef"^^xsd:string | ||
409 | + ] ; | ||
410 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; | ||
411 | + sp:subject spin:_this | ||
412 | + ] [ sp:object | ||
413 | + [ sp:varName "fieldName"^^xsd:string | ||
414 | + ] ; | ||
415 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
416 | + sp:subject | ||
417 | + [ sp:varName "fieldRef"^^xsd:string | ||
418 | + ] | ||
419 | + ] [ sp:object | ||
420 | + [ sp:varName "target"^^xsd:string | ||
421 | + ] ; | ||
422 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
423 | + sp:subject | ||
424 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
425 | + ] | ||
426 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
427 | + sp:predicate rdf:type ; | ||
428 | + sp:subject | ||
429 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
430 | + ] | ||
431 | + ] [ rdf:type sp:NamedGraph ; | ||
432 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; | ||
433 | + sp:predicate rdf:type ; | ||
434 | + sp:subject | ||
435 | + [ sp:varName "field"^^xsd:string | ||
436 | + ] | ||
437 | + ] [ sp:object | ||
438 | + [ sp:varName "fieldName"^^xsd:string | ||
439 | + ] ; | ||
440 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
441 | + sp:subject | ||
442 | + [ sp:varName "field"^^xsd:string | ||
443 | + ] | ||
444 | + ]) ; | ||
445 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
446 | + ]) | ||
447 | + ] . | ||
448 | + | ||
449 | +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> | ||
450 | + rdf:type owl:Ontology ; | ||
451 | + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/geography> ; | ||
452 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
1 | +# baseURI: null | ||
2 | + | ||
3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
11 | + | ||
12 | +[] rdf:type inference:Configuration ; | ||
13 | + composite:child | ||
14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
15 | + composite:index "0"^^xsd:int | ||
16 | + ] . |
... | @@ -21,45 +21,27 @@ | ... | @@ -21,45 +21,27 @@ |
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 20020 Add the report kind ."^^xsd:string ; | 24 | + rdfs:comment "STEP 20051 Set the context facility - installation does not exist"^^xsd:string ; |
25 | - sp:templates ([ sp:object | 25 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
26 | - [ sp:varName "reportKind"^^xsd:string | ||
27 | - ] ; | ||
28 | - sp:predicate rdf:type ; | ||
29 | - sp:subject | ||
30 | - [ sp:varName "productVolumeReport"^^xsd:string | ||
31 | - ] | ||
32 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ; | ||
33 | sp:predicate rdf:type ; | 26 | sp:predicate rdf:type ; |
34 | - sp:subject | 27 | + sp:subject _:b1 |
35 | - [ sp:varName "reportKind"^^xsd:string | ||
36 | - ] | ||
37 | ] [ sp:object | 28 | ] [ sp:object |
38 | - [ sp:varName "kind"^^xsd:string | 29 | + [ sp:varName "contextFacility"^^xsd:string |
39 | ] ; | 30 | ] ; |
40 | - sp:predicate rdfs:label ; | 31 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
41 | - sp:subject | 32 | + sp:subject _:b1 |
42 | - [ sp:varName "reportKind"^^xsd:string | 33 | + ] [ sp:object _:b1 ; |
43 | - ] | 34 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
44 | - ]) ; | ||
45 | - sp:where ([ sp:object spin:_this ; | ||
46 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
47 | - sp:subject | ||
48 | - [ sp:varName "productionReport"^^xsd:string | ||
49 | - ] | ||
50 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; | ||
51 | - sp:predicate rdf:type ; | ||
52 | sp:subject | 35 | sp:subject |
53 | - [ sp:varName "productVolumeReport"^^xsd:string | 36 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
54 | ] | 37 | ] |
55 | - ] [ sp:object | 38 | + ] [ sp:object _:b1 ; |
56 | - [ sp:varName "productionReport"^^xsd:string | 39 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
57 | - ] ; | ||
58 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
59 | sp:subject | 40 | sp:subject |
60 | - [ sp:varName "productVolumeReport"^^xsd:string | 41 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
61 | ] | 42 | ] |
62 | - ] [ sp:object | 43 | + ]) ; |
44 | + sp:where ([ sp:object | ||
63 | [ sp:varName "productVolumeRef"^^xsd:string | 45 | [ sp:varName "productVolumeRef"^^xsd:string |
64 | ] ; | 46 | ] ; |
65 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 47 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
... | @@ -69,44 +51,59 @@ | ... | @@ -69,44 +51,59 @@ |
69 | sp:subject | 51 | sp:subject |
70 | [ sp:varName "productVolumeRef"^^xsd:string | 52 | [ sp:varName "productVolumeRef"^^xsd:string |
71 | ] | 53 | ] |
72 | - ] [ sp:object | 54 | + ] [ rdf:type sp:NotExists ; |
73 | - [ sp:varName "nameRef"^^xsd:string | 55 | + sp:elements ([ sp:object |
56 | + [ sp:varName "installationRef"^^xsd:string | ||
74 | ] ; | 57 | ] ; |
75 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 58 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
76 | sp:subject | 59 | sp:subject |
77 | [ sp:varName "productVolumeRef"^^xsd:string | 60 | [ sp:varName "productVolumeRef"^^xsd:string |
78 | ] | 61 | ] |
79 | ] [ sp:object | 62 | ] [ sp:object |
80 | - [ sp:varName "name"^^xsd:string | 63 | + [ sp:varName "installationRef"^^xsd:string |
81 | ] ; | 64 | ] ; |
82 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 65 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
83 | sp:subject | 66 | sp:subject |
84 | - [ sp:varName "nameRef"^^xsd:string | 67 | + [ sp:varName "productionFacility"^^xsd:string |
85 | ] | 68 | ] |
69 | + ]) | ||
86 | ] [ sp:object | 70 | ] [ sp:object |
87 | - [ sp:varName "kind"^^xsd:string | 71 | + [ sp:varName "contextFacilityRef"^^xsd:string |
88 | ] ; | 72 | ] ; |
89 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; | 73 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; |
90 | sp:subject | 74 | sp:subject |
91 | [ sp:varName "productVolumeRef"^^xsd:string | 75 | [ sp:varName "productVolumeRef"^^xsd:string |
92 | ] | 76 | ] |
93 | - ] [ rdf:type sp:Bind ; | 77 | + ] [ sp:object |
94 | - sp:expression | 78 | + [ sp:varName "contextFacilityRef"^^xsd:string |
95 | - [ rdf:type ep-spin-lib:normalizeString ; | 79 | + ] ; |
96 | - sp:arg1 [ sp:varName "kind"^^xsd:string | 80 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
81 | + sp:subject | ||
82 | + [ sp:varName "contextFacility"^^xsd:string | ||
97 | ] | 83 | ] |
84 | + ] [ sp:object | ||
85 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
98 | ] ; | 86 | ] ; |
99 | - sp:variable | 87 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
100 | - [ sp:varName "normalizedKind"^^xsd:string | 88 | + sp:subject |
89 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
101 | ] | 90 | ] |
102 | - ] [ rdf:type sp:Bind ; | 91 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
103 | - sp:expression | 92 | + sp:predicate rdf:type ; |
104 | - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; | 93 | + sp:subject |
105 | - sp:arg1 [ sp:varName "normalizedKind"^^xsd:string | 94 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
106 | ] | 95 | ] |
96 | + ] [ sp:object | ||
97 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
107 | ] ; | 98 | ] ; |
108 | - sp:variable | 99 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
109 | - [ sp:varName "reportKind"^^xsd:string | 100 | + sp:subject |
101 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
102 | + ] | ||
103 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
104 | + sp:predicate rdf:type ; | ||
105 | + sp:subject | ||
106 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
110 | ] | 107 | ] |
111 | ]) | 108 | ]) |
112 | ] ; | 109 | ] ; |
... | @@ -277,156 +274,6 @@ | ... | @@ -277,156 +274,6 @@ |
277 | ] ; | 274 | ] ; |
278 | spin:rule | 275 | spin:rule |
279 | [ rdf:type sp:Construct ; | 276 | [ rdf:type sp:Construct ; |
280 | - rdfs:comment "STEP 20072 Set the geographic context - state"^^xsd:string ; | ||
281 | - sp:templates ([ sp:object | ||
282 | - [ sp:varName "state"^^xsd:string | ||
283 | - ] ; | ||
284 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
285 | - sp:subject | ||
286 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
287 | - ] | ||
288 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ; | ||
289 | - sp:predicate rdf:type ; | ||
290 | - sp:subject | ||
291 | - [ sp:varName "state"^^xsd:string | ||
292 | - ] | ||
293 | - ] [ sp:object | ||
294 | - [ sp:varName "stateName"^^xsd:string | ||
295 | - ] ; | ||
296 | - sp:predicate rdfs:label ; | ||
297 | - sp:subject | ||
298 | - [ sp:varName "state"^^xsd:string | ||
299 | - ] | ||
300 | - ]) ; | ||
301 | - sp:where ([ sp:object | ||
302 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
303 | - ] ; | ||
304 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
305 | - sp:subject spin:_this | ||
306 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
307 | - sp:predicate rdf:type ; | ||
308 | - sp:subject | ||
309 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
310 | - ] | ||
311 | - ] [ sp:object | ||
312 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
313 | - ] ; | ||
314 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
315 | - sp:subject | ||
316 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
317 | - ] | ||
318 | - ] [ sp:object | ||
319 | - [ sp:varName "stateName"^^xsd:string | ||
320 | - ] ; | ||
321 | - sp:predicate <http://www.epim.no/schemas/mprml/1#state> ; | ||
322 | - sp:subject | ||
323 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
324 | - ] | ||
325 | - ] [ sp:object | ||
326 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
327 | - ] ; | ||
328 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
329 | - sp:subject | ||
330 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
331 | - ] | ||
332 | - ] [ rdf:type sp:Bind ; | ||
333 | - sp:expression | ||
334 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
335 | - sp:arg1 [ sp:varName "stateName"^^xsd:string | ||
336 | - ] | ||
337 | - ] ; | ||
338 | - sp:variable | ||
339 | - [ sp:varName "normalizedStateName"^^xsd:string | ||
340 | - ] | ||
341 | - ] [ rdf:type sp:Bind ; | ||
342 | - sp:expression | ||
343 | - [ rdf:type ep-dpr-spin-lib:buildStateURI ; | ||
344 | - sp:arg1 [ sp:varName "normalizedStateName"^^xsd:string | ||
345 | - ] | ||
346 | - ] ; | ||
347 | - sp:variable | ||
348 | - [ sp:varName "state"^^xsd:string | ||
349 | - ] | ||
350 | - ]) | ||
351 | - ] ; | ||
352 | - spin:rule | ||
353 | - [ rdf:type sp:Construct ; | ||
354 | - rdfs:comment "STEP 20075 Set the geographic context - offshore location - blockId"^^xsd:string ; | ||
355 | - sp:templates ([ sp:object | ||
356 | - [ sp:varName "block"^^xsd:string | ||
357 | - ] ; | ||
358 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
359 | - sp:subject | ||
360 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
361 | - ] | ||
362 | - ] [ sp:object | ||
363 | - [ sp:varName "blockId"^^xsd:string | ||
364 | - ] ; | ||
365 | - sp:predicate rdfs:label ; | ||
366 | - sp:subject | ||
367 | - [ sp:varName "block"^^xsd:string | ||
368 | - ] | ||
369 | - ]) ; | ||
370 | - sp:where ([ sp:object | ||
371 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
372 | - ] ; | ||
373 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
374 | - sp:subject spin:_this | ||
375 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
376 | - sp:predicate rdf:type ; | ||
377 | - sp:subject | ||
378 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
379 | - ] | ||
380 | - ] [ sp:object | ||
381 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
382 | - ] ; | ||
383 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
384 | - sp:subject | ||
385 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
386 | - ] | ||
387 | - ] [ sp:object | ||
388 | - [ sp:varName "offshoreLocationRef"^^xsd:string | ||
389 | - ] ; | ||
390 | - sp:predicate <http://www.epim.no/schemas/mprml/1#offshoreLocationRef> ; | ||
391 | - sp:subject | ||
392 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
393 | - ] | ||
394 | - ] [ sp:object | ||
395 | - [ sp:varName "blockId"^^xsd:string | ||
396 | - ] ; | ||
397 | - sp:predicate <http://www.epim.no/schemas/mprml/1#blockID> ; | ||
398 | - sp:subject | ||
399 | - [ sp:varName "offshoreLocationRef"^^xsd:string | ||
400 | - ] | ||
401 | - ] [ sp:object | ||
402 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
403 | - ] ; | ||
404 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
405 | - sp:subject | ||
406 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
407 | - ] | ||
408 | - ] [ rdf:type sp:Bind ; | ||
409 | - sp:expression | ||
410 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
411 | - sp:arg1 [ sp:varName "blockId"^^xsd:string | ||
412 | - ] | ||
413 | - ] ; | ||
414 | - sp:variable | ||
415 | - [ sp:varName "normalizedBlockId"^^xsd:string | ||
416 | - ] | ||
417 | - ] [ rdf:type sp:Bind ; | ||
418 | - sp:expression | ||
419 | - [ rdf:type ep-dpr-spin-lib:buildBlockURI ; | ||
420 | - sp:arg1 [ sp:varName "normalizedBlockId"^^xsd:string | ||
421 | - ] | ||
422 | - ] ; | ||
423 | - sp:variable | ||
424 | - [ sp:varName "block"^^xsd:string | ||
425 | - ] | ||
426 | - ]) | ||
427 | - ] ; | ||
428 | - spin:rule | ||
429 | - [ rdf:type sp:Construct ; | ||
430 | rdfs:comment "STEP 20050 Set the context facility - installation exists"^^xsd:string ; | 277 | rdfs:comment "STEP 20050 Set the context facility - installation exists"^^xsd:string ; |
431 | sp:templates ([ sp:object | 278 | sp:templates ([ sp:object |
432 | [ sp:varName "contextFacility"^^xsd:string | 279 | [ sp:varName "contextFacility"^^xsd:string |
... | @@ -481,87 +328,87 @@ | ... | @@ -481,87 +328,87 @@ |
481 | rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; | 328 | rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; |
482 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; | 329 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; |
483 | sp:predicate rdf:type ; | 330 | sp:predicate rdf:type ; |
484 | - sp:subject _:b1 | 331 | + sp:subject _:b2 |
485 | ] [ sp:object | 332 | ] [ sp:object |
486 | [ sp:varName "productionReport"^^xsd:string | 333 | [ sp:varName "productionReport"^^xsd:string |
487 | ] ; | 334 | ] ; |
488 | sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | 335 | sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; |
489 | - sp:subject _:b1 | 336 | + sp:subject _:b2 |
490 | ] [ sp:object | 337 | ] [ sp:object |
491 | [ sp:varName "name"^^xsd:string | 338 | [ sp:varName "name"^^xsd:string |
492 | ] ; | 339 | ] ; |
493 | sp:predicate rdfs:label ; | 340 | sp:predicate rdfs:label ; |
494 | - sp:subject _:b1 | 341 | + sp:subject _:b2 |
495 | ] [ sp:object | 342 | ] [ sp:object |
496 | [ sp:varName "productVolumeReportPeriodType"^^xsd:string | 343 | [ sp:varName "productVolumeReportPeriodType"^^xsd:string |
497 | ] ; | 344 | ] ; |
498 | sp:predicate rdf:type ; | 345 | sp:predicate rdf:type ; |
499 | - sp:subject _:b1 | 346 | + sp:subject _:b2 |
500 | - ] [ sp:object _:b2 ; | 347 | + ] [ sp:object _:b3 ; |
501 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 348 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
502 | - sp:subject _:b1 | 349 | + sp:subject _:b2 |
503 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | 350 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; |
504 | sp:predicate rdf:type ; | 351 | sp:predicate rdf:type ; |
505 | - sp:subject _:b2 | 352 | + sp:subject _:b3 |
506 | ] [ sp:object | 353 | ] [ sp:object |
507 | [ sp:varName "productVolumeRef"^^xsd:string | 354 | [ sp:varName "productVolumeRef"^^xsd:string |
508 | ] ; | 355 | ] ; |
509 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 356 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
510 | - sp:subject _:b2 | 357 | + sp:subject _:b3 |
511 | - ] [ sp:object _:b3 ; | 358 | + ] [ sp:object _:b4 ; |
512 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 359 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
513 | - sp:subject _:b2 | 360 | + sp:subject _:b3 |
514 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | 361 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
515 | sp:predicate rdf:type ; | 362 | sp:predicate rdf:type ; |
516 | - sp:subject _:b3 | 363 | + sp:subject _:b4 |
517 | - ] [ sp:object _:b4 ; | 364 | + ] [ sp:object _:b5 ; |
518 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 365 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
519 | - sp:subject _:b1 | 366 | + sp:subject _:b2 |
520 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | 367 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; |
521 | sp:predicate rdf:type ; | 368 | sp:predicate rdf:type ; |
522 | - sp:subject _:b4 | 369 | + sp:subject _:b5 |
523 | ] [ sp:object | 370 | ] [ sp:object |
524 | [ sp:varName "productVolumeRef"^^xsd:string | 371 | [ sp:varName "productVolumeRef"^^xsd:string |
525 | ] ; | 372 | ] ; |
526 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 373 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
527 | - sp:subject _:b4 | 374 | + sp:subject _:b5 |
528 | - ] [ sp:object _:b5 ; | 375 | + ] [ sp:object _:b6 ; |
529 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 376 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
530 | - sp:subject _:b4 | 377 | + sp:subject _:b5 |
531 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | 378 | ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; |
532 | sp:predicate rdf:type ; | 379 | sp:predicate rdf:type ; |
533 | - sp:subject _:b5 | 380 | + sp:subject _:b6 |
534 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 381 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
535 | sp:predicate rdf:type ; | 382 | sp:predicate rdf:type ; |
536 | - sp:subject _:b6 | 383 | + sp:subject _:b7 |
537 | ] [ sp:object | 384 | ] [ sp:object |
538 | [ sp:varName "productVolumeRef"^^xsd:string | 385 | [ sp:varName "productVolumeRef"^^xsd:string |
539 | ] ; | 386 | ] ; |
540 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 387 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
541 | - sp:subject _:b6 | 388 | + sp:subject _:b7 |
542 | - ] [ sp:object _:b7 ; | 389 | + ] [ sp:object _:b8 ; |
543 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 390 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
544 | - sp:subject _:b6 | 391 | + sp:subject _:b7 |
545 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 392 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
546 | sp:predicate rdf:type ; | 393 | sp:predicate rdf:type ; |
547 | - sp:subject _:b7 | 394 | + sp:subject _:b8 |
548 | - ] [ sp:object _:b2 ; | 395 | + ] [ sp:object _:b3 ; |
549 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
550 | - sp:subject _:b6 | ||
551 | - ] [ sp:object _:b4 ; | ||
552 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | ||
553 | - sp:subject _:b6 | ||
554 | - ] [ sp:object _:b3 ; | ||
555 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | 396 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; |
556 | sp:subject _:b7 | 397 | sp:subject _:b7 |
557 | ] [ sp:object _:b5 ; | 398 | ] [ sp:object _:b5 ; |
558 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | 399 | sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; |
559 | sp:subject _:b7 | 400 | sp:subject _:b7 |
401 | + ] [ sp:object _:b4 ; | ||
402 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ; | ||
403 | + sp:subject _:b8 | ||
404 | + ] [ sp:object _:b6 ; | ||
405 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | ||
406 | + sp:subject _:b8 | ||
560 | ] [ sp:object | 407 | ] [ sp:object |
561 | [ sp:varName "title"^^xsd:string | 408 | [ sp:varName "title"^^xsd:string |
562 | ] ; | 409 | ] ; |
563 | sp:predicate <http://purl.org/dc/elements/1.1/title> ; | 410 | sp:predicate <http://purl.org/dc/elements/1.1/title> ; |
564 | - sp:subject _:b1 | 411 | + sp:subject _:b2 |
565 | ]) ; | 412 | ]) ; |
566 | sp:where ([ sp:object spin:_this ; | 413 | sp:where ([ sp:object spin:_this ; |
567 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 414 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
... | @@ -630,46 +477,27 @@ | ... | @@ -630,46 +477,27 @@ |
630 | ] ; | 477 | ] ; |
631 | spin:rule | 478 | spin:rule |
632 | [ rdf:type sp:Construct ; | 479 | [ rdf:type sp:Construct ; |
633 | - rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; | 480 | + rdfs:comment """STEP 20060 Set the facility operator |
634 | - sp:templates ([ sp:object | 481 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
635 | - [ sp:varName "productionFacility"^^xsd:string | 482 | + sp:templates ([ sp:object _:b9 ; |
636 | - ] ; | 483 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; |
637 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
638 | sp:subject | 484 | sp:subject |
639 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 485 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
640 | ] | 486 | ] |
487 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
488 | + sp:predicate rdf:type ; | ||
489 | + sp:subject _:b9 | ||
641 | ] [ sp:object | 490 | ] [ sp:object |
642 | - [ sp:varName "productionFacility"^^xsd:string | 491 | + [ sp:varName "operator"^^xsd:string |
643 | ] ; | 492 | ] ; |
644 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 493 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
645 | - sp:subject | 494 | + sp:subject _:b9 |
646 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
647 | - ] | ||
648 | ]) ; | 495 | ]) ; |
649 | sp:where ([ sp:object | 496 | sp:where ([ sp:object |
650 | [ sp:varName "productVolumeRef"^^xsd:string | 497 | [ sp:varName "productVolumeRef"^^xsd:string |
651 | ] ; | 498 | ] ; |
652 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 499 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
653 | sp:subject spin:_this | 500 | sp:subject spin:_this |
654 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
655 | - sp:predicate rdf:type ; | ||
656 | - sp:subject | ||
657 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
658 | - ] | ||
659 | - ] [ sp:object | ||
660 | - [ sp:varName "installationRef"^^xsd:string | ||
661 | - ] ; | ||
662 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
663 | - sp:subject | ||
664 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
665 | - ] | ||
666 | - ] [ sp:object | ||
667 | - [ sp:varName "installationRef"^^xsd:string | ||
668 | - ] ; | ||
669 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
670 | - sp:subject | ||
671 | - [ sp:varName "productionFacility"^^xsd:string | ||
672 | - ] | ||
673 | ] [ sp:object | 501 | ] [ sp:object |
674 | [ sp:varName "productVolumeRef"^^xsd:string | 502 | [ sp:varName "productVolumeRef"^^xsd:string |
675 | ] ; | 503 | ] ; |
... | @@ -682,84 +510,25 @@ | ... | @@ -682,84 +510,25 @@ |
682 | sp:subject | 510 | sp:subject |
683 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 511 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
684 | ] | 512 | ] |
685 | - ] [ sp:object | ||
686 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
687 | - ] ; | ||
688 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
689 | - sp:subject | ||
690 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
691 | - ] | ||
692 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
693 | - sp:predicate rdf:type ; | ||
694 | - sp:subject | ||
695 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
696 | - ] | ||
697 | - ]) | ||
698 | - ] ; | ||
699 | - spin:rule | ||
700 | - [ rdf:type sp:Construct ; | ||
701 | - rdfs:comment "STEP 20073 Set the geographic context - field"^^xsd:string ; | ||
702 | - sp:templates ([ sp:object | ||
703 | - [ sp:varName "field"^^xsd:string | ||
704 | - ] ; | ||
705 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
706 | - sp:subject | ||
707 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
708 | - ] | ||
709 | - ]) ; | ||
710 | - sp:where ([ sp:object | ||
711 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
712 | - ] ; | ||
713 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
714 | - sp:subject spin:_this | ||
715 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 513 | ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
716 | sp:predicate rdf:type ; | 514 | sp:predicate rdf:type ; |
717 | sp:subject | 515 | sp:subject |
718 | [ sp:varName "productVolumeRef"^^xsd:string | 516 | [ sp:varName "productVolumeRef"^^xsd:string |
719 | ] | 517 | ] |
720 | ] [ sp:object | 518 | ] [ sp:object |
721 | - [ sp:varName "geographicContextRef"^^xsd:string | 519 | + [ sp:varName "operatorRef"^^xsd:string |
722 | ] ; | 520 | ] ; |
723 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | 521 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
724 | sp:subject | 522 | sp:subject |
725 | [ sp:varName "productVolumeRef"^^xsd:string | 523 | [ sp:varName "productVolumeRef"^^xsd:string |
726 | ] | 524 | ] |
727 | ] [ sp:object | 525 | ] [ sp:object |
728 | - [ sp:varName "fieldRef"^^xsd:string | 526 | + [ sp:varName "operatorRef"^^xsd:string |
729 | - ] ; | ||
730 | - sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; | ||
731 | - sp:subject | ||
732 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
733 | - ] | ||
734 | - ] [ sp:object | ||
735 | - [ sp:varName "fieldName"^^xsd:string | ||
736 | - ] ; | ||
737 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
738 | - sp:subject | ||
739 | - [ sp:varName "fieldRef"^^xsd:string | ||
740 | - ] | ||
741 | - ] [ sp:object | ||
742 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
743 | ] ; | 527 | ] ; |
744 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 528 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
745 | sp:subject | 529 | sp:subject |
746 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 530 | + [ sp:varName "operator"^^xsd:string |
747 | - ] | ||
748 | - ] [ rdf:type sp:NamedGraph ; | ||
749 | - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; | ||
750 | - sp:predicate rdf:type ; | ||
751 | - sp:subject | ||
752 | - [ sp:varName "field"^^xsd:string | ||
753 | - ] | ||
754 | - ] [ sp:object | ||
755 | - [ sp:varName "fieldName"^^xsd:string | ||
756 | - ] ; | ||
757 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
758 | - sp:subject | ||
759 | - [ sp:varName "field"^^xsd:string | ||
760 | ] | 531 | ] |
761 | - ]) ; | ||
762 | - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
763 | ]) | 532 | ]) |
764 | ] ; | 533 | ] ; |
765 | spin:rule | 534 | spin:rule |
... | @@ -929,49 +698,45 @@ | ... | @@ -929,49 +698,45 @@ |
929 | ] ; | 698 | ] ; |
930 | spin:rule | 699 | spin:rule |
931 | [ rdf:type sp:Construct ; | 700 | [ rdf:type sp:Construct ; |
932 | - rdfs:comment "STEP 20074 Set the geographic context - offshore location"^^xsd:string ; | 701 | + rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ; |
933 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/geography#OffshoreLocation> ; | 702 | + sp:templates ([ sp:object |
703 | + [ sp:varName "reportKind"^^xsd:string | ||
704 | + ] ; | ||
934 | sp:predicate rdf:type ; | 705 | sp:predicate rdf:type ; |
935 | sp:subject | 706 | sp:subject |
936 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 707 | + [ sp:varName "productVolumeReport"^^xsd:string |
937 | ] | 708 | ] |
938 | - ] [ sp:object | 709 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ; |
939 | - [ sp:varName "quadrant"^^xsd:string | 710 | + sp:predicate rdf:type ; |
940 | - ] ; | ||
941 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasNorthSeaQuadrantId> ; | ||
942 | sp:subject | 711 | sp:subject |
943 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 712 | + [ sp:varName "reportKind"^^xsd:string |
944 | ] | 713 | ] |
945 | ] [ sp:object | 714 | ] [ sp:object |
946 | - [ sp:varName "blockSuffix"^^xsd:string | 715 | + [ sp:varName "kind"^^xsd:string |
947 | ] ; | 716 | ] ; |
948 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasNorthSeaBlockSuffixId> ; | 717 | + sp:predicate rdfs:label ; |
949 | sp:subject | 718 | sp:subject |
950 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 719 | + [ sp:varName "reportKind"^^xsd:string |
951 | ] | 720 | ] |
952 | - ] [ sp:object | 721 | + ]) ; |
953 | - [ sp:varName "areaName"^^xsd:string | 722 | + sp:where ([ sp:object spin:_this ; |
954 | - ] ; | 723 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
955 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasAreaName> ; | ||
956 | sp:subject | 724 | sp:subject |
957 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 725 | + [ sp:varName "productionReport"^^xsd:string |
958 | ] | 726 | ] |
959 | - ] [ sp:object | 727 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; |
960 | - [ sp:varName "areaNameNorthSeaOffshore"^^xsd:string | 728 | + sp:predicate rdf:type ; |
961 | - ] ; | ||
962 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasNorthSeaAreaName> ; | ||
963 | sp:subject | 729 | sp:subject |
964 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 730 | + [ sp:varName "productVolumeReport"^^xsd:string |
965 | ] | 731 | ] |
966 | ] [ sp:object | 732 | ] [ sp:object |
967 | - [ sp:varName "commentOffshoreLocation"^^xsd:string | 733 | + [ sp:varName "productionReport"^^xsd:string |
968 | ] ; | 734 | ] ; |
969 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#hasOffshoreLocationComment> ; | 735 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; |
970 | sp:subject | 736 | sp:subject |
971 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 737 | + [ sp:varName "productVolumeReport"^^xsd:string |
972 | ] | 738 | ] |
973 | - ]) ; | 739 | + ] [ sp:object |
974 | - sp:where ([ sp:object | ||
975 | [ sp:varName "productVolumeRef"^^xsd:string | 740 | [ sp:varName "productVolumeRef"^^xsd:string |
976 | ] ; | 741 | ] ; |
977 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 742 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
... | @@ -982,95 +747,59 @@ | ... | @@ -982,95 +747,59 @@ |
982 | [ sp:varName "productVolumeRef"^^xsd:string | 747 | [ sp:varName "productVolumeRef"^^xsd:string |
983 | ] | 748 | ] |
984 | ] [ sp:object | 749 | ] [ sp:object |
985 | - [ sp:varName "geographicContextRef"^^xsd:string | 750 | + [ sp:varName "nameRef"^^xsd:string |
986 | ] ; | 751 | ] ; |
987 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | 752 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
988 | sp:subject | 753 | sp:subject |
989 | [ sp:varName "productVolumeRef"^^xsd:string | 754 | [ sp:varName "productVolumeRef"^^xsd:string |
990 | ] | 755 | ] |
991 | ] [ sp:object | 756 | ] [ sp:object |
992 | - [ sp:varName "offshoreLocationRef"^^xsd:string | 757 | + [ sp:varName "name"^^xsd:string |
993 | - ] ; | ||
994 | - sp:predicate <http://www.epim.no/schemas/mprml/1#offshoreLocationRef> ; | ||
995 | - sp:subject | ||
996 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
997 | - ] | ||
998 | - ] [ sp:object | ||
999 | - [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
1000 | ] ; | 758 | ] ; |
1001 | - sp:predicate <http://www.epim.no/schemas/mprml/1#northSeaOffshoreRef> ; | 759 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
1002 | sp:subject | 760 | sp:subject |
1003 | - [ sp:varName "offshoreLocationRef"^^xsd:string | 761 | + [ sp:varName "nameRef"^^xsd:string |
1004 | ] | 762 | ] |
1005 | ] [ sp:object | 763 | ] [ sp:object |
1006 | - [ sp:varName "quadrant"^^xsd:string | 764 | + [ sp:varName "kind"^^xsd:string |
1007 | - ] ; | ||
1008 | - sp:predicate <http://www.epim.no/schemas/mprml/1#quadrant> ; | ||
1009 | - sp:subject | ||
1010 | - [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
1011 | - ] | ||
1012 | - ] [ rdf:type sp:Optional ; | ||
1013 | - sp:elements ([ sp:object | ||
1014 | - [ sp:varName "areaNameNorthSeaOffshore"^^xsd:string | ||
1015 | ] ; | 765 | ] ; |
1016 | - sp:predicate <http://www.epim.no/schemas/mprml/1#areaName> ; | 766 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; |
1017 | sp:subject | 767 | sp:subject |
1018 | - [ sp:varName "northSeaOffshoreRef"^^xsd:string | 768 | + [ sp:varName "productVolumeRef"^^xsd:string |
1019 | ] | 769 | ] |
1020 | - ]) | 770 | + ] [ rdf:type sp:Bind ; |
1021 | - ] [ rdf:type sp:Optional ; | 771 | + sp:expression |
1022 | - sp:elements ([ sp:object | 772 | + [ rdf:type ep-spin-lib:normalizeString ; |
1023 | - [ sp:varName "blockSuffix"^^xsd:string | 773 | + sp:arg1 [ sp:varName "kind"^^xsd:string |
1024 | - ] ; | ||
1025 | - sp:predicate <http://www.epim.no/schemas/mprml/1#blockSuffix> ; | ||
1026 | - sp:subject | ||
1027 | - [ sp:varName "northSeaOffshoreRef"^^xsd:string | ||
1028 | ] | 774 | ] |
1029 | - ]) | ||
1030 | - ] [ rdf:type sp:Optional ; | ||
1031 | - sp:elements ([ sp:object | ||
1032 | - [ sp:varName "areaName"^^xsd:string | ||
1033 | ] ; | 775 | ] ; |
1034 | - sp:predicate <http://www.epim.no/schemas/mprml/1#areaName> ; | 776 | + sp:variable |
1035 | - sp:subject | 777 | + [ sp:varName "normalizedKind"^^xsd:string |
1036 | - [ sp:varName "offshoreLocationRef"^^xsd:string | ||
1037 | ] | 778 | ] |
1038 | - ]) | 779 | + ] [ rdf:type sp:Bind ; |
1039 | - ] [ rdf:type sp:Optional ; | 780 | + sp:expression |
1040 | - sp:elements ([ sp:object | 781 | + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; |
1041 | - [ sp:varName "commentOffshoreLocation"^^xsd:string | 782 | + sp:arg1 [ sp:varName "normalizedKind"^^xsd:string |
1042 | - ] ; | ||
1043 | - sp:predicate <http://www.epim.no/schemas/mprml/1#comment> ; | ||
1044 | - sp:subject | ||
1045 | - [ sp:varName "offshoreLocationRef"^^xsd:string | ||
1046 | ] | 783 | ] |
1047 | - ]) | ||
1048 | - ] [ sp:object | ||
1049 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
1050 | ] ; | 784 | ] ; |
1051 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 785 | + sp:variable |
1052 | - sp:subject | 786 | + [ sp:varName "reportKind"^^xsd:string |
1053 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
1054 | ] | 787 | ] |
1055 | ]) | 788 | ]) |
1056 | ] ; | 789 | ] ; |
1057 | spin:rule | 790 | spin:rule |
1058 | [ rdf:type sp:Construct ; | 791 | [ rdf:type sp:Construct ; |
1059 | - rdfs:comment "STEP 20051 Set the context facility - installation does not exist"^^xsd:string ; | 792 | + rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; |
1060 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 793 | + sp:templates ([ sp:object |
1061 | - sp:predicate rdf:type ; | 794 | + [ sp:varName "productionFacility"^^xsd:string |
1062 | - sp:subject _:b8 | ||
1063 | - ] [ sp:object | ||
1064 | - [ sp:varName "contextFacility"^^xsd:string | ||
1065 | ] ; | 795 | ] ; |
1066 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
1067 | - sp:subject _:b8 | ||
1068 | - ] [ sp:object _:b8 ; | ||
1069 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 796 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
1070 | sp:subject | 797 | sp:subject |
1071 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 798 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
1072 | ] | 799 | ] |
1073 | - ] [ sp:object _:b8 ; | 800 | + ] [ sp:object |
801 | + [ sp:varName "productionFacility"^^xsd:string | ||
802 | + ] ; | ||
1074 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 803 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
1075 | sp:subject | 804 | sp:subject |
1076 | [ sp:varName "productionFacilityToDate"^^xsd:string | 805 | [ sp:varName "productionFacilityToDate"^^xsd:string |
... | @@ -1086,8 +815,7 @@ | ... | @@ -1086,8 +815,7 @@ |
1086 | sp:subject | 815 | sp:subject |
1087 | [ sp:varName "productVolumeRef"^^xsd:string | 816 | [ sp:varName "productVolumeRef"^^xsd:string |
1088 | ] | 817 | ] |
1089 | - ] [ rdf:type sp:NotExists ; | 818 | + ] [ sp:object |
1090 | - sp:elements ([ sp:object | ||
1091 | [ sp:varName "installationRef"^^xsd:string | 819 | [ sp:varName "installationRef"^^xsd:string |
1092 | ] ; | 820 | ] ; |
1093 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 821 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
... | @@ -1101,21 +829,6 @@ | ... | @@ -1101,21 +829,6 @@ |
1101 | sp:subject | 829 | sp:subject |
1102 | [ sp:varName "productionFacility"^^xsd:string | 830 | [ sp:varName "productionFacility"^^xsd:string |
1103 | ] | 831 | ] |
1104 | - ]) | ||
1105 | - ] [ sp:object | ||
1106 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
1107 | - ] ; | ||
1108 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
1109 | - sp:subject | ||
1110 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1111 | - ] | ||
1112 | - ] [ sp:object | ||
1113 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
1114 | - ] ; | ||
1115 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1116 | - sp:subject | ||
1117 | - [ sp:varName "contextFacility"^^xsd:string | ||
1118 | - ] | ||
1119 | ] [ sp:object | 832 | ] [ sp:object |
1120 | [ sp:varName "productVolumeRef"^^xsd:string | 833 | [ sp:varName "productVolumeRef"^^xsd:string |
1121 | ] ; | 834 | ] ; |
... | @@ -1141,201 +854,9 @@ | ... | @@ -1141,201 +854,9 @@ |
1141 | [ sp:varName "productionFacilityToDate"^^xsd:string | 854 | [ sp:varName "productionFacilityToDate"^^xsd:string |
1142 | ] | 855 | ] |
1143 | ]) | 856 | ]) |
1144 | - ] ; | ||
1145 | - spin:rule | ||
1146 | - [ rdf:type sp:Construct ; | ||
1147 | - rdfs:comment """STEP 20060 Set the facility operator | ||
1148 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
1149 | - sp:templates ([ sp:object _:b9 ; | ||
1150 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
1151 | - sp:subject | ||
1152 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1153 | - ] | ||
1154 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | ||
1155 | - sp:predicate rdf:type ; | ||
1156 | - sp:subject _:b9 | ||
1157 | - ] [ sp:object | ||
1158 | - [ sp:varName "operator"^^xsd:string | ||
1159 | - ] ; | ||
1160 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1161 | - sp:subject _:b9 | ||
1162 | - ]) ; | ||
1163 | - sp:where ([ sp:object | ||
1164 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1165 | - ] ; | ||
1166 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
1167 | - sp:subject spin:_this | ||
1168 | - ] [ sp:object | ||
1169 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1170 | - ] ; | ||
1171 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1172 | - sp:subject | ||
1173 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1174 | - ] | ||
1175 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
1176 | - sp:predicate rdf:type ; | ||
1177 | - sp:subject | ||
1178 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1179 | - ] | ||
1180 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
1181 | - sp:predicate rdf:type ; | ||
1182 | - sp:subject | ||
1183 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1184 | - ] | ||
1185 | - ] [ sp:object | ||
1186 | - [ sp:varName "operatorRef"^^xsd:string | ||
1187 | - ] ; | ||
1188 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
1189 | - sp:subject | ||
1190 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1191 | - ] | ||
1192 | - ] [ sp:object | ||
1193 | - [ sp:varName "operatorRef"^^xsd:string | ||
1194 | - ] ; | ||
1195 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1196 | - sp:subject | ||
1197 | - [ sp:varName "operator"^^xsd:string | ||
1198 | - ] | ||
1199 | - ]) | ||
1200 | - ] ; | ||
1201 | - spin:rule | ||
1202 | - [ rdf:type sp:Construct ; | ||
1203 | - rdfs:comment "STEP 20070 Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext"^^xsd:string ; | ||
1204 | - sp:templates ([ sp:object _:b10 ; | ||
1205 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; | ||
1206 | - sp:subject | ||
1207 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1208 | - ] | ||
1209 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ; | ||
1210 | - sp:predicate rdf:type ; | ||
1211 | - sp:subject _:b10 | ||
1212 | - ] [ sp:object | ||
1213 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
1214 | - ] ; | ||
1215 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1216 | - sp:subject _:b10 | ||
1217 | - ] [ sp:object | ||
1218 | - [ sp:varName "comment"^^xsd:string | ||
1219 | - ] ; | ||
1220 | - sp:predicate rdfs:comment ; | ||
1221 | - sp:subject _:b10 | ||
1222 | - ]) ; | ||
1223 | - sp:where ([ sp:object | ||
1224 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1225 | - ] ; | ||
1226 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
1227 | - sp:subject spin:_this | ||
1228 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
1229 | - sp:predicate rdf:type ; | ||
1230 | - sp:subject | ||
1231 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1232 | - ] | ||
1233 | - ] [ sp:object | ||
1234 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
1235 | - ] ; | ||
1236 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
1237 | - sp:subject | ||
1238 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1239 | - ] | ||
1240 | - ] [ rdf:type sp:Optional ; | ||
1241 | - sp:elements ([ sp:object | ||
1242 | - [ sp:varName "comment"^^xsd:string | ||
1243 | - ] ; | ||
1244 | - sp:predicate <http://www.epim.no/schemas/mprml/1#comment> ; | ||
1245 | - sp:subject | ||
1246 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
1247 | - ] | ||
1248 | - ]) | ||
1249 | - ] [ sp:object | ||
1250 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1251 | - ] ; | ||
1252 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1253 | - sp:subject | ||
1254 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1255 | - ] | ||
1256 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
1257 | - sp:predicate rdf:type ; | ||
1258 | - sp:subject | ||
1259 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1260 | - ] | ||
1261 | - ]) | ||
1262 | - ] ; | ||
1263 | - spin:rule | ||
1264 | - [ rdf:type sp:Construct ; | ||
1265 | - rdfs:comment "STEP 20071 Set the geographic context - country"^^xsd:string ; | ||
1266 | - sp:templates ([ sp:object | ||
1267 | - [ sp:varName "country"^^xsd:string | ||
1268 | - ] ; | ||
1269 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
1270 | - sp:subject | ||
1271 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
1272 | - ] | ||
1273 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ; | ||
1274 | - sp:predicate rdf:type ; | ||
1275 | - sp:subject | ||
1276 | - [ sp:varName "country"^^xsd:string | ||
1277 | - ] | ||
1278 | - ] [ sp:object | ||
1279 | - [ sp:varName "countryName"^^xsd:string | ||
1280 | - ] ; | ||
1281 | - sp:predicate rdfs:label ; | ||
1282 | - sp:subject | ||
1283 | - [ sp:varName "country"^^xsd:string | ||
1284 | - ] | ||
1285 | - ]) ; | ||
1286 | - sp:where ([ sp:object | ||
1287 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1288 | - ] ; | ||
1289 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
1290 | - sp:subject spin:_this | ||
1291 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
1292 | - sp:predicate rdf:type ; | ||
1293 | - sp:subject | ||
1294 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1295 | - ] | ||
1296 | - ] [ sp:object | ||
1297 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
1298 | - ] ; | ||
1299 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
1300 | - sp:subject | ||
1301 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1302 | - ] | ||
1303 | - ] [ sp:object | ||
1304 | - [ sp:varName "countryName"^^xsd:string | ||
1305 | - ] ; | ||
1306 | - sp:predicate <http://www.epim.no/schemas/mprml/1#country> ; | ||
1307 | - sp:subject | ||
1308 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
1309 | - ] | ||
1310 | - ] [ sp:object | ||
1311 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
1312 | - ] ; | ||
1313 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1314 | - sp:subject | ||
1315 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
1316 | - ] | ||
1317 | - ] [ rdf:type sp:Bind ; | ||
1318 | - sp:expression | ||
1319 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
1320 | - sp:arg1 [ sp:varName "countryName"^^xsd:string | ||
1321 | - ] | ||
1322 | - ] ; | ||
1323 | - sp:variable | ||
1324 | - [ sp:varName "normalizedCountryName"^^xsd:string | ||
1325 | - ] | ||
1326 | - ] [ rdf:type sp:Bind ; | ||
1327 | - sp:expression | ||
1328 | - [ rdf:type ep-dpr-spin-lib:buildCountryURI ; | ||
1329 | - sp:arg1 [ sp:varName "normalizedCountryName"^^xsd:string | ||
1330 | - ] | ||
1331 | - ] ; | ||
1332 | - sp:variable | ||
1333 | - [ sp:varName "country"^^xsd:string | ||
1334 | - ] | ||
1335 | - ]) | ||
1336 | ] . | 857 | ] . |
1337 | 858 | ||
1338 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> | 859 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> |
1339 | rdf:type owl:Ontology ; | 860 | rdf:type owl:Ontology ; |
1340 | - 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> ; | 861 | + 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> ; |
1341 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 862 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
... | @@ -19,14 +19,12 @@ | ... | @@ -19,14 +19,12 @@ |
19 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 19 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
20 | spin:rule | 20 | spin:rule |
21 | [ rdf:type sp:Construct ; | 21 | [ rdf:type sp:Construct ; |
22 | - rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; | 22 | + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; |
23 | sp:templates ([ sp:object | 23 | sp:templates ([ sp:object |
24 | - [ sp:varName "contextFacility"^^xsd:string | 24 | + [ sp:varName "dateEnd"^^xsd:string |
25 | ] ; | 25 | ] ; |
26 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | 26 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
27 | - sp:subject | 27 | + sp:subject spin:_this |
28 | - [ sp:varName "productionFacility"^^xsd:string | ||
29 | - ] | ||
30 | ]) ; | 28 | ]) ; |
31 | sp:where ([ sp:object | 29 | sp:where ([ sp:object |
32 | [ sp:varName "contextRef"^^xsd:string | 30 | [ sp:varName "contextRef"^^xsd:string |
... | @@ -39,89 +37,152 @@ | ... | @@ -39,89 +37,152 @@ |
39 | [ sp:varName "contextRef"^^xsd:string | 37 | [ sp:varName "contextRef"^^xsd:string |
40 | ] | 38 | ] |
41 | ] [ sp:object | 39 | ] [ sp:object |
42 | - [ sp:varName "contectFacilityRef"^^xsd:string | 40 | + [ sp:varName "dateEnd"^^xsd:string |
43 | ] ; | 41 | ] ; |
44 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 42 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
45 | sp:subject | 43 | sp:subject |
46 | [ sp:varName "contextRef"^^xsd:string | 44 | [ sp:varName "contextRef"^^xsd:string |
47 | ] | 45 | ] |
48 | - ] [ sp:object | 46 | + ] [ rdf:type sp:NotExists ; |
49 | - [ sp:varName "contextFacilityRef"^^xsd:string | 47 | + sp:elements ([ sp:object |
48 | + [ sp:varName "date"^^xsd:string | ||
50 | ] ; | 49 | ] ; |
51 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 50 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
52 | sp:subject | 51 | sp:subject |
53 | - [ sp:varName "contextFacility"^^xsd:string | 52 | + [ sp:varName "contextRef"^^xsd:string |
54 | ] | 53 | ] |
55 | - ] [ sp:object spin:_this ; | 54 | + ]) |
56 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 55 | + ] [ rdf:type sp:NotExists ; |
56 | + sp:elements ([ sp:object | ||
57 | + [ sp:varName "dateStart"^^xsd:string | ||
58 | + ] ; | ||
59 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
57 | sp:subject | 60 | sp:subject |
58 | - [ sp:varName "productionReport"^^xsd:string | 61 | + [ sp:varName "contextRef"^^xsd:string |
59 | ] | 62 | ] |
60 | - ] [ sp:object | 63 | + ]) |
61 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 64 | + ]) |
62 | ] ; | 65 | ] ; |
66 | + spin:rule | ||
67 | + [ rdf:type sp:Construct ; | ||
68 | + rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ; | ||
69 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | ||
70 | + sp:predicate rdf:type ; | ||
71 | + sp:subject | ||
72 | + [ sp:varName "productionReport"^^xsd:string | ||
73 | + ] | ||
74 | + ] [ sp:object _:b1 ; | ||
63 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 75 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
64 | sp:subject | 76 | sp:subject |
65 | [ sp:varName "productionReport"^^xsd:string | 77 | [ sp:varName "productionReport"^^xsd:string |
66 | ] | 78 | ] |
67 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 79 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
68 | sp:predicate rdf:type ; | 80 | sp:predicate rdf:type ; |
69 | - sp:subject | 81 | + sp:subject _:b1 |
70 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
71 | - ] | ||
72 | ] [ sp:object | 82 | ] [ sp:object |
73 | - [ sp:varName "productionFacility"^^xsd:string | 83 | + [ sp:varName "installation"^^xsd:string |
74 | ] ; | 84 | ] ; |
75 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 85 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
86 | + sp:subject _:b1 | ||
87 | + ] [ sp:object spin:_this ; | ||
88 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
76 | sp:subject | 89 | sp:subject |
77 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 90 | + [ sp:varName "productionReport"^^xsd:string |
78 | ] | 91 | ] |
79 | - ]) | 92 | + ] [ sp:object |
93 | + [ sp:varName "contextRef"^^xsd:string | ||
80 | ] ; | 94 | ] ; |
81 | - spin:rule | 95 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
82 | - [ rdf:type sp:Construct ; | 96 | + sp:subject _:b1 |
83 | - rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; | 97 | + ]) ; |
84 | - sp:templates ([ sp:object | 98 | + sp:where ([ sp:object |
85 | - [ sp:varName "date"^^xsd:string | 99 | + [ sp:varName "intervalIdentifier"^^xsd:string |
86 | ] ; | 100 | ] ; |
87 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 101 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
88 | sp:subject spin:_this | 102 | sp:subject spin:_this |
89 | - ]) ; | 103 | + ] [ sp:object |
90 | - sp:where ([ sp:object | 104 | + [ sp:varName "productVolumeRef"^^xsd:string |
91 | - [ sp:varName "contextRef"^^xsd:string | ||
92 | ] ; | 105 | ] ; |
93 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 106 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
94 | sp:subject spin:_this | 107 | sp:subject spin:_this |
95 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | 108 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
96 | sp:predicate rdf:type ; | 109 | sp:predicate rdf:type ; |
97 | sp:subject | 110 | sp:subject |
98 | - [ sp:varName "contextRef"^^xsd:string | 111 | + [ sp:varName "productVolumeRef"^^xsd:string |
99 | ] | 112 | ] |
100 | ] [ sp:object | 113 | ] [ sp:object |
101 | - [ sp:varName "date"^^xsd:string | 114 | + [ sp:varName "installationRef"^^xsd:string |
102 | ] ; | 115 | ] ; |
103 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 116 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
104 | sp:subject | 117 | sp:subject |
105 | - [ sp:varName "contextRef"^^xsd:string | 118 | + [ sp:varName "productVolumeRef"^^xsd:string |
119 | + ] | ||
120 | + ] [ sp:object | ||
121 | + [ sp:varName "installationRef"^^xsd:string | ||
122 | + ] ; | ||
123 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
124 | + sp:subject | ||
125 | + [ sp:varName "installation"^^xsd:string | ||
106 | ] | 126 | ] |
107 | ] [ rdf:type sp:NotExists ; | 127 | ] [ rdf:type sp:NotExists ; |
108 | sp:elements ([ sp:object | 128 | sp:elements ([ sp:object |
109 | - [ sp:varName "dateStart"^^xsd:string | 129 | + [ sp:varName "productionOperationRef"^^xsd:string |
110 | ] ; | 130 | ] ; |
111 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 131 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
132 | + sp:subject spin:_this | ||
133 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
134 | + sp:predicate rdf:type ; | ||
112 | sp:subject | 135 | sp:subject |
113 | - [ sp:varName "contextRef"^^xsd:string | 136 | + [ sp:varName "productionOperationRef"^^xsd:string |
137 | + ] | ||
138 | + ] [ sp:object | ||
139 | + [ sp:varName "installationRef"^^xsd:string | ||
140 | + ] ; | ||
141 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
142 | + sp:subject | ||
143 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
114 | ] | 144 | ] |
115 | ]) | 145 | ]) |
116 | ] [ rdf:type sp:NotExists ; | 146 | ] [ rdf:type sp:NotExists ; |
117 | sp:elements ([ sp:object | 147 | sp:elements ([ sp:object |
118 | - [ sp:varName "dateEnd"^^xsd:string | 148 | + [ sp:varName "contextRef"^^xsd:string |
119 | ] ; | 149 | ] ; |
120 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 150 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
151 | + sp:subject spin:_this | ||
152 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
153 | + sp:predicate rdf:type ; | ||
154 | + sp:subject | ||
155 | + [ sp:varName "contextRef"^^xsd:string | ||
156 | + ] | ||
157 | + ] [ sp:object | ||
158 | + [ sp:varName "installationRef"^^xsd:string | ||
159 | + ] ; | ||
160 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
121 | sp:subject | 161 | sp:subject |
122 | [ sp:varName "contextRef"^^xsd:string | 162 | [ sp:varName "contextRef"^^xsd:string |
123 | ] | 163 | ] |
124 | ]) | 164 | ]) |
165 | + ] [ rdf:type sp:Bind ; | ||
166 | + sp:expression | ||
167 | + [ rdf:type spl:object ; | ||
168 | + sp:arg1 [ sp:varName "installationRef"^^xsd:string | ||
169 | + ] ; | ||
170 | + sp:arg2 rdfs:label | ||
171 | + ] ; | ||
172 | + sp:variable | ||
173 | + [ sp:varName "normalizedInstallationName"^^xsd:string | ||
174 | + ] | ||
175 | + ] [ rdf:type sp:Bind ; | ||
176 | + sp:expression | ||
177 | + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | ||
178 | + sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
179 | + ] ; | ||
180 | + sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
181 | + ] | ||
182 | + ] ; | ||
183 | + sp:variable | ||
184 | + [ sp:varName "productionReport"^^xsd:string | ||
185 | + ] | ||
125 | ]) | 186 | ]) |
126 | ] ; | 187 | ] ; |
127 | spin:rule | 188 | spin:rule |
... | @@ -172,12 +233,14 @@ | ... | @@ -172,12 +233,14 @@ |
172 | ] ; | 233 | ] ; |
173 | spin:rule | 234 | spin:rule |
174 | [ rdf:type sp:Construct ; | 235 | [ rdf:type sp:Construct ; |
175 | - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; | 236 | + rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ; |
176 | sp:templates ([ sp:object | 237 | sp:templates ([ sp:object |
177 | - [ sp:varName "dateEnd"^^xsd:string | 238 | + [ sp:varName "contextFacility"^^xsd:string |
178 | ] ; | 239 | ] ; |
179 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 240 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
180 | - sp:subject spin:_this | 241 | + sp:subject |
242 | + [ sp:varName "productionFacility"^^xsd:string | ||
243 | + ] | ||
181 | ]) ; | 244 | ]) ; |
182 | sp:where ([ sp:object | 245 | sp:where ([ sp:object |
183 | [ sp:varName "contextRef"^^xsd:string | 246 | [ sp:varName "contextRef"^^xsd:string |
... | @@ -190,48 +253,107 @@ | ... | @@ -190,48 +253,107 @@ |
190 | [ sp:varName "contextRef"^^xsd:string | 253 | [ sp:varName "contextRef"^^xsd:string |
191 | ] | 254 | ] |
192 | ] [ sp:object | 255 | ] [ sp:object |
193 | - [ sp:varName "dateEnd"^^xsd:string | 256 | + [ sp:varName "contectFacilityRef"^^xsd:string |
194 | ] ; | 257 | ] ; |
195 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 258 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; |
196 | sp:subject | 259 | sp:subject |
197 | [ sp:varName "contextRef"^^xsd:string | 260 | [ sp:varName "contextRef"^^xsd:string |
198 | ] | 261 | ] |
199 | - ] [ rdf:type sp:NotExists ; | 262 | + ] [ sp:object |
200 | - sp:elements ([ sp:object | 263 | + [ sp:varName "contextFacilityRef"^^xsd:string |
201 | - [ sp:varName "date"^^xsd:string | ||
202 | ] ; | 264 | ] ; |
203 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 265 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
204 | sp:subject | 266 | sp:subject |
205 | - [ sp:varName "contextRef"^^xsd:string | 267 | + [ sp:varName "contextFacility"^^xsd:string |
268 | + ] | ||
269 | + ] [ sp:object spin:_this ; | ||
270 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
271 | + sp:subject | ||
272 | + [ sp:varName "productionReport"^^xsd:string | ||
273 | + ] | ||
274 | + ] [ sp:object | ||
275 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
276 | + ] ; | ||
277 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
278 | + sp:subject | ||
279 | + [ sp:varName "productionReport"^^xsd:string | ||
280 | + ] | ||
281 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
282 | + sp:predicate rdf:type ; | ||
283 | + sp:subject | ||
284 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
285 | + ] | ||
286 | + ] [ sp:object | ||
287 | + [ sp:varName "productionFacility"^^xsd:string | ||
288 | + ] ; | ||
289 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
290 | + sp:subject | ||
291 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
206 | ] | 292 | ] |
207 | ]) | 293 | ]) |
208 | - ] [ rdf:type sp:NotExists ; | 294 | + ] ; |
209 | - sp:elements ([ sp:object | 295 | + spin:rule |
296 | + [ rdf:type sp:Construct ; | ||
297 | + rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ; | ||
298 | + sp:templates ([ sp:object | ||
299 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
300 | + ] ; | ||
301 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | ||
302 | + sp:subject spin:_this | ||
303 | + ]) ; | ||
304 | + sp:where ([ sp:object | ||
305 | + [ sp:varName "contextRef"^^xsd:string | ||
306 | + ] ; | ||
307 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
308 | + sp:subject spin:_this | ||
309 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
310 | + sp:predicate rdf:type ; | ||
311 | + sp:subject | ||
312 | + [ sp:varName "contextRef"^^xsd:string | ||
313 | + ] | ||
314 | + ] [ sp:object | ||
210 | [ sp:varName "dateStart"^^xsd:string | 315 | [ sp:varName "dateStart"^^xsd:string |
211 | ] ; | 316 | ] ; |
212 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 317 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
213 | sp:subject | 318 | sp:subject |
214 | [ sp:varName "contextRef"^^xsd:string | 319 | [ sp:varName "contextRef"^^xsd:string |
215 | ] | 320 | ] |
216 | - ]) | 321 | + ] [ sp:object |
322 | + [ sp:varName "dateEnd"^^xsd:string | ||
323 | + ] ; | ||
324 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
325 | + sp:subject | ||
326 | + [ sp:varName "contextRef"^^xsd:string | ||
327 | + ] | ||
328 | + ] [ rdf:type sp:Bind ; | ||
329 | + sp:expression | ||
330 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
331 | + sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
332 | + ] ; | ||
333 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
334 | + ] | ||
335 | + ] ; | ||
336 | + sp:variable | ||
337 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
338 | + ] | ||
217 | ]) | 339 | ]) |
218 | ] ; | 340 | ] ; |
219 | spin:rule | 341 | spin:rule |
220 | [ rdf:type sp:Construct ; | 342 | [ rdf:type sp:Construct ; |
221 | rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; | 343 | rdfs:comment "STEP 10020 Add the operator"^^xsd:string ; |
222 | - sp:templates ([ sp:object _:b1 ; | 344 | + sp:templates ([ sp:object _:b2 ; |
223 | sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | 345 | sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; |
224 | sp:subject | 346 | sp:subject |
225 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 347 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
226 | ] | 348 | ] |
227 | ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 349 | ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
228 | sp:predicate rdf:type ; | 350 | sp:predicate rdf:type ; |
229 | - sp:subject _:b1 | 351 | + sp:subject _:b2 |
230 | ] [ sp:object | 352 | ] [ sp:object |
231 | [ sp:varName "operator"^^xsd:string | 353 | [ sp:varName "operator"^^xsd:string |
232 | ] ; | 354 | ] ; |
233 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 355 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
234 | - sp:subject _:b1 | 356 | + sp:subject _:b2 |
235 | ]) ; | 357 | ]) ; |
236 | sp:where ([ sp:object | 358 | sp:where ([ sp:object |
237 | [ sp:varName "contextRef"^^xsd:string | 359 | [ sp:varName "contextRef"^^xsd:string |
... | @@ -278,7 +400,7 @@ | ... | @@ -278,7 +400,7 @@ |
278 | ] ; | 400 | ] ; |
279 | spin:rule | 401 | spin:rule |
280 | [ rdf:type sp:Construct ; | 402 | [ rdf:type sp:Construct ; |
281 | - rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ; | 403 | + rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; |
282 | sp:templates ([ sp:object | 404 | sp:templates ([ sp:object |
283 | [ sp:varName "intervalIdentifier"^^xsd:string | 405 | [ sp:varName "intervalIdentifier"^^xsd:string |
284 | ] ; | 406 | ] ; |
... | @@ -296,12 +418,21 @@ | ... | @@ -296,12 +418,21 @@ |
296 | [ sp:varName "contextRef"^^xsd:string | 418 | [ sp:varName "contextRef"^^xsd:string |
297 | ] | 419 | ] |
298 | ] [ sp:object | 420 | ] [ sp:object |
421 | + [ sp:varName "date"^^xsd:string | ||
422 | + ] ; | ||
423 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
424 | + sp:subject | ||
425 | + [ sp:varName "contextRef"^^xsd:string | ||
426 | + ] | ||
427 | + ] [ rdf:type sp:NotExists ; | ||
428 | + sp:elements ([ sp:object | ||
299 | [ sp:varName "dateStart"^^xsd:string | 429 | [ sp:varName "dateStart"^^xsd:string |
300 | ] ; | 430 | ] ; |
301 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 431 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
302 | sp:subject | 432 | sp:subject |
303 | [ sp:varName "contextRef"^^xsd:string | 433 | [ sp:varName "contextRef"^^xsd:string |
304 | ] | 434 | ] |
435 | + ]) | ||
305 | ] [ sp:object | 436 | ] [ sp:object |
306 | [ sp:varName "dateEnd"^^xsd:string | 437 | [ sp:varName "dateEnd"^^xsd:string |
307 | ] ; | 438 | ] ; |
... | @@ -312,7 +443,7 @@ | ... | @@ -312,7 +443,7 @@ |
312 | ] [ rdf:type sp:Bind ; | 443 | ] [ rdf:type sp:Bind ; |
313 | sp:expression | 444 | sp:expression |
314 | [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | 445 | [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; |
315 | - sp:arg1 [ sp:varName "dateStart"^^xsd:string | 446 | + sp:arg1 [ sp:varName "date"^^xsd:string |
316 | ] ; | 447 | ] ; |
317 | sp:arg2 [ sp:varName "dateEnd"^^xsd:string | 448 | sp:arg2 [ sp:varName "dateEnd"^^xsd:string |
318 | ] | 449 | ] |
... | @@ -324,30 +455,35 @@ | ... | @@ -324,30 +455,35 @@ |
324 | ] ; | 455 | ] ; |
325 | spin:rule | 456 | spin:rule |
326 | [ rdf:type sp:Construct ; | 457 | [ rdf:type sp:Construct ; |
327 | - rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ; | 458 | + rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; |
328 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 459 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
329 | sp:predicate rdf:type ; | 460 | sp:predicate rdf:type ; |
330 | sp:subject | 461 | sp:subject |
331 | [ sp:varName "productionReport"^^xsd:string | 462 | [ sp:varName "productionReport"^^xsd:string |
332 | ] | 463 | ] |
333 | - ] [ sp:object _:b2 ; | 464 | + ] [ sp:object _:b3 ; |
334 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 465 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
335 | sp:subject | 466 | sp:subject |
336 | [ sp:varName "productionReport"^^xsd:string | 467 | [ sp:varName "productionReport"^^xsd:string |
337 | ] | 468 | ] |
338 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 469 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
339 | sp:predicate rdf:type ; | 470 | sp:predicate rdf:type ; |
340 | - sp:subject _:b2 | 471 | + sp:subject _:b3 |
341 | ] [ sp:object | 472 | ] [ sp:object |
342 | [ sp:varName "installation"^^xsd:string | 473 | [ sp:varName "installation"^^xsd:string |
343 | ] ; | 474 | ] ; |
344 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 475 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
345 | - sp:subject _:b2 | 476 | + sp:subject _:b3 |
346 | ] [ sp:object spin:_this ; | 477 | ] [ sp:object spin:_this ; |
347 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 478 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
348 | sp:subject | 479 | sp:subject |
349 | [ sp:varName "productionReport"^^xsd:string | 480 | [ sp:varName "productionReport"^^xsd:string |
350 | ] | 481 | ] |
482 | + ] [ sp:object | ||
483 | + [ sp:varName "contextRef"^^xsd:string | ||
484 | + ] ; | ||
485 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
486 | + sp:subject _:b3 | ||
351 | ]) ; | 487 | ]) ; |
352 | sp:where ([ sp:object | 488 | sp:where ([ sp:object |
353 | [ sp:varName "intervalIdentifier"^^xsd:string | 489 | [ sp:varName "intervalIdentifier"^^xsd:string |
... | @@ -355,21 +491,21 @@ | ... | @@ -355,21 +491,21 @@ |
355 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 491 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
356 | sp:subject spin:_this | 492 | sp:subject spin:_this |
357 | ] [ sp:object | 493 | ] [ sp:object |
358 | - [ sp:varName "productVolumeRef"^^xsd:string | 494 | + [ sp:varName "productionOperationRef"^^xsd:string |
359 | ] ; | 495 | ] ; |
360 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 496 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
361 | sp:subject spin:_this | 497 | sp:subject spin:_this |
362 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | 498 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; |
363 | sp:predicate rdf:type ; | 499 | sp:predicate rdf:type ; |
364 | sp:subject | 500 | sp:subject |
365 | - [ sp:varName "productVolumeRef"^^xsd:string | 501 | + [ sp:varName "productionOperationRef"^^xsd:string |
366 | ] | 502 | ] |
367 | ] [ sp:object | 503 | ] [ sp:object |
368 | [ sp:varName "installationRef"^^xsd:string | 504 | [ sp:varName "installationRef"^^xsd:string |
369 | ] ; | 505 | ] ; |
370 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 506 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
371 | sp:subject | 507 | sp:subject |
372 | - [ sp:varName "productVolumeRef"^^xsd:string | 508 | + [ sp:varName "productionOperationRef"^^xsd:string |
373 | ] | 509 | ] |
374 | ] [ sp:object | 510 | ] [ sp:object |
375 | [ sp:varName "installationRef"^^xsd:string | 511 | [ sp:varName "installationRef"^^xsd:string |
... | @@ -380,25 +516,6 @@ | ... | @@ -380,25 +516,6 @@ |
380 | ] | 516 | ] |
381 | ] [ rdf:type sp:NotExists ; | 517 | ] [ rdf:type sp:NotExists ; |
382 | sp:elements ([ sp:object | 518 | sp:elements ([ sp:object |
383 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
384 | - ] ; | ||
385 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
386 | - sp:subject spin:_this | ||
387 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
388 | - sp:predicate rdf:type ; | ||
389 | - sp:subject | ||
390 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
391 | - ] | ||
392 | - ] [ sp:object | ||
393 | - [ sp:varName "installationRef"^^xsd:string | ||
394 | - ] ; | ||
395 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
396 | - sp:subject | ||
397 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
398 | - ] | ||
399 | - ]) | ||
400 | - ] [ rdf:type sp:NotExists ; | ||
401 | - sp:elements ([ sp:object | ||
402 | [ sp:varName "contextRef"^^xsd:string | 519 | [ sp:varName "contextRef"^^xsd:string |
403 | ] ; | 520 | ] ; |
404 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 521 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
... | @@ -409,7 +526,7 @@ | ... | @@ -409,7 +526,7 @@ |
409 | [ sp:varName "contextRef"^^xsd:string | 526 | [ sp:varName "contextRef"^^xsd:string |
410 | ] | 527 | ] |
411 | ] [ sp:object | 528 | ] [ sp:object |
412 | - [ sp:varName "installationRef"^^xsd:string | 529 | + [ sp:varName "something"^^xsd:string |
413 | ] ; | 530 | ] ; |
414 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 531 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
415 | sp:subject | 532 | sp:subject |
... | @@ -441,9 +558,9 @@ | ... | @@ -441,9 +558,9 @@ |
441 | ] ; | 558 | ] ; |
442 | spin:rule | 559 | spin:rule |
443 | [ rdf:type sp:Construct ; | 560 | [ rdf:type sp:Construct ; |
444 | - rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; | 561 | + rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; |
445 | sp:templates ([ sp:object | 562 | sp:templates ([ sp:object |
446 | - [ sp:varName "intervalIdentifier"^^xsd:string | 563 | + [ sp:varName "date"^^xsd:string |
447 | ] ; | 564 | ] ; |
448 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 565 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
449 | sp:subject spin:_this | 566 | sp:subject spin:_this |
... | @@ -474,52 +591,48 @@ | ... | @@ -474,52 +591,48 @@ |
474 | [ sp:varName "contextRef"^^xsd:string | 591 | [ sp:varName "contextRef"^^xsd:string |
475 | ] | 592 | ] |
476 | ]) | 593 | ]) |
477 | - ] [ sp:object | 594 | + ] [ rdf:type sp:NotExists ; |
595 | + sp:elements ([ sp:object | ||
478 | [ sp:varName "dateEnd"^^xsd:string | 596 | [ sp:varName "dateEnd"^^xsd:string |
479 | ] ; | 597 | ] ; |
480 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 598 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
481 | sp:subject | 599 | sp:subject |
482 | [ sp:varName "contextRef"^^xsd:string | 600 | [ sp:varName "contextRef"^^xsd:string |
483 | ] | 601 | ] |
484 | - ] [ rdf:type sp:Bind ; | 602 | + ]) |
485 | - sp:expression | ||
486 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
487 | - sp:arg1 [ sp:varName "date"^^xsd:string | ||
488 | - ] ; | ||
489 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
490 | - ] | ||
491 | - ] ; | ||
492 | - sp:variable | ||
493 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
494 | - ] | ||
495 | ]) | 603 | ]) |
496 | ] ; | 604 | ] ; |
497 | spin:rule | 605 | spin:rule |
498 | [ rdf:type sp:Construct ; | 606 | [ rdf:type sp:Construct ; |
499 | - rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; | 607 | + rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ; |
500 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 608 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
501 | sp:predicate rdf:type ; | 609 | sp:predicate rdf:type ; |
502 | sp:subject | 610 | sp:subject |
503 | [ sp:varName "productionReport"^^xsd:string | 611 | [ sp:varName "productionReport"^^xsd:string |
504 | ] | 612 | ] |
505 | - ] [ sp:object _:b3 ; | 613 | + ] [ sp:object _:b4 ; |
506 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 614 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
507 | sp:subject | 615 | sp:subject |
508 | [ sp:varName "productionReport"^^xsd:string | 616 | [ sp:varName "productionReport"^^xsd:string |
509 | ] | 617 | ] |
510 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 618 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
511 | sp:predicate rdf:type ; | 619 | sp:predicate rdf:type ; |
512 | - sp:subject _:b3 | 620 | + sp:subject _:b4 |
513 | ] [ sp:object | 621 | ] [ sp:object |
514 | [ sp:varName "installation"^^xsd:string | 622 | [ sp:varName "installation"^^xsd:string |
515 | ] ; | 623 | ] ; |
516 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 624 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
517 | - sp:subject _:b3 | 625 | + sp:subject _:b4 |
518 | ] [ sp:object spin:_this ; | 626 | ] [ sp:object spin:_this ; |
519 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 627 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
520 | sp:subject | 628 | sp:subject |
521 | [ sp:varName "productionReport"^^xsd:string | 629 | [ sp:varName "productionReport"^^xsd:string |
522 | ] | 630 | ] |
631 | + ] [ sp:object | ||
632 | + [ sp:varName "contextRef"^^xsd:string | ||
633 | + ] ; | ||
634 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
635 | + sp:subject _:b4 | ||
523 | ]) ; | 636 | ]) ; |
524 | sp:where ([ sp:object | 637 | sp:where ([ sp:object |
525 | [ sp:varName "intervalIdentifier"^^xsd:string | 638 | [ sp:varName "intervalIdentifier"^^xsd:string |
... | @@ -527,21 +640,21 @@ | ... | @@ -527,21 +640,21 @@ |
527 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 640 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
528 | sp:subject spin:_this | 641 | sp:subject spin:_this |
529 | ] [ sp:object | 642 | ] [ sp:object |
530 | - [ sp:varName "productionOperationRef"^^xsd:string | 643 | + [ sp:varName "contextRef"^^xsd:string |
531 | ] ; | 644 | ] ; |
532 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 645 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
533 | sp:subject spin:_this | 646 | sp:subject spin:_this |
534 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | 647 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; |
535 | sp:predicate rdf:type ; | 648 | sp:predicate rdf:type ; |
536 | sp:subject | 649 | sp:subject |
537 | - [ sp:varName "productionOperationRef"^^xsd:string | 650 | + [ sp:varName "contextRef"^^xsd:string |
538 | ] | 651 | ] |
539 | ] [ sp:object | 652 | ] [ sp:object |
540 | [ sp:varName "installationRef"^^xsd:string | 653 | [ sp:varName "installationRef"^^xsd:string |
541 | ] ; | 654 | ] ; |
542 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 655 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
543 | sp:subject | 656 | sp:subject |
544 | - [ sp:varName "productionOperationRef"^^xsd:string | 657 | + [ sp:varName "contextRef"^^xsd:string |
545 | ] | 658 | ] |
546 | ] [ sp:object | 659 | ] [ sp:object |
547 | [ sp:varName "installationRef"^^xsd:string | 660 | [ sp:varName "installationRef"^^xsd:string |
... | @@ -550,25 +663,6 @@ | ... | @@ -550,25 +663,6 @@ |
550 | sp:subject | 663 | sp:subject |
551 | [ sp:varName "installation"^^xsd:string | 664 | [ sp:varName "installation"^^xsd:string |
552 | ] | 665 | ] |
553 | - ] [ rdf:type sp:NotExists ; | ||
554 | - sp:elements ([ sp:object | ||
555 | - [ sp:varName "contextRef"^^xsd:string | ||
556 | - ] ; | ||
557 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
558 | - sp:subject spin:_this | ||
559 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
560 | - sp:predicate rdf:type ; | ||
561 | - sp:subject | ||
562 | - [ sp:varName "contextRef"^^xsd:string | ||
563 | - ] | ||
564 | - ] [ sp:object | ||
565 | - [ sp:varName "something"^^xsd:string | ||
566 | - ] ; | ||
567 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
568 | - sp:subject | ||
569 | - [ sp:varName "contextRef"^^xsd:string | ||
570 | - ] | ||
571 | - ]) | ||
572 | ] [ rdf:type sp:Bind ; | 666 | ] [ rdf:type sp:Bind ; |
573 | sp:expression | 667 | sp:expression |
574 | [ rdf:type spl:object ; | 668 | [ rdf:type spl:object ; |
... | @@ -600,19 +694,24 @@ | ... | @@ -600,19 +694,24 @@ |
600 | sp:subject | 694 | sp:subject |
601 | [ sp:varName "productionReport"^^xsd:string | 695 | [ sp:varName "productionReport"^^xsd:string |
602 | ] | 696 | ] |
603 | - ] [ sp:object _:b4 ; | 697 | + ] [ sp:object _:b5 ; |
604 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 698 | sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
605 | sp:subject | 699 | sp:subject |
606 | [ sp:varName "productionReport"^^xsd:string | 700 | [ sp:varName "productionReport"^^xsd:string |
607 | ] | 701 | ] |
608 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 702 | ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
609 | sp:predicate rdf:type ; | 703 | sp:predicate rdf:type ; |
610 | - sp:subject _:b4 | 704 | + sp:subject _:b5 |
611 | ] [ sp:object spin:_this ; | 705 | ] [ sp:object spin:_this ; |
612 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 706 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
613 | sp:subject | 707 | sp:subject |
614 | [ sp:varName "productionReport"^^xsd:string | 708 | [ sp:varName "productionReport"^^xsd:string |
615 | ] | 709 | ] |
710 | + ] [ sp:object | ||
711 | + [ sp:varName "contextRef"^^xsd:string | ||
712 | + ] ; | ||
713 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
714 | + sp:subject _:b5 | ||
616 | ]) ; | 715 | ]) ; |
617 | sp:where ([ sp:object | 716 | sp:where ([ sp:object |
618 | [ sp:varName "intervalIdentifier"^^xsd:string | 717 | [ sp:varName "intervalIdentifier"^^xsd:string |
... | @@ -699,85 +798,6 @@ | ... | @@ -699,85 +798,6 @@ |
699 | ] ; | 798 | ] ; |
700 | spin:rule | 799 | spin:rule |
701 | [ rdf:type sp:Construct ; | 800 | [ rdf:type sp:Construct ; |
702 | - rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ; | ||
703 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | ||
704 | - sp:predicate rdf:type ; | ||
705 | - sp:subject | ||
706 | - [ sp:varName "productionReport"^^xsd:string | ||
707 | - ] | ||
708 | - ] [ sp:object _:b5 ; | ||
709 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
710 | - sp:subject | ||
711 | - [ sp:varName "productionReport"^^xsd:string | ||
712 | - ] | ||
713 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
714 | - sp:predicate rdf:type ; | ||
715 | - sp:subject _:b5 | ||
716 | - ] [ sp:object | ||
717 | - [ sp:varName "installation"^^xsd:string | ||
718 | - ] ; | ||
719 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
720 | - sp:subject _:b5 | ||
721 | - ] [ sp:object spin:_this ; | ||
722 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
723 | - sp:subject | ||
724 | - [ sp:varName "productionReport"^^xsd:string | ||
725 | - ] | ||
726 | - ]) ; | ||
727 | - sp:where ([ sp:object | ||
728 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
729 | - ] ; | ||
730 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | ||
731 | - sp:subject spin:_this | ||
732 | - ] [ sp:object | ||
733 | - [ sp:varName "contextRef"^^xsd:string | ||
734 | - ] ; | ||
735 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
736 | - sp:subject spin:_this | ||
737 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
738 | - sp:predicate rdf:type ; | ||
739 | - sp:subject | ||
740 | - [ sp:varName "contextRef"^^xsd:string | ||
741 | - ] | ||
742 | - ] [ sp:object | ||
743 | - [ sp:varName "installationRef"^^xsd:string | ||
744 | - ] ; | ||
745 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
746 | - sp:subject | ||
747 | - [ sp:varName "contextRef"^^xsd:string | ||
748 | - ] | ||
749 | - ] [ sp:object | ||
750 | - [ sp:varName "installationRef"^^xsd:string | ||
751 | - ] ; | ||
752 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
753 | - sp:subject | ||
754 | - [ sp:varName "installation"^^xsd:string | ||
755 | - ] | ||
756 | - ] [ rdf:type sp:Bind ; | ||
757 | - sp:expression | ||
758 | - [ rdf:type spl:object ; | ||
759 | - sp:arg1 [ sp:varName "installationRef"^^xsd:string | ||
760 | - ] ; | ||
761 | - sp:arg2 rdfs:label | ||
762 | - ] ; | ||
763 | - sp:variable | ||
764 | - [ sp:varName "normalizedInstallationName"^^xsd:string | ||
765 | - ] | ||
766 | - ] [ rdf:type sp:Bind ; | ||
767 | - sp:expression | ||
768 | - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | ||
769 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | ||
770 | - ] ; | ||
771 | - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | ||
772 | - ] | ||
773 | - ] ; | ||
774 | - sp:variable | ||
775 | - [ sp:varName "productionReport"^^xsd:string | ||
776 | - ] | ||
777 | - ]) | ||
778 | - ] ; | ||
779 | - spin:rule | ||
780 | - [ rdf:type sp:Construct ; | ||
781 | rdfs:comment "STEP 10001z Add the report kind, issue date and title"^^xsd:string ; | 801 | rdfs:comment "STEP 10001z Add the report kind, issue date and title"^^xsd:string ; |
782 | sp:templates ([ sp:object | 802 | sp:templates ([ sp:object |
783 | [ sp:varName "reportKind"^^xsd:string | 803 | [ sp:varName "reportKind"^^xsd:string | ... | ... |
... | @@ -25,9 +25,15 @@ | ... | @@ -25,9 +25,15 @@ |
25 | <name>DONG E&P Norge AS</name> | 25 | <name>DONG E&P Norge AS</name> |
26 | <role>Operating company</role> | 26 | <role>Operating company</role> |
27 | </operator> | 27 | </operator> |
28 | + <geographicContext> | ||
29 | + <comment>somewhere</comment> | ||
30 | + </geographicContext> | ||
28 | </context> | 31 | </context> |
29 | <object xsi:type="obj_productVolume"> | 32 | <object xsi:type="obj_productVolume"> |
30 | <name>TRYM</name> | 33 | <name>TRYM</name> |
34 | + <geographicContext> | ||
35 | + <comment>somewhere else</comment> | ||
36 | + </geographicContext> | ||
31 | <facility> | 37 | <facility> |
32 | <name kind="field" namingSystem="NPD" uidRef="18081500">TRYM</name> | 38 | <name kind="field" namingSystem="NPD" uidRef="18081500">TRYM</name> |
33 | <flow> | 39 | <flow> | ... | ... |
-
Please register or login to post a comment