David Price

Fix geo URI add transform back

1 -# Saved by TopBraid on Fri Oct 07 17:46:32 BST 2011 1 +# Saved by TopBraid on Sat Oct 08 12:56:19 BST 2011
2 # baseURI: http://www.reportinghub.no/ep/schema/1.0/geography 2 # baseURI: http://www.reportinghub.no/ep/schema/1.0/geography
3 # imports: http://www.reportinghub.no/ep/schema/1.0/core 3 # imports: http://www.reportinghub.no/ep/schema/1.0/core
4 # imports: http://www.reportinghub.no/ep/schema/1.0/facility 4 # imports: http://www.reportinghub.no/ep/schema/1.0/facility
5 5
6 -@prefix : <http://www.reportinghub.no/ep/schema/1.0/geography#> .
7 @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . 6 @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> .
7 +@prefix ep-geo: <http://www.reportinghub.no/ep/schema/geography#> .
8 @prefix owl: <http://www.w3.org/2002/07/owl#> . 8 @prefix owl: <http://www.w3.org/2002/07/owl#> .
9 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 9 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
10 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 10 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
...@@ -12,28 +12,28 @@ ...@@ -12,28 +12,28 @@
12 12
13 <http://www.reportinghub.no/ep/schema/1.0/geography> 13 <http://www.reportinghub.no/ep/schema/1.0/geography>
14 rdf:type owl:Ontology ; 14 rdf:type owl:Ontology ;
15 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> ; 15 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
16 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 16 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
17 17
18 -:Country 18 +ep-geo:Country
19 - rdf:type ep-fac:ProductionFacilityType , owl:Class ; 19 + rdf:type owl:Class , ep-fac:ProductionFacilityType ;
20 rdfs:label "country"^^xsd:string ; 20 rdfs:label "country"^^xsd:string ;
21 - rdfs:subClassOf :PartOfTheSurfaceOfTheEarth ; 21 + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
22 - owl:disjointWith :County , :State . 22 + owl:disjointWith ep-geo:State , ep-geo:County .
23 23
24 -:County 24 +ep-geo:County
25 - rdf:type ep-fac:ProductionFacilityType , owl:Class ; 25 + rdf:type owl:Class , ep-fac:ProductionFacilityType ;
26 rdfs:label "county"^^xsd:string ; 26 rdfs:label "county"^^xsd:string ;
27 - rdfs:subClassOf :PartOfTheSurfaceOfTheEarth ; 27 + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
28 - owl:disjointWith :State , :Country . 28 + owl:disjointWith ep-geo:Country , ep-geo:State .
29 29
30 -:PartOfTheSurfaceOfTheEarth 30 +ep-geo:PartOfTheSurfaceOfTheEarth
31 rdf:type owl:Class ; 31 rdf:type owl:Class ;
32 rdfs:label "part of the surface of the earth"^^xsd:string ; 32 rdfs:label "part of the surface of the earth"^^xsd:string ;
33 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . 33 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
34 34
35 -:State 35 +ep-geo:State
36 - rdf:type ep-fac:ProductionFacilityType , owl:Class ; 36 + rdf:type owl:Class , ep-fac:ProductionFacilityType ;
37 rdfs:label "state"^^xsd:string ; 37 rdfs:label "state"^^xsd:string ;
38 - rdfs:subClassOf :PartOfTheSurfaceOfTheEarth ; 38 + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
39 - owl:disjointWith :County , :Country . 39 + owl:disjointWith ep-geo:Country , ep-geo:County .
......
1 +# Saved by TopBraid on Sat Oct 08 12:56:31 BST 2011
2 +# baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume
3 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 +# imports: http://www.reportinghub.no/ep/schema/1.0/facility
6 +# imports: http://www.reportinghub.no/ep/schema/1.0/flow
7 +# imports: http://spinrdf.org/spin
8 +# imports: http://www.witsml.org/schemas/131/addendum/combo
9 +
10 +@prefix : <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume#> .
11 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
12 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
13 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
14 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
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.reportinghub.no/ep/transform/1.0/dpr/productVolume>
21 + rdf:type owl:Ontology ;
22 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
23 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
24 +
25 +<http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume>
26 + spin:rule
27 + [ rdf:type sp:Construct ;
28 + rdfs:comment "STEP 9999 stream of conciousness"^^xsd:string ;
29 + sp:templates () ;
30 + sp:where ([ sp:object _:b1 ;
31 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
32 + sp:subject spin:_this
33 + ] [ sp:object _:b2 ;
34 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
35 + sp:subject _:b1
36 + ] [ sp:object
37 + [ sp:varName "facilityName"^^xsd:string
38 + ] ;
39 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
40 + sp:subject _:b2
41 + ] [ rdf:type sp:Optional ;
42 + sp:elements ([ sp:object
43 + [ sp:varName "facilityNamingSystem"^^xsd:string
44 + ] ;
45 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
46 + sp:subject _:b2
47 + ])
48 + ] [ rdf:type sp:Optional ;
49 + sp:elements ([ sp:object
50 + [ sp:varName "facilityKind"^^xsd:string
51 + ] ;
52 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
53 + sp:subject _:b2
54 + ])
55 + ] [ sp:object _:b3 ;
56 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
57 + sp:subject _:b1
58 + ] [ sp:object
59 + [ sp:varName "flowName"^^xsd:string
60 + ] ;
61 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
62 + sp:subject _:b3
63 + ] [ sp:object
64 + [ sp:varName "flowKind"^^xsd:string
65 + ] ;
66 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
67 + sp:subject _:b3
68 + ] [ sp:object
69 + [ sp:varName "flowDirection"^^xsd:string
70 + ] ;
71 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
72 + sp:subject _:b3
73 + ] [ sp:object
74 + [ sp:varName "flowQualifier"^^xsd:string
75 + ] ;
76 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
77 + sp:subject _:b3
78 + ] [ sp:object _:b4 ;
79 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
80 + sp:subject _:b3
81 + ] [ sp:object _:b5 ;
82 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
83 + sp:subject _:b4
84 + ] [ sp:object
85 + [ sp:varName "productName"^^xsd:string
86 + ] ;
87 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
88 + sp:subject _:b5
89 + ] [ rdf:type sp:Optional ;
90 + sp:elements ([ sp:object
91 + [ sp:varName "productNamingSystem"^^xsd:string
92 + ] ;
93 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
94 + sp:subject _:b5
95 + ])
96 + ] [ rdf:type sp:Optional ;
97 + sp:elements ([ sp:object _:b6 ;
98 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
99 + sp:subject _:b5
100 + ])
101 + ] [ sp:object _:b6 ;
102 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
103 + sp:subject _:b4
104 + ] [ sp:object _:b7 ;
105 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ;
106 + sp:subject _:b4
107 + ] [ sp:object
108 + [ sp:varName "periodKind"^^xsd:string
109 + ] ;
110 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
111 + sp:subject _:b7
112 + ] [ sp:object
113 + [ sp:varName "startTime"^^xsd:string
114 + ] ;
115 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
116 + sp:subject _:b7
117 + ] [ sp:object
118 + [ sp:varName "endTime"^^xsd:string
119 + ] ;
120 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ;
121 + sp:subject _:b7
122 + ] [ rdf:type sp:Optional ;
123 + sp:elements ([ sp:object _:b8 ;
124 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ;
125 + sp:subject _:b7
126 + ] [ sp:object
127 + [ sp:varName "realVolume"^^xsd:string
128 + ] ;
129 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
130 + sp:subject _:b8
131 + ] [ sp:object
132 + [ sp:varName "uomVolume"^^xsd:string
133 + ] ;
134 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
135 + sp:subject _:b8
136 + ])
137 + ] [ rdf:type sp:Optional ;
138 + sp:elements ([ sp:object _:b9 ;
139 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ;
140 + sp:subject _:b7
141 + ] [ sp:object
142 + [ sp:varName "realVolumeStd"^^xsd:string
143 + ] ;
144 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
145 + sp:subject _:b9
146 + ] [ sp:object
147 + [ sp:varName "uomVolumeStd"^^xsd:string
148 + ] ;
149 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
150 + sp:subject _:b9
151 + ])
152 + ])
153 + ] ;
154 + spin:rule
155 + [ rdf:type sp:Construct ;
156 + rdfs:comment """STEP 20101 Record the Facility that has the flows
157 +Nothing is done with the namingSystem!"""^^xsd:string ;
158 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
159 + sp:predicate rdf:type ;
160 + sp:subject _:b10
161 + ] [ sp:object _:b11 ;
162 + sp:predicate rdf:type ;
163 + sp:subject _:b10
164 + ] [ sp:object _:b12 ;
165 + sp:predicate rdfs:label ;
166 + sp:subject _:b10
167 + ]) ;
168 + sp:where ([ sp:object _:b13 ;
169 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
170 + sp:subject spin:_this
171 + ] [ sp:object _:b14 ;
172 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
173 + sp:subject _:b13
174 + ] [ sp:object _:b12 ;
175 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
176 + sp:subject _:b14
177 + ] [ rdf:type sp:Optional ;
178 + sp:elements ([ sp:object
179 + [ sp:varName "facilityNamingSystem"^^xsd:string
180 + ] ;
181 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
182 + sp:subject _:b14
183 + ])
184 + ] [ rdf:type sp:Optional ;
185 + sp:elements ([ sp:object _:b15 ;
186 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
187 + sp:subject _:b14
188 + ])
189 + ] [ rdf:type sp:Bind ;
190 + sp:expression
191 + [ rdf:type ep-spin-lib:normalizeString ;
192 + sp:arg1 _:b12
193 + ] ;
194 + sp:variable _:b16
195 + ] [ rdf:type sp:Bind ;
196 + sp:expression
197 + [ rdf:type ep-spin-lib:buildProductionFacilityURI ;
198 + sp:arg1 _:b16
199 + ] ;
200 + sp:variable _:b10
201 + ] [ rdf:type sp:Bind ;
202 + sp:expression
203 + [ rdf:type ep-spin-lib:selectProductionFacilityType ;
204 + sp:arg1 _:b15
205 + ] ;
206 + sp:variable _:b11
207 + ])
208 + ] ;
209 + spin:rule
210 + [ rdf:type sp:Construct ;
211 + rdfs:comment "STEP 20102 record the flows"^^xsd:string ;
212 + sp:templates ([ sp:object _:b17 ;
213 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
214 + sp:subject _:b18
215 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
216 + sp:predicate rdf:type ;
217 + sp:subject _:b17
218 + ] [ sp:object _:b19 ;
219 + sp:predicate rdf:type ;
220 + sp:subject _:b17
221 + ] [ sp:object
222 + [ sp:varName "productionFlowType"^^xsd:string
223 + ] ;
224 + sp:predicate rdf:type ;
225 + sp:subject _:b17
226 + ] [ sp:object _:b20 ;
227 + sp:predicate rdfs:label ;
228 + sp:subject _:b17
229 + ]) ;
230 + sp:where ([ sp:object _:b21 ;
231 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
232 + sp:subject spin:_this
233 + ] [ sp:object _:b22 ;
234 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
235 + sp:subject _:b21
236 + ] [ sp:object _:b23 ;
237 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
238 + sp:subject _:b22
239 + ] [ sp:object _:b24 ;
240 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
241 + sp:subject _:b21
242 + ] [ sp:object _:b20 ;
243 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
244 + sp:subject _:b24
245 + ] [ sp:object _:b25 ;
246 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
247 + sp:subject _:b24
248 + ] [ rdf:type sp:Optional ;
249 + sp:elements ([ sp:object
250 + [ sp:varName "flowDirection"^^xsd:string
251 + ] ;
252 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
253 + sp:subject _:b24
254 + ])
255 + ] [ rdf:type sp:Optional ;
256 + sp:elements ([ sp:object
257 + [ sp:varName "flowQualifier"^^xsd:string
258 + ] ;
259 + sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
260 + sp:subject _:b24
261 + ])
262 + ] [ rdf:type sp:Bind ;
263 + sp:expression
264 + [ rdf:type ep-spin-lib:normalizeString ;
265 + sp:arg1 _:b23
266 + ] ;
267 + sp:variable _:b26
268 + ] [ rdf:type sp:Bind ;
269 + sp:expression
270 + [ rdf:type ep-spin-lib:buildProductionFacilityURI ;
271 + sp:arg1 _:b26
272 + ] ;
273 + sp:variable _:b18
274 + ] [ rdf:type sp:Bind ;
275 + sp:expression
276 + [ rdf:type ep-spin-lib:normalizeString ;
277 + sp:arg1 _:b20
278 + ] ;
279 + sp:variable _:b27
280 + ] [ rdf:type sp:Bind ;
281 + sp:expression
282 + [ rdf:type ep-spin-lib:buildProductionFlowURI ;
283 + sp:arg1 _:b27
284 + ] ;
285 + sp:variable _:b17
286 + ] [ rdf:type sp:Bind ;
287 + sp:expression
288 + [ rdf:type ep-spin-lib:selectProductionFlowPurposeType ;
289 + sp:arg1 _:b25
290 + ] ;
291 + sp:variable _:b19
292 + ] [ rdf:type sp:Bind ;
293 + sp:expression
294 + [ rdf:type ep-spin-lib:selectProductionFlowQualifierType ;
295 + sp:arg1 _:b25
296 + ] ;
297 + sp:variable
298 + [ sp:varName "productionFlowQualitierType"^^xsd:string
299 + ]
300 + ])
301 + ] .
302 +
303 +_:b9 sp:varName "volumeStdRef"^^xsd:string .
304 +
305 +_:b8 sp:varName "volumeRef"^^xsd:string .
306 +
307 +_:b7 sp:varName "period"^^xsd:string .
308 +
309 +_:b6 sp:varName "productKind"^^xsd:string .
310 +
311 +_:b5 sp:varName "productNameRef"^^xsd:string .
312 +
313 +_:b4 sp:varName "product"^^xsd:string .
314 +
315 +_:b3 sp:varName "flow"^^xsd:string .
316 +
317 +_:b2 sp:varName "facilityNameRef"^^xsd:string .
318 +
319 +_:b1 sp:varName "facility"^^xsd:string .
320 +
321 +_:b16
322 + sp:varName "normalizedFacilityName"^^xsd:string .
323 +
324 +_:b15
325 + sp:varName "facilityKind"^^xsd:string .
326 +
327 +_:b14
328 + sp:varName "facilityNameRef"^^xsd:string .
329 +
330 +_:b13
331 + sp:varName "facilityRef"^^xsd:string .
332 +
333 +_:b12
334 + sp:varName "facilityName"^^xsd:string .
335 +
336 +_:b11
337 + sp:varName "productionFacilityType"^^xsd:string .
338 +
339 +_:b10
340 + sp:varName "productionFacility"^^xsd:string .
341 +
342 +_:b27
343 + sp:varName "normalizedFlowName"^^xsd:string .
344 +
345 +_:b26
346 + sp:varName "normalizedFacilityName"^^xsd:string .
347 +
348 +_:b25
349 + sp:varName "flowKind"^^xsd:string .
350 +
351 +_:b24
352 + sp:varName "flowRef"^^xsd:string .
353 +
354 +_:b23
355 + sp:varName "facilityName"^^xsd:string .
356 +
357 +_:b22
358 + sp:varName "facilityNameRef"^^xsd:string .
359 +
360 +_:b21
361 + sp:varName "facilityRef"^^xsd:string .
362 +
363 +_:b20
364 + sp:varName "flowName"^^xsd:string .
365 +
366 +_:b19
367 + sp:varName "productionFlowPurposeType"^^xsd:string .
368 +
369 +_:b18
370 + sp:varName "productionFacility"^^xsd:string .
371 +
372 +_:b17
373 + sp:varName "productionFlow"^^xsd:string .
1 +# Saved by TopBraid on Sat Oct 08 12:56:31 BST 2011
2 +# baseURI: null
3 +
4 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
5 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
6 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10 +@prefix visual: <http://topbraid.org/visual#> .
11 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
12 +
13 +[] rdf:type inference:Configuration ;
14 + composite:child
15 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
16 + composite:index "0"^^xsd:int
17 + ] .