David Leal

Update the the processing of organization in the MPR

...@@ -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-organization-v1.1.1
9 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0 10 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
10 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0 11 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0
11 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0 12 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0
...@@ -14,6 +15,7 @@ ...@@ -14,6 +15,7 @@
14 @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . 15 @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> .
15 @prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . 16 @prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> .
16 @prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> . 17 @prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> .
18 +@prefix TRANSFORM_mpr-organization-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> .
17 @prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> . 19 @prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> .
18 @prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> . 20 @prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> .
19 @prefix TRANSFORM_mpr-productionReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> . 21 @prefix TRANSFORM_mpr-productionReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> .
...@@ -34,5 +36,5 @@ ...@@ -34,5 +36,5 @@
34 36
35 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> 37 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector>
36 rdf:type owl:Ontology ; 38 rdf:type owl:Ontology ;
37 - 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-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> ; 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> ;
38 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 40 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -17,44 +17,65 @@ ...@@ -17,44 +17,65 @@
17 <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> 17 <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
18 spin:rule 18 spin:rule
19 [ rdf:type sp:Construct ; 19 [ rdf:type sp:Construct ;
20 - rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany 20 + rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc.
21 Nothing is done with the namingSystem!"""^^xsd:string ; 21 Nothing is done with the namingSystem!"""^^xsd:string ;
22 sp:templates ([ sp:object spin:_this ; 22 sp:templates ([ sp:object spin:_this ;
23 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 23 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
24 sp:subject 24 sp:subject
25 - [ sp:varName "company"^^xsd:string 25 + [ sp:varName "tuf"^^xsd:string
26 ] 26 ]
27 ] [ sp:object 27 ] [ sp:object
28 - [ sp:varName "companyName"^^xsd:string 28 + [ sp:varName "tufName"^^xsd:string
29 ] ; 29 ] ;
30 sp:predicate rdfs:label ; 30 sp:predicate rdfs:label ;
31 sp:subject spin:_this 31 sp:subject spin:_this
32 ]) ; 32 ]) ;
33 sp:where ([ rdf:type sp:Union ; 33 sp:where ([ rdf:type sp:Union ;
34 - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; 34 + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
35 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 35 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
36 sp:subject spin:_this 36 sp:subject spin:_this
37 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; 37 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ;
38 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
39 + sp:subject spin:_this
40 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ;
41 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
42 + sp:subject spin:_this
43 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ;
44 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
45 + sp:subject spin:_this
46 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ;
47 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
48 + sp:subject spin:_this
49 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ;
50 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
51 + sp:subject spin:_this
52 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ;
53 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
54 + sp:subject spin:_this
55 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ;
56 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
57 + sp:subject spin:_this
58 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ;
38 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 59 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
39 sp:subject spin:_this 60 sp:subject spin:_this
40 ])) 61 ]))
41 ] [ sp:object 62 ] [ sp:object
42 - [ sp:varName "companyName"^^xsd:string 63 + [ sp:varName "tufName"^^xsd:string
43 ] ; 64 ] ;
44 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 65 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
45 sp:subject spin:_this 66 sp:subject spin:_this
46 ] [ rdf:type sp:NamedGraph ; 67 ] [ rdf:type sp:NamedGraph ;
47 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; 68 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ;
48 sp:predicate rdf:type ; 69 sp:predicate rdf:type ;
49 sp:subject 70 sp:subject
50 - [ sp:varName "company"^^xsd:string 71 + [ sp:varName "tuf"^^xsd:string
51 ] 72 ]
52 ] [ sp:object 73 ] [ sp:object
53 - [ sp:varName "companyName"^^xsd:string 74 + [ sp:varName "tufName"^^xsd:string
54 ] ; 75 ] ;
55 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 76 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
56 sp:subject 77 sp:subject
57 - [ sp:varName "company"^^xsd:string 78 + [ sp:varName "tuf"^^xsd:string
58 ] 79 ]
59 ]) ; 80 ]) ;
60 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 81 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -62,39 +83,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -62,39 +83,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
62 ] ; 83 ] ;
63 spin:rule 84 spin:rule
64 [ rdf:type sp:Construct ; 85 [ rdf:type sp:Construct ;
65 - rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" 86 + rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\"
66 Nothing is done with the namingSystem!"""^^xsd:string ; 87 Nothing is done with the namingSystem!"""^^xsd:string ;
67 sp:templates ([ sp:object spin:_this ; 88 sp:templates ([ sp:object spin:_this ;
68 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 89 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
69 sp:subject 90 sp:subject
70 - [ sp:varName "well"^^xsd:string 91 + [ sp:varName "wellBore"^^xsd:string
71 ] 92 ]
72 ] [ sp:object 93 ] [ sp:object
73 - [ sp:varName "wellName"^^xsd:string 94 + [ sp:varName "wellBoreName"^^xsd:string
74 ] ; 95 ] ;
75 sp:predicate rdfs:label ; 96 sp:predicate rdfs:label ;
76 sp:subject spin:_this 97 sp:subject spin:_this
77 ]) ; 98 ]) ;
78 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; 99 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ;
79 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 100 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
80 sp:subject spin:_this 101 sp:subject spin:_this
81 ] [ sp:object 102 ] [ sp:object
82 - [ sp:varName "wellName"^^xsd:string 103 + [ sp:varName "wellBoreName"^^xsd:string
83 ] ; 104 ] ;
84 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 105 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
85 sp:subject spin:_this 106 sp:subject spin:_this
86 ] [ rdf:type sp:NamedGraph ; 107 ] [ rdf:type sp:NamedGraph ;
87 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; 108 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
88 sp:predicate rdf:type ; 109 sp:predicate rdf:type ;
89 sp:subject 110 sp:subject
90 - [ sp:varName "well"^^xsd:string 111 + [ sp:varName "wellBore"^^xsd:string
91 ] 112 ]
92 ] [ sp:object 113 ] [ sp:object
93 - [ sp:varName "wellName"^^xsd:string 114 + [ sp:varName "wellBoreName"^^xsd:string
94 ] ; 115 ] ;
95 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 116 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
96 sp:subject 117 sp:subject
97 - [ sp:varName "well"^^xsd:string 118 + [ sp:varName "wellBore"^^xsd:string
98 ] 119 ]
99 ]) ; 120 ]) ;
100 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 121 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -147,50 +168,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -147,50 +168,39 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
147 ] ; 168 ] ;
148 spin:rule 169 spin:rule
149 [ rdf:type sp:Construct ; 170 [ rdf:type sp:Construct ;
150 - rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc. 171 + rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\"
151 Nothing is done with the namingSystem!"""^^xsd:string ; 172 Nothing is done with the namingSystem!"""^^xsd:string ;
152 sp:templates ([ sp:object spin:_this ; 173 sp:templates ([ sp:object spin:_this ;
153 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 174 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
154 sp:subject 175 sp:subject
155 - [ sp:varName "field"^^xsd:string 176 + [ sp:varName "well"^^xsd:string
156 ] 177 ]
157 ] [ sp:object 178 ] [ sp:object
158 - [ sp:varName "fieldName"^^xsd:string 179 + [ sp:varName "wellName"^^xsd:string
159 ] ; 180 ] ;
160 sp:predicate rdfs:label ; 181 sp:predicate rdfs:label ;
161 sp:subject spin:_this 182 sp:subject spin:_this
162 ]) ; 183 ]) ;
163 - sp:where ([ rdf:type sp:Union ; 184 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
164 - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; 185 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
165 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 186 + sp:subject spin:_this
166 - sp:subject spin:_this
167 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ;
168 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
169 - sp:subject spin:_this
170 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ;
171 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
172 - sp:subject spin:_this
173 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ;
174 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
175 - sp:subject spin:_this
176 - ]))
177 ] [ sp:object 187 ] [ sp:object
178 - [ sp:varName "fieldName"^^xsd:string 188 + [ sp:varName "wellName"^^xsd:string
179 ] ; 189 ] ;
180 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 190 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
181 sp:subject spin:_this 191 sp:subject spin:_this
182 ] [ rdf:type sp:NamedGraph ; 192 ] [ rdf:type sp:NamedGraph ;
183 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; 193 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
184 sp:predicate rdf:type ; 194 sp:predicate rdf:type ;
185 sp:subject 195 sp:subject
186 - [ sp:varName "field"^^xsd:string 196 + [ sp:varName "well"^^xsd:string
187 ] 197 ]
188 ] [ sp:object 198 ] [ sp:object
189 - [ sp:varName "fieldName"^^xsd:string 199 + [ sp:varName "wellName"^^xsd:string
190 ] ; 200 ] ;
191 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 201 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
192 sp:subject 202 sp:subject
193 - [ sp:varName "field"^^xsd:string 203 + [ sp:varName "well"^^xsd:string
194 ] 204 ]
195 ]) ; 205 ]) ;
196 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 206 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -238,42 +248,117 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -238,42 +248,117 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
238 ] ; 248 ] ;
239 spin:rule 249 spin:rule
240 [ rdf:type sp:Construct ; 250 [ rdf:type sp:Construct ;
241 - rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\" 251 + rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file
242 Nothing is done with the namingSystem!"""^^xsd:string ; 252 Nothing is done with the namingSystem!"""^^xsd:string ;
243 - sp:templates ([ sp:object spin:_this ; 253 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
254 + sp:predicate rdf:type ;
255 + sp:subject _:b1
256 + ] [ sp:object
257 + [ sp:varName "productionFacilityType"^^xsd:string
258 + ] ;
259 + sp:predicate rdf:type ;
260 + sp:subject _:b1
261 + ] [ sp:object
262 + [ sp:varName "facilityName"^^xsd:string
263 + ] ;
264 + sp:predicate rdfs:label ;
265 + sp:subject _:b1
266 + ] [ sp:object spin:_this ;
244 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 267 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
245 - sp:subject 268 + sp:subject _:b1
246 - [ sp:varName "wellBore"^^xsd:string
247 - ]
248 ] [ sp:object 269 ] [ sp:object
249 - [ sp:varName "wellBoreName"^^xsd:string 270 + [ sp:varName "facilityName"^^xsd:string
250 ] ; 271 ] ;
251 sp:predicate rdfs:label ; 272 sp:predicate rdfs:label ;
252 sp:subject spin:_this 273 sp:subject spin:_this
253 ]) ; 274 ]) ;
254 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; 275 + sp:where ([ rdf:type sp:Optional ;
255 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 276 + sp:elements ([ sp:object
256 - sp:subject spin:_this 277 + [ sp:varName "facilityKind"^^xsd:string
278 + ] ;
279 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
280 + sp:subject spin:_this
281 + ])
257 ] [ sp:object 282 ] [ sp:object
258 - [ sp:varName "wellBoreName"^^xsd:string 283 + [ sp:varName "facilityName"^^xsd:string
259 ] ; 284 ] ;
260 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 285 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
261 sp:subject spin:_this 286 sp:subject spin:_this
262 - ] [ rdf:type sp:NamedGraph ; 287 + ] [ rdf:type sp:NotExists ;
263 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 288 + sp:elements ([ sp:object spin:_this ;
264 - sp:predicate rdf:type ; 289 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
265 sp:subject 290 sp:subject
266 - [ sp:varName "wellBore"^^xsd:string 291 + [ sp:varName "something"^^xsd:string
267 ] 292 ]
268 - ] [ sp:object 293 + ])
269 - [ sp:varName "wellBoreName"^^xsd:string 294 + ] [ rdf:type sp:Bind ;
295 + sp:expression
296 + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
297 + sp:arg1 [ sp:varName "facilityKind"^^xsd:string
298 + ]
299 + ] ;
300 + sp:variable
301 + [ sp:varName "productionFacilityType"^^xsd:string
302 + ]
303 + ])
304 + ] ;
305 + spin:rule
306 + [ rdf:type sp:Construct ;
307 + rdfs:comment """STEP 00010 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file
308 +Nothing is done with the namingSystem!"""^^xsd:string ;
309 + sp:templates ([ sp:object spin:_this ;
310 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
311 + sp:subject
312 + [ sp:varName "facility"^^xsd:string
313 + ]
314 + ]) ;
315 + sp:where ([ rdf:type sp:Optional ;
316 + sp:elements ([ sp:object
317 + [ sp:varName "facilityKind"^^xsd:string
270 ] ; 318 ] ;
271 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 319 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
320 + sp:subject spin:_this
321 + ])
322 + ] [ sp:object
323 + [ sp:varName "facilityName"^^xsd:string
324 + ] ;
325 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
326 + sp:subject spin:_this
327 + ] [ rdf:type sp:NotExists ;
328 + sp:elements ([ sp:object spin:_this ;
329 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
272 sp:subject 330 sp:subject
273 - [ sp:varName "wellBore"^^xsd:string 331 + [ sp:varName "something"^^xsd:string
274 ] 332 ]
275 - ]) ; 333 + ])
276 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 334 + ] [ sp:object
335 + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string
336 + ] ;
337 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
338 + sp:subject
339 + [ sp:varName "facility"^^xsd:string
340 + ]
341 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ;
342 + sp:predicate rdf:type ;
343 + sp:subject
344 + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string
345 + ]
346 + ] [ sp:object
347 + [ sp:varName "productionFacilityType"^^xsd:string
348 + ] ;
349 + sp:predicate rdf:type ;
350 + sp:subject
351 + [ sp:varName "facility"^^xsd:string
352 + ]
353 + ] [ rdf:type sp:Bind ;
354 + sp:expression
355 + [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
356 + sp:arg1 [ sp:varName "facilityKind"^^xsd:string
357 + ]
358 + ] ;
359 + sp:variable
360 + [ sp:varName "productionFacilityType"^^xsd:string
361 + ]
277 ]) 362 ])
278 ] ; 363 ] ;
279 spin:rule 364 spin:rule
...@@ -318,95 +403,84 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -318,95 +403,84 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
318 ] ; 403 ] ;
319 spin:rule 404 spin:rule
320 [ rdf:type sp:Construct ; 405 [ rdf:type sp:Construct ;
321 - rdfs:comment """STEP 00010 Record the Facility that has the flows - not in the NPD Fact Pages 406 + rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility
322 Nothing is done with the namingSystem!"""^^xsd:string ; 407 Nothing is done with the namingSystem!"""^^xsd:string ;
323 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; 408 + sp:templates ([ sp:object spin:_this ;
324 - sp:predicate rdf:type ;
325 - sp:subject _:b1
326 - ] [ sp:object
327 - [ sp:varName "productionFacilityType"^^xsd:string
328 - ] ;
329 - sp:predicate rdf:type ;
330 - sp:subject _:b1
331 - ] [ sp:object
332 - [ sp:varName "facilityName"^^xsd:string
333 - ] ;
334 - sp:predicate rdfs:label ;
335 - sp:subject _:b1
336 - ] [ sp:object spin:_this ;
337 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 409 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
338 - sp:subject _:b1 410 + sp:subject
411 + [ sp:varName "platform"^^xsd:string
412 + ]
339 ] [ sp:object 413 ] [ sp:object
340 - [ sp:varName "facilityName"^^xsd:string 414 + [ sp:varName "platformName"^^xsd:string
341 ] ; 415 ] ;
342 sp:predicate rdfs:label ; 416 sp:predicate rdfs:label ;
343 sp:subject spin:_this 417 sp:subject spin:_this
344 ]) ; 418 ]) ;
345 - sp:where ([ rdf:type sp:Optional ; 419 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ;
346 - sp:elements ([ sp:object 420 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
347 - [ sp:varName "facilityKind"^^xsd:string 421 + sp:subject spin:_this
348 - ] ;
349 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
350 - sp:subject spin:_this
351 - ])
352 ] [ sp:object 422 ] [ sp:object
353 - [ sp:varName "facilityName"^^xsd:string 423 + [ sp:varName "platformName"^^xsd:string
354 ] ; 424 ] ;
355 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 425 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
356 sp:subject spin:_this 426 sp:subject spin:_this
357 - ] [ rdf:type sp:NotExists ; 427 + ] [ rdf:type sp:NamedGraph ;
358 - sp:elements ([ sp:object spin:_this ; 428 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ;
359 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 429 + sp:predicate rdf:type ;
360 sp:subject 430 sp:subject
361 - [ sp:varName "something"^^xsd:string 431 + [ sp:varName "platform"^^xsd:string
362 ] 432 ]
363 - ]) 433 + ] [ sp:object
364 - ] [ rdf:type sp:Bind ; 434 + [ sp:varName "platformName"^^xsd:string
365 - sp:expression 435 + ] ;
366 - [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; 436 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
367 - sp:arg1 [ sp:varName "facilityKind"^^xsd:string 437 + sp:subject
368 - ] 438 + [ sp:varName "platform"^^xsd:string
369 - ] ; 439 + ]
370 - sp:variable 440 + ]) ;
371 - [ sp:varName "productionFacilityType"^^xsd:string 441 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
372 - ]
373 ]) 442 ])
374 ] ; 443 ] ;
375 spin:rule 444 spin:rule
376 [ rdf:type sp:Construct ; 445 [ rdf:type sp:Construct ;
377 - rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility 446 + rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany
378 Nothing is done with the namingSystem!"""^^xsd:string ; 447 Nothing is done with the namingSystem!"""^^xsd:string ;
379 sp:templates ([ sp:object spin:_this ; 448 sp:templates ([ sp:object spin:_this ;
380 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 449 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
381 sp:subject 450 sp:subject
382 - [ sp:varName "platform"^^xsd:string 451 + [ sp:varName "company"^^xsd:string
383 ] 452 ]
384 ] [ sp:object 453 ] [ sp:object
385 - [ sp:varName "platformName"^^xsd:string 454 + [ sp:varName "companyName"^^xsd:string
386 ] ; 455 ] ;
387 sp:predicate rdfs:label ; 456 sp:predicate rdfs:label ;
388 sp:subject spin:_this 457 sp:subject spin:_this
389 ]) ; 458 ]) ;
390 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; 459 + sp:where ([ rdf:type sp:Union ;
391 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 460 + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ;
392 - sp:subject spin:_this 461 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
462 + sp:subject spin:_this
463 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ;
464 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
465 + sp:subject spin:_this
466 + ]))
393 ] [ sp:object 467 ] [ sp:object
394 - [ sp:varName "platformName"^^xsd:string 468 + [ sp:varName "companyName"^^xsd:string
395 ] ; 469 ] ;
396 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 470 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
397 sp:subject spin:_this 471 sp:subject spin:_this
398 ] [ rdf:type sp:NamedGraph ; 472 ] [ rdf:type sp:NamedGraph ;
399 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; 473 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
400 sp:predicate rdf:type ; 474 sp:predicate rdf:type ;
401 sp:subject 475 sp:subject
402 - [ sp:varName "platform"^^xsd:string 476 + [ sp:varName "company"^^xsd:string
403 ] 477 ]
404 ] [ sp:object 478 ] [ sp:object
405 - [ sp:varName "platformName"^^xsd:string 479 + [ sp:varName "companyName"^^xsd:string
406 ] ; 480 ] ;
407 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 481 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
408 sp:subject 482 sp:subject
409 - [ sp:varName "platform"^^xsd:string 483 + [ sp:varName "company"^^xsd:string
410 ] 484 ]
411 ]) ; 485 ]) ;
412 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 486 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -414,65 +488,50 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -414,65 +488,50 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
414 ] ; 488 ] ;
415 spin:rule 489 spin:rule
416 [ rdf:type sp:Construct ; 490 [ rdf:type sp:Construct ;
417 - rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. 491 + rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc.
418 Nothing is done with the namingSystem!"""^^xsd:string ; 492 Nothing is done with the namingSystem!"""^^xsd:string ;
419 sp:templates ([ sp:object spin:_this ; 493 sp:templates ([ sp:object spin:_this ;
420 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 494 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
421 sp:subject 495 sp:subject
422 - [ sp:varName "tuf"^^xsd:string 496 + [ sp:varName "field"^^xsd:string
423 ] 497 ]
424 ] [ sp:object 498 ] [ sp:object
425 - [ sp:varName "tufName"^^xsd:string 499 + [ sp:varName "fieldName"^^xsd:string
426 ] ; 500 ] ;
427 sp:predicate rdfs:label ; 501 sp:predicate rdfs:label ;
428 sp:subject spin:_this 502 sp:subject spin:_this
429 ]) ; 503 ]) ;
430 sp:where ([ rdf:type sp:Union ; 504 sp:where ([ rdf:type sp:Union ;
431 - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; 505 + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
432 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
433 - sp:subject spin:_this
434 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ;
435 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
436 - sp:subject spin:_this
437 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ;
438 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
439 - sp:subject spin:_this
440 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ;
441 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
442 - sp:subject spin:_this
443 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ;
444 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
445 - sp:subject spin:_this
446 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ;
447 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 506 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
448 sp:subject spin:_this 507 sp:subject spin:_this
449 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; 508 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ;
450 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 509 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
451 sp:subject spin:_this 510 sp:subject spin:_this
452 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; 511 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ;
453 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 512 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
454 sp:subject spin:_this 513 sp:subject spin:_this
455 - ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; 514 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ;
456 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 515 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
457 sp:subject spin:_this 516 sp:subject spin:_this
458 ])) 517 ]))
459 ] [ sp:object 518 ] [ sp:object
460 - [ sp:varName "tufName"^^xsd:string 519 + [ sp:varName "fieldName"^^xsd:string
461 ] ; 520 ] ;
462 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 521 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
463 sp:subject spin:_this 522 sp:subject spin:_this
464 ] [ rdf:type sp:NamedGraph ; 523 ] [ rdf:type sp:NamedGraph ;
465 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; 524 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
466 sp:predicate rdf:type ; 525 sp:predicate rdf:type ;
467 sp:subject 526 sp:subject
468 - [ sp:varName "tuf"^^xsd:string 527 + [ sp:varName "field"^^xsd:string
469 ] 528 ]
470 ] [ sp:object 529 ] [ sp:object
471 - [ sp:varName "tufName"^^xsd:string 530 + [ sp:varName "fieldName"^^xsd:string
472 ] ; 531 ] ;
473 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 532 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
474 sp:subject 533 sp:subject
475 - [ sp:varName "tuf"^^xsd:string 534 + [ sp:varName "field"^^xsd:string
476 ] 535 ]
477 ]) ; 536 ]) ;
478 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 537 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
...@@ -481,5 +540,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -481,5 +540,5 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
481 540
482 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> 541 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1>
483 rdf:type owl:Ontology ; 542 rdf:type owl:Ontology ;
484 - owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; 543 + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ;
485 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 544 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-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/dpr/spin/1.1/lib
5 +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
6 +
7 +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> .
8 +@prefix arg: <http://spinrdf.org/arg#> .
9 +@prefix npd: <http://www.reportinghub.no/ep/schema/npd#> .
10 +@prefix npdata: <http://www.reportinghub.no/ep/data/> .
11 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
12 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
13 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
14 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
15 +@prefix sp: <http://spinrdf.org/sp#> .
16 +@prefix spin: <http://spinrdf.org/spin#> .
17 +@prefix spl: <http://spinrdf.org/spl#> .
18 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
19 +
20 +<http://www.epim.no/schemas/mprml/1#RefNameString>
21 + spin:rule
22 + [ rdf:type sp:Construct ;
23 + rdfs:comment "STEP 00023 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ;
24 + sp:templates ([ sp:object spin:_this ;
25 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
26 + sp:subject
27 + [ sp:varName "organization"^^xsd:string
28 + ]
29 + ]) ;
30 + sp:where ([ sp:object spin:_this ;
31 + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
32 + sp:subject
33 + [ sp:varName "something"^^xsd:string
34 + ]
35 + ] [ sp:object
36 + [ sp:varName "organizationName"^^xsd:string
37 + ] ;
38 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
39 + sp:subject spin:_this
40 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
41 + sp:predicate rdf:type ;
42 + sp:subject
43 + [ sp:varName "organization"^^xsd:string
44 + ]
45 + ] [ sp:object
46 + [ sp:varName "organizationName"^^xsd:string
47 + ] ;
48 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
49 + sp:subject
50 + [ sp:varName "organization"^^xsd:string
51 + ]
52 + ])
53 + ] ;
54 + spin:rule
55 + [ rdf:type sp:Construct ;
56 + rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ;
57 + sp:templates ([ sp:object spin:_this ;
58 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
59 + sp:subject
60 + [ sp:varName "organization"^^xsd:string
61 + ]
62 + ]) ;
63 + sp:where ([ sp:object spin:_this ;
64 + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
65 + sp:subject
66 + [ sp:varName "something"^^xsd:string
67 + ]
68 + ] [ sp:object
69 + [ sp:varName "organizationName"^^xsd:string
70 + ] ;
71 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
72 + sp:subject spin:_this
73 + ] [ rdf:type sp:NamedGraph ;
74 + sp:elements ([ sp:object npd:ParentCompany ;
75 + sp:predicate rdf:type ;
76 + sp:subject
77 + [ sp:varName "organization"^^xsd:string
78 + ]
79 + ] [ sp:object
80 + [ sp:varName "organizationName"^^xsd:string
81 + ] ;
82 + sp:predicate npd:name ;
83 + sp:subject
84 + [ sp:varName "organization"^^xsd:string
85 + ]
86 + ]) ;
87 + sp:graphNameNode npdata:npd
88 + ])
89 + ] ;
90 + spin:rule
91 + [ rdf:type sp:Construct ;
92 + rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ;
93 + sp:templates ([ sp:object spin:_this ;
94 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
95 + sp:subject
96 + [ sp:varName "organization"^^xsd:string
97 + ]
98 + ]) ;
99 + sp:where ([ sp:object spin:_this ;
100 + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
101 + sp:subject
102 + [ sp:varName "something"^^xsd:string
103 + ]
104 + ] [ sp:object
105 + [ sp:varName "organizationName"^^xsd:string
106 + ] ;
107 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
108 + sp:subject spin:_this
109 + ] [ rdf:type sp:NamedGraph ;
110 + sp:elements ([ sp:object npd:OperatingCompany ;
111 + sp:predicate rdf:type ;
112 + sp:subject
113 + [ sp:varName "organization"^^xsd:string
114 + ]
115 + ] [ sp:object
116 + [ sp:varName "organizationName"^^xsd:string
117 + ] ;
118 + sp:predicate npd:name ;
119 + sp:subject
120 + [ sp:varName "organization"^^xsd:string
121 + ]
122 + ]) ;
123 + sp:graphNameNode npdata:npd
124 + ])
125 + ] ;
126 + spin:rule
127 + [ rdf:type sp:Construct ;
128 + rdfs:comment "STEP 00027 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ;
129 + sp:templates ([ sp:object spin:_this ;
130 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
131 + sp:subject
132 + [ sp:varName "organization"^^xsd:string
133 + ]
134 + ]) ;
135 + sp:where ([ sp:object spin:_this ;
136 + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
137 + sp:subject
138 + [ sp:varName "something"^^xsd:string
139 + ]
140 + ] [ sp:object
141 + [ sp:varName "organizationName"^^xsd:string
142 + ] ;
143 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
144 + sp:subject spin:_this
145 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
146 + sp:predicate rdf:type ;
147 + sp:subject
148 + [ sp:varName "organization"^^xsd:string
149 + ]
150 + ] [ sp:object
151 + [ sp:varName "organizationName"^^xsd:string
152 + ] ;
153 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
154 + sp:subject
155 + [ sp:varName "organization"^^xsd:string
156 + ]
157 + ])
158 + ] ;
159 + spin:rule
160 + [ rdf:type sp:Construct ;
161 + rdfs:comment "STEP 00024 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
162 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
163 + sp:predicate rdf:type ;
164 + sp:subject _:b1
165 + ] [ sp:object
166 + [ sp:varName "organizationName"^^xsd:string
167 + ] ;
168 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
169 + sp:subject _:b1
170 + ] [ sp:object spin:_this ;
171 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
172 + sp:subject _:b1
173 + ]) ;
174 + sp:where ([ sp:object spin:_this ;
175 + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
176 + sp:subject
177 + [ sp:varName "something"^^xsd:string
178 + ]
179 + ] [ sp:object
180 + [ sp:varName "organizationName"^^xsd:string
181 + ] ;
182 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
183 + sp:subject spin:_this
184 + ] [ rdf:type sp:NotExists ;
185 + sp:elements ([ sp:object spin:_this ;
186 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
187 + sp:subject
188 + [ sp:varName "somethingElse"^^xsd:string
189 + ]
190 + ])
191 + ] [ rdf:type sp:NotExists ;
192 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
193 + sp:predicate rdf:type ;
194 + sp:subject
195 + [ sp:varName "organization"^^xsd:string
196 + ]
197 + ] [ sp:object
198 + [ sp:varName "organizationName"^^xsd:string
199 + ] ;
200 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
201 + sp:subject
202 + [ sp:varName "organization"^^xsd:string
203 + ]
204 + ])
205 + ])
206 + ] ;
207 + spin:rule
208 + [ rdf:type sp:Construct ;
209 + rdfs:comment "STEP 00032 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
210 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
211 + sp:predicate rdf:type ;
212 + sp:subject _:b2
213 + ] [ sp:object
214 + [ sp:varName "organizationName"^^xsd:string
215 + ] ;
216 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
217 + sp:subject _:b2
218 + ] [ sp:object spin:_this ;
219 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
220 + sp:subject _:b2
221 + ]) ;
222 + sp:where ([ sp:object spin:_this ;
223 + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
224 + sp:subject
225 + [ sp:varName "something"^^xsd:string
226 + ]
227 + ] [ sp:object
228 + [ sp:varName "organizationName"^^xsd:string
229 + ] ;
230 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
231 + sp:subject spin:_this
232 + ] [ rdf:type sp:NotExists ;
233 + sp:elements ([ sp:object spin:_this ;
234 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
235 + sp:subject
236 + [ sp:varName "somethingElse"^^xsd:string
237 + ]
238 + ])
239 + ] [ rdf:type sp:NotExists ;
240 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
241 + sp:predicate rdf:type ;
242 + sp:subject
243 + [ sp:varName "organization"^^xsd:string
244 + ]
245 + ] [ sp:object
246 + [ sp:varName "organizationName"^^xsd:string
247 + ] ;
248 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
249 + sp:subject
250 + [ sp:varName "organization"^^xsd:string
251 + ]
252 + ])
253 + ])
254 + ] ;
255 + spin:rule
256 + [ rdf:type sp:Construct ;
257 + rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ;
258 + sp:templates ([ sp:object spin:_this ;
259 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
260 + sp:subject
261 + [ sp:varName "organization"^^xsd:string
262 + ]
263 + ]) ;
264 + sp:where ([ sp:object spin:_this ;
265 + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
266 + sp:subject
267 + [ sp:varName "something"^^xsd:string
268 + ]
269 + ] [ sp:object
270 + [ sp:varName "organizationName"^^xsd:string
271 + ] ;
272 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
273 + sp:subject spin:_this
274 + ] [ rdf:type sp:NamedGraph ;
275 + sp:elements ([ sp:object npd:OperatingCompany ;
276 + sp:predicate rdf:type ;
277 + sp:subject
278 + [ sp:varName "organization"^^xsd:string
279 + ]
280 + ] [ sp:object
281 + [ sp:varName "organizationName"^^xsd:string
282 + ] ;
283 + sp:predicate npd:name ;
284 + sp:subject
285 + [ sp:varName "organization"^^xsd:string
286 + ]
287 + ]) ;
288 + sp:graphNameNode npdata:npd
289 + ])
290 + ] ;
291 + spin:rule
292 + [ rdf:type sp:Construct ;
293 + rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ;
294 + sp:templates () ;
295 + sp:where ([ sp:object spin:_this ;
296 + sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
297 + sp:subject
298 + [ sp:varName "something"^^xsd:string
299 + ]
300 + ] [ sp:object
301 + [ sp:varName "organizationName"^^xsd:string
302 + ] ;
303 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
304 + sp:subject spin:_this
305 + ] [ rdf:type sp:NamedGraph ;
306 + sp:elements ([ sp:object npd:ParentCompany ;
307 + sp:predicate rdf:type ;
308 + sp:subject
309 + [ sp:varName "organization"^^xsd:string
310 + ]
311 + ] [ sp:object
312 + [ sp:varName "organizationName"^^xsd:string
313 + ] ;
314 + sp:predicate npd:name ;
315 + sp:subject
316 + [ sp:varName "organization"^^xsd:string
317 + ]
318 + ]) ;
319 + sp:graphNameNode npdata:npd
320 + ])
321 + ] ;
322 + spin:rule
323 + [ rdf:type sp:Construct ;
324 + rdfs:comment "STEP 00028 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
325 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
326 + sp:predicate rdf:type ;
327 + sp:subject _:b3
328 + ] [ sp:object
329 + [ sp:varName "organizationName"^^xsd:string
330 + ] ;
331 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
332 + sp:subject _:b3
333 + ] [ sp:object spin:_this ;
334 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
335 + sp:subject _:b3
336 + ]) ;
337 + sp:where ([ sp:object spin:_this ;
338 + sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
339 + sp:subject
340 + [ sp:varName "something"^^xsd:string
341 + ]
342 + ] [ sp:object
343 + [ sp:varName "organizationName"^^xsd:string
344 + ] ;
345 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
346 + sp:subject spin:_this
347 + ] [ rdf:type sp:NotExists ;
348 + sp:elements ([ sp:object spin:_this ;
349 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
350 + sp:subject
351 + [ sp:varName "somethingElse"^^xsd:string
352 + ]
353 + ])
354 + ] [ rdf:type sp:NotExists ;
355 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
356 + sp:predicate rdf:type ;
357 + sp:subject
358 + [ sp:varName "organization"^^xsd:string
359 + ]
360 + ] [ sp:object
361 + [ sp:varName "organizationName"^^xsd:string
362 + ] ;
363 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
364 + sp:subject
365 + [ sp:varName "organization"^^xsd:string
366 + ]
367 + ])
368 + ])
369 + ] ;
370 + spin:rule
371 + [ rdf:type sp:Construct ;
372 + rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ;
373 + sp:templates ([ sp:object spin:_this ;
374 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
375 + sp:subject
376 + [ sp:varName "organization"^^xsd:string
377 + ]
378 + ]) ;
379 + sp:where ([ sp:object spin:_this ;
380 + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
381 + sp:subject
382 + [ sp:varName "something"^^xsd:string
383 + ]
384 + ] [ sp:object
385 + [ sp:varName "organizationName"^^xsd:string
386 + ] ;
387 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
388 + sp:subject spin:_this
389 + ] [ rdf:type sp:NamedGraph ;
390 + sp:elements ([ sp:object npd:OperatingCompany ;
391 + sp:predicate rdf:type ;
392 + sp:subject
393 + [ sp:varName "organization"^^xsd:string
394 + ]
395 + ] [ sp:object
396 + [ sp:varName "organizationName"^^xsd:string
397 + ] ;
398 + sp:predicate npd:name ;
399 + sp:subject
400 + [ sp:varName "organization"^^xsd:string
401 + ]
402 + ]) ;
403 + sp:graphNameNode npdata:npd
404 + ])
405 + ] ;
406 + spin:rule
407 + [ rdf:type sp:Construct ;
408 + rdfs:comment "STEP 00031 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ;
409 + sp:templates ([ sp:object spin:_this ;
410 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
411 + sp:subject
412 + [ sp:varName "organization"^^xsd:string
413 + ]
414 + ]) ;
415 + sp:where ([ sp:object spin:_this ;
416 + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
417 + sp:subject
418 + [ sp:varName "something"^^xsd:string
419 + ]
420 + ] [ sp:object
421 + [ sp:varName "organizationName"^^xsd:string
422 + ] ;
423 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
424 + sp:subject spin:_this
425 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
426 + sp:predicate rdf:type ;
427 + sp:subject
428 + [ sp:varName "organization"^^xsd:string
429 + ]
430 + ] [ sp:object
431 + [ sp:varName "organizationName"^^xsd:string
432 + ] ;
433 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
434 + sp:subject
435 + [ sp:varName "organization"^^xsd:string
436 + ]
437 + ])
438 + ] ;
439 + spin:rule
440 + [ rdf:type sp:Construct ;
441 + rdfs:comment "STEP 00029 Set organization - parent company in NPD fact pages"^^xsd:string ;
442 + sp:templates ([ sp:object spin:_this ;
443 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
444 + sp:subject
445 + [ sp:varName "organization"^^xsd:string
446 + ]
447 + ]) ;
448 + sp:where ([ sp:object spin:_this ;
449 + sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
450 + sp:subject
451 + [ sp:varName "something"^^xsd:string
452 + ]
453 + ] [ sp:object
454 + [ sp:varName "organizationName"^^xsd:string
455 + ] ;
456 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
457 + sp:subject spin:_this
458 + ] [ rdf:type sp:NamedGraph ;
459 + sp:elements ([ sp:object npd:ParentCompany ;
460 + sp:predicate rdf:type ;
461 + sp:subject
462 + [ sp:varName "organization"^^xsd:string
463 + ]
464 + ] [ sp:object
465 + [ sp:varName "organizationName"^^xsd:string
466 + ] ;
467 + sp:predicate npd:name ;
468 + sp:subject
469 + [ sp:varName "organization"^^xsd:string
470 + ]
471 + ]) ;
472 + sp:graphNameNode npdata:npd
473 + ])
474 + ] .
475 +
476 +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1>
477 + rdf:type owl:Ontology ;
478 + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ;
479 + 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 + ] .
...@@ -142,7 +142,9 @@ ...@@ -142,7 +142,9 @@
142 <pres uom="atm">1</pres> 142 <pres uom="atm">1</pres>
143 </densityValue> 143 </densityValue>
144 <balanceDetail> 144 <balanceDetail>
145 - <owner>Bayerngas Norge AS</owner> 145 + <owner>BAYERN</owner>
146 + <seller>BAYERN</seller>
147 + <buyer>Bayerngas Norge AS</buyer>
146 <share uom="%">100.0</share> 148 <share uom="%">100.0</share>
147 <volumeValue> 149 <volumeValue>
148 <volume uom="m3">743</volume> 150 <volume uom="m3">743</volume>
......