David Leal

More work on flows

# Saved by TopBraid on Sun Oct 09 15:34:41 BST 2011
# Saved by TopBraid on Sun Oct 09 19:30:18 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/flow
# imports: http://www.reportinghub.no/ep/schema/1.0/core
......@@ -14,137 +14,137 @@
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-flow:AllocatedFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "allocated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:BudgetFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "budget flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:ConstraintFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "constraint flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Consume
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Consume-HPflare
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - HP flare"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume-flare .
ep-flow:Consume-LPflare
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - LP flare"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume-flare .
ep-flow:Consume-blackstart
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - blackstart"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-compressor
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - compressor"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-emitted
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - emitted"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-flare
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - flare"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-fuel
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - fuel"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-noncompressor
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - non-compressor"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:Consume-venting
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "consume - venting"^^xsd:string ;
rdfs:subClassOf ep-flow:Consume .
ep-flow:DerivedFlow
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdfs:label "derived flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:EstimatedFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "estimated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Export
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "export"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Export-nominated
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "export nominated"^^xsd:string ;
rdfs:subClassOf ep-flow:Export .
ep-flow:Export-requested
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "export requested"^^xsd:string ;
rdfs:subClassOf ep-flow:Export .
ep-flow:Export-shortfall
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "export shortfall"^^xsd:string ;
rdfs:subClassOf ep-flow:Export .
ep-flow:Flow
rdf:type owl:Class ;
rdfs:label "flow"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalThing> .
rdfs:subClassOf ep-flow:TemporalPartOfAFlow .
ep-flow:Gaslift
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "gas lift"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Import
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "import"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Injection
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "injection"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Inventory
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "inventory"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:MeasuredFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "measured flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Overboard
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "overboard"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:Production
rdf:type ep-flow:ProductionFlowPurposeType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowPurposeType ;
rdfs:label "production"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
......@@ -164,11 +164,22 @@ ep-flow:ProductionFlowPurposeType
rdfs:subClassOf rdfs:Class .
ep-flow:QuotaFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "quota flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:SimulatedFlow
rdf:type ep-flow:ProductionFlowDefinitionType , owl:Class ;
rdf:type owl:Class , ep-flow:ProductionFlowDefinitionType ;
rdfs:label "simulated flow"^^xsd:string ;
rdfs:subClassOf ep-flow:Flow .
ep-flow:TemporalPartOfAFlow
rdf:type owl:Class ;
rdfs:label "temporal part of a flow"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalThing> .
ep-flow:flowOf
rdf:type owl:ObjectProperty ;
rdfs:domain ep-flow:Flow ;
rdfs:label "flow of"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
......
# Saved by TopBraid on Sun Oct 09 16:28:54 BST 2011
# Saved by TopBraid on Sun Oct 09 20:00:04 BST 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/geography
# imports: http://www.reportinghub.no/ep/schema/1.0/well
......@@ -21,7 +21,7 @@
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/geography> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/geography> , <http://www.reportinghub.no/ep/schema/1.0/flow> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-dpr-spin-lib:Function
......@@ -67,13 +67,197 @@ ep-dpr-spin-lib:buildProductionFlowURI
])
] .
ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
rdf:type spin:Function ;
rdfs:label "build ProductionFacility URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFacility/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b3
])
] .
ep-dpr-spin-lib:selectProductType
rdf:type spin:Function ;
rdfs:label "select ProductType"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b4) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_consume-HPflare>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Consume-HPflare> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_consume-LPflare>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Consume-LPflare> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_consume-blackstart>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Consume-blackstart> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_consume-compressor>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Consume-compressor> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_consume-emitted>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Consume-emitted> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_consume-flare>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Consume-flare> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_consume-fuel>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Consume-fuel> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_consume-noncompressor>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Consume-noncompressor> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_consume-venting>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Consume-venting> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_consume>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Consume> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_export-nominated>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Export-nominated> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_export-requested>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Export-requested> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_export-shortfall>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Export-shortfall> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_export>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Export> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_gaslift>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Gaslift> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_import>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Import> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_injection>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Injection> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_inventory>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Inventory> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_overboard>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Overboard> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#RF_production>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Production> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#ReportingFlow_RF_unknown>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#Flow>
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
] ;
sp:variable _:b4
])
] .
ep-dpr-spin-lib:selectProductionFacilityType
rdf:type spin:Function ;
rdfs:label "select ProductionFacilityType"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:resultVariables (_:b5) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -252,7 +436,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
]
]
] ;
sp:variable _:b3
sp:variable _:b5
])
] .
......@@ -262,7 +446,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b4) ;
sp:resultVariables (_:b6) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -322,7 +506,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
]
]
] ;
sp:variable _:b4
sp:variable _:b6
])
] .
......@@ -332,7 +516,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b5) ;
sp:resultVariables (_:b7) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -483,16 +667,20 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
]
]
] ;
sp:variable _:b5
sp:variable _:b7
])
] .
_:b1 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "productType"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b7 sp:varName "productionFlowPurposeType"^^xsd:string .
_:b6 sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b3 sp:varName "productionFacilityType"^^xsd:string .
_:b5 sp:varName "productionFacilityType"^^xsd:string .
_:b5 sp:varName "productionFlowPurposeType"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Sun Oct 09 16:28:54 BST 2011
# Saved by TopBraid on Sun Oct 09 20:00:04 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Sun Oct 09 16:13:48 BST 2011
# Saved by TopBraid on Sun Oct 09 19:58:53 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://spinrdf.org/spin
# imports: http://www.witsml.org/schemas/131/addendum/combo
......@@ -13,6 +13,7 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
......@@ -20,354 +21,474 @@
<http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20102 record the flows"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
rdfs:comment """STEP 20101c Set the type of temporal part
kind and periodKind are not yet processed"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b3 ;
sp:predicate rdf:type ;
]) ;
sp:where ([ sp:object
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kind> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "periodKindRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodKindRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
sp:subject spin:_this
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b1
] [ sp:object _:b4 ;
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20101b Record the Temporal part of the flows for the day"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ;
sp:predicate rdf:type ;
sp:subject _:b1
sp:subject _:b2
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object _:b3 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject spin:_this
] [ sp:object _:b4 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
sp:subject spin:_this
] [ sp:object _:b5 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b3
] ;
sp:variable _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI ;
sp:arg1 _:b6 ;
sp:arg2 _:b4 ;
sp:arg3 _:b5
] ;
sp:variable _:b2
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20101a Record the Temporal part of the flows for the day"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlow> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b7
]) ;
sp:where ([ sp:object _:b8 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject spin:_this
] [ sp:object _:b9 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b10 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b8
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI ;
sp:arg1 _:b11 ;
sp:arg2 _:b9 ;
sp:arg3 _:b10
] ;
sp:variable _:b7
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20103 record the flows"^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b13
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b14 ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b15 ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b16 ;
sp:predicate rdfs:label ;
sp:subject _:b1
sp:subject _:b12
]) ;
sp:where ([ sp:object _:b6 ;
sp:where ([ sp:object _:b17 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b7 ;
] [ sp:object _:b18 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:subject _:b17
] [ sp:object _:b19 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b7
] [ sp:object _:b9 ;
sp:subject _:b18
] [ sp:object _:b20 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b6
] [ sp:object _:b5 ;
sp:subject _:b17
] [ sp:object _:b16 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b9
sp:subject _:b20
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowDirection"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b9
sp:subject _:b20
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowQualifier"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
sp:subject _:b9
sp:subject _:b20
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b8
sp:arg1 _:b19
] ;
sp:variable _:b11
sp:variable _:b22
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b11
sp:arg1 _:b22
] ;
sp:variable _:b2
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b5
sp:arg1 _:b16
] ;
sp:variable _:b12
sp:variable _:b23
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b12
sp:arg1 _:b23
] ;
sp:variable _:b1
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 _:b10
sp:arg1 _:b21
] ;
sp:variable _:b3
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ;
sp:arg1 _:b10
sp:arg1 _:b21
] ;
sp:variable _:b4
sp:variable _:b15
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 9999 stream of conciousness"^^xsd:string ;
sp:templates () ;
sp:where ([ sp:object _:b13 ;
rdfs:comment "STEP 20104 record the products"^^xsd:string ;
sp:templates ([ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b25
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject _:b24
] [ sp:object _:b26 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowOf> ;
sp:subject _:b24
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b26
] [ sp:object _:b27 ;
sp:predicate rdf:type ;
sp:subject _:b26
]) ;
sp:where ([ sp:object _:b28 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b14 ;
] [ sp:object _:b29 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b13
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
sp:subject _:b28
] [ sp:object _:b30 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b14
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityNamingSystem"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
sp:subject _:b14
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityKind"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b14
])
] [ sp:object _:b15 ;
sp:subject _:b29
] [ sp:object _:b31 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b13
] [ sp:object
[ sp:varName "flowName"^^xsd:string
] ;
sp:subject _:b28
] [ sp:object _:b32 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject _:b15
] [ sp:object
[ sp:varName "flowKind"^^xsd:string
] ;
sp:subject _:b31
] [ sp:object _:b33 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
sp:subject _:b34
] [ sp:object _:b35 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b15
] [ sp:object
[ sp:varName "flowDirection"^^xsd:string
sp:subject _:b33
] [ sp:object _:b36 ;
sp:predicate rdfs:label ;
sp:subject _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b30
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b15
] [ sp:object
[ sp:varName "flowQualifier"^^xsd:string
sp:variable _:b37
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b37
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
sp:subject _:b15
] [ sp:object _:b16 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
sp:subject _:b15
] [ sp:object _:b17 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b16
] [ sp:object
[ sp:varName "productName"^^xsd:string
sp:variable
[ sp:varName "productionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b32
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b17
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productNamingSystem"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
sp:subject _:b17
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b18 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b17
])
] [ sp:object _:b18 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b16
] [ sp:object _:b19 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ;
sp:subject _:b16
] [ sp:object
[ sp:varName "periodKind"^^xsd:string
sp:variable _:b38
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b38
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b19
] [ sp:object
[ sp:varName "startTime"^^xsd:string
sp:variable _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "productName"^^xsd:string
]
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
sp:subject _:b19
] [ sp:object
[ sp:varName "endTime"^^xsd:string
sp:variable
[ sp:varName "normalizedProductName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductType ;
sp:arg1 _:b35
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ;
sp:subject _:b19
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b20 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ;
sp:subject _:b19
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b20
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
sp:subject _:b20
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b21 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ;
sp:subject _:b19
] [ sp:object
[ sp:varName "realVolumeStd"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b21
] [ sp:object
[ sp:varName "uomVolumeStd"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
sp:subject _:b21
])
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b36
] ;
sp:variable _:b39
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:deriveURI ;
sp:arg1 _:b34 ;
sp:arg2 _:b39
] ;
sp:variable _:b24
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20101 Record the Facility that has the flows
rdfs:comment """STEP 20102 Record the Facility that has the flows
Nothing is done with the namingSystem!"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object _:b23 ;
sp:subject _:b40
] [ sp:object _:b41 ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object _:b24 ;
sp:subject _:b40
] [ sp:object _:b42 ;
sp:predicate rdfs:label ;
sp:subject _:b22
sp:subject _:b40
]) ;
sp:where ([ sp:object _:b25 ;
sp:where ([ sp:object _:b43 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b26 ;
] [ sp:object _:b44 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b25
] [ sp:object _:b24 ;
sp:subject _:b43
] [ sp:object _:b42 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b26
sp:subject _:b44
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityNamingSystem"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#namingSystem> ;
sp:subject _:b26
sp:subject _:b44
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b27 ;
sp:elements ([ sp:object _:b45 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b26
sp:subject _:b44
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b24
sp:arg1 _:b42
] ;
sp:variable _:b28
sp:variable _:b46
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b28
sp:arg1 _:b46
] ;
sp:variable _:b22
sp:variable _:b40
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b27
sp:arg1 _:b45
] ;
sp:variable _:b23
sp:variable _:b41
])
] .
_:b28
_:b24
sp:varName "productFlow"^^xsd:string .
_:b39
sp:varName "normalizedProductTypeName"^^xsd:string .
_:b25
sp:varName "productionFlow"^^xsd:string .
_:b38
sp:varName "normalizedFlowName"^^xsd:string .
_:b37
sp:varName "normalizedFacilityName"^^xsd:string .
_:b36
sp:varName "productTypeName"^^xsd:string .
_:b27
sp:varName "facilityKind"^^xsd:string .
sp:varName "productType"^^xsd:string .
_:b35
sp:varName "productKind"^^xsd:string .
_:b33
sp:varName "product"^^xsd:string .
_:b34
sp:varName "flow"^^xsd:string .
_:b32
sp:varName "flowName"^^xsd:string .
_:b31
sp:varName "flowRef"^^xsd:string .
_:b26
_:b30
sp:varName "facilityName"^^xsd:string .
_:b29
sp:varName "facilityNameRef"^^xsd:string .
_:b25
_:b28
sp:varName "facilityRef"^^xsd:string .
_:b24
sp:varName "facilityName"^^xsd:string .
_:b1 sp:varName "productionFlowsForAPeriod"^^xsd:string .
_:b23
sp:varName "productionFacilityType"^^xsd:string .
_:b2 sp:varName "productionFlowsForAPeriod"^^xsd:string .
_:b22
sp:varName "productionFacility"^^xsd:string .
_:b6 sp:varName "normalizedProductionFlowsName"^^xsd:string .
_:b21
sp:varName "volumeStdRef"^^xsd:string .
_:b5 sp:varName "dateEnd"^^xsd:string .
_:b20
sp:varName "volumeRef"^^xsd:string .
_:b4 sp:varName "dateStart"^^xsd:string .
_:b19
sp:varName "period"^^xsd:string .
_:b3 sp:varName "productionFlowsName"^^xsd:string .
_:b18
sp:varName "productKind"^^xsd:string .
_:b7 sp:varName "productionFlowsForAPeriod"^^xsd:string .
_:b17
sp:varName "productNameRef"^^xsd:string .
_:b11
sp:varName "normalizedProductionFlowsName"^^xsd:string .
_:b16
sp:varName "product"^^xsd:string .
_:b10
sp:varName "dTimEnd"^^xsd:string .
_:b9 sp:varName "dTimStart"^^xsd:string .
_:b8 sp:varName "productionFlowsName"^^xsd:string .
_:b15
sp:varName "flow"^^xsd:string .
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b14
sp:varName "facilityNameRef"^^xsd:string .
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b12
sp:varName "productionFlow"^^xsd:string .
_:b23
sp:varName "normalizedFlowName"^^xsd:string .
_:b13
sp:varName "facility"^^xsd:string .
sp:varName "productionFacility"^^xsd:string .
_:b6 sp:varName "facilityRef"^^xsd:string .
_:b22
sp:varName "normalizedFacilityName"^^xsd:string .
_:b7 sp:varName "facilityNameRef"^^xsd:string .
_:b21
sp:varName "flowKind"^^xsd:string .
_:b8 sp:varName "facilityName"^^xsd:string .
_:b16
sp:varName "flowName"^^xsd:string .
_:b9 sp:varName "flowRef"^^xsd:string .
_:b20
sp:varName "flowRef"^^xsd:string .
_:b5 sp:varName "flowName"^^xsd:string .
_:b19
sp:varName "facilityName"^^xsd:string .
_:b10
sp:varName "flowKind"^^xsd:string .
_:b18
sp:varName "facilityNameRef"^^xsd:string .
_:b11
sp:varName "normalizedFacilityName"^^xsd:string .
_:b17
sp:varName "facilityRef"^^xsd:string .
_:b2 sp:varName "productionFacility"^^xsd:string .
_:b41
sp:varName "productionFacilityType"^^xsd:string .
_:b12
sp:varName "normalizedFlowName"^^xsd:string .
_:b40
sp:varName "productionFacility"^^xsd:string .
_:b46
sp:varName "normalizedFacilityName"^^xsd:string .
_:b45
sp:varName "facilityKind"^^xsd:string .
_:b1 sp:varName "productionFlow"^^xsd:string .
_:b42
sp:varName "facilityName"^^xsd:string .
_:b3 sp:varName "productionFlowPurposeType"^^xsd:string .
_:b44
sp:varName "facilityNameRef"^^xsd:string .
_:b4 sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b43
sp:varName "facilityRef"^^xsd:string .
......