David Price

Flow schema and transform URI fixed

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