David Leal

Tidied up to start work again

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