David Leal

A bit more on fluid sampling

1 -# Saved by TopBraid on Mon Dec 19 18:46:58 GMT 2011 1 +# Saved by TopBraid on Tue Dec 20 16:32:44 GMT 2011
2 # baseURI: http://www.reportinghub.no/ep/schema/1.0/production-activity 2 # baseURI: http://www.reportinghub.no/ep/schema/1.0/production-activity
3 # imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment 3 # imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment
4 # imports: http://www.reportinghub.no/ep/schema/1.0/production-organization 4 # imports: http://www.reportinghub.no/ep/schema/1.0/production-organization
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
37 <http://www.reportinghub.no/ep/schema/activity#ProductionWellTest> 37 <http://www.reportinghub.no/ep/schema/activity#ProductionWellTest>
38 rdf:type owl:Class ; 38 rdf:type owl:Class ;
39 rdfs:label "production well test"^^xsd:string ; 39 rdfs:label "production well test"^^xsd:string ;
40 - rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> , <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> . 40 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> , <http://www.reportinghub.no/ep/schema/activity#WellTest> .
41 41
42 <http://www.reportinghub.no/ep/schema/activity#WeeklyProductionActivity> 42 <http://www.reportinghub.no/ep/schema/activity#WeeklyProductionActivity>
43 rdf:type ep-prodact:ProductionOperationClassByDuration . 43 rdf:type ep-prodact:ProductionOperationClassByDuration .
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
52 rdfs:range <http://www.reportinghub.no/ep/schema/flow#Flow> . 52 rdfs:range <http://www.reportinghub.no/ep/schema/flow#Flow> .
53 53
54 ep-core:Mass 54 ep-core:Mass
55 - rdf:type ep-core:PropertySpace , rdfs:Class ; 55 + rdf:type rdfs:Class , ep-core:PropertySpace ;
56 rdfs:label "mass"^^xsd:string ; 56 rdfs:label "mass"^^xsd:string ;
57 rdfs:subClassOf ep-core:MeasureOfAmountOfMaterial . 57 rdfs:subClassOf ep-core:MeasureOfAmountOfMaterial .
58 58
...@@ -93,13 +93,13 @@ ep-core:Mass ...@@ -93,13 +93,13 @@ ep-core:Mass
93 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> . 93 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> .
94 94
95 ep-prodact:AdministerFirstAid 95 ep-prodact:AdministerFirstAid
96 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 96 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
97 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 97 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
98 98
99 ep-prodact:AirTrafficOperation 99 ep-prodact:AirTrafficOperation
100 - rdf:type ep-prodact:ProductionActivityType , owl:Class ; 100 + rdf:type owl:Class , ep-prodact:ProductionActivityType ;
101 rdfs:label "air traffic operation"^^xsd:string ; 101 rdfs:label "air traffic operation"^^xsd:string ;
102 - rdfs:subClassOf ep-prodact:PartOfProductionActivity , ep-prodact:TransportationActivity . 102 + rdfs:subClassOf ep-prodact:TransportationActivity , ep-prodact:PartOfProductionActivity .
103 103
104 ep-prodact:Alarm 104 ep-prodact:Alarm
105 rdf:type owl:Class ; 105 rdf:type owl:Class ;
...@@ -118,49 +118,49 @@ ep-prodact:AmountOfSubstance ...@@ -118,49 +118,49 @@ ep-prodact:AmountOfSubstance
118 rdfs:subClassOf ep-core:PhysicalObject . 118 rdfs:subClassOf ep-core:PhysicalObject .
119 119
120 ep-prodact:AnnualProductionActivity 120 ep-prodact:AnnualProductionActivity
121 - rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 121 + rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
122 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> . 122 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
123 123
124 ep-prodact:AnnualProductionActivityToDate 124 ep-prodact:AnnualProductionActivityToDate
125 - rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ; 125 + rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ;
126 rdfs:subClassOf ep-prodact:AnnualProductionActivity . 126 rdfs:subClassOf ep-prodact:AnnualProductionActivity .
127 127
128 ep-prodact:AnnualProductionOperationsActivityToEndOfReportingPeriod 128 ep-prodact:AnnualProductionOperationsActivityToEndOfReportingPeriod
129 - rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 129 + rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
130 - rdfs:subClassOf ep-prodact:ProductionOperationsActivity , ep-prodact:AnnualProductionActivityToDate . 130 + rdfs:subClassOf ep-prodact:AnnualProductionActivityToDate , ep-prodact:ProductionOperationsActivity .
131 131
132 ep-prodact:AnnualProductionVolumeActivityToEndOfReportingPeriod 132 ep-prodact:AnnualProductionVolumeActivityToEndOfReportingPeriod
133 - rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 133 + rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
134 - rdfs:subClassOf ep-prodact:ProductionVolumeActivity , ep-prodact:AnnualProductionActivityToDate . 134 + rdfs:subClassOf ep-prodact:AnnualProductionActivityToDate , ep-prodact:ProductionVolumeActivity .
135 135
136 ep-prodact:CargoShipOperation 136 ep-prodact:CargoShipOperation
137 rdf:type owl:Class ; 137 rdf:type owl:Class ;
138 - rdfs:subClassOf ep-prodact:PartOfProductionActivity , ep-prodact:TransportationActivity . 138 + rdfs:subClassOf ep-prodact:TransportationActivity , ep-prodact:PartOfProductionActivity .
139 139
140 ep-prodact:ConstructionOperation 140 ep-prodact:ConstructionOperation
141 - rdf:type ep-prodact:ProductionActivityType , owl:Class ; 141 + rdf:type owl:Class , ep-prodact:ProductionActivityType ;
142 rdfs:label "construction operation"^^xsd:string ; 142 rdfs:label "construction operation"^^xsd:string ;
143 rdfs:subClassOf ep-prodact:PartOfProductionActivity . 143 rdfs:subClassOf ep-prodact:PartOfProductionActivity .
144 144
145 ep-prodact:CumulativeProductionActivitySinceProductionBegan 145 ep-prodact:CumulativeProductionActivitySinceProductionBegan
146 - rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 146 + rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
147 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> . 147 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
148 148
149 ep-prodact:DailyProductionOperationsActivity 149 ep-prodact:DailyProductionOperationsActivity
150 - rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 150 + rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
151 - rdfs:subClassOf ep-prodact:ProductionOperationsActivity , <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> . 151 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> , ep-prodact:ProductionOperationsActivity .
152 152
153 ep-prodact:DailyProductionVolumeActivity 153 ep-prodact:DailyProductionVolumeActivity
154 - rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 154 + rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
155 - rdfs:subClassOf ep-prodact:ProductionVolumeActivity , <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> . 155 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> , ep-prodact:ProductionVolumeActivity .
156 156
157 ep-prodact:Deviation 157 ep-prodact:Deviation
158 - rdf:type ep-prodact:ProductionActivityType , owl:Class ; 158 + rdf:type owl:Class , ep-prodact:ProductionActivityType ;
159 rdfs:label "deviation"^^xsd:string ; 159 rdfs:label "deviation"^^xsd:string ;
160 rdfs:subClassOf ep-prodact:PartOfProductionActivity . 160 rdfs:subClassOf ep-prodact:PartOfProductionActivity .
161 161
162 ep-prodact:DrillOrExcercise 162 ep-prodact:DrillOrExcercise
163 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 163 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
164 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 164 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
165 165
166 ep-prodact:Fire 166 ep-prodact:Fire
...@@ -182,62 +182,62 @@ ep-prodact:FlowLine-Production ...@@ -182,62 +182,62 @@ ep-prodact:FlowLine-Production
182 ep-prodact:FluidLevelTest 182 ep-prodact:FluidLevelTest
183 rdf:type owl:Class ; 183 rdf:type owl:Class ;
184 rdfs:label "fluid level test"^^xsd:string ; 184 rdfs:label "fluid level test"^^xsd:string ;
185 - rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> , <http://www.reportinghub.no/ep/schema/activity#WellTest> . 185 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> , <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
186 -
187 -ep-prodact:FluidSampling
188 - rdf:type owl:Class ;
189 - rdfs:label "fluid sampling"^^xsd:string ;
190 - rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
191 186
192 ep-prodact:FluidSampling-DST 187 ep-prodact:FluidSampling-DST
193 - rdf:type owl:Class , ep-prodact:FluidSamplingType ; 188 + rdf:type ep-prodact:FluidSamplingType , owl:Class ;
194 rdfs:label "fluid sampling - DST"^^xsd:string ; 189 rdfs:label "fluid sampling - DST"^^xsd:string ;
195 - rdfs:subClassOf ep-prodact:FluidSampling . 190 + rdfs:subClassOf ep-prodact:FluidSamplingAndAnalysis .
196 191
197 ep-prodact:FluidSampling-RFTorMDT 192 ep-prodact:FluidSampling-RFTorMDT
198 - rdf:type owl:Class , ep-prodact:FluidSamplingType ; 193 + rdf:type ep-prodact:FluidSamplingType , owl:Class ;
199 rdfs:label "fluid sampling - RFT or MDT"^^xsd:string ; 194 rdfs:label "fluid sampling - RFT or MDT"^^xsd:string ;
200 - rdfs:subClassOf ep-prodact:FluidSampling . 195 + rdfs:subClassOf ep-prodact:FluidSamplingAndAnalysis .
201 196
202 ep-prodact:FluidSampling-bottomhole 197 ep-prodact:FluidSampling-bottomhole
203 - rdf:type owl:Class , ep-prodact:FluidSamplingType ; 198 + rdf:type ep-prodact:FluidSamplingType , owl:Class ;
204 rdfs:label "fluid sampling - bottomhole"^^xsd:string ; 199 rdfs:label "fluid sampling - bottomhole"^^xsd:string ;
205 - rdfs:subClassOf ep-prodact:FluidSampling . 200 + rdfs:subClassOf ep-prodact:FluidSamplingAndAnalysis .
206 201
207 ep-prodact:FluidSampling-formationTester 202 ep-prodact:FluidSampling-formationTester
208 - rdf:type owl:Class , ep-prodact:FluidSamplingType ; 203 + rdf:type ep-prodact:FluidSamplingType , owl:Class ;
209 rdfs:label "fluid sampling - formation tester"^^xsd:string ; 204 rdfs:label "fluid sampling - formation tester"^^xsd:string ;
210 - rdfs:subClassOf ep-prodact:FluidSampling . 205 + rdfs:subClassOf ep-prodact:FluidSamplingAndAnalysis .
211 206
212 ep-prodact:FluidSampling-recombined 207 ep-prodact:FluidSampling-recombined
213 - rdf:type owl:Class , ep-prodact:FluidSamplingType ; 208 + rdf:type ep-prodact:FluidSamplingType , owl:Class ;
214 rdfs:label "fluid sampling - recombined"^^xsd:string ; 209 rdfs:label "fluid sampling - recombined"^^xsd:string ;
215 - rdfs:subClassOf ep-prodact:FluidSampling . 210 + rdfs:subClassOf ep-prodact:FluidSamplingAndAnalysis .
216 211
217 ep-prodact:FluidSampling-separatorGas 212 ep-prodact:FluidSampling-separatorGas
218 - rdf:type owl:Class , ep-prodact:FluidSamplingType ; 213 + rdf:type ep-prodact:FluidSamplingType , owl:Class ;
219 rdfs:label "fluid sampling - separator gas"^^xsd:string ; 214 rdfs:label "fluid sampling - separator gas"^^xsd:string ;
220 - rdfs:subClassOf ep-prodact:FluidSampling . 215 + rdfs:subClassOf ep-prodact:FluidSamplingAndAnalysis .
221 216
222 ep-prodact:FluidSampling-separatorOil 217 ep-prodact:FluidSampling-separatorOil
223 - rdf:type owl:Class , ep-prodact:FluidSamplingType ; 218 + rdf:type ep-prodact:FluidSamplingType , owl:Class ;
224 rdfs:label "fluid sampling - separator oil"^^xsd:string ; 219 rdfs:label "fluid sampling - separator oil"^^xsd:string ;
225 - rdfs:subClassOf ep-prodact:FluidSampling . 220 + rdfs:subClassOf ep-prodact:FluidSamplingAndAnalysis .
226 221
227 ep-prodact:FluidSampling-separatorWater 222 ep-prodact:FluidSampling-separatorWater
228 - rdf:type owl:Class , ep-prodact:FluidSamplingType ; 223 + rdf:type ep-prodact:FluidSamplingType , owl:Class ;
229 rdfs:label "fluid sampling - separator water"^^xsd:string ; 224 rdfs:label "fluid sampling - separator water"^^xsd:string ;
230 - rdfs:subClassOf ep-prodact:FluidSampling . 225 + rdfs:subClassOf ep-prodact:FluidSamplingAndAnalysis .
231 226
232 ep-prodact:FluidSampling-synthetic 227 ep-prodact:FluidSampling-synthetic
233 - rdf:type owl:Class , ep-prodact:FluidSamplingType ; 228 + rdf:type ep-prodact:FluidSamplingType , owl:Class ;
234 rdfs:label "fluid sampling - synthetic"^^xsd:string ; 229 rdfs:label "fluid sampling - synthetic"^^xsd:string ;
235 - rdfs:subClassOf ep-prodact:FluidSampling . 230 + rdfs:subClassOf ep-prodact:FluidSamplingAndAnalysis .
236 231
237 ep-prodact:FluidSampling-wellhead 232 ep-prodact:FluidSampling-wellhead
238 - rdf:type ep-prodact:FluidSamplingType , owl:Class ; 233 + rdf:type owl:Class , ep-prodact:FluidSamplingType ;
239 rdfs:label "fluid sampling - wellhead"^^xsd:string ; 234 rdfs:label "fluid sampling - wellhead"^^xsd:string ;
240 - rdfs:subClassOf ep-prodact:FluidSampling . 235 + rdfs:subClassOf ep-prodact:FluidSamplingAndAnalysis .
236 +
237 +ep-prodact:FluidSamplingAndAnalysis
238 + rdf:type owl:Class ;
239 + rdfs:label "fluid sampling and analysis"^^xsd:string ;
240 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
241 241
242 ep-prodact:FluidSamplingType 242 ep-prodact:FluidSamplingType
243 rdf:type rdfs:Class ; 243 rdf:type rdfs:Class ;
...@@ -261,21 +261,21 @@ ep-prodact:Incident ...@@ -261,21 +261,21 @@ ep-prodact:Incident
261 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 261 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
262 262
263 ep-prodact:InitialWellTest 263 ep-prodact:InitialWellTest
264 - rdf:type owl:Class , ep-prodact:WellTestReasonType ; 264 + rdf:type ep-prodact:WellTestReasonType , owl:Class ;
265 rdfs:label "initial"^^xsd:string ; 265 rdfs:label "initial"^^xsd:string ;
266 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> . 266 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
267 267
268 ep-prodact:InjectionWellTest 268 ep-prodact:InjectionWellTest
269 rdf:type owl:Class ; 269 rdf:type owl:Class ;
270 rdfs:label "injection well test"^^xsd:string ; 270 rdfs:label "injection well test"^^xsd:string ;
271 - rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> , <http://www.reportinghub.no/ep/schema/activity#WellTest> . 271 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> , <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
272 272
273 ep-prodact:Injury 273 ep-prodact:Injury
274 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 274 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
275 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 275 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
276 276
277 ep-prodact:IssueWorkPermit 277 ep-prodact:IssueWorkPermit
278 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 278 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
279 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 279 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
280 280
281 ep-prodact:JobObservation 281 ep-prodact:JobObservation
...@@ -295,20 +295,20 @@ ep-prodact:LostTimeIncident ...@@ -295,20 +295,20 @@ ep-prodact:LostTimeIncident
295 rdfs:subClassOf ep-prodact:Incident . 295 rdfs:subClassOf ep-prodact:Incident .
296 296
297 ep-prodact:MaintenanceActivity 297 ep-prodact:MaintenanceActivity
298 - rdf:type ep-prodact:ProductionActivityType , owl:Class ; 298 + rdf:type owl:Class , ep-prodact:ProductionActivityType ;
299 rdfs:label "maintenance activity"^^xsd:string ; 299 rdfs:label "maintenance activity"^^xsd:string ;
300 rdfs:subClassOf ep-prodact:PartOfProductionActivity . 300 rdfs:subClassOf ep-prodact:PartOfProductionActivity .
301 301
302 ep-prodact:MarineOperation 302 ep-prodact:MarineOperation
303 rdf:type owl:Class ; 303 rdf:type owl:Class ;
304 - rdfs:subClassOf ep-prodact:PartOfProductionActivity , ep-prodact:TransportationActivity . 304 + rdfs:subClassOf ep-prodact:TransportationActivity , ep-prodact:PartOfProductionActivity .
305 305
306 ep-prodact:MedicalTreatmentInjury 306 ep-prodact:MedicalTreatmentInjury
307 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 307 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
308 rdfs:subClassOf ep-prodact:Injury . 308 rdfs:subClassOf ep-prodact:Injury .
309 309
310 ep-prodact:MonthlyProductionActivityToEndOfReportingPeriod 310 ep-prodact:MonthlyProductionActivityToEndOfReportingPeriod
311 - rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 311 + rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
312 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity> . 312 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity> .
313 313
314 ep-prodact:NearMiss 314 ep-prodact:NearMiss
...@@ -320,12 +320,12 @@ ep-prodact:NotablePartOfProductionActivity ...@@ -320,12 +320,12 @@ ep-prodact:NotablePartOfProductionActivity
320 rdfs:subClassOf ep-prodact:PartOfProductionActivity . 320 rdfs:subClassOf ep-prodact:PartOfProductionActivity .
321 321
322 ep-prodact:OtherProductionActivity 322 ep-prodact:OtherProductionActivity
323 - rdf:type ep-prodact:ProductionActivityType , owl:Class ; 323 + rdf:type owl:Class , ep-prodact:ProductionActivityType ;
324 rdfs:label "other production activity"^^xsd:string ; 324 rdfs:label "other production activity"^^xsd:string ;
325 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> . 325 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
326 326
327 ep-prodact:OtherReasonWellTest 327 ep-prodact:OtherReasonWellTest
328 - rdf:type owl:Class , ep-prodact:WellTestReasonType ; 328 + rdf:type ep-prodact:WellTestReasonType , owl:Class ;
329 rdfs:label "other"^^xsd:string ; 329 rdfs:label "other"^^xsd:string ;
330 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> . 330 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
331 331
...@@ -340,17 +340,17 @@ ep-prodact:Participation ...@@ -340,17 +340,17 @@ ep-prodact:Participation
340 rdfs:subPropertyOf ep-prodact:involvement . 340 rdfs:subPropertyOf ep-prodact:involvement .
341 341
342 ep-prodact:PeriodicWellTest 342 ep-prodact:PeriodicWellTest
343 - rdf:type owl:Class , ep-prodact:WellTestReasonType ; 343 + rdf:type ep-prodact:WellTestReasonType , owl:Class ;
344 rdfs:label "periodic"^^xsd:string ; 344 rdfs:label "periodic"^^xsd:string ;
345 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> . 345 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
346 346
347 ep-prodact:PowerStationFailure 347 ep-prodact:PowerStationFailure
348 - rdf:type ep-prodact:ProductionActivityType , owl:Class ; 348 + rdf:type owl:Class , ep-prodact:ProductionActivityType ;
349 rdfs:label "power station failure"^^xsd:string ; 349 rdfs:label "power station failure"^^xsd:string ;
350 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> . 350 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
351 351
352 ep-prodact:ProductionActivityLastingLessThanAYear 352 ep-prodact:ProductionActivityLastingLessThanAYear
353 - rdf:type owl:Class , ep-prodact:ProductionOperationClassByDuration ; 353 + rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
354 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> . 354 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
355 355
356 ep-prodact:ProductionActivityType 356 ep-prodact:ProductionActivityType
...@@ -363,7 +363,7 @@ ep-prodact:ProductionOperationClassByDuration ...@@ -363,7 +363,7 @@ ep-prodact:ProductionOperationClassByDuration
363 rdfs:subClassOf owl:Class . 363 rdfs:subClassOf owl:Class .
364 364
365 ep-prodact:ProductionOperationsActivity 365 ep-prodact:ProductionOperationsActivity
366 - rdf:type ep-prodact:ProductionActivityType , owl:Class ; 366 + rdf:type owl:Class , ep-prodact:ProductionActivityType ;
367 rdfs:label "production operations activity"^^xsd:string ; 367 rdfs:label "production operations activity"^^xsd:string ;
368 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> . 368 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
369 369
...@@ -376,7 +376,7 @@ ep-prodact:ReleasedToWater ...@@ -376,7 +376,7 @@ ep-prodact:ReleasedToWater
376 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 376 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
377 377
378 ep-prodact:ReportHazard 378 ep-prodact:ReportHazard
379 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 379 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
380 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 380 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
381 381
382 ep-prodact:RestrictedWork 382 ep-prodact:RestrictedWork
...@@ -384,11 +384,11 @@ ep-prodact:RestrictedWork ...@@ -384,11 +384,11 @@ ep-prodact:RestrictedWork
384 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 384 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
385 385
386 ep-prodact:RestrictedWorkInjury 386 ep-prodact:RestrictedWorkInjury
387 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 387 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
388 rdfs:subClassOf ep-prodact:Injury . 388 rdfs:subClassOf ep-prodact:Injury .
389 389
390 ep-prodact:RevisionWellTest 390 ep-prodact:RevisionWellTest
391 - rdf:type owl:Class , ep-prodact:WellTestReasonType ; 391 + rdf:type ep-prodact:WellTestReasonType , owl:Class ;
392 rdfs:label "revision"^^xsd:string ; 392 rdfs:label "revision"^^xsd:string ;
393 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> . 393 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
394 394
...@@ -397,7 +397,7 @@ ep-prodact:SafetyActivityType ...@@ -397,7 +397,7 @@ ep-prodact:SafetyActivityType
397 rdfs:subClassOf owl:Class . 397 rdfs:subClassOf owl:Class .
398 398
399 ep-prodact:SafetyMeeting 399 ep-prodact:SafetyMeeting
400 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 400 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
401 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 401 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
402 402
403 ep-prodact:SampleAmountOfSubstance 403 ep-prodact:SampleAmountOfSubstance
...@@ -417,7 +417,7 @@ ep-prodact:SickOnBoard ...@@ -417,7 +417,7 @@ ep-prodact:SickOnBoard
417 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 417 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
418 418
419 ep-prodact:SpillOrLeak 419 ep-prodact:SpillOrLeak
420 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 420 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
421 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 421 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
422 422
423 ep-prodact:TransportationActivity 423 ep-prodact:TransportationActivity
...@@ -425,7 +425,7 @@ ep-prodact:TransportationActivity ...@@ -425,7 +425,7 @@ ep-prodact:TransportationActivity
425 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> . 425 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
426 426
427 ep-prodact:UnknownReasonWellTest 427 ep-prodact:UnknownReasonWellTest
428 - rdf:type owl:Class , ep-prodact:WellTestReasonType ; 428 + rdf:type ep-prodact:WellTestReasonType , owl:Class ;
429 rdfs:label "unknown"^^xsd:string ; 429 rdfs:label "unknown"^^xsd:string ;
430 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> . 430 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#WellTest> .
431 431
...@@ -440,7 +440,7 @@ ep-prodact:WaterDischarge ...@@ -440,7 +440,7 @@ ep-prodact:WaterDischarge
440 440
441 ep-prodact:WaterSample 441 ep-prodact:WaterSample
442 rdf:type owl:Class ; 442 rdf:type owl:Class ;
443 - rdfs:subClassOf <http://www.reportinghub.no/ep/schema/well#Water> , ep-prodact:SampleAmountOfSubstance . 443 + rdfs:subClassOf ep-prodact:SampleAmountOfSubstance , <http://www.reportinghub.no/ep/schema/well#Water> .
444 444
445 ep-prodact:WellTestReasonType 445 ep-prodact:WellTestReasonType
446 rdf:type rdfs:Class ; 446 rdf:type rdfs:Class ;
...@@ -448,11 +448,11 @@ ep-prodact:WellTestReasonType ...@@ -448,11 +448,11 @@ ep-prodact:WellTestReasonType
448 rdfs:subClassOf owl:Class . 448 rdfs:subClassOf owl:Class .
449 449
450 ep-prodact:WorkingUnderPermit 450 ep-prodact:WorkingUnderPermit
451 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 451 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
452 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity . 452 rdfs:subClassOf ep-prodact:HealthSafetyAndEnvironmentActivity .
453 453
454 ep-prodact:WorkingUnderPermitWithSJA 454 ep-prodact:WorkingUnderPermitWithSJA
455 - rdf:type ep-prodact:SafetyActivityType , owl:Class ; 455 + rdf:type owl:Class , ep-prodact:SafetyActivityType ;
456 rdfs:subClassOf ep-prodact:WorkingUnderPermit . 456 rdfs:subClassOf ep-prodact:WorkingUnderPermit .
457 457
458 ep-prodact:ammoniumDensity 458 ep-prodact:ammoniumDensity
...@@ -510,7 +510,7 @@ ep-prodact:hasPredecessor ...@@ -510,7 +510,7 @@ ep-prodact:hasPredecessor
510 rdfs:range <http://www.reportinghub.no/ep/schema/activity#Activity> . 510 rdfs:range <http://www.reportinghub.no/ep/schema/activity#Activity> .
511 511
512 ep-prodact:hasShutInPressure 512 ep-prodact:hasShutInPressure
513 - rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; 513 + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
514 rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionWellTest> ; 514 rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionWellTest> ;
515 rdfs:label "has shut-in pressure"^^xsd:string ; 515 rdfs:label "has shut-in pressure"^^xsd:string ;
516 rdfs:range ep-core:Pressure . 516 rdfs:range ep-core:Pressure .
...@@ -522,25 +522,25 @@ ep-prodact:hasValidPredecessor ...@@ -522,25 +522,25 @@ ep-prodact:hasValidPredecessor
522 rdfs:range <http://www.reportinghub.no/ep/schema/activity#Activity> . 522 rdfs:range <http://www.reportinghub.no/ep/schema/activity#Activity> .
523 523
524 ep-prodact:injectionWellTestMaximumAnnularPressure 524 ep-prodact:injectionWellTestMaximumAnnularPressure
525 - rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; 525 + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
526 rdfs:domain ep-prodact:InjectionWellTest ; 526 rdfs:domain ep-prodact:InjectionWellTest ;
527 rdfs:label "injection well test maximum annular pressure"^^xsd:string ; 527 rdfs:label "injection well test maximum annular pressure"^^xsd:string ;
528 rdfs:range ep-core:Pressure . 528 rdfs:range ep-core:Pressure .
529 529
530 ep-prodact:injectionWellTestMinimumAnnularPressure 530 ep-prodact:injectionWellTestMinimumAnnularPressure
531 - rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; 531 + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
532 rdfs:domain ep-prodact:InjectionWellTest ; 532 rdfs:domain ep-prodact:InjectionWellTest ;
533 rdfs:label "injection well test minimum annular pressure"^^xsd:string ; 533 rdfs:label "injection well test minimum annular pressure"^^xsd:string ;
534 rdfs:range ep-core:Pressure . 534 rdfs:range ep-core:Pressure .
535 535
536 ep-prodact:injectionWellTestWellheadFlowingPressure 536 ep-prodact:injectionWellTestWellheadFlowingPressure
537 - rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; 537 + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
538 rdfs:domain ep-prodact:InjectionWellTest ; 538 rdfs:domain ep-prodact:InjectionWellTest ;
539 rdfs:label "injection well test wellhead flowing pressure"^^xsd:string ; 539 rdfs:label "injection well test wellhead flowing pressure"^^xsd:string ;
540 rdfs:range ep-core:Pressure . 540 rdfs:range ep-core:Pressure .
541 541
542 ep-prodact:injectionWellTestWellheadMaximumPressure 542 ep-prodact:injectionWellTestWellheadMaximumPressure
543 - rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; 543 + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
544 rdfs:domain ep-prodact:InjectionWellTest ; 544 rdfs:domain ep-prodact:InjectionWellTest ;
545 rdfs:label "injection well test wellhead maximum pressure"^^xsd:string ; 545 rdfs:label "injection well test wellhead maximum pressure"^^xsd:string ;
546 rdfs:range ep-core:Pressure . 546 rdfs:range ep-core:Pressure .
...@@ -606,7 +606,7 @@ ep-prodact:oilInWater ...@@ -606,7 +606,7 @@ ep-prodact:oilInWater
606 rdfs:range ep-core:MassPerUnitMassConcentration . 606 rdfs:range ep-core:MassPerUnitMassConcentration .
607 607
608 ep-prodact:onProductionFacility 608 ep-prodact:onProductionFacility
609 - rdf:type owl:ObjectProperty , owl:FunctionalProperty ; 609 + rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
610 rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ; 610 rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
611 rdfs:label "on facility"^^xsd:string ; 611 rdfs:label "on facility"^^xsd:string ;
612 rdfs:range <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> . 612 rdfs:range <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> .
...@@ -627,7 +627,7 @@ ep-prodact:productionActivityPeriodClassification ...@@ -627,7 +627,7 @@ ep-prodact:productionActivityPeriodClassification
627 rdfs:range ep-prodact:ProductionOperationClassByDuration . 627 rdfs:range ep-prodact:ProductionOperationClassByDuration .
628 628
629 ep-prodact:productionOperator 629 ep-prodact:productionOperator
630 - rdf:type owl:FunctionalProperty , owl:ObjectProperty ; 630 + rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
631 rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ; 631 rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
632 rdfs:label "production operator"^^xsd:string ; 632 rdfs:label "production operator"^^xsd:string ;
633 rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> . 633 rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> .
...@@ -643,7 +643,7 @@ ep-prodact:samplePhValue ...@@ -643,7 +643,7 @@ ep-prodact:samplePhValue
643 rdfs:range xsd:double . 643 rdfs:range xsd:double .
644 644
645 ep-prodact:samplePoint 645 ep-prodact:samplePoint
646 - rdf:type owl:FunctionalProperty , owl:ObjectProperty ; 646 + rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
647 rdfs:domain ep-prodact:WaterSample ; 647 rdfs:domain ep-prodact:WaterSample ;
648 rdfs:range <http://www.reportinghub.no/ep/schema/production-core#TemporalPartOfAPointInSpace> . 648 rdfs:range <http://www.reportinghub.no/ep/schema/production-core#TemporalPartOfAPointInSpace> .
649 649
...@@ -657,8 +657,13 @@ ep-prodact:sampleTurbidity ...@@ -657,8 +657,13 @@ ep-prodact:sampleTurbidity
657 rdfs:domain ep-prodact:WaterSample ; 657 rdfs:domain ep-prodact:WaterSample ;
658 rdfs:range xsd:double . 658 rdfs:range xsd:double .
659 659
660 +ep-prodact:samplingPerformedAt
661 + rdf:type owl:ObjectProperty ;
662 + rdfs:domain ep-prodact:FluidSamplingAndAnalysis ;
663 + rdfs:range <http://www.reportinghub.no/ep/schema/facility#Facility> .
664 +
660 ep-prodact:testedWellBoreInterval 665 ep-prodact:testedWellBoreInterval
661 - rdf:type owl:ObjectProperty , owl:FunctionalProperty ; 666 + rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
662 rdfs:domain <http://www.reportinghub.no/ep/schema/activity#WellTest> ; 667 rdfs:domain <http://www.reportinghub.no/ep/schema/activity#WellTest> ;
663 rdfs:label "tested wellbore interval"^^xsd:string ; 668 rdfs:label "tested wellbore interval"^^xsd:string ;
664 rdfs:range ep-core:PhysicalObject . 669 rdfs:range ep-core:PhysicalObject .
......
1 -# Saved by TopBraid on Mon Dec 19 16:52:20 GMT 2011 1 +# Saved by TopBraid on Tue Dec 20 18:26:50 GMT 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/spin/1.1/lib 3 # imports: http://www.reportinghub.no/ep/spin/1.1/lib
4 # imports: http://www.reportinghub.no/ep/schema/1.0/production 4 # imports: http://www.reportinghub.no/ep/schema/1.0/production
...@@ -49,33 +49,9 @@ sp:if ...@@ -49,33 +49,9 @@ sp:if
49 49
50 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> 50 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
51 rdf:type owl:Ontology ; 51 rdf:type owl:Ontology ;
52 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; 52 + owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ;
53 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 53 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
54 54
55 -ep-dpr-spin-lib:BuildDailyProductionReportURI
56 - rdf:type spin:Function ;
57 - rdfs:subClassOf ep-dpr-spin-lib:Function ;
58 - spin:body
59 - [ rdf:type sp:Select ;
60 - rdfs:comment """arg1 is name of the document (this may to change when we sort out the identity lookup)
61 -arg2 is report date"""^^xsd:string ;
62 - sp:resultVariables (_:b1) ;
63 - sp:where ([ rdf:type sp:Bind ;
64 - sp:expression
65 - [ rdf:type ep-spin-lib:buildURI ;
66 - sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionReport/" ;
67 - sp:arg2 [ rdf:type fn:concat ;
68 - sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
69 - sp:arg1 spin:_arg1
70 - ] ;
71 - sp:arg2 "$" ;
72 - sp:arg3 spin:_arg2
73 - ]
74 - ] ;
75 - sp:variable _:b1
76 - ])
77 - ] .
78 -
79 ep-dpr-spin-lib:Function 55 ep-dpr-spin-lib:Function
80 rdf:type spin:Function ; 56 rdf:type spin:Function ;
81 rdfs:label "function"^^xsd:string ; 57 rdfs:label "function"^^xsd:string ;
...@@ -87,21 +63,21 @@ ep-dpr-spin-lib:buildAmountOfOilURI ...@@ -87,21 +63,21 @@ ep-dpr-spin-lib:buildAmountOfOilURI
87 spin:body 63 spin:body
88 [ rdf:type sp:Select ; 64 [ rdf:type sp:Select ;
89 rdfs:comment "arg1 is any additional information that may be added to the identifier. The UUID takes care of uniqueness."^^xsd:string ; 65 rdfs:comment "arg1 is any additional information that may be added to the identifier. The UUID takes care of uniqueness."^^xsd:string ;
90 - sp:resultVariables (_:b2) ; 66 + sp:resultVariables (_:b1) ;
91 sp:where ([ rdf:type sp:Bind ; 67 sp:where ([ rdf:type sp:Bind ;
92 sp:expression 68 sp:expression
93 [ rdf:type spif:generateUUID 69 [ rdf:type spif:generateUUID
94 ] ; 70 ] ;
95 - sp:variable _:b3 71 + sp:variable _:b2
96 ] [ rdf:type sp:Bind ; 72 ] [ rdf:type sp:Bind ;
97 sp:expression 73 sp:expression
98 [ rdf:type spif:buildURI ; 74 [ rdf:type spif:buildURI ;
99 sp:arg1 "https://www.reportinghub.no/ep/data/amountOfOil/" ; 75 sp:arg1 "https://www.reportinghub.no/ep/data/amountOfOil/" ;
100 - sp:arg2 _:b3 ; 76 + sp:arg2 _:b2 ;
101 sp:arg3 "-" ; 77 sp:arg3 "-" ;
102 sp:arg4 spin:_arg1 78 sp:arg4 spin:_arg1
103 ] ; 79 ] ;
104 - sp:variable _:b2 80 + sp:variable _:b1
105 ]) 81 ])
106 ] . 82 ] .
107 83
...@@ -112,7 +88,7 @@ ep-dpr-spin-lib:buildAnnualProductionActivityToEndOfPeriodURI ...@@ -112,7 +88,7 @@ ep-dpr-spin-lib:buildAnnualProductionActivityToEndOfPeriodURI
112 [ rdf:type sp:Select ; 88 [ rdf:type sp:Select ;
113 rdfs:comment """arg1 is name of the facility (this may to change when we sort out the identity lookup) 89 rdfs:comment """arg1 is name of the facility (this may to change when we sort out the identity lookup)
114 arg2 is report end date"""^^xsd:string ; 90 arg2 is report end date"""^^xsd:string ;
115 - sp:resultVariables (_:b4) ; 91 + sp:resultVariables (_:b3) ;
116 sp:where ([ rdf:type sp:Bind ; 92 sp:where ([ rdf:type sp:Bind ;
117 sp:expression 93 sp:expression
118 [ rdf:type ep-spin-lib:buildURI ; 94 [ rdf:type ep-spin-lib:buildURI ;
...@@ -125,7 +101,7 @@ arg2 is report end date"""^^xsd:string ; ...@@ -125,7 +101,7 @@ arg2 is report end date"""^^xsd:string ;
125 sp:arg3 spin:_arg2 101 sp:arg3 spin:_arg2
126 ] 102 ]
127 ] ; 103 ] ;
128 - sp:variable _:b4 104 + sp:variable _:b3
129 ]) 105 ])
130 ] . 106 ] .
131 107
...@@ -136,7 +112,7 @@ ep-dpr-spin-lib:buildAnnualProductionOperationsActivityToEndOfPeriodURI ...@@ -136,7 +112,7 @@ ep-dpr-spin-lib:buildAnnualProductionOperationsActivityToEndOfPeriodURI
136 [ rdf:type sp:Select ; 112 [ rdf:type sp:Select ;
137 rdfs:comment """arg1 is name of the facility (this may to change when we sort out the identity lookup) 113 rdfs:comment """arg1 is name of the facility (this may to change when we sort out the identity lookup)
138 arg2 is report end date"""^^xsd:string ; 114 arg2 is report end date"""^^xsd:string ;
139 - sp:resultVariables (_:b5) ; 115 + sp:resultVariables (_:b4) ;
140 sp:where ([ rdf:type sp:Bind ; 116 sp:where ([ rdf:type sp:Bind ;
141 sp:expression 117 sp:expression
142 [ rdf:type ep-spin-lib:buildURI ; 118 [ rdf:type ep-spin-lib:buildURI ;
...@@ -149,7 +125,7 @@ arg2 is report end date"""^^xsd:string ; ...@@ -149,7 +125,7 @@ arg2 is report end date"""^^xsd:string ;
149 sp:arg3 spin:_arg2 125 sp:arg3 spin:_arg2
150 ] 126 ]
151 ] ; 127 ] ;
152 - sp:variable _:b5 128 + sp:variable _:b4
153 ]) 129 ])
154 ] . 130 ] .
155 131
...@@ -179,7 +155,7 @@ ep-dpr-spin-lib:buildCountryURI ...@@ -179,7 +155,7 @@ ep-dpr-spin-lib:buildCountryURI
179 rdfs:subClassOf ep-dpr-spin-lib:Function ; 155 rdfs:subClassOf ep-dpr-spin-lib:Function ;
180 spin:body 156 spin:body
181 [ rdf:type sp:Select ; 157 [ rdf:type sp:Select ;
182 - sp:resultVariables (_:b6) ; 158 + sp:resultVariables (_:b5) ;
183 sp:where ([ rdf:type sp:Bind ; 159 sp:where ([ rdf:type sp:Bind ;
184 sp:expression 160 sp:expression
185 [ rdf:type ep-spin-lib:buildURI ; 161 [ rdf:type ep-spin-lib:buildURI ;
...@@ -188,7 +164,7 @@ ep-dpr-spin-lib:buildCountryURI ...@@ -188,7 +164,7 @@ ep-dpr-spin-lib:buildCountryURI
188 sp:arg1 spin:_arg1 164 sp:arg1 spin:_arg1
189 ] 165 ]
190 ] ; 166 ] ;
191 - sp:variable _:b6 167 + sp:variable _:b5
192 ]) 168 ])
193 ] . 169 ] .
194 170
...@@ -200,7 +176,7 @@ ep-dpr-spin-lib:buildDailyProductionActivityURI ...@@ -200,7 +176,7 @@ ep-dpr-spin-lib:buildDailyProductionActivityURI
200 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup) 176 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
201 arg2 is start date 177 arg2 is start date
202 arg3 is end date"""^^xsd:string ; 178 arg3 is end date"""^^xsd:string ;
203 - sp:resultVariables (_:b7) ; 179 + sp:resultVariables (_:b6) ;
204 sp:where ([ rdf:type sp:Bind ; 180 sp:where ([ rdf:type sp:Bind ;
205 sp:expression 181 sp:expression
206 [ rdf:type ep-spin-lib:buildURI ; 182 [ rdf:type ep-spin-lib:buildURI ;
...@@ -215,7 +191,7 @@ arg3 is end date"""^^xsd:string ; ...@@ -215,7 +191,7 @@ arg3 is end date"""^^xsd:string ;
215 sp:arg5 spin:_arg3 191 sp:arg5 spin:_arg3
216 ] 192 ]
217 ] ; 193 ] ;
218 - sp:variable _:b7 194 + sp:variable _:b6
219 ]) 195 ])
220 ] . 196 ] .
221 197
...@@ -227,7 +203,7 @@ ep-dpr-spin-lib:buildDailyProductionOperationsActivityURI ...@@ -227,7 +203,7 @@ ep-dpr-spin-lib:buildDailyProductionOperationsActivityURI
227 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup) 203 rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
228 arg2 is start date 204 arg2 is start date
229 arg3 is end date"""^^xsd:string ; 205 arg3 is end date"""^^xsd:string ;
230 - sp:resultVariables (_:b8) ; 206 + sp:resultVariables (_:b7) ;
231 sp:where ([ rdf:type sp:Bind ; 207 sp:where ([ rdf:type sp:Bind ;
232 sp:expression 208 sp:expression
233 [ rdf:type ep-spin-lib:buildURI ; 209 [ rdf:type ep-spin-lib:buildURI ;
...@@ -242,7 +218,7 @@ arg3 is end date"""^^xsd:string ; ...@@ -242,7 +218,7 @@ arg3 is end date"""^^xsd:string ;
242 sp:arg5 spin:_arg3 218 sp:arg5 spin:_arg3
243 ] 219 ]
244 ] ; 220 ] ;
245 - sp:variable _:b8 221 + sp:variable _:b7
246 ]) 222 ])
247 ] . 223 ] .
248 224
...@@ -253,19 +229,18 @@ ep-dpr-spin-lib:buildDailyProductionReportURI ...@@ -253,19 +229,18 @@ ep-dpr-spin-lib:buildDailyProductionReportURI
253 [ rdf:type sp:Select ; 229 [ rdf:type sp:Select ;
254 rdfs:comment """arg1 is the name of the report 230 rdfs:comment """arg1 is the name of the report
255 arg2 is the report date"""^^xsd:string ; 231 arg2 is the report date"""^^xsd:string ;
256 - sp:resultVariables ([ sp:varName "uri"^^xsd:string 232 + sp:resultVariables (_:b8) ;
257 - ]) ;
258 sp:where ([ rdf:type sp:Bind ; 233 sp:where ([ rdf:type sp:Bind ;
259 sp:expression 234 sp:expression
260 [ rdf:type ep-spin-lib:buildURI ; 235 [ rdf:type ep-spin-lib:buildURI ;
261 sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionReport/" ; 236 sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionReport/" ;
262 - sp:arg2 spin:_arg1 ; 237 + sp:arg2 [ rdf:type fn:concat ;
263 - sp:arg3 "$" ; 238 + sp:arg1 spin:_arg1 ;
264 - sp:arg4 spin:_arg2 239 + sp:arg2 "$" ;
240 + sp:arg3 spin:_arg2
241 + ]
265 ] ; 242 ] ;
266 - sp:variable 243 + sp:variable _:b8
267 - [ sp:varName "uri"^^xsd:string
268 - ]
269 ]) 244 ])
270 ] . 245 ] .
271 246
...@@ -5513,22 +5488,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5513,22 +5488,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5513 rdfs:subClassOf ep-dpr-spin-lib:Function ; 5488 rdfs:subClassOf ep-dpr-spin-lib:Function ;
5514 spin:body 5489 spin:body
5515 [ rdf:type sp:Select ; 5490 [ rdf:type sp:Select ;
5516 - sp:resultVariables (_:b29) ;
5517 - sp:where ([ rdf:type sp:Bind ;
5518 - sp:expression
5519 - [ rdf:type sp:if ;
5520 - sp:arg1 [ rdf:type sp:eq ;
5521 - sp:arg1 spin:_arg1 ;
5522 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5523 - ] ;
5524 - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5525 - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5526 - ] ;
5527 - sp:variable _:b29
5528 - ])
5529 - ] ;
5530 - spin:body
5531 - [ rdf:type sp:Select ;
5532 sp:resultVariables ([ sp:varName "myVar"^^xsd:string 5491 sp:resultVariables ([ sp:varName "myVar"^^xsd:string
5533 ]) ; 5492 ]) ;
5534 sp:where ([ rdf:type sp:Bind ; 5493 sp:where ([ rdf:type sp:Bind ;
...@@ -5608,6 +5567,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5608,6 +5567,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5608 [ sp:varName "myVar"^^xsd:string 5567 [ sp:varName "myVar"^^xsd:string
5609 ] 5568 ]
5610 ]) 5569 ])
5570 + ] ;
5571 + spin:body
5572 + [ rdf:type sp:Select ;
5573 + sp:resultVariables (_:b29) ;
5574 + sp:where ([ rdf:type sp:Bind ;
5575 + sp:expression
5576 + [ rdf:type sp:if ;
5577 + sp:arg1 [ rdf:type sp:eq ;
5578 + sp:arg1 spin:_arg1 ;
5579 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5580 + ] ;
5581 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5582 + sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5583 + ] ;
5584 + sp:variable _:b29
5585 + ])
5611 ] . 5586 ] .
5612 5587
5613 ep-dpr-spin-lib:selectTemperatureScale 5588 ep-dpr-spin-lib:selectTemperatureScale
...@@ -7169,6 +7144,9 @@ _:b23 ...@@ -7169,6 +7144,9 @@ _:b23
7169 _:b22 7144 _:b22
7170 sp:varName "productionFacilityType"^^xsd:string . 7145 sp:varName "productionFacilityType"^^xsd:string .
7171 7146
7147 +_:b21
7148 + sp:varName "productVolumeReportPeriodType"^^xsd:string .
7149 +
7172 _:b20 7150 _:b20
7173 sp:varName "densityScale"^^xsd:string . 7151 sp:varName "densityScale"^^xsd:string .
7174 7152
...@@ -7204,8 +7182,6 @@ _:b10 ...@@ -7204,8 +7182,6 @@ _:b10
7204 7182
7205 _:b9 sp:varName "uri"^^xsd:string . 7183 _:b9 sp:varName "uri"^^xsd:string .
7206 7184
7207 -_:b8 sp:varName "uri"^^xsd:string .
7208 -
7209 _:b7 sp:varName "uri"^^xsd:string . 7185 _:b7 sp:varName "uri"^^xsd:string .
7210 7186
7211 _:b6 sp:varName "uri"^^xsd:string . 7187 _:b6 sp:varName "uri"^^xsd:string .
...@@ -7214,11 +7190,10 @@ _:b5 sp:varName "uri"^^xsd:string . ...@@ -7214,11 +7190,10 @@ _:b5 sp:varName "uri"^^xsd:string .
7214 7190
7215 _:b4 sp:varName "uri"^^xsd:string . 7191 _:b4 sp:varName "uri"^^xsd:string .
7216 7192
7217 -_:b3 sp:varName "UUID"^^xsd:string . 7193 +_:b3 sp:varName "uri"^^xsd:string .
7218 7194
7219 -_:b2 sp:varName "uri"^^xsd:string . 7195 +_:b2 sp:varName "UUID"^^xsd:string .
7220 7196
7221 _:b1 sp:varName "uri"^^xsd:string . 7197 _:b1 sp:varName "uri"^^xsd:string .
7222 7198
7223 -_:b21 7199 +_:b8 sp:varName "uri"^^xsd:string .
7224 - sp:varName "productVolumeReportPeriodType"^^xsd:string .
......
1 -# Saved by TopBraid on Mon Dec 19 16:52:20 GMT 2011 1 +# Saved by TopBraid on Tue Dec 20 18:26:51 GMT 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 Mon Dec 19 18:38:19 GMT 2011 1 +# Saved by TopBraid on Tue Dec 20 18:27:09 GMT 2011
2 # baseURI: http://www.reportinghub.no/ep/mpr/spin/1.1/lib 2 # baseURI: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
3 # imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment 3 # imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment
4 # imports: http://www.reportinghub.no/ep/spin/1.1/lib 4 # imports: http://www.reportinghub.no/ep/spin/1.1/lib
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
10 # imports: http://www.reportinghub.no/ep/schema/1.0/production-report 10 # imports: http://www.reportinghub.no/ep/schema/1.0/production-report
11 11
12 @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . 12 @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
13 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
14 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
13 @prefix owl: <http://www.w3.org/2002/07/owl#> . 15 @prefix owl: <http://www.w3.org/2002/07/owl#> .
14 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 16 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
15 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 17 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
...@@ -54,6 +56,31 @@ ep-mpr-spin-lib:Function ...@@ -54,6 +56,31 @@ ep-mpr-spin-lib:Function
54 rdf:type spin:Function ; 56 rdf:type spin:Function ;
55 rdfs:subClassOf spin:Functions . 57 rdfs:subClassOf spin:Functions .
56 58
59 +ep-mpr-spin-lib:buildProductionReportURI
60 + rdf:type spin:Function ;
61 + rdfs:subClassOf ep-mpr-spin-lib:Function ;
62 + spin:body
63 + [ rdf:type sp:Select ;
64 + rdfs:comment """arg1 is the name of the report
65 +arg2 is the report start date
66 +arg3 is the report end date"""^^xsd:string ;
67 + sp:resultVariables (_:b1) ;
68 + sp:where ([ rdf:type sp:Bind ;
69 + sp:expression
70 + [ rdf:type ep-spin-lib:buildURI ;
71 + sp:arg1 "https://www.reportinghub.no/ep/data/productionReport/" ;
72 + sp:arg2 [ rdf:type fn:concat ;
73 + sp:arg1 spin:_arg1 ;
74 + sp:arg2 "$" ;
75 + sp:arg3 spin:_arg2 ;
76 + sp:arg4 "$" ;
77 + sp:arg5 spin:_arg3
78 + ]
79 + ] ;
80 + sp:variable _:b1
81 + ])
82 + ] .
83 +
57 ep-mpr-spin-lib:selectCompressibilityScale 84 ep-mpr-spin-lib:selectCompressibilityScale
58 rdf:type spin:Function ; 85 rdf:type spin:Function ;
59 rdfs:subClassOf ep-mpr-spin-lib:Function ; 86 rdfs:subClassOf ep-mpr-spin-lib:Function ;
...@@ -807,7 +834,7 @@ ep-mpr-spin-lib:selectFluidSamplingType ...@@ -807,7 +834,7 @@ ep-mpr-spin-lib:selectFluidSamplingType
807 rdfs:subClassOf ep-mpr-spin-lib:Function ; 834 rdfs:subClassOf ep-mpr-spin-lib:Function ;
808 spin:body 835 spin:body
809 [ rdf:type sp:Select ; 836 [ rdf:type sp:Select ;
810 - sp:resultVariables (_:b1) ; 837 + sp:resultVariables (_:b2) ;
811 sp:where ([ rdf:type sp:Bind ; 838 sp:where ([ rdf:type sp:Bind ;
812 sp:expression 839 sp:expression
813 [ rdf:type sp:if ; 840 [ rdf:type sp:if ;
...@@ -888,7 +915,7 @@ ep-mpr-spin-lib:selectFluidSamplingType ...@@ -888,7 +915,7 @@ ep-mpr-spin-lib:selectFluidSamplingType
888 ] 915 ]
889 ] 916 ]
890 ] ; 917 ] ;
891 - sp:variable _:b1 918 + sp:variable _:b2
892 ]) 919 ])
893 ] . 920 ] .
894 921
...@@ -2938,7 +2965,7 @@ ep-mpr-spin-lib:selectProductVolumeReportPeriodType ...@@ -2938,7 +2965,7 @@ ep-mpr-spin-lib:selectProductVolumeReportPeriodType
2938 rdfs:subClassOf ep-mpr-spin-lib:Function ; 2965 rdfs:subClassOf ep-mpr-spin-lib:Function ;
2939 spin:body 2966 spin:body
2940 [ rdf:type sp:Select ; 2967 [ rdf:type sp:Select ;
2941 - sp:resultVariables (_:b2) ; 2968 + sp:resultVariables (_:b3) ;
2942 sp:where ([ rdf:type sp:Bind ; 2969 sp:where ([ rdf:type sp:Bind ;
2943 sp:expression 2970 sp:expression
2944 [ rdf:type sp:if ; 2971 [ rdf:type sp:if ;
...@@ -3082,7 +3109,7 @@ ep-mpr-spin-lib:selectProductVolumeReportPeriodType ...@@ -3082,7 +3109,7 @@ ep-mpr-spin-lib:selectProductVolumeReportPeriodType
3082 ] 3109 ]
3083 ] 3110 ]
3084 ] ; 3111 ] ;
3085 - sp:variable _:b2 3112 + sp:variable _:b3
3086 ]) 3113 ])
3087 ] . 3114 ] .
3088 3115
...@@ -5466,6 +5493,8 @@ ep-mpr-spin-lib:selectWorkScale ...@@ -5466,6 +5493,8 @@ ep-mpr-spin-lib:selectWorkScale
5466 ]) 5493 ])
5467 ] . 5494 ] .
5468 5495
5469 -_:b2 sp:varName "productVolumeReportPeriodType"^^xsd:string . 5496 +_:b3 sp:varName "productVolumeReportPeriodType"^^xsd:string .
5497 +
5498 +_:b2 sp:varName "fluidSamplingType"^^xsd:string .
5470 5499
5471 -_:b1 sp:varName "fluidSamplingType"^^xsd:string . 5500 +_:b1 sp:varName "uri"^^xsd:string .
......
1 -# Saved by TopBraid on Mon Dec 19 18:38:19 GMT 2011 1 +# Saved by TopBraid on Tue Dec 20 18:27:09 GMT 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 Tue Dec 20 16:01:28 GMT 2011
1 # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector 2 # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
2 -# imports: http://spinrdf.org/spin 3 +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0
3 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0 4 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
4 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0 5 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0
5 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0 6 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0
7 +# imports: http://spinrdf.org/spin
6 8
7 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . 9 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
8 @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . 10 @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> .
11 +@prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> .
9 @prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> . 12 @prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> .
10 @prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> . 13 @prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> .
11 @prefix TRANSFORM_mpr-productionReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> . 14 @prefix TRANSFORM_mpr-productionReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> .
...@@ -19,5 +22,5 @@ ...@@ -19,5 +22,5 @@
19 22
20 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> 23 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector>
21 rdf:type owl:Ontology ; 24 rdf:type owl:Ontology ;
22 - owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> ; 25 + owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> ;
23 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 +# Saved by TopBraid on Tue Dec 20 16:01:28 GMT 2011
1 # baseURI: null 2 # baseURI: null
2 3
3 @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 Mon Dec 19 20:37:48 GMT 2011 1 +# Saved by TopBraid on Tue Dec 20 19:13:18 GMT 2011
2 # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0 2 # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0
3 # imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib 3 # imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
4 # imports: http://www.epim.no/schemas/mprml/1 4 # imports: http://www.epim.no/schemas/mprml/1
5 +# imports: http://www.reportinghub.no/ep/schema/1.0/production-activity
5 # imports: http://spinrdf.org/spin 6 # imports: http://spinrdf.org/spin
6 # imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib 7 # imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
7 8
...@@ -23,245 +24,256 @@ ...@@ -23,245 +24,256 @@
23 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 24 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
24 spin:rule 25 spin:rule
25 [ rdf:type sp:Construct ; 26 [ rdf:type sp:Construct ;
26 - rdfs:comment """STEP 40003 Create the Sample of fluid. 27 + rdfs:comment "STEP 40005 Specify the fluid component."^^xsd:string ;
27 -The sample is anonymous. It is matched to its results via the sample name, which is assumed to be unique within the file."""^^xsd:string ; 28 + sp:templates ([ sp:object _:b1 ;
28 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ; 29 + sp:predicate _:b2 ;
30 + sp:subject _:b3
31 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ;
29 sp:predicate rdf:type ; 32 sp:predicate rdf:type ;
30 sp:subject _:b1 33 sp:subject _:b1
31 - ] [ sp:object _:b2 ; 34 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-well#FluidWholeComponentPair> ;
32 - sp:predicate rdfs:label ; 35 + sp:predicate rdf:type ;
33 - sp:subject _:b1 36 + sp:subject _:b4
37 + ] [ sp:object _:b3 ;
38 + sp:predicate <http://www.reportinghub.no/ep/schema/production-well#wholeFluid> ;
39 + sp:subject _:b4
34 ] [ sp:object _:b1 ; 40 ] [ sp:object _:b1 ;
35 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ; 41 + sp:predicate <http://www.reportinghub.no/ep/schema/production-well#componentFluid> ;
36 - sp:subject _:b3 42 + sp:subject _:b4
43 + ] [ sp:object _:b5 ;
44 + sp:predicate <http://www.reportinghub.no/ep/schema/production-well#weightRatio> ;
45 + sp:subject _:b4
46 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
47 + sp:predicate rdf:type ;
48 + sp:subject _:b5
49 + ] [ sp:object _:b6 ;
50 + sp:predicate _:b7 ;
51 + sp:subject _:b5
37 ]) ; 52 ]) ;
38 - sp:where ([ sp:object _:b4 ; 53 + sp:where ([ sp:object _:b8 ;
39 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 54 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
40 sp:subject spin:_this 55 sp:subject spin:_this
41 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 56 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ;
42 sp:predicate rdf:type ; 57 sp:predicate rdf:type ;
43 - sp:subject _:b4 58 + sp:subject _:b8
44 - ] [ sp:object _:b4 ; 59 + ] [ sp:object _:b8 ;
45 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 60 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
46 sp:subject _:b3 61 sp:subject _:b3
47 - ] [ sp:object _:b2 ; 62 + ] [ sp:object _:b9 ;
48 - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; 63 + sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
49 - sp:subject _:b4 64 + sp:subject _:b8
65 + ] [ sp:object _:b10 ;
66 + sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ;
67 + sp:subject _:b9
68 + ] [ sp:object
69 + [ sp:varName "name"^^xsd:string
70 + ] ;
71 + sp:predicate <http://www.epim.no/schemas/mprml/1#componentName> ;
72 + sp:subject _:b9
73 + ] [ rdf:type sp:Optional ;
74 + sp:elements ([ sp:object _:b11 ;
75 + sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ;
76 + sp:subject _:b9
77 + ] [ sp:object _:b6 ;
78 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
79 + sp:subject _:b11
80 + ] [ sp:object _:b12 ;
81 + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
82 + sp:subject _:b11
83 + ])
84 + ] [ rdf:type sp:Bind ;
85 + sp:expression
86 + [ rdf:type ep-mpr-spin-lib:selectFluidComponentType ;
87 + sp:arg1 _:b10
88 + ] ;
89 + sp:variable _:b2
90 + ] [ rdf:type sp:Bind ;
91 + sp:expression
92 + [ rdf:type ep-mpr-spin-lib:selectRatioScale ;
93 + sp:arg1 _:b12
94 + ] ;
95 + sp:variable _:b7
50 ]) 96 ])
51 ] ; 97 ] ;
52 spin:rule 98 spin:rule
53 [ rdf:type sp:Construct ; 99 [ rdf:type sp:Construct ;
54 - rdfs:comment """STEP 40002c Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume. 100 + rdfs:comment """STEP 40002d Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
55 kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ; 101 kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
56 - sp:templates ([ sp:object _:b5 ; 102 + sp:templates ([ sp:object _:b13 ;
57 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ; 103 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
58 - sp:subject _:b6 104 + sp:subject _:b14
105 + ] [ sp:object _:b15 ;
106 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
107 + sp:subject _:b13
59 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; 108 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
60 sp:predicate rdf:type ; 109 sp:predicate rdf:type ;
61 - sp:subject _:b5 110 + sp:subject _:b15
62 - ] [ sp:object _:b7 ; 111 + ] [ sp:object _:b16 ;
63 sp:predicate rdfs:label ; 112 sp:predicate rdfs:label ;
64 - sp:subject _:b5 113 + sp:subject _:b15
65 - ] [ sp:object _:b8 ; 114 + ] [ sp:object _:b17 ;
66 sp:predicate rdf:type ; 115 sp:predicate rdf:type ;
67 - sp:subject _:b5 116 + sp:subject _:b15
68 - ] [ sp:object _:b7 ; 117 + ] [ sp:object _:b16 ;
69 sp:predicate rdfs:label ; 118 sp:predicate rdfs:label ;
70 - sp:subject _:b9 119 + sp:subject _:b18
71 ]) ; 120 ]) ;
72 - sp:where ([ sp:object _:b10 ; 121 + sp:where ([ sp:object _:b19 ;
73 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 122 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
74 sp:subject spin:_this 123 sp:subject spin:_this
75 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 124 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
76 sp:predicate rdf:type ; 125 sp:predicate rdf:type ;
77 - sp:subject _:b10 126 + sp:subject _:b19
78 - ] [ sp:object _:b10 ; 127 + ] [ sp:object _:b19 ;
79 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 128 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
80 - sp:subject _:b6 129 + sp:subject _:b14
81 - ] [ sp:object _:b9 ; 130 + ] [ sp:object _:b18 ;
82 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 131 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
83 - sp:subject _:b10 132 + sp:subject _:b19
84 - ] [ sp:object _:b11 ; 133 + ] [ sp:object _:b20 ;
85 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 134 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
86 - sp:subject _:b9 135 + sp:subject _:b18
87 - ] [ sp:object _:b12 ; 136 + ] [ sp:object _:b21 ;
88 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 137 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
89 - sp:subject _:b11 138 + sp:subject _:b20
90 - ] [ sp:object _:b13 ; 139 + ] [ sp:object _:b22 ;
91 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 140 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
92 - sp:subject _:b11 141 + sp:subject _:b20
93 ] [ rdf:type sp:NotExists ; 142 ] [ rdf:type sp:NotExists ;
94 sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; 143 sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
95 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 144 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
96 - sp:subject _:b11 145 + sp:subject _:b20
97 ]) 146 ])
98 - ] [ sp:object _:b14 ; 147 + ] [ sp:object _:b23 ;
99 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ; 148 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
100 - sp:subject _:b10 149 + sp:subject _:b19
101 - ] [ sp:object _:b15 ; 150 + ] [ sp:object _:b24 ;
102 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 151 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
103 - sp:subject _:b14 152 + sp:subject _:b23
104 - ] [ rdf:type sp:NotExists ; 153 + ] [ sp:object _:b25 ;
105 - sp:elements ([ sp:object 154 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ;
106 - [ sp:varName "facilityParent2Ref"^^xsd:string 155 + sp:subject _:b19
107 - ] ; 156 + ] [ sp:object _:b26 ;
108 - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ; 157 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
109 - sp:subject _:b10 158 + sp:subject _:b25
110 - ])
111 ] [ rdf:type sp:Bind ; 159 ] [ rdf:type sp:Bind ;
112 sp:expression 160 sp:expression
113 [ rdf:type ep-spin-lib:normalizeString ; 161 [ rdf:type ep-spin-lib:normalizeString ;
114 - sp:arg1 _:b12 162 + sp:arg1 _:b21
115 ] ; 163 ] ;
116 - sp:variable _:b16 164 + sp:variable _:b27
117 ] [ rdf:type sp:Bind ; 165 ] [ rdf:type sp:Bind ;
118 sp:expression 166 sp:expression
119 [ rdf:type ep-spin-lib:normalizeString ; 167 [ rdf:type ep-spin-lib:normalizeString ;
120 - sp:arg1 _:b15 168 + sp:arg1 _:b24
121 ] ; 169 ] ;
122 - sp:variable _:b17 170 + sp:variable _:b28
171 + ] [ rdf:type sp:Bind ;
172 + sp:expression
173 + [ rdf:type ep-spin-lib:normalizeString ;
174 + sp:arg1 _:b26
175 + ] ;
176 + sp:variable
177 + [ sp:varName "normalizedFacilityParent2Name"^^xsd:string
178 + ]
123 ] [ rdf:type sp:Bind ; 179 ] [ rdf:type sp:Bind ;
124 sp:expression 180 sp:expression
125 [ rdf:type fn:concat ; 181 [ rdf:type fn:concat ;
126 - sp:arg1 _:b17 ; 182 + sp:arg1 _:b28 ;
127 sp:arg2 "$" ; 183 sp:arg2 "$" ;
128 - sp:arg3 _:b16 184 + sp:arg3 _:b28 ;
185 + sp:arg4 "$" ;
186 + sp:arg5 _:b27
129 ] ; 187 ] ;
130 - sp:variable _:b7 188 + sp:variable _:b16
131 ] [ rdf:type sp:Bind ; 189 ] [ rdf:type sp:Bind ;
132 sp:expression 190 sp:expression
133 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 191 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
134 - sp:arg1 _:b7 192 + sp:arg1 _:b16
135 ] ; 193 ] ;
136 - sp:variable _:b5 194 + sp:variable _:b15
137 ] [ rdf:type sp:Bind ; 195 ] [ rdf:type sp:Bind ;
138 sp:expression 196 sp:expression
139 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; 197 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
140 - sp:arg1 _:b13 198 + sp:arg1 _:b22
141 ] ; 199 ] ;
142 - sp:variable _:b8 200 + sp:variable _:b17
143 ]) 201 ])
144 ] ; 202 ] ;
145 spin:rule 203 spin:rule
146 [ rdf:type sp:Construct ; 204 [ rdf:type sp:Construct ;
147 rdfs:comment """STEP 40002b Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume. 205 rdfs:comment """STEP 40002b Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
148 kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ; 206 kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
149 - sp:templates ([ sp:object _:b18 ; 207 + sp:templates ([ sp:object _:b29 ;
150 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ; 208 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
151 - sp:subject _:b19 209 + sp:subject _:b30
210 + ] [ sp:object _:b31 ;
211 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
212 + sp:subject _:b29
152 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; 213 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
153 sp:predicate rdf:type ; 214 sp:predicate rdf:type ;
154 - sp:subject _:b18 215 + sp:subject _:b31
155 - ] [ sp:object _:b20 ; 216 + ] [ sp:object _:b32 ;
156 sp:predicate rdfs:label ; 217 sp:predicate rdfs:label ;
157 - sp:subject _:b18 218 + sp:subject _:b31
158 - ] [ sp:object _:b21 ; 219 + ] [ sp:object _:b33 ;
159 sp:predicate rdf:type ; 220 sp:predicate rdf:type ;
160 - sp:subject _:b18 221 + sp:subject _:b31
161 - ] [ sp:object _:b20 ; 222 + ] [ sp:object _:b32 ;
162 sp:predicate rdfs:label ; 223 sp:predicate rdfs:label ;
163 - sp:subject _:b22 224 + sp:subject _:b34
164 ]) ; 225 ]) ;
165 - sp:where ([ sp:object _:b23 ; 226 + sp:where ([ sp:object _:b35 ;
166 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 227 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
167 sp:subject spin:_this 228 sp:subject spin:_this
168 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 229 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
169 sp:predicate rdf:type ; 230 sp:predicate rdf:type ;
170 - sp:subject _:b23 231 + sp:subject _:b35
171 - ] [ sp:object _:b23 ; 232 + ] [ sp:object _:b35 ;
172 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 233 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
173 - sp:subject _:b19 234 + sp:subject _:b30
174 - ] [ sp:object _:b22 ; 235 + ] [ sp:object _:b34 ;
175 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 236 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
176 - sp:subject _:b23 237 + sp:subject _:b35
177 - ] [ sp:object _:b24 ; 238 + ] [ sp:object _:b36 ;
178 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 239 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
179 - sp:subject _:b22 240 + sp:subject _:b34
180 - ] [ sp:object _:b25 ; 241 + ] [ sp:object _:b37 ;
181 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 242 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
182 - sp:subject _:b24 243 + sp:subject _:b36
183 - ] [ sp:object _:b26 ; 244 + ] [ sp:object _:b38 ;
184 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 245 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
185 - sp:subject _:b24 246 + sp:subject _:b36
186 ] [ rdf:type sp:NotExists ; 247 ] [ rdf:type sp:NotExists ;
187 sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; 248 sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
188 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 249 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
189 - sp:subject _:b24 250 + sp:subject _:b36
190 ]) 251 ])
191 ] [ rdf:type sp:NotExists ; 252 ] [ rdf:type sp:NotExists ;
192 sp:elements ([ sp:object 253 sp:elements ([ sp:object
193 [ sp:varName "facilityParent1Ref"^^xsd:string 254 [ sp:varName "facilityParent1Ref"^^xsd:string
194 ] ; 255 ] ;
195 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ; 256 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
196 - sp:subject _:b23 257 + sp:subject _:b35
197 ]) 258 ])
198 ] [ rdf:type sp:Bind ; 259 ] [ rdf:type sp:Bind ;
199 sp:expression 260 sp:expression
200 [ rdf:type ep-spin-lib:normalizeString ; 261 [ rdf:type ep-spin-lib:normalizeString ;
201 - sp:arg1 _:b25 262 + sp:arg1 _:b37
202 ] ; 263 ] ;
203 - sp:variable _:b20 264 + sp:variable _:b32
204 ] [ rdf:type sp:Bind ; 265 ] [ rdf:type sp:Bind ;
205 sp:expression 266 sp:expression
206 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 267 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
207 - sp:arg1 _:b20 268 + sp:arg1 _:b32
208 ] ; 269 ] ;
209 - sp:variable _:b18 270 + sp:variable _:b31
210 ] [ rdf:type sp:Bind ; 271 ] [ rdf:type sp:Bind ;
211 sp:expression 272 sp:expression
212 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; 273 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
213 - sp:arg1 _:b26 274 + sp:arg1 _:b38
214 ] ; 275 ] ;
215 - sp:variable _:b21 276 + sp:variable _:b33
216 - ])
217 - ] ;
218 - spin:rule
219 - [ rdf:type sp:Construct ;
220 - rdfs:comment """STEP 40002a Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
221 -kind is \"well\" and facilityAlias is supplied"""^^xsd:string ;
222 - sp:templates ([ sp:object _:b27 ;
223 - sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
224 - sp:subject _:b28
225 - ] [ sp:object _:b29 ;
226 - sp:predicate rdfs:label ;
227 - sp:subject _:b30
228 - ]) ;
229 - sp:where ([ sp:object _:b31 ;
230 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
231 - sp:subject spin:_this
232 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
233 - sp:predicate rdf:type ;
234 - sp:subject _:b31
235 - ] [ sp:object _:b31 ;
236 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
237 - sp:subject _:b28
238 - ] [ sp:object _:b30 ;
239 - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
240 - sp:subject _:b31
241 - ] [ sp:object _:b32 ;
242 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
243 - sp:subject _:b30
244 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
245 - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
246 - sp:subject _:b32
247 - ] [ sp:object _:b33 ;
248 - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityAliasRef> ;
249 - sp:subject _:b31
250 - ] [ sp:object _:b34 ;
251 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
252 - sp:subject _:b33
253 - ] [ rdf:type sp:Bind ;
254 - sp:expression
255 - [ rdf:type ep-spin-lib:normalizeString ;
256 - sp:arg1 _:b34
257 - ] ;
258 - sp:variable _:b29
259 - ] [ rdf:type sp:Bind ;
260 - sp:expression
261 - [ rdf:type rhspin:wellByName ;
262 - arg:wellName _:b34
263 - ] ;
264 - sp:variable _:b27
265 ]) 277 ])
266 ] ; 278 ] ;
267 spin:rule 279 spin:rule
...@@ -269,308 +281,470 @@ kind is \"well\" and facilityAlias is supplied"""^^xsd:string ; ...@@ -269,308 +281,470 @@ kind is \"well\" and facilityAlias is supplied"""^^xsd:string ;
269 rdfs:comment "STEP 40001 Create the FluidSampleReport, FluidSampling activity and FluidSample object ."^^xsd:string ; 281 rdfs:comment "STEP 40001 Create the FluidSampleReport, FluidSampling activity and FluidSample object ."^^xsd:string ;
270 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#FluidSampleReport> ; 282 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#FluidSampleReport> ;
271 sp:predicate rdf:type ; 283 sp:predicate rdf:type ;
272 - sp:subject _:b35 284 + sp:subject _:b39
273 - ] [ sp:object _:b36 ; 285 + ] [ sp:object _:b40 ;
274 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; 286 sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
275 - sp:subject _:b35 287 + sp:subject _:b39
276 - ] [ sp:object _:b37 ; 288 + ] [ sp:object _:b41 ;
277 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 289 sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
278 - sp:subject _:b35 290 + sp:subject _:b39
279 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSampling> ; 291 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
280 sp:predicate rdf:type ; 292 sp:predicate rdf:type ;
281 - sp:subject _:b37 293 + sp:subject _:b41
282 - ] [ sp:object _:b38 ; 294 + ] [ sp:object _:b42 ;
283 sp:predicate rdf:type ; 295 sp:predicate rdf:type ;
284 - sp:subject _:b37 296 + sp:subject _:b41
285 - ] [ sp:object _:b39 ; 297 + ] [ sp:object _:b43 ;
286 sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; 298 sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
287 - sp:subject _:b37 299 + sp:subject _:b41
288 - ] [ sp:object _:b40 ; 300 + ] [ sp:object _:b44 ;
289 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 301 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
290 - sp:subject _:b37 302 + sp:subject _:b41
291 ]) ; 303 ]) ;
292 sp:where ([ sp:object spin:_this ; 304 sp:where ([ sp:object spin:_this ;
293 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 305 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
294 - sp:subject _:b36 306 + sp:subject _:b40
295 - ] [ sp:object _:b40 ; 307 + ] [ sp:object _:b44 ;
296 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 308 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
297 sp:subject spin:_this 309 sp:subject spin:_this
298 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 310 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
299 sp:predicate rdf:type ; 311 sp:predicate rdf:type ;
300 - sp:subject _:b40 312 + sp:subject _:b44
301 ] [ rdf:type sp:Optional ; 313 ] [ rdf:type sp:Optional ;
302 - sp:elements ([ sp:object _:b39 ; 314 + sp:elements ([ sp:object _:b43 ;
303 sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ; 315 sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
304 - sp:subject _:b40 316 + sp:subject _:b44
305 ]) 317 ])
306 ] [ rdf:type sp:Optional ; 318 ] [ rdf:type sp:Optional ;
307 - sp:elements ([ sp:object _:b41 ; 319 + sp:elements ([ sp:object _:b45 ;
308 sp:predicate <http://www.epim.no/schemas/mprml/1#sampleTypeRef> ; 320 sp:predicate <http://www.epim.no/schemas/mprml/1#sampleTypeRef> ;
309 - sp:subject _:b40 321 + sp:subject _:b44
310 ]) 322 ])
311 ] [ rdf:type sp:Bind ; 323 ] [ rdf:type sp:Bind ;
312 sp:expression 324 sp:expression
313 [ rdf:type ep-mpr-spin-lib:selectFluidSamplingType ; 325 [ rdf:type ep-mpr-spin-lib:selectFluidSamplingType ;
314 - sp:arg1 _:b41 326 + sp:arg1 _:b45
315 ] ; 327 ] ;
316 - sp:variable _:b38 328 + sp:variable _:b42
317 ]) 329 ])
318 ] ; 330 ] ;
319 spin:rule 331 spin:rule
320 [ rdf:type sp:Construct ; 332 [ rdf:type sp:Construct ;
321 - rdfs:comment """STEP 40002d Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume. 333 + rdfs:comment """STEP 40003 Create the Sample of fluid.
334 +The sample is anonymous. It is matched to its results via the sample name, which is assumed to be unique within the file."""^^xsd:string ;
335 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ;
336 + sp:predicate rdf:type ;
337 + sp:subject _:b46
338 + ] [ sp:object _:b47 ;
339 + sp:predicate rdfs:label ;
340 + sp:subject _:b46
341 + ] [ sp:object _:b46 ;
342 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
343 + sp:subject _:b48
344 + ]) ;
345 + sp:where ([ sp:object _:b49 ;
346 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
347 + sp:subject spin:_this
348 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
349 + sp:predicate rdf:type ;
350 + sp:subject _:b49
351 + ] [ sp:object _:b49 ;
352 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
353 + sp:subject _:b48
354 + ] [ sp:object _:b47 ;
355 + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
356 + sp:subject _:b49
357 + ])
358 + ] ;
359 + spin:rule
360 + [ rdf:type sp:Construct ;
361 + rdfs:comment "STEP 40004 Specify the fluid analysis result."^^xsd:string ;
362 + sp:templates ([ sp:object _:b50 ;
363 + sp:predicate rdfs:label ;
364 + sp:subject _:b51
365 + ] [ sp:object _:b52 ;
366 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
367 + sp:subject _:b53
368 + ]) ;
369 + sp:where ([ sp:object _:b54 ;
370 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
371 + sp:subject spin:_this
372 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
373 + sp:predicate rdf:type ;
374 + sp:subject _:b54
375 + ] [ sp:object _:b54 ;
376 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
377 + sp:subject _:b51
378 + ] [ sp:object _:b53 ;
379 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
380 + sp:subject _:b51
381 + ] [ sp:object _:b55 ;
382 + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
383 + sp:subject _:b54
384 + ] [ sp:object _:b52 ;
385 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
386 + sp:subject spin:_this
387 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ;
388 + sp:predicate rdf:type ;
389 + sp:subject _:b52
390 + ] [ sp:object _:b55 ;
391 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ;
392 + sp:subject _:b52
393 + ] [ rdf:type sp:Optional ;
394 + sp:elements ([ sp:object _:b50 ;
395 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ;
396 + sp:subject _:b52
397 + ])
398 + ])
399 + ] ;
400 + spin:rule
401 + [ rdf:type sp:Construct ;
402 + rdfs:comment """STEP 40002a Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
403 +kind is \"well\" and facilityAlias is supplied"""^^xsd:string ;
404 + sp:templates ([ sp:object _:b56 ;
405 + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
406 + sp:subject _:b57
407 + ] [ sp:object _:b58 ;
408 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
409 + sp:subject _:b56
410 + ] [ sp:object _:b59 ;
411 + sp:predicate rdfs:label ;
412 + sp:subject _:b60
413 + ]) ;
414 + sp:where ([ sp:object _:b61 ;
415 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
416 + sp:subject spin:_this
417 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
418 + sp:predicate rdf:type ;
419 + sp:subject _:b61
420 + ] [ sp:object _:b61 ;
421 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
422 + sp:subject _:b57
423 + ] [ sp:object _:b60 ;
424 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
425 + sp:subject _:b61
426 + ] [ sp:object _:b62 ;
427 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
428 + sp:subject _:b60
429 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
430 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
431 + sp:subject _:b62
432 + ] [ sp:object _:b63 ;
433 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityAliasRef> ;
434 + sp:subject _:b61
435 + ] [ sp:object _:b64 ;
436 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
437 + sp:subject _:b63
438 + ] [ rdf:type sp:Bind ;
439 + sp:expression
440 + [ rdf:type ep-spin-lib:normalizeString ;
441 + sp:arg1 _:b64
442 + ] ;
443 + sp:variable _:b59
444 + ] [ rdf:type sp:Bind ;
445 + sp:expression
446 + [ rdf:type rhspin:wellByName ;
447 + arg:wellName _:b64
448 + ] ;
449 + sp:variable _:b58
450 + ])
451 + ] ;
452 + spin:rule
453 + [ rdf:type sp:Construct ;
454 + rdfs:comment """STEP 40002c Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
322 kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ; 455 kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
323 - sp:templates ([ sp:object _:b42 ; 456 + sp:templates ([ sp:object _:b65 ;
324 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ; 457 sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
325 - sp:subject _:b43 458 + sp:subject _:b66
459 + ] [ sp:object _:b67 ;
460 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
461 + sp:subject _:b65
326 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ; 462 ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
327 sp:predicate rdf:type ; 463 sp:predicate rdf:type ;
328 - sp:subject _:b42 464 + sp:subject _:b67
329 - ] [ sp:object _:b44 ; 465 + ] [ sp:object _:b68 ;
330 sp:predicate rdfs:label ; 466 sp:predicate rdfs:label ;
331 - sp:subject _:b42 467 + sp:subject _:b67
332 - ] [ sp:object _:b45 ; 468 + ] [ sp:object _:b69 ;
333 sp:predicate rdf:type ; 469 sp:predicate rdf:type ;
334 - sp:subject _:b42 470 + sp:subject _:b67
335 - ] [ sp:object _:b44 ; 471 + ] [ sp:object _:b68 ;
336 sp:predicate rdfs:label ; 472 sp:predicate rdfs:label ;
337 - sp:subject _:b46 473 + sp:subject _:b70
338 ]) ; 474 ]) ;
339 - sp:where ([ sp:object _:b47 ; 475 + sp:where ([ sp:object _:b71 ;
340 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 476 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
341 sp:subject spin:_this 477 sp:subject spin:_this
342 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ; 478 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
343 sp:predicate rdf:type ; 479 sp:predicate rdf:type ;
344 - sp:subject _:b47 480 + sp:subject _:b71
345 - ] [ sp:object _:b47 ; 481 + ] [ sp:object _:b71 ;
346 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 482 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
347 - sp:subject _:b43 483 + sp:subject _:b66
348 - ] [ sp:object _:b46 ; 484 + ] [ sp:object _:b70 ;
349 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ; 485 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
350 - sp:subject _:b47 486 + sp:subject _:b71
351 - ] [ sp:object _:b48 ; 487 + ] [ sp:object _:b72 ;
352 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 488 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
353 - sp:subject _:b46 489 + sp:subject _:b70
354 - ] [ sp:object _:b49 ; 490 + ] [ sp:object _:b73 ;
355 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 491 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
356 - sp:subject _:b48 492 + sp:subject _:b72
357 - ] [ sp:object _:b50 ; 493 + ] [ sp:object _:b74 ;
358 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 494 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
359 - sp:subject _:b48 495 + sp:subject _:b72
360 ] [ rdf:type sp:NotExists ; 496 ] [ rdf:type sp:NotExists ;
361 sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; 497 sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
362 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; 498 sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
363 - sp:subject _:b48 499 + sp:subject _:b72
364 ]) 500 ])
365 - ] [ sp:object _:b51 ; 501 + ] [ sp:object _:b75 ;
366 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ; 502 sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
367 - sp:subject _:b47 503 + sp:subject _:b71
368 - ] [ sp:object _:b52 ; 504 + ] [ sp:object _:b76 ;
369 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 505 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
370 - sp:subject _:b51 506 + sp:subject _:b75
371 - ] [ sp:object _:b53 ; 507 + ] [ rdf:type sp:NotExists ;
372 - sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ; 508 + sp:elements ([ sp:object
373 - sp:subject _:b47 509 + [ sp:varName "facilityParent2Ref"^^xsd:string
374 - ] [ sp:object _:b54 ; 510 + ] ;
375 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 511 + sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ;
376 - sp:subject _:b53 512 + sp:subject _:b71
377 - ] [ rdf:type sp:Bind ; 513 + ])
378 - sp:expression
379 - [ rdf:type ep-spin-lib:normalizeString ;
380 - sp:arg1 _:b49
381 - ] ;
382 - sp:variable _:b55
383 ] [ rdf:type sp:Bind ; 514 ] [ rdf:type sp:Bind ;
384 sp:expression 515 sp:expression
385 [ rdf:type ep-spin-lib:normalizeString ; 516 [ rdf:type ep-spin-lib:normalizeString ;
386 - sp:arg1 _:b52 517 + sp:arg1 _:b73
387 ] ; 518 ] ;
388 - sp:variable _:b56 519 + sp:variable _:b77
389 ] [ rdf:type sp:Bind ; 520 ] [ rdf:type sp:Bind ;
390 sp:expression 521 sp:expression
391 [ rdf:type ep-spin-lib:normalizeString ; 522 [ rdf:type ep-spin-lib:normalizeString ;
392 - sp:arg1 _:b54 523 + sp:arg1 _:b76
393 ] ; 524 ] ;
394 - sp:variable 525 + sp:variable _:b78
395 - [ sp:varName "normalizedFacilityParent2Name"^^xsd:string
396 - ]
397 ] [ rdf:type sp:Bind ; 526 ] [ rdf:type sp:Bind ;
398 sp:expression 527 sp:expression
399 [ rdf:type fn:concat ; 528 [ rdf:type fn:concat ;
400 - sp:arg1 _:b56 ; 529 + sp:arg1 _:b78 ;
401 sp:arg2 "$" ; 530 sp:arg2 "$" ;
402 - sp:arg3 _:b56 ; 531 + sp:arg3 _:b77
403 - sp:arg4 "$" ;
404 - sp:arg5 _:b55
405 ] ; 532 ] ;
406 - sp:variable _:b44 533 + sp:variable _:b68
407 ] [ rdf:type sp:Bind ; 534 ] [ rdf:type sp:Bind ;
408 sp:expression 535 sp:expression
409 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; 536 [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
410 - sp:arg1 _:b44 537 + sp:arg1 _:b68
411 ] ; 538 ] ;
412 - sp:variable _:b42 539 + sp:variable _:b67
413 ] [ rdf:type sp:Bind ; 540 ] [ rdf:type sp:Bind ;
414 sp:expression 541 sp:expression
415 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ; 542 [ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
416 - sp:arg1 _:b50 543 + sp:arg1 _:b74
417 ] ; 544 ] ;
418 - sp:variable _:b45 545 + sp:variable _:b69
419 ]) 546 ])
420 ] . 547 ] .
421 548
422 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> 549 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0>
423 rdf:type owl:Ontology ; 550 rdf:type owl:Ontology ;
424 - owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ; 551 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ;
425 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 552 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
426 553
427 -_:b31 554 +_:b61
428 sp:varName "fluidSampleRef"^^xsd:string . 555 sp:varName "fluidSampleRef"^^xsd:string .
429 556
430 -_:b28 557 +_:b57
431 - sp:varName "fluidSampling"^^xsd:string . 558 + sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
432 559
433 -_:b30 560 +_:b60
434 sp:varName "facilityRef"^^xsd:string . 561 sp:varName "facilityRef"^^xsd:string .
435 562
436 -_:b32 563 +_:b62
437 sp:varName "facilityNameRef"^^xsd:string . 564 sp:varName "facilityNameRef"^^xsd:string .
438 565
439 -_:b33 566 +_:b63
440 sp:varName "facilityAliasRef"^^xsd:string . 567 sp:varName "facilityAliasRef"^^xsd:string .
441 568
442 -_:b34 569 +_:b64
443 sp:varName "facilityAlias"^^xsd:string . 570 sp:varName "facilityAlias"^^xsd:string .
444 571
445 -_:b29 572 +_:b59
446 sp:varName "normalizedFacilityAlias"^^xsd:string . 573 sp:varName "normalizedFacilityAlias"^^xsd:string .
447 574
448 -_:b27 575 +_:b58
449 sp:varName "facility"^^xsd:string . 576 sp:varName "facility"^^xsd:string .
450 577
451 -_:b23 578 +_:b35
452 sp:varName "fluidSampleRef"^^xsd:string . 579 sp:varName "fluidSampleRef"^^xsd:string .
453 580
454 -_:b19 581 +_:b30
455 - sp:varName "fluidSampling"^^xsd:string . 582 + sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
456 583
457 -_:b22 584 +_:b34
458 sp:varName "facilityRef"^^xsd:string . 585 sp:varName "facilityRef"^^xsd:string .
459 586
460 -_:b24 587 +_:b36
461 sp:varName "facilityNameRef"^^xsd:string . 588 sp:varName "facilityNameRef"^^xsd:string .
462 589
463 -_:b25 590 +_:b37
464 sp:varName "facilityName"^^xsd:string . 591 sp:varName "facilityName"^^xsd:string .
465 592
466 -_:b26 593 +_:b38
467 sp:varName "facilityKind"^^xsd:string . 594 sp:varName "facilityKind"^^xsd:string .
468 595
469 -_:b20 596 +_:b32
470 sp:varName "normalizedFacilityName"^^xsd:string . 597 sp:varName "normalizedFacilityName"^^xsd:string .
471 598
472 -_:b18 599 +_:b31
473 sp:varName "facility"^^xsd:string . 600 sp:varName "facility"^^xsd:string .
474 601
475 -_:b21 602 +_:b33
476 sp:varName "facilityType"^^xsd:string . 603 sp:varName "facilityType"^^xsd:string .
477 604
478 -_:b10 605 +_:b71
479 sp:varName "fluidSampleRef"^^xsd:string . 606 sp:varName "fluidSampleRef"^^xsd:string .
480 607
481 -_:b6 sp:varName "fluidSampling"^^xsd:string . 608 +_:b66
609 + sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
482 610
483 -_:b9 sp:varName "facilityRef"^^xsd:string . 611 +_:b70
612 + sp:varName "facilityRef"^^xsd:string .
484 613
485 -_:b11 614 +_:b72
486 sp:varName "facilityNameRef"^^xsd:string . 615 sp:varName "facilityNameRef"^^xsd:string .
487 616
488 -_:b12 617 +_:b73
489 sp:varName "facilityChildName"^^xsd:string . 618 sp:varName "facilityChildName"^^xsd:string .
490 619
491 -_:b13 620 +_:b74
492 sp:varName "facilityKind"^^xsd:string . 621 sp:varName "facilityKind"^^xsd:string .
493 622
494 -_:b14 623 +_:b75
495 sp:varName "facilityParent1Ref"^^xsd:string . 624 sp:varName "facilityParent1Ref"^^xsd:string .
496 625
497 -_:b15 626 +_:b76
498 sp:varName "facilityParent1Name"^^xsd:string . 627 sp:varName "facilityParent1Name"^^xsd:string .
499 628
500 -_:b16 629 +_:b77
501 sp:varName "normalizedFacilityChildName"^^xsd:string . 630 sp:varName "normalizedFacilityChildName"^^xsd:string .
502 631
503 -_:b17 632 +_:b78
504 sp:varName "normalizedFacilityParent1Name"^^xsd:string . 633 sp:varName "normalizedFacilityParent1Name"^^xsd:string .
505 634
506 -_:b7 sp:varName "normalizedFacilityName"^^xsd:string . 635 +_:b68
636 + sp:varName "normalizedFacilityName"^^xsd:string .
507 637
508 -_:b5 sp:varName "facility"^^xsd:string . 638 +_:b67
639 + sp:varName "facility"^^xsd:string .
509 640
510 -_:b8 sp:varName "facilityType"^^xsd:string . 641 +_:b69
642 + sp:varName "facilityType"^^xsd:string .
511 643
512 -_:b47 644 +_:b19
513 sp:varName "fluidSampleRef"^^xsd:string . 645 sp:varName "fluidSampleRef"^^xsd:string .
514 646
515 -_:b43 647 +_:b14
516 - sp:varName "fluidSampling"^^xsd:string . 648 + sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
517 649
518 -_:b46 650 +_:b18
519 sp:varName "facilityRef"^^xsd:string . 651 sp:varName "facilityRef"^^xsd:string .
520 652
521 -_:b48 653 +_:b20
522 sp:varName "facilityNameRef"^^xsd:string . 654 sp:varName "facilityNameRef"^^xsd:string .
523 655
524 -_:b49 656 +_:b21
525 sp:varName "facilityChildName"^^xsd:string . 657 sp:varName "facilityChildName"^^xsd:string .
526 658
527 -_:b50 659 +_:b22
528 sp:varName "facilityKind"^^xsd:string . 660 sp:varName "facilityKind"^^xsd:string .
529 661
530 -_:b51 662 +_:b23
531 sp:varName "facilityParent1Ref"^^xsd:string . 663 sp:varName "facilityParent1Ref"^^xsd:string .
532 664
533 -_:b52 665 +_:b24
534 sp:varName "facilityParent1Name"^^xsd:string . 666 sp:varName "facilityParent1Name"^^xsd:string .
535 667
536 -_:b53 668 +_:b25
537 sp:varName "facilityParent2Ref"^^xsd:string . 669 sp:varName "facilityParent2Ref"^^xsd:string .
538 670
539 -_:b54 671 +_:b26
540 sp:varName "facilityParent2Name"^^xsd:string . 672 sp:varName "facilityParent2Name"^^xsd:string .
541 673
542 -_:b55 674 +_:b27
543 sp:varName "normalizedFacilityChildName"^^xsd:string . 675 sp:varName "normalizedFacilityChildName"^^xsd:string .
544 676
545 -_:b56 677 +_:b28
546 sp:varName "normalizedFacilityParent1Name"^^xsd:string . 678 sp:varName "normalizedFacilityParent1Name"^^xsd:string .
547 679
548 -_:b44 680 +_:b16
549 sp:varName "normalizedFacilityName"^^xsd:string . 681 sp:varName "normalizedFacilityName"^^xsd:string .
550 682
551 -_:b42 683 +_:b15
552 sp:varName "facility"^^xsd:string . 684 sp:varName "facility"^^xsd:string .
553 685
554 -_:b45 686 +_:b17
555 sp:varName "facilityType"^^xsd:string . 687 sp:varName "facilityType"^^xsd:string .
556 688
557 -_:b36 689 +_:b8 sp:varName "fluidAnalysisResultRef"^^xsd:string .
558 - sp:varName "productionReport"^^xsd:string . 690 +
691 +_:b3 sp:varName "sampledFluid"^^xsd:string .
692 +
693 +_:b9 sp:varName "fluidSampleCompositionRef"^^xsd:string .
694 +
695 +_:b10
696 + sp:varName "isPrimary"^^xsd:string .
697 +
698 +_:b11
699 + sp:varName "weightPercentRef"^^xsd:string .
700 +
701 +_:b6 sp:varName "realWeightPercent"^^xsd:string .
702 +
703 +_:b12
704 + sp:varName "uomWeightPercent"^^xsd:string .
705 +
706 +_:b2 sp:varName "fluidComponentType"^^xsd:string .
707 +
708 +_:b7 sp:varName "weightPercentScale"^^xsd:string .
709 +
710 +_:b49
711 + sp:varName "fluidSampleRef"^^xsd:string .
712 +
713 +_:b48
714 + sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
715 +
716 +_:b47
717 + sp:varName "name"^^xsd:string .
718 +
719 +_:b54
720 + sp:varName "fluidSampleRef"^^xsd:string .
721 +
722 +_:b51
723 + sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
724 +
725 +_:b53
726 + sp:varName "sampledFluid"^^xsd:string .
727 +
728 +_:b55
729 + sp:varName "name"^^xsd:string .
730 +
731 +_:b52
732 + sp:varName "fluidAnalysisResultRef"^^xsd:string .
733 +
734 +_:b50
735 + sp:varName "nameFluidAnalysis"^^xsd:string .
559 736
560 _:b40 737 _:b40
738 + sp:varName "productionReport"^^xsd:string .
739 +
740 +_:b44
561 sp:varName "fluidSampleRef"^^xsd:string . 741 sp:varName "fluidSampleRef"^^xsd:string .
562 742
563 -_:b39 743 +_:b43
564 sp:varName "acquisitionDate"^^xsd:string . 744 sp:varName "acquisitionDate"^^xsd:string .
565 745
566 -_:b41 746 +_:b45
567 sp:varName "sampleTypeRef"^^xsd:string . 747 sp:varName "sampleTypeRef"^^xsd:string .
568 748
569 -_:b38 749 +_:b42
570 sp:varName "fluidSamplingType"^^xsd:string . 750 sp:varName "fluidSamplingType"^^xsd:string .
571 -
572 -_:b4 sp:varName "fluidSampleRef"^^xsd:string .
573 -
574 -_:b3 sp:varName "fluidSampling"^^xsd:string .
575 -
576 -_:b2 sp:varName "name"^^xsd:string .
......
1 +# Saved by TopBraid on Tue Dec 20 19:26:54 GMT 2011
1 # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0 2 # baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0
2 -# imports: http://spinrdf.org/spin
3 -# imports: http://www.epim.no/schemas/mprml/1
4 # imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib 3 # imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
4 +# imports: http://www.epim.no/schemas/mprml/1
5 +# imports: http://spinrdf.org/spin
6 +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
5 7
6 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> . 8 @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> .
7 @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . 9 @prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
...@@ -18,326 +20,482 @@ ...@@ -18,326 +20,482 @@
18 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 20 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
19 spin:rule 21 spin:rule
20 [ rdf:type sp:Construct ; 22 [ rdf:type sp:Construct ;
21 - rdfs:comment "STEP 10001c Add the report kind"^^xsd:string ; 23 + rdfs:comment """STEP 10001b Create the ProductionReport - dateStart and dateEnd supplied
22 - sp:templates ([ sp:object 24 +Extract the name from the productionOperation child"""^^xsd:string ;
23 - [ sp:varName "reportKind"^^xsd:string 25 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
24 - ] ;
25 - sp:predicate rdf:type ;
26 - sp:subject
27 - [ sp:varName "dailyProductionReport"^^xsd:string
28 - ]
29 - ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
30 sp:predicate rdf:type ; 26 sp:predicate rdf:type ;
31 - sp:subject 27 + sp:subject _:b1
32 - [ sp:varName "reportKind"^^xsd:string 28 + ] [ sp:object _:b2 ;
33 - ]
34 - ] [ sp:object
35 - [ sp:varName "kind"^^xsd:string
36 - ] ;
37 sp:predicate rdfs:label ; 29 sp:predicate rdfs:label ;
38 - sp:subject 30 + sp:subject _:b1
39 - [ sp:varName "reportKind"^^xsd:string 31 + ] [ sp:object _:b3 ;
40 - ] 32 + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
33 + sp:subject _:b1
34 + ] [ sp:object spin:_this ;
35 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
36 + sp:subject _:b1
41 ]) ; 37 ]) ;
42 - sp:where ([ sp:object 38 + sp:where ([ sp:object _:b4 ;
43 - [ sp:varName "contextRef"^^xsd:string
44 - ] ;
45 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 39 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
46 sp:subject spin:_this 40 sp:subject spin:_this
47 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; 41 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
48 sp:predicate rdf:type ; 42 sp:predicate rdf:type ;
49 - sp:subject 43 + sp:subject _:b4
50 - [ sp:varName "contextRef"^^xsd:string 44 + ] [ rdf:type sp:Optional ;
51 - ] 45 + sp:elements ([ sp:object _:b5 ;
52 - ] [ sp:object 46 + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
53 - [ sp:varName "kind"^^xsd:string 47 + sp:subject _:b4
54 - ] ; 48 + ] [ sp:object _:b2 ;
55 - sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ; 49 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
56 - sp:subject 50 + sp:subject _:b5
57 - [ sp:varName "contextRef"^^xsd:string 51 + ])
58 - ] 52 + ] [ sp:object _:b3 ;
59 - ] [ sp:object
60 - [ sp:varName "date"^^xsd:string
61 - ] ;
62 sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 53 sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
63 - sp:subject 54 + sp:subject _:b4
64 - [ sp:varName "contextRef"^^xsd:string 55 + ] [ sp:object _:b6 ;
65 - ] 56 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
66 - ] [ sp:object spin:_this ; 57 + sp:subject spin:_this
67 - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 58 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
68 - sp:subject 59 + sp:predicate rdf:type ;
69 - [ sp:varName "dailyProductionReport"^^xsd:string 60 + sp:subject _:b6
70 - ] 61 + ] [ sp:object _:b7 ;
62 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
63 + sp:subject _:b6
64 + ] [ sp:object _:b8 ;
65 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
66 + sp:subject _:b7
67 + ] [ sp:object _:b9 ;
68 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
69 + sp:subject _:b6
70 + ] [ sp:object _:b10 ;
71 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
72 + sp:subject _:b6
71 ] [ rdf:type sp:Bind ; 73 ] [ rdf:type sp:Bind ;
72 sp:expression 74 sp:expression
73 [ rdf:type ep-spin-lib:normalizeString ; 75 [ rdf:type ep-spin-lib:normalizeString ;
74 - sp:arg1 [ sp:varName "kind"^^xsd:string 76 + sp:arg1 _:b8
75 - ]
76 ] ; 77 ] ;
77 - sp:variable 78 + sp:variable _:b11
78 - [ sp:varName "normalizedKind"^^xsd:string
79 - ]
80 ] [ rdf:type sp:Bind ; 79 ] [ rdf:type sp:Bind ;
81 sp:expression 80 sp:expression
82 - [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ; 81 + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
83 - sp:arg1 [ sp:varName "normalizedKind"^^xsd:string 82 + sp:arg1 _:b11 ;
84 - ] 83 + sp:arg2 _:b9 ;
84 + sp:arg3 _:b10
85 ] ; 85 ] ;
86 - sp:variable 86 + sp:variable _:b1
87 - [ sp:varName "reportKind"^^xsd:string
88 - ]
89 ]) 87 ])
90 ] ; 88 ] ;
91 spin:rule 89 spin:rule
92 [ rdf:type sp:Construct ; 90 [ rdf:type sp:Construct ;
93 rdfs:comment """STEP 10001a Create the ProductionReport - dTimStart and dTimEnd supplied 91 rdfs:comment """STEP 10001a Create the ProductionReport - dTimStart and dTimEnd supplied
94 Extract the name from the productionOperation child"""^^xsd:string ; 92 Extract the name from the productionOperation child"""^^xsd:string ;
95 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> ; 93 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
96 sp:predicate rdf:type ; 94 sp:predicate rdf:type ;
97 - sp:subject 95 + sp:subject _:b12
98 - [ sp:varName "dailyProductionReport"^^xsd:string 96 + ] [ sp:object _:b13 ;
99 - ]
100 - ] [ sp:object
101 - [ sp:varName "title"^^xsd:string
102 - ] ;
103 sp:predicate rdfs:label ; 97 sp:predicate rdfs:label ;
104 - sp:subject 98 + sp:subject _:b12
105 - [ sp:varName "dailyProductionReport"^^xsd:string 99 + ] [ sp:object _:b14 ;
106 - ]
107 - ] [ sp:object
108 - [ sp:varName "date"^^xsd:string
109 - ] ;
110 sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; 100 sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
111 - sp:subject 101 + sp:subject _:b12
112 - [ sp:varName "dailyProductionReport"^^xsd:string
113 - ]
114 ] [ sp:object spin:_this ; 102 ] [ sp:object spin:_this ;
115 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 103 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
116 - sp:subject 104 + sp:subject _:b12
117 - [ sp:varName "dailyProductionReport"^^xsd:string
118 - ]
119 ]) ; 105 ]) ;
120 - sp:where ([ sp:object 106 + sp:where ([ sp:object _:b15 ;
121 - [ sp:varName "contextRef"^^xsd:string
122 - ] ;
123 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 107 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
124 sp:subject spin:_this 108 sp:subject spin:_this
125 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; 109 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
126 sp:predicate rdf:type ; 110 sp:predicate rdf:type ;
127 - sp:subject 111 + sp:subject _:b15
128 - [ sp:varName "contextRef"^^xsd:string
129 - ]
130 ] [ rdf:type sp:Optional ; 112 ] [ rdf:type sp:Optional ;
131 - sp:elements ([ sp:object 113 + sp:elements ([ sp:object _:b16 ;
132 - [ sp:varName "titleRef"^^xsd:string
133 - ] ;
134 sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; 114 sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
135 - sp:subject 115 + sp:subject _:b15
136 - [ sp:varName "contextRef"^^xsd:string 116 + ] [ sp:object _:b13 ;
137 - ]
138 - ] [ sp:object
139 - [ sp:varName "title"^^xsd:string
140 - ] ;
141 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 117 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
142 - sp:subject 118 + sp:subject _:b16
143 - [ sp:varName "titleRef"^^xsd:string
144 - ]
145 ]) 119 ])
146 - ] [ sp:object 120 + ] [ sp:object _:b14 ;
147 - [ sp:varName "date"^^xsd:string
148 - ] ;
149 sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 121 sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
150 - sp:subject 122 + sp:subject _:b15
151 - [ sp:varName "contextRef"^^xsd:string 123 + ] [ sp:object _:b17 ;
152 - ]
153 - ] [ sp:object
154 - [ sp:varName "productionOperationRef"^^xsd:string
155 - ] ;
156 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 124 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
157 sp:subject spin:_this 125 sp:subject spin:_this
158 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; 126 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
159 sp:predicate rdf:type ; 127 sp:predicate rdf:type ;
160 - sp:subject 128 + sp:subject _:b17
161 - [ sp:varName "productionOperationRef"^^xsd:string 129 + ] [ sp:object _:b18 ;
162 - ]
163 - ] [ sp:object
164 - [ sp:varName "nameRef"^^xsd:string
165 - ] ;
166 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 130 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
167 - sp:subject 131 + sp:subject _:b17
168 - [ sp:varName "productionOperationRef"^^xsd:string 132 + ] [ sp:object _:b19 ;
169 - ]
170 - ] [ sp:object
171 - [ sp:varName "name"^^xsd:string
172 - ] ;
173 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 133 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
174 - sp:subject 134 + sp:subject _:b18
175 - [ sp:varName "nameRef"^^xsd:string 135 + ] [ sp:object _:b20 ;
176 - ]
177 - ] [ sp:object
178 - [ sp:varName "dTimStart"^^xsd:string
179 - ] ;
180 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; 136 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
181 - sp:subject 137 + sp:subject _:b17
182 - [ sp:varName "prodctionOperationRef"^^xsd:string 138 + ] [ sp:object _:b21 ;
183 - ]
184 - ] [ sp:object
185 - [ sp:varName "dTimEnd"^^xsd:string
186 - ] ;
187 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 139 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
188 - sp:subject 140 + sp:subject _:b17
189 - [ sp:varName "prodctionOperationRef"^^xsd:string
190 - ]
191 ] [ rdf:type sp:Bind ; 141 ] [ rdf:type sp:Bind ;
192 sp:expression 142 sp:expression
193 [ rdf:type ep-spin-lib:normalizeString ; 143 [ rdf:type ep-spin-lib:normalizeString ;
194 - sp:arg1 [ sp:varName "name"^^xsd:string 144 + sp:arg1 _:b19
195 - ]
196 ] ; 145 ] ;
197 - sp:variable 146 + sp:variable _:b22
198 - [ sp:varName "normalizedName"^^xsd:string
199 - ]
200 ] [ rdf:type sp:Bind ; 147 ] [ rdf:type sp:Bind ;
201 sp:expression 148 sp:expression
202 - [ rdf:type ep-dpr-spin-lib:buildDailyProductionReportURI ; 149 + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
203 - sp:arg1 [ sp:varName "normalizedName"^^xsd:string 150 + sp:arg1 _:b22 ;
204 - ] ; 151 + sp:arg2 _:b20 ;
205 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 152 + sp:arg3 _:b21
206 - ] ;
207 - sp:arg3 [ sp:varName "dTimEnd"^^xsd:string
208 - ]
209 ] ; 153 ] ;
210 - sp:variable 154 + sp:variable _:b12
211 - [ sp:varName "dailyProductionReport"^^xsd:string
212 - ]
213 ]) 155 ])
214 ] ; 156 ] ;
215 spin:rule 157 spin:rule
216 [ rdf:type sp:Construct ; 158 [ rdf:type sp:Construct ;
217 - rdfs:comment """STEP 10001b Create the ProductionReport - dateStart and dateEnd supplied 159 + rdfs:comment "STEP 10001e Add the report kind"^^xsd:string ;
218 -Extract the name from the productionOperation child"""^^xsd:string ; 160 + sp:templates ([ sp:object _:b23 ;
219 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> ;
220 sp:predicate rdf:type ; 161 sp:predicate rdf:type ;
221 - sp:subject 162 + sp:subject _:b24
222 - [ sp:varName "dailyProductionReport"^^xsd:string 163 + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
223 - ] 164 + sp:predicate rdf:type ;
224 - ] [ sp:object 165 + sp:subject _:b23
225 - [ sp:varName "title"^^xsd:string 166 + ] [ sp:object _:b25 ;
226 - ] ;
227 sp:predicate rdfs:label ; 167 sp:predicate rdfs:label ;
228 - sp:subject 168 + sp:subject _:b23
229 - [ sp:varName "dailyProductionReport"^^xsd:string 169 + ]) ;
230 - ] 170 + sp:where ([ sp:object _:b26 ;
171 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
172 + sp:subject spin:_this
173 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
174 + sp:predicate rdf:type ;
175 + sp:subject _:b26
176 + ] [ sp:object _:b25 ;
177 + sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
178 + sp:subject _:b26
231 ] [ sp:object 179 ] [ sp:object
232 [ sp:varName "date"^^xsd:string 180 [ sp:varName "date"^^xsd:string
233 ] ; 181 ] ;
182 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
183 + sp:subject _:b26
184 + ] [ sp:object spin:_this ;
185 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
186 + sp:subject _:b24
187 + ] [ rdf:type sp:Bind ;
188 + sp:expression
189 + [ rdf:type ep-spin-lib:normalizeString ;
190 + sp:arg1 _:b25
191 + ] ;
192 + sp:variable _:b27
193 + ] [ rdf:type sp:Bind ;
194 + sp:expression
195 + [ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
196 + sp:arg1 _:b27
197 + ] ;
198 + sp:variable _:b23
199 + ])
200 + ] ;
201 + spin:rule
202 + [ rdf:type sp:Construct ;
203 + rdfs:comment """STEP 10001c Create the ProductionReport - date and dateEnd from context
204 +Extract the name from the contextFacility"""^^xsd:string ;
205 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
206 + sp:predicate rdf:type ;
207 + sp:subject _:b28
208 + ] [ sp:object _:b29 ;
209 + sp:predicate rdfs:label ;
210 + sp:subject _:b28
211 + ] [ sp:object _:b30 ;
234 sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; 212 sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
235 - sp:subject 213 + sp:subject _:b28
236 - [ sp:varName "dailyProductionReport"^^xsd:string
237 - ]
238 ] [ sp:object spin:_this ; 214 ] [ sp:object spin:_this ;
239 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; 215 sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
240 - sp:subject 216 + sp:subject _:b28
241 - [ sp:varName "dailyProductionReport"^^xsd:string
242 - ]
243 ]) ; 217 ]) ;
244 - sp:where ([ sp:object 218 + sp:where ([ sp:object _:b31 ;
245 - [ sp:varName "contextRef"^^xsd:string
246 - ] ;
247 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 219 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
248 sp:subject spin:_this 220 sp:subject spin:_this
249 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; 221 ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
250 sp:predicate rdf:type ; 222 sp:predicate rdf:type ;
251 - sp:subject 223 + sp:subject _:b31
252 - [ sp:varName "contextRef"^^xsd:string
253 - ]
254 ] [ rdf:type sp:Optional ; 224 ] [ rdf:type sp:Optional ;
255 - sp:elements ([ sp:object 225 + sp:elements ([ sp:object _:b32 ;
256 - [ sp:varName "titleRef"^^xsd:string
257 - ] ;
258 sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; 226 sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
259 - sp:subject 227 + sp:subject _:b31
260 - [ sp:varName "contextRef"^^xsd:string 228 + ] [ sp:object _:b29 ;
261 - ]
262 - ] [ sp:object
263 - [ sp:varName "title"^^xsd:string
264 - ] ;
265 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 229 sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
266 - sp:subject 230 + sp:subject _:b32
267 - [ sp:varName "titleRef"^^xsd:string
268 - ]
269 ]) 231 ])
270 - ] [ sp:object 232 + ] [ sp:object _:b30 ;
271 - [ sp:varName "date"^^xsd:string
272 - ] ;
273 sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 233 sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
274 - sp:subject 234 + sp:subject _:b31
275 - [ sp:varName "contextRef"^^xsd:string 235 + ] [ rdf:type sp:NotExists ;
276 - ] 236 + sp:elements ([ sp:object _:b33 ;
277 - ] [ sp:object 237 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
278 - [ sp:varName "productionOperationRef"^^xsd:string 238 + sp:subject spin:_this
239 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
240 + sp:predicate rdf:type ;
241 + sp:subject _:b33
242 + ] [ sp:object _:b34 ;
243 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
244 + sp:subject _:b33
245 + ] [ sp:object _:b35 ;
246 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
247 + sp:subject _:b34
248 + ])
249 + ] [ sp:object _:b36 ;
250 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
251 + sp:subject _:b31
252 + ] [ sp:object _:b37 ;
253 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
254 + sp:subject _:b31
255 + ] [ sp:object _:b38 ;
256 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
257 + sp:subject _:b31
258 + ] [ sp:object _:b35 ;
259 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
260 + sp:subject _:b38
261 + ] [ rdf:type sp:Bind ;
262 + sp:expression
263 + [ rdf:type ep-spin-lib:normalizeString ;
264 + sp:arg1 _:b35
279 ] ; 265 ] ;
280 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 266 + sp:variable _:b39
267 + ] [ rdf:type sp:Bind ;
268 + sp:expression
269 + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
270 + sp:arg1 _:b39 ;
271 + sp:arg2 _:b36 ;
272 + sp:arg3 _:b37
273 + ] ;
274 + sp:variable _:b28
275 + ])
276 + ] ;
277 + spin:rule
278 + [ rdf:type sp:Construct ;
279 + rdfs:comment """STEP 10001d Create the ProductionReport - dateStart and dateEnd from context
280 +Extract the name from the contextFacility"""^^xsd:string ;
281 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
282 + sp:predicate rdf:type ;
283 + sp:subject _:b40
284 + ] [ sp:object _:b41 ;
285 + sp:predicate rdfs:label ;
286 + sp:subject _:b40
287 + ] [ sp:object _:b42 ;
288 + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
289 + sp:subject _:b40
290 + ] [ sp:object spin:_this ;
291 + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
292 + sp:subject _:b40
293 + ]) ;
294 + sp:where ([ sp:object _:b43 ;
295 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
281 sp:subject spin:_this 296 sp:subject spin:_this
282 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; 297 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
283 sp:predicate rdf:type ; 298 sp:predicate rdf:type ;
284 - sp:subject 299 + sp:subject _:b43
285 - [ sp:varName "productionOperationRef"^^xsd:string 300 + ] [ rdf:type sp:Optional ;
286 - ] 301 + sp:elements ([ sp:object _:b44 ;
287 - ] [ sp:object 302 + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
288 - [ sp:varName "nameRef"^^xsd:string 303 + sp:subject _:b43
289 - ] ; 304 + ] [ sp:object _:b41 ;
290 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 305 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
291 - sp:subject 306 + sp:subject _:b44
292 - [ sp:varName "productionOperationRef"^^xsd:string 307 + ])
293 - ] 308 + ] [ sp:object _:b42 ;
294 - ] [ sp:object 309 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
295 - [ sp:varName "name"^^xsd:string 310 + sp:subject _:b43
296 - ] ; 311 + ] [ rdf:type sp:NotExists ;
297 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 312 + sp:elements ([ sp:object _:b45 ;
298 - sp:subject 313 + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
299 - [ sp:varName "nameRef"^^xsd:string 314 + sp:subject spin:_this
300 - ] 315 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
301 - ] [ sp:object 316 + sp:predicate rdf:type ;
302 - [ sp:varName "dateStart"^^xsd:string 317 + sp:subject _:b45
303 - ] ; 318 + ] [ sp:object _:b46 ;
319 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
320 + sp:subject _:b45
321 + ] [ sp:object _:b47 ;
322 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
323 + sp:subject _:b46
324 + ])
325 + ] [ sp:object _:b48 ;
304 sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 326 sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
305 - sp:subject 327 + sp:subject _:b43
306 - [ sp:varName "prodctionOperationRef"^^xsd:string 328 + ] [ sp:object _:b49 ;
307 - ]
308 - ] [ sp:object
309 - [ sp:varName "dateEnd"^^xsd:string
310 - ] ;
311 sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 329 sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
312 - sp:subject 330 + sp:subject _:b43
313 - [ sp:varName "prodctionOperationRef"^^xsd:string 331 + ] [ sp:object _:b50 ;
314 - ] 332 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
333 + sp:subject _:b43
334 + ] [ sp:object _:b47 ;
335 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
336 + sp:subject _:b50
315 ] [ rdf:type sp:Bind ; 337 ] [ rdf:type sp:Bind ;
316 sp:expression 338 sp:expression
317 [ rdf:type ep-spin-lib:normalizeString ; 339 [ rdf:type ep-spin-lib:normalizeString ;
318 - sp:arg1 [ sp:varName "name"^^xsd:string 340 + sp:arg1 _:b47
319 - ]
320 ] ; 341 ] ;
321 - sp:variable 342 + sp:variable _:b51
322 - [ sp:varName "normalizedName"^^xsd:string
323 - ]
324 ] [ rdf:type sp:Bind ; 343 ] [ rdf:type sp:Bind ;
325 sp:expression 344 sp:expression
326 - [ rdf:type ep-dpr-spin-lib:buildDailyProductionReportURI ; 345 + [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
327 - sp:arg1 [ sp:varName "normalizedName"^^xsd:string 346 + sp:arg1 _:b51 ;
328 - ] ; 347 + sp:arg2 _:b48 ;
329 - sp:arg2 [ sp:varName "dateStart"^^xsd:string 348 + sp:arg3 _:b49
330 - ] ;
331 - sp:arg3 [ sp:varName "dateEnd"^^xsd:string
332 - ]
333 ] ; 349 ] ;
334 - sp:variable 350 + sp:variable _:b40
335 - [ sp:varName "dailyProductionReport"^^xsd:string
336 - ]
337 ]) 351 ])
338 ] . 352 ] .
339 353
340 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> 354 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
341 rdf:type owl:Ontology ; 355 rdf:type owl:Ontology ;
342 - owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ; 356 + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ;
343 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 357 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
358 +
359 +_:b40
360 + sp:varName "productionReport"^^xsd:string .
361 +
362 +_:b41
363 + sp:varName "title"^^xsd:string .
364 +
365 +_:b42
366 + sp:varName "date"^^xsd:string .
367 +
368 +_:b43
369 + sp:varName "contextRef"^^xsd:string .
370 +
371 +_:b44
372 + sp:varName "titleRef"^^xsd:string .
373 +
374 +_:b45
375 + sp:varName "productionOperationRef"^^xsd:string .
376 +
377 +_:b46
378 + sp:varName "nameRef"^^xsd:string .
379 +
380 +_:b47
381 + sp:varName "name"^^xsd:string .
382 +
383 +_:b48
384 + sp:varName "dateStart"^^xsd:string .
385 +
386 +_:b49
387 + sp:varName "dateEnd"^^xsd:string .
388 +
389 +_:b50
390 + sp:varName "contextFacilityRef"^^xsd:string .
391 +
392 +_:b51
393 + sp:varName "normalizedName"^^xsd:string .
394 +
395 +_:b28
396 + sp:varName "productionReport"^^xsd:string .
397 +
398 +_:b29
399 + sp:varName "title"^^xsd:string .
400 +
401 +_:b30
402 + sp:varName "date"^^xsd:string .
403 +
404 +_:b31
405 + sp:varName "contextRef"^^xsd:string .
406 +
407 +_:b32
408 + sp:varName "titleRef"^^xsd:string .
409 +
410 +_:b33
411 + sp:varName "productionOperationRef"^^xsd:string .
412 +
413 +_:b34
414 + sp:varName "nameRef"^^xsd:string .
415 +
416 +_:b35
417 + sp:varName "name"^^xsd:string .
418 +
419 +_:b36
420 + sp:varName "dateStart"^^xsd:string .
421 +
422 +_:b37
423 + sp:varName "dateEnd"^^xsd:string .
424 +
425 +_:b38
426 + sp:varName "contextFacilityRef"^^xsd:string .
427 +
428 +_:b39
429 + sp:varName "normalizedName"^^xsd:string .
430 +
431 +_:b23
432 + sp:varName "reportKind"^^xsd:string .
433 +
434 +_:b24
435 + sp:varName "productionReport"^^xsd:string .
436 +
437 +_:b25
438 + sp:varName "kind"^^xsd:string .
439 +
440 +_:b26
441 + sp:varName "contextRef"^^xsd:string .
442 +
443 +_:b27
444 + sp:varName "normalizedKind"^^xsd:string .
445 +
446 +_:b15
447 + sp:varName "contextRef"^^xsd:string .
448 +
449 +_:b16
450 + sp:varName "titleRef"^^xsd:string .
451 +
452 +_:b13
453 + sp:varName "title"^^xsd:string .
454 +
455 +_:b14
456 + sp:varName "date"^^xsd:string .
457 +
458 +_:b17
459 + sp:varName "productionOperationRef"^^xsd:string .
460 +
461 +_:b18
462 + sp:varName "nameRef"^^xsd:string .
463 +
464 +_:b19
465 + sp:varName "name"^^xsd:string .
466 +
467 +_:b20
468 + sp:varName "dTimStart"^^xsd:string .
469 +
470 +_:b21
471 + sp:varName "dTimEnd"^^xsd:string .
472 +
473 +_:b22
474 + sp:varName "normalizedName"^^xsd:string .
475 +
476 +_:b12
477 + sp:varName "productionReport"^^xsd:string .
478 +
479 +_:b4 sp:varName "contextRef"^^xsd:string .
480 +
481 +_:b5 sp:varName "titleRef"^^xsd:string .
482 +
483 +_:b2 sp:varName "title"^^xsd:string .
484 +
485 +_:b3 sp:varName "date"^^xsd:string .
486 +
487 +_:b6 sp:varName "productionOperationRef"^^xsd:string .
488 +
489 +_:b7 sp:varName "nameRef"^^xsd:string .
490 +
491 +_:b8 sp:varName "name"^^xsd:string .
492 +
493 +_:b9 sp:varName "dateStart"^^xsd:string .
494 +
495 +_:b10
496 + sp:varName "dateEnd"^^xsd:string .
497 +
498 +_:b11
499 + sp:varName "normalizedName"^^xsd:string .
500 +
501 +_:b1 sp:varName "productionReport"^^xsd:string .
......
1 +# Saved by TopBraid on Tue Dec 20 19:26:54 GMT 2011
1 # baseURI: null 2 # baseURI: null
2 3
3 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......