David Leal

Added the weather transform

...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
22 22
23 <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> 23 <http://www.reportinghub.no/ep/mpr/spin/1.1/lib>
24 rdf:type owl:Ontology ; 24 rdf:type owl:Ontology ;
25 - owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; 25 + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
27 27
28 ep-mpr-spin-lib:Function 28 ep-mpr-spin-lib:Function
...@@ -80,6 +80,28 @@ ep-mpr-spin-lib:buildPersonRoleTypeURI ...@@ -80,6 +80,28 @@ ep-mpr-spin-lib:buildPersonRoleTypeURI
80 ]) 80 ])
81 ] . 81 ] .
82 82
83 +ep-mpr-spin-lib:buildPrecipitationTypeURI
84 + rdf:type spin:Function ;
85 + rdfs:label "build PrecipitationType URI"^^xsd:string ;
86 + rdfs:subClassOf ep-mpr-spin-lib:Function ;
87 + spin:body
88 + [ rdf:type sp:Select ;
89 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
90 + ]) ;
91 + sp:where ([ rdf:type sp:Bind ;
92 + sp:expression
93 + [ rdf:type ep-spin-lib:buildURI ;
94 + sp:arg1 "https://www.reportinghub.no/ep/data/precipitationType/" ;
95 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
96 + sp:arg1 spin:_arg1
97 + ]
98 + ] ;
99 + sp:variable
100 + [ sp:varName "uri"^^xsd:string
101 + ]
102 + ])
103 + ] .
104 +
83 ep-mpr-spin-lib:buildProductionOperationMethodTypeURI 105 ep-mpr-spin-lib:buildProductionOperationMethodTypeURI
84 rdf:type spin:Function ; 106 rdf:type spin:Function ;
85 rdfs:label "build ProductionOperationMethodType URI"^^xsd:string ; 107 rdfs:label "build ProductionOperationMethodType URI"^^xsd:string ;
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
16 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1 16 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1
17 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1 17 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1
18 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0 18 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0
19 +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-weather-v1.1.1
19 # imports: http://www.reportinghub.no/ep/transform/transform-helper-schema 20 # imports: http://www.reportinghub.no/ep/transform/transform-helper-schema
20 21
21 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . 22 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
...@@ -33,6 +34,7 @@ ...@@ -33,6 +34,7 @@
33 @prefix TRANSFORM_mpr-productionOperationReport-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1#> . 34 @prefix TRANSFORM_mpr-productionOperationReport-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1#> .
34 @prefix TRANSFORM_mpr-productionReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> . 35 @prefix TRANSFORM_mpr-productionReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> .
35 @prefix TRANSFORM_mpr-volumeValue-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1#> . 36 @prefix TRANSFORM_mpr-volumeValue-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1#> .
37 +@prefix TRANSFORM_mpr-weather-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-weather-v1.1.1#> .
36 @prefix injectionTestResults: <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults#> . 38 @prefix injectionTestResults: <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults#> .
37 @prefix owl: <http://www.w3.org/2002/07/owl#> . 39 @prefix owl: <http://www.w3.org/2002/07/owl#> .
38 @prefix productionTestResults: <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults#> . 40 @prefix productionTestResults: <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults#> .
...@@ -46,5 +48,5 @@ ...@@ -46,5 +48,5 @@
46 48
47 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> 49 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector>
48 rdf:type owl:Ontology ; 50 rdf:type owl:Ontology ;
49 - owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-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-comment-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1> ; 51 + owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-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-comment-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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-weather-v1.1.1> , <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-operationalHSEReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1> ;
50 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 52 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
...@@ -20,94 +20,25 @@ ...@@ -20,94 +20,25 @@
20 <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> 20 <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
21 spin:rule 21 spin:rule
22 [ rdf:type sp:Construct ; 22 [ rdf:type sp:Construct ;
23 - rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany
24 -Nothing is done with the namingSystem!"""^^xsd:string ;
25 - sp:templates ([ sp:object spin:_this ;
26 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
27 - sp:subject
28 - [ sp:varName "company"^^xsd:string
29 - ]
30 - ] [ sp:object
31 - [ sp:varName "companyLabel"^^xsd:string
32 - ] ;
33 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
34 - sp:subject spin:_this
35 - ]) ;
36 - sp:where ([ rdf:type sp:Union ;
37 - sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ;
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_commercialentity> ;
41 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
42 - sp:subject spin:_this
43 - ]))
44 - ] [ sp:object
45 - [ sp:varName "companyName"^^xsd:string
46 - ] ;
47 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
48 - sp:subject spin:_this
49 - ] [ rdf:type sp:NamedGraph ;
50 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
51 - sp:predicate rdf:type ;
52 - sp:subject
53 - [ sp:varName "company"^^xsd:string
54 - ]
55 - ] [ sp:object
56 - [ sp:varName "companyName"^^xsd:string
57 - ] ;
58 - sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
59 - sp:subject
60 - [ sp:varName "company"^^xsd:string
61 - ]
62 - ] [ sp:object
63 - [ sp:varName "companyId"^^xsd:string
64 - ] ;
65 - sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
66 - sp:subject
67 - [ sp:varName "company"^^xsd:string
68 - ]
69 - ]) ;
70 - sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
71 - ] [ rdf:type sp:Bind ;
72 - sp:expression
73 - [ rdf:type fn:concat ;
74 - sp:arg1 "company-" ;
75 - sp:arg2 [ sp:varName "companyId"^^xsd:string
76 - ]
77 - ] ;
78 - sp:variable
79 - [ sp:varName "companyLabel"^^xsd:string
80 - ]
81 - ])
82 - ] ;
83 - spin:rule
84 - [ rdf:type sp:Construct ;
85 rdfs:comment """STEP 00013 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file 23 rdfs:comment """STEP 00013 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file
86 -Naming system supplied"""^^xsd:string ; 24 +Naming system supplied
25 +now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(?namingSystem, ?facilityName) AS ?facility) ."""^^xsd:string ;
87 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; 26 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
88 sp:predicate rdf:type ; 27 sp:predicate rdf:type ;
89 - sp:subject 28 + sp:subject _:b1
90 - [ sp:varName "facility"^^xsd:string
91 - ]
92 ] [ sp:object 29 ] [ sp:object
93 [ sp:varName "reportingFacilityType"^^xsd:string 30 [ sp:varName "reportingFacilityType"^^xsd:string
94 ] ; 31 ] ;
95 sp:predicate rdf:type ; 32 sp:predicate rdf:type ;
96 - sp:subject 33 + sp:subject _:b1
97 - [ sp:varName "facility"^^xsd:string
98 - ]
99 ] [ sp:object 34 ] [ sp:object
100 [ sp:varName "facilityName"^^xsd:string 35 [ sp:varName "facilityName"^^xsd:string
101 ] ; 36 ] ;
102 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 37 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
103 - sp:subject 38 + sp:subject _:b1
104 - [ sp:varName "facility"^^xsd:string
105 - ]
106 ] [ sp:object spin:_this ; 39 ] [ sp:object spin:_this ;
107 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 40 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
108 - sp:subject 41 + sp:subject _:b1
109 - [ sp:varName "facility"^^xsd:string
110 - ]
111 ] [ sp:object 42 ] [ sp:object
112 [ sp:varName "facilityName"^^xsd:string 43 [ sp:varName "facilityName"^^xsd:string
113 ] ; 44 ] ;
...@@ -147,17 +78,6 @@ Naming system supplied"""^^xsd:string ; ...@@ -147,17 +78,6 @@ Naming system supplied"""^^xsd:string ;
147 sp:variable 78 sp:variable
148 [ sp:varName "reportingFacilityType"^^xsd:string 79 [ sp:varName "reportingFacilityType"^^xsd:string
149 ] 80 ]
150 - ] [ rdf:type sp:Bind ;
151 - sp:expression
152 - [ rdf:type ep-dpr-spin-lib:buildSmallFacilityURI ;
153 - sp:arg1 [ sp:varName "namingSystem"^^xsd:string
154 - ] ;
155 - sp:arg2 [ sp:varName "facilityName"^^xsd:string
156 - ]
157 - ] ;
158 - sp:variable
159 - [ sp:varName "facility"^^xsd:string
160 - ]
161 ]) 81 ])
162 ] ; 82 ] ;
163 spin:rule 83 spin:rule
...@@ -230,115 +150,174 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -230,115 +150,174 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
230 ] ; 150 ] ;
231 spin:rule 151 spin:rule
232 [ rdf:type sp:Construct ; 152 [ rdf:type sp:Construct ;
233 - rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixedFacility 153 + rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file
234 Nothing is done with the namingSystem!"""^^xsd:string ; 154 Nothing is done with the namingSystem!"""^^xsd:string ;
235 sp:templates ([ sp:object spin:_this ; 155 sp:templates ([ sp:object spin:_this ;
236 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 156 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
237 sp:subject 157 sp:subject
238 - [ sp:varName "terminal"^^xsd:string 158 + [ sp:varName "facility"^^xsd:string
239 ] 159 ]
160 + ]) ;
161 + sp:where ([ rdf:type sp:Optional ;
162 + sp:elements ([ sp:object
163 + [ sp:varName "facilityKind"^^xsd:string
164 + ] ;
165 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
166 + sp:subject spin:_this
167 + ])
240 ] [ sp:object 168 ] [ sp:object
241 - [ sp:varName "terminalLabel"^^xsd:string 169 + [ sp:varName "facilityName"^^xsd:string
170 + ] ;
171 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
172 + sp:subject spin:_this
173 + ] [ rdf:type sp:NotExists ;
174 + sp:elements ([ sp:object spin:_this ;
175 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
176 + sp:subject
177 + [ sp:varName "something"^^xsd:string
178 + ]
179 + ])
180 + ] [ sp:object
181 + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string
182 + ] ;
183 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
184 + sp:subject
185 + [ sp:varName "facility"^^xsd:string
186 + ]
187 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ;
188 + sp:predicate rdf:type ;
189 + sp:subject
190 + [ sp:varName "aFacilityIdentifierStructure"^^xsd:string
191 + ]
192 + ] [ rdf:type sp:Bind ;
193 + sp:expression
194 + [ rdf:type ep-mpr-spin-lib:selectReportingFacilityType ;
195 + sp:arg1 [ sp:varName "facilityKind"^^xsd:string
196 + ]
197 + ] ;
198 + sp:variable
199 + [ sp:varName "reportingFacilityType"^^xsd:string
200 + ]
201 + ] [ sp:object
202 + [ sp:varName "reportingFacilityType"^^xsd:string
203 + ] ;
204 + sp:predicate rdf:type ;
205 + sp:subject
206 + [ sp:varName "facility"^^xsd:string
207 + ]
208 + ])
209 + ] ;
210 + spin:rule
211 + [ rdf:type sp:Construct ;
212 + rdfs:comment """STEP 00010 Record the Facility that has the flows - kind is \"licence\"
213 +Nothing is done with the namingSystem!"""^^xsd:string ;
214 + sp:templates ([ sp:object spin:_this ;
215 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
216 + sp:subject
217 + [ sp:varName "licence"^^xsd:string
218 + ]
219 + ] [ sp:object
220 + [ sp:varName "licenceLabel"^^xsd:string
242 ] ; 221 ] ;
243 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; 222 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
244 sp:subject spin:_this 223 sp:subject spin:_this
245 ]) ; 224 ]) ;
246 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; 225 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ;
247 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 226 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
248 sp:subject spin:_this 227 sp:subject spin:_this
249 ] [ sp:object 228 ] [ sp:object
250 - [ sp:varName "terminalName"^^xsd:string 229 + [ sp:varName "licenceName"^^xsd:string
251 ] ; 230 ] ;
252 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 231 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
253 sp:subject spin:_this 232 sp:subject spin:_this
254 ] [ rdf:type sp:NamedGraph ; 233 ] [ rdf:type sp:NamedGraph ;
255 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; 234 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ;
256 sp:predicate rdf:type ; 235 sp:predicate rdf:type ;
257 sp:subject 236 sp:subject
258 - [ sp:varName "terminal"^^xsd:string 237 + [ sp:varName "licence"^^xsd:string
259 ] 238 ]
260 ] [ sp:object 239 ] [ sp:object
261 - [ sp:varName "terminalName"^^xsd:string 240 + [ sp:varName "licenceName"^^xsd:string
262 ] ; 241 ] ;
263 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 242 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
264 sp:subject 243 sp:subject
265 - [ sp:varName "terminal"^^xsd:string 244 + [ sp:varName "licence"^^xsd:string
266 ] 245 ]
267 ] [ sp:object 246 ] [ sp:object
268 - [ sp:varName "terminalId"^^xsd:string 247 + [ sp:varName "licenceId"^^xsd:string
269 ] ; 248 ] ;
270 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; 249 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
271 sp:subject 250 sp:subject
272 - [ sp:varName "terminal"^^xsd:string 251 + [ sp:varName "livence"^^xsd:string
273 ] 252 ]
274 ]) ; 253 ]) ;
275 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 254 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
276 ] [ rdf:type sp:Bind ; 255 ] [ rdf:type sp:Bind ;
277 sp:expression 256 sp:expression
278 [ rdf:type fn:concat ; 257 [ rdf:type fn:concat ;
279 - sp:arg1 "terminal-" ; 258 + sp:arg1 "licence-" ;
280 - sp:arg2 [ sp:varName "terminalId"^^xsd:string 259 + sp:arg2 [ sp:varName "licenceId"^^xsd:string
281 ] 260 ]
282 ] ; 261 ] ;
283 sp:variable 262 sp:variable
284 - [ sp:varName "terminalLabel"^^xsd:string 263 + [ sp:varName "licenceLabel"^^xsd:string
285 ] 264 ]
286 ]) 265 ])
287 ] ; 266 ] ;
288 spin:rule 267 spin:rule
289 [ rdf:type sp:Construct ; 268 [ rdf:type sp:Construct ;
290 - rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility 269 + rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\"
291 Nothing is done with the namingSystem!"""^^xsd:string ; 270 Nothing is done with the namingSystem!"""^^xsd:string ;
292 sp:templates ([ sp:object spin:_this ; 271 sp:templates ([ sp:object spin:_this ;
293 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 272 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
294 sp:subject 273 sp:subject
295 - [ sp:varName "platform"^^xsd:string 274 + [ sp:varName "wellBore"^^xsd:string
296 ] 275 ]
297 ] [ sp:object 276 ] [ sp:object
298 - [ sp:varName "platformLabel"^^xsd:string 277 + [ sp:varName "wellBoreLabel"^^xsd:string
299 ] ; 278 ] ;
300 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; 279 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
301 sp:subject spin:_this 280 sp:subject spin:_this
302 ]) ; 281 ]) ;
303 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; 282 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ;
304 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 283 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
305 sp:subject spin:_this 284 sp:subject spin:_this
306 ] [ sp:object 285 ] [ sp:object
307 - [ sp:varName "platformName"^^xsd:string 286 + [ sp:varName "wellBoreName"^^xsd:string
308 ] ; 287 ] ;
309 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 288 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
310 sp:subject spin:_this 289 sp:subject spin:_this
311 ] [ rdf:type sp:NamedGraph ; 290 ] [ rdf:type sp:NamedGraph ;
312 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; 291 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
313 sp:predicate rdf:type ; 292 sp:predicate rdf:type ;
314 sp:subject 293 sp:subject
315 - [ sp:varName "platform"^^xsd:string 294 + [ sp:varName "wellBore"^^xsd:string
316 ] 295 ]
317 ] [ sp:object 296 ] [ sp:object
318 - [ sp:varName "platformName"^^xsd:string 297 + [ sp:varName "wellBoreName"^^xsd:string
319 ] ; 298 ] ;
320 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 299 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
321 sp:subject 300 sp:subject
322 - [ sp:varName "platform"^^xsd:string 301 + [ sp:varName "wellBore"^^xsd:string
323 ] 302 ]
324 ] [ sp:object 303 ] [ sp:object
325 - [ sp:varName "platformId"^^xsd:string 304 + [ sp:varName "wellBoreId"^^xsd:string
326 ] ; 305 ] ;
327 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; 306 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
328 sp:subject 307 sp:subject
329 - [ sp:varName "platform"^^xsd:string 308 + [ sp:varName "wellBore"^^xsd:string
330 ] 309 ]
331 ]) ; 310 ]) ;
332 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 311 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
333 ] [ rdf:type sp:Bind ; 312 ] [ rdf:type sp:Bind ;
334 sp:expression 313 sp:expression
335 [ rdf:type fn:concat ; 314 [ rdf:type fn:concat ;
336 - sp:arg1 "platform-" ; 315 + sp:arg1 "wellbore-" ;
337 - sp:arg2 [ sp:varName "platformId"^^xsd:string 316 + sp:arg2 [ sp:varName "wellBoreId"^^xsd:string
338 ] 317 ]
339 ] ; 318 ] ;
340 sp:variable 319 sp:variable
341 - [ sp:varName "platformLabel"^^xsd:string 320 + [ sp:varName "wellBoreLabel"^^xsd:string
342 ] 321 ]
343 ]) 322 ])
344 ] ; 323 ] ;
...@@ -403,31 +382,24 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -403,31 +382,24 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
403 spin:rule 382 spin:rule
404 [ rdf:type sp:Construct ; 383 [ rdf:type sp:Construct ;
405 rdfs:comment """STEP 00014 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file 384 rdfs:comment """STEP 00014 Record the Facility that has the flows - not in the NPD Fact Pages - not already in the file
406 -Naming system not supplied"""^^xsd:string ; 385 +Naming system not supplied
386 +now anonymous - BIND (ep-dpr-spin-lib:buildSmallFacilityURI(\"\", ?facilityName) AS ?facility) ."""^^xsd:string ;
407 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; 387 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
408 sp:predicate rdf:type ; 388 sp:predicate rdf:type ;
409 - sp:subject 389 + sp:subject _:b2
410 - [ sp:varName "facility"^^xsd:string
411 - ]
412 ] [ sp:object 390 ] [ sp:object
413 [ sp:varName "reportingFacilityType"^^xsd:string 391 [ sp:varName "reportingFacilityType"^^xsd:string
414 ] ; 392 ] ;
415 sp:predicate rdf:type ; 393 sp:predicate rdf:type ;
416 - sp:subject 394 + sp:subject _:b2
417 - [ sp:varName "facility"^^xsd:string
418 - ]
419 ] [ sp:object 395 ] [ sp:object
420 [ sp:varName "facilityName"^^xsd:string 396 [ sp:varName "facilityName"^^xsd:string
421 ] ; 397 ] ;
422 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 398 sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
423 - sp:subject 399 + sp:subject _:b2
424 - [ sp:varName "facility"^^xsd:string
425 - ]
426 ] [ sp:object spin:_this ; 400 ] [ sp:object spin:_this ;
427 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 401 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
428 - sp:subject 402 + sp:subject _:b2
429 - [ sp:varName "facility"^^xsd:string
430 - ]
431 ] [ sp:object 403 ] [ sp:object
432 [ sp:varName "facilityName"^^xsd:string 404 [ sp:varName "facilityName"^^xsd:string
433 ] ; 405 ] ;
...@@ -469,16 +441,6 @@ Naming system not supplied"""^^xsd:string ; ...@@ -469,16 +441,6 @@ Naming system not supplied"""^^xsd:string ;
469 sp:variable 441 sp:variable
470 [ sp:varName "reportingFacilityType"^^xsd:string 442 [ sp:varName "reportingFacilityType"^^xsd:string
471 ] 443 ]
472 - ] [ rdf:type sp:Bind ;
473 - sp:expression
474 - [ rdf:type ep-dpr-spin-lib:buildSmallFacilityURI ;
475 - sp:arg1 "" ;
476 - sp:arg2 [ sp:varName "facilityName"^^xsd:string
477 - ]
478 - ] ;
479 - sp:variable
480 - [ sp:varName "facility"^^xsd:string
481 - ]
482 ]) 444 ])
483 ] ; 445 ] ;
484 spin:rule 446 spin:rule
...@@ -545,6 +507,63 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -545,6 +507,63 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
545 ] ; 507 ] ;
546 spin:rule 508 spin:rule
547 [ rdf:type sp:Construct ; 509 [ rdf:type sp:Construct ;
510 + rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\"
511 +Nothing is done with the namingSystem!"""^^xsd:string ;
512 + sp:templates ([ sp:object spin:_this ;
513 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
514 + sp:subject
515 + [ sp:varName "well"^^xsd:string
516 + ]
517 + ] [ sp:object
518 + [ sp:varName "wellLabel"^^xsd:string
519 + ] ;
520 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
521 + sp:subject spin:_this
522 + ]) ;
523 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
524 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
525 + sp:subject spin:_this
526 + ] [ sp:object
527 + [ sp:varName "wellName"^^xsd:string
528 + ] ;
529 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
530 + sp:subject spin:_this
531 + ] [ rdf:type sp:NamedGraph ;
532 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
533 + sp:predicate rdf:type ;
534 + sp:subject
535 + [ sp:varName "well"^^xsd:string
536 + ]
537 + ] [ sp:object
538 + [ sp:varName "wellName"^^xsd:string
539 + ] ;
540 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
541 + sp:subject
542 + [ sp:varName "well"^^xsd:string
543 + ]
544 + ] [ sp:object
545 + [ sp:varName "wellId"^^xsd:string
546 + ] ;
547 + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
548 + sp:subject
549 + [ sp:varName "well"^^xsd:string
550 + ]
551 + ]) ;
552 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
553 + ] [ rdf:type sp:Bind ;
554 + sp:expression
555 + [ rdf:type fn:concat ;
556 + sp:arg1 "well-" ;
557 + sp:arg2 [ sp:varName "wellId"^^xsd:string
558 + ]
559 + ] ;
560 + sp:variable
561 + [ sp:varName "wellLabel"^^xsd:string
562 + ]
563 + ])
564 + ] ;
565 + spin:rule
566 + [ rdf:type sp:Construct ;
548 rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. 567 rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc.
549 Nothing is done with the namingSystem!"""^^xsd:string ; 568 Nothing is done with the namingSystem!"""^^xsd:string ;
550 sp:templates ([ sp:object spin:_this ; 569 sp:templates ([ sp:object spin:_this ;
...@@ -628,293 +647,239 @@ Nothing is done with the namingSystem!"""^^xsd:string ; ...@@ -628,293 +647,239 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
628 ] ; 647 ] ;
629 spin:rule 648 spin:rule
630 [ rdf:type sp:Construct ; 649 [ rdf:type sp:Construct ;
631 - rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility 650 + rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany
632 Nothing is done with the namingSystem!"""^^xsd:string ; 651 Nothing is done with the namingSystem!"""^^xsd:string ;
633 sp:templates ([ sp:object spin:_this ; 652 sp:templates ([ sp:object spin:_this ;
634 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 653 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
635 sp:subject 654 sp:subject
636 - [ sp:varName "platform"^^xsd:string 655 + [ sp:varName "company"^^xsd:string
637 ] 656 ]
638 ] [ sp:object 657 ] [ sp:object
639 - [ sp:varName "platformLabel"^^xsd:string 658 + [ sp:varName "companyLabel"^^xsd:string
640 ] ; 659 ] ;
641 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; 660 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
642 sp:subject spin:_this 661 sp:subject spin:_this
643 ]) ; 662 ]) ;
644 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; 663 + sp:where ([ rdf:type sp:Union ;
664 + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ;
665 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
666 + sp:subject spin:_this
667 + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ;
645 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 668 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
646 sp:subject spin:_this 669 sp:subject spin:_this
670 + ]))
647 ] [ sp:object 671 ] [ sp:object
648 - [ sp:varName "platformName"^^xsd:string 672 + [ sp:varName "companyName"^^xsd:string
649 ] ; 673 ] ;
650 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 674 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
651 sp:subject spin:_this 675 sp:subject spin:_this
652 ] [ rdf:type sp:NamedGraph ; 676 ] [ rdf:type sp:NamedGraph ;
653 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; 677 + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
654 sp:predicate rdf:type ; 678 sp:predicate rdf:type ;
655 sp:subject 679 sp:subject
656 - [ sp:varName "platform"^^xsd:string 680 + [ sp:varName "company"^^xsd:string
657 ] 681 ]
658 ] [ sp:object 682 ] [ sp:object
659 - [ sp:varName "platformName"^^xsd:string 683 + [ sp:varName "companyName"^^xsd:string
660 ] ; 684 ] ;
661 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 685 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
662 sp:subject 686 sp:subject
663 - [ sp:varName "platform"^^xsd:string 687 + [ sp:varName "company"^^xsd:string
664 ] 688 ]
665 ] [ sp:object 689 ] [ sp:object
666 - [ sp:varName "platformId"^^xsd:string 690 + [ sp:varName "companyId"^^xsd:string
667 ] ; 691 ] ;
668 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; 692 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
669 sp:subject 693 sp:subject
670 - [ sp:varName "platform"^^xsd:string 694 + [ sp:varName "company"^^xsd:string
671 ] 695 ]
672 ]) ; 696 ]) ;
673 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 697 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
674 ] [ rdf:type sp:Bind ; 698 ] [ rdf:type sp:Bind ;
675 sp:expression 699 sp:expression
676 [ rdf:type fn:concat ; 700 [ rdf:type fn:concat ;
677 - sp:arg1 "platform-" ; 701 + sp:arg1 "company-" ;
678 - sp:arg2 [ sp:varName "platformId"^^xsd:string 702 + sp:arg2 [ sp:varName "companyId"^^xsd:string
679 ] 703 ]
680 ] ; 704 ] ;
681 sp:variable 705 sp:variable
682 - [ sp:varName "platformLabel"^^xsd:string 706 + [ sp:varName "companyLabel"^^xsd:string
683 ] 707 ]
684 ]) 708 ])
685 ] ; 709 ] ;
686 spin:rule 710 spin:rule
687 [ rdf:type sp:Construct ; 711 [ rdf:type sp:Construct ;
688 - rdfs:comment """STEP 00010 Record the Facility that has the flows - kind is \"licence\" 712 + rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"terminal\" - assumed to be a SurfaceFixedFacility
689 Nothing is done with the namingSystem!"""^^xsd:string ; 713 Nothing is done with the namingSystem!"""^^xsd:string ;
690 sp:templates ([ sp:object spin:_this ; 714 sp:templates ([ sp:object spin:_this ;
691 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 715 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
692 sp:subject 716 sp:subject
693 - [ sp:varName "licence"^^xsd:string 717 + [ sp:varName "terminal"^^xsd:string
694 ] 718 ]
695 ] [ sp:object 719 ] [ sp:object
696 - [ sp:varName "licenceLabel"^^xsd:string 720 + [ sp:varName "terminalLabel"^^xsd:string
697 ] ; 721 ] ;
698 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; 722 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
699 sp:subject spin:_this 723 sp:subject spin:_this
700 ]) ; 724 ]) ;
701 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; 725 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
702 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 726 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
703 sp:subject spin:_this 727 sp:subject spin:_this
704 ] [ sp:object 728 ] [ sp:object
705 - [ sp:varName "licenceName"^^xsd:string 729 + [ sp:varName "terminalName"^^xsd:string
706 ] ; 730 ] ;
707 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 731 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
708 sp:subject spin:_this 732 sp:subject spin:_this
709 ] [ rdf:type sp:NamedGraph ; 733 ] [ rdf:type sp:NamedGraph ;
710 - sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; 734 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ;
711 sp:predicate rdf:type ; 735 sp:predicate rdf:type ;
712 sp:subject 736 sp:subject
713 - [ sp:varName "licence"^^xsd:string 737 + [ sp:varName "terminal"^^xsd:string
714 ] 738 ]
715 ] [ sp:object 739 ] [ sp:object
716 - [ sp:varName "licenceName"^^xsd:string 740 + [ sp:varName "terminalName"^^xsd:string
717 ] ; 741 ] ;
718 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 742 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
719 sp:subject 743 sp:subject
720 - [ sp:varName "licence"^^xsd:string 744 + [ sp:varName "terminal"^^xsd:string
721 ] 745 ]
722 ] [ sp:object 746 ] [ sp:object
723 - [ sp:varName "licenceId"^^xsd:string 747 + [ sp:varName "terminalId"^^xsd:string
724 ] ; 748 ] ;
725 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; 749 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
726 sp:subject 750 sp:subject
727 - [ sp:varName "livence"^^xsd:string 751 + [ sp:varName "terminal"^^xsd:string
728 ] 752 ]
729 ]) ; 753 ]) ;
730 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 754 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
731 ] [ rdf:type sp:Bind ; 755 ] [ rdf:type sp:Bind ;
732 sp:expression 756 sp:expression
733 [ rdf:type fn:concat ; 757 [ rdf:type fn:concat ;
734 - sp:arg1 "licence-" ; 758 + sp:arg1 "terminal-" ;
735 - sp:arg2 [ sp:varName "licenceId"^^xsd:string 759 + sp:arg2 [ sp:varName "terminalId"^^xsd:string
736 ] 760 ]
737 ] ; 761 ] ;
738 sp:variable 762 sp:variable
739 - [ sp:varName "licenceLabel"^^xsd:string 763 + [ sp:varName "terminalLabel"^^xsd:string
740 ] 764 ]
741 ]) 765 ])
742 ] ; 766 ] ;
743 spin:rule 767 spin:rule
744 [ rdf:type sp:Construct ; 768 [ rdf:type sp:Construct ;
745 - rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\" 769 + rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility
746 Nothing is done with the namingSystem!"""^^xsd:string ; 770 Nothing is done with the namingSystem!"""^^xsd:string ;
747 sp:templates ([ sp:object spin:_this ; 771 sp:templates ([ sp:object spin:_this ;
748 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 772 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
749 sp:subject 773 sp:subject
750 - [ sp:varName "wellBore"^^xsd:string 774 + [ sp:varName "platform"^^xsd:string
751 ] 775 ]
752 ] [ sp:object 776 ] [ sp:object
753 - [ sp:varName "wellBoreLabel"^^xsd:string 777 + [ sp:varName "platformLabel"^^xsd:string
754 ] ; 778 ] ;
755 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; 779 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
756 sp:subject spin:_this 780 sp:subject spin:_this
757 ]) ; 781 ]) ;
758 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; 782 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ;
759 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 783 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
760 sp:subject spin:_this 784 sp:subject spin:_this
761 ] [ sp:object 785 ] [ sp:object
762 - [ sp:varName "wellBoreName"^^xsd:string 786 + [ sp:varName "platformName"^^xsd:string
763 ] ; 787 ] ;
764 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 788 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
765 sp:subject spin:_this 789 sp:subject spin:_this
766 ] [ rdf:type sp:NamedGraph ; 790 ] [ rdf:type sp:NamedGraph ;
767 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 791 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ;
768 sp:predicate rdf:type ; 792 sp:predicate rdf:type ;
769 sp:subject 793 sp:subject
770 - [ sp:varName "wellBore"^^xsd:string 794 + [ sp:varName "platform"^^xsd:string
771 ] 795 ]
772 ] [ sp:object 796 ] [ sp:object
773 - [ sp:varName "wellBoreName"^^xsd:string 797 + [ sp:varName "platformName"^^xsd:string
774 ] ; 798 ] ;
775 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 799 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
776 sp:subject 800 sp:subject
777 - [ sp:varName "wellBore"^^xsd:string 801 + [ sp:varName "platform"^^xsd:string
778 ] 802 ]
779 ] [ sp:object 803 ] [ sp:object
780 - [ sp:varName "wellBoreId"^^xsd:string 804 + [ sp:varName "platformId"^^xsd:string
781 ] ; 805 ] ;
782 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; 806 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
783 sp:subject 807 sp:subject
784 - [ sp:varName "wellBore"^^xsd:string 808 + [ sp:varName "platform"^^xsd:string
785 ] 809 ]
786 ]) ; 810 ]) ;
787 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 811 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
788 ] [ rdf:type sp:Bind ; 812 ] [ rdf:type sp:Bind ;
789 sp:expression 813 sp:expression
790 [ rdf:type fn:concat ; 814 [ rdf:type fn:concat ;
791 - sp:arg1 "wellbore-" ; 815 + sp:arg1 "platform-" ;
792 - sp:arg2 [ sp:varName "wellBoreId"^^xsd:string 816 + sp:arg2 [ sp:varName "platformId"^^xsd:string
793 ] 817 ]
794 ] ; 818 ] ;
795 sp:variable 819 sp:variable
796 - [ sp:varName "wellBoreLabel"^^xsd:string 820 + [ sp:varName "platformLabel"^^xsd:string
797 ] 821 ]
798 ]) 822 ])
799 ] ; 823 ] ;
800 spin:rule 824 spin:rule
801 [ rdf:type sp:Construct ; 825 [ rdf:type sp:Construct ;
802 - rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" 826 + rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility
803 Nothing is done with the namingSystem!"""^^xsd:string ; 827 Nothing is done with the namingSystem!"""^^xsd:string ;
804 sp:templates ([ sp:object spin:_this ; 828 sp:templates ([ sp:object spin:_this ;
805 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 829 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
806 sp:subject 830 sp:subject
807 - [ sp:varName "well"^^xsd:string 831 + [ sp:varName "platform"^^xsd:string
808 ] 832 ]
809 ] [ sp:object 833 ] [ sp:object
810 - [ sp:varName "wellLabel"^^xsd:string 834 + [ sp:varName "platformLabel"^^xsd:string
811 ] ; 835 ] ;
812 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ; 836 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
813 sp:subject spin:_this 837 sp:subject spin:_this
814 ]) ; 838 ]) ;
815 - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; 839 + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ;
816 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 840 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
817 sp:subject spin:_this 841 sp:subject spin:_this
818 ] [ sp:object 842 ] [ sp:object
819 - [ sp:varName "wellName"^^xsd:string 843 + [ sp:varName "platformName"^^xsd:string
820 ] ; 844 ] ;
821 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 845 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
822 sp:subject spin:_this 846 sp:subject spin:_this
823 ] [ rdf:type sp:NamedGraph ; 847 ] [ rdf:type sp:NamedGraph ;
824 - sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; 848 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ;
825 sp:predicate rdf:type ; 849 sp:predicate rdf:type ;
826 sp:subject 850 sp:subject
827 - [ sp:varName "well"^^xsd:string 851 + [ sp:varName "platform"^^xsd:string
828 ] 852 ]
829 ] [ sp:object 853 ] [ sp:object
830 - [ sp:varName "wellName"^^xsd:string 854 + [ sp:varName "platformName"^^xsd:string
831 ] ; 855 ] ;
832 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; 856 sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
833 sp:subject 857 sp:subject
834 - [ sp:varName "well"^^xsd:string 858 + [ sp:varName "platform"^^xsd:string
835 ] 859 ]
836 ] [ sp:object 860 ] [ sp:object
837 - [ sp:varName "wellId"^^xsd:string 861 + [ sp:varName "platformId"^^xsd:string
838 ] ; 862 ] ;
839 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; 863 sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
840 sp:subject 864 sp:subject
841 - [ sp:varName "well"^^xsd:string 865 + [ sp:varName "platform"^^xsd:string
842 ] 866 ]
843 ]) ; 867 ]) ;
844 sp:graphNameNode <http://www.reportinghub.no/np/data/npd> 868 sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
845 ] [ rdf:type sp:Bind ; 869 ] [ rdf:type sp:Bind ;
846 sp:expression 870 sp:expression
847 [ rdf:type fn:concat ; 871 [ rdf:type fn:concat ;
848 - sp:arg1 "well-" ; 872 + sp:arg1 "platform-" ;
849 - sp:arg2 [ sp:varName "wellId"^^xsd:string 873 + sp:arg2 [ sp:varName "platformId"^^xsd:string
850 - ]
851 - ] ;
852 - sp:variable
853 - [ sp:varName "wellLabel"^^xsd:string
854 - ]
855 - ])
856 - ] ;
857 - spin:rule
858 - [ rdf:type sp:Construct ;
859 - rdfs:comment """STEP 00011 Record the Facility that has the flows - not in the NPD Fact Pages - already in the file
860 -Nothing is done with the namingSystem!"""^^xsd:string ;
861 - sp:templates ([ sp:object spin:_this ;
862 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
863 - sp:subject
864 - [ sp:varName "facility"^^xsd:string
865 - ]
866 - ]) ;
867 - sp:where ([ rdf:type sp:Optional ;
868 - sp:elements ([ sp:object
869 - [ sp:varName "facilityKind"^^xsd:string
870 - ] ;
871 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
872 - sp:subject spin:_this
873 - ])
874 - ] [ sp:object
875 - [ sp:varName "facilityName"^^xsd:string
876 - ] ;
877 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
878 - sp:subject spin:_this
879 - ] [ rdf:type sp:NotExists ;
880 - sp:elements ([ sp:object spin:_this ;
881 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
882 - sp:subject
883 - [ sp:varName "something"^^xsd:string
884 - ]
885 - ])
886 - ] [ sp:object
887 - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string
888 - ] ;
889 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
890 - sp:subject
891 - [ sp:varName "facility"^^xsd:string
892 - ]
893 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> ;
894 - sp:predicate rdf:type ;
895 - sp:subject
896 - [ sp:varName "aFacilityIdentifierStructure"^^xsd:string
897 - ]
898 - ] [ rdf:type sp:Bind ;
899 - sp:expression
900 - [ rdf:type ep-mpr-spin-lib:selectReportingFacilityType ;
901 - sp:arg1 [ sp:varName "facilityKind"^^xsd:string
902 ] 874 ]
903 ] ; 875 ] ;
904 sp:variable 876 sp:variable
905 - [ sp:varName "reportingFacilityType"^^xsd:string 877 + [ sp:varName "platformLabel"^^xsd:string
906 - ]
907 - ] [ sp:object
908 - [ sp:varName "reportingFacilityType"^^xsd:string
909 - ] ;
910 - sp:predicate rdf:type ;
911 - sp:subject
912 - [ sp:varName "facility"^^xsd:string
913 ] 878 ]
914 ]) 879 ])
915 ] . 880 ] .
916 881
917 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> 882 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1>
918 rdf:type owl:Ontology ; 883 rdf:type owl:Ontology ;
919 - 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> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; 884 + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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> ;
920 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 885 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
This diff could not be displayed because it is too large.
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 + ] .