Holger Knublauch

Accelerated STEP 20104

# Saved by TopBraid on Fri Oct 14 17:24:41 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/production-facility
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://spinrdf.org/spin
# 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.reportinghub.no/ep/schema/1.0/production-facility
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.witsml.org/schemas/131/addendum/combo
@prefix : <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume#> .
......@@ -25,7 +24,7 @@
<http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-facility> , <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://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/production-facility> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/131/addendum/combo> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume>
......@@ -871,141 +870,42 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20104 record the product flows
namingSystem not processed"""^^xsd:string ;
sp:templates ([ sp:object _:b133 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject _:b134
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject _:b133
] [ sp:object _:b135 ;
sp:predicate rdf:type ;
sp:subject _:b133
] [ sp:object _:b136 ;
sp:predicate rdfs:label ;
sp:subject _:b133
] [ sp:object _:b133 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b137
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b137
] [ sp:object _:b137 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject _:b138
] [ sp:object _:b139 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b137
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
] [ sp:object _:b140 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b138
] [ sp:object _:b134 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b138
] [ sp:object _:b141 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b140 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b141
] [ sp:object _:b142 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject _:b140
] [ sp:object _:b139 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
sp:subject _:b140
] [ sp:object _:b140 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b138
] [ sp:object _:b134 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b138
] [ sp:object _:b143 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b139
] [ sp:object _:b144 ;
sp:predicate rdfs:label ;
sp:subject _:b135
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b145 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b139
] [ sp:object _:b136 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b145
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b142
] ;
sp:variable _:b146
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductType ;
sp:arg1 _:b143
] ;
sp:variable _:b135
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b144
] ;
sp:variable _:b147
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
sp:arg1 _:b146 ;
sp:arg2 _:b147
] ;
sp:variable _:b133
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20101k Set the facility operator- installation or context facility exist
role is ignored"""^^xsd:string ;
sp:templates ([ sp:object _:b148 ;
sp:templates ([ sp:object _:b133 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject _:b149
sp:subject _:b134
]) ;
sp:where ([ sp:object _:b150 ;
sp:where ([ sp:object _:b135 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#operatorRef> ;
sp:subject spin:_this
] [ sp:object _:b151 ;
] [ sp:object _:b136 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject _:b150
sp:subject _:b135
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b152
sp:subject _:b137
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b153
] [ sp:object _:b152 ;
sp:subject _:b138
] [ sp:object _:b137 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b153
] [ sp:object _:b149 ;
sp:subject _:b138
] [ sp:object _:b134 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b153
sp:subject _:b138
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b151
sp:arg1 _:b136
] ;
sp:variable _:b154
sp:variable _:b139
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyById ;
arg:id _:b154
arg:id _:b139
] ;
sp:variable _:b148
sp:variable _:b133
])
] ;
spin:rule
......@@ -1013,48 +913,48 @@ role is ignored"""^^xsd:string ;
rdfs:comment "STEP 20101b Link to the daily production activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#ProductionActivityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b155
] [ sp:object _:b156 ;
sp:subject _:b140
] [ sp:object _:b141 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#hasFlow> ;
sp:subject _:b155
sp:subject _:b140
]) ;
sp:where ([ sp:object _:b157 ;
sp:where ([ sp:object _:b142 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeSetRef> ;
sp:subject _:b158
sp:subject _:b143
] [ sp:object spin:_this ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productVolumeRef> ;
sp:subject _:b157
] [ sp:object _:b159 ;
sp:subject _:b142
] [ sp:object _:b144 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationSetRef> ;
sp:subject _:b158
] [ sp:object _:b160 ;
sp:subject _:b143
] [ sp:object _:b145 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productionOperationRef> ;
sp:subject _:b159
] [ sp:object _:b161 ;
sp:subject _:b144
] [ sp:object _:b146 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#installationRef> ;
sp:subject _:b160
] [ sp:object _:b162 ;
sp:subject _:b145
] [ sp:object _:b147 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b161
] [ sp:object _:b163 ;
sp:subject _:b146
] [ sp:object _:b148 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateEnd> ;
sp:subject _:b160
sp:subject _:b145
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b156
sp:subject _:b141
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b162
sp:arg1 _:b147
] ;
sp:variable _:b164
sp:variable _:b149
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionActivityToDateURI ;
sp:arg1 _:b164 ;
sp:arg2 _:b163
sp:arg1 _:b149 ;
sp:arg2 _:b148
] ;
sp:variable _:b155
sp:variable _:b140
])
] ;
spin:rule
......@@ -1071,7 +971,7 @@ It is not clear what the period kind refers to, because some of the data is \"to
sp:subject spin:_this
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b165 ;
sp:elements ([ sp:object _:b150 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodKindRef> ;
sp:subject spin:_this
])
......@@ -1083,7 +983,7 @@ It is not clear what the period kind refers to, because some of the data is \"to
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
sp:arg1 _:b165
sp:arg1 _:b150
] ;
sp:variable
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
......@@ -1094,160 +994,160 @@ It is not clear what the period kind refers to, because some of the data is \"to
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20103b record the related facility
nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ;
sp:templates ([ sp:object _:b166 ;
sp:predicate _:b167 ;
sp:subject _:b168
] [ sp:object _:b169 ;
sp:templates ([ sp:object _:b151 ;
sp:predicate _:b152 ;
sp:subject _:b153
] [ sp:object _:b154 ;
sp:predicate rdf:type ;
sp:subject _:b166
sp:subject _:b151
]) ;
sp:where ([ sp:object _:b170 ;
sp:where ([ sp:object _:b155 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b171 ;
] [ sp:object _:b156 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b170
] [ sp:object _:b172 ;
sp:subject _:b155
] [ sp:object _:b157 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject _:b171
] [ sp:object _:b173 ;
sp:subject _:b156
] [ sp:object _:b158 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b171
] [ sp:object _:b174 ;
sp:subject _:b156
] [ sp:object _:b159 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
sp:subject _:b171
] [ sp:object _:b175 ;
sp:subject _:b156
] [ sp:object _:b160 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b174
sp:subject _:b159
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b176 ;
sp:elements ([ sp:object _:b161 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b174
sp:subject _:b159
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b172
sp:arg1 _:b157
] ;
sp:variable _:b177
sp:variable _:b162
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b177
sp:arg1 _:b162
] ;
sp:variable _:b168
sp:variable _:b153
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b175
sp:arg1 _:b160
] ;
sp:variable _:b178
sp:variable _:b163
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b178
sp:arg1 _:b163
] ;
sp:variable _:b166
sp:variable _:b151
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b176
sp:arg1 _:b161
] ;
sp:variable _:b169
sp:variable _:b154
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b173
sp:arg1 _:b158
] ;
sp:variable _:b167
sp:variable _:b152
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20101g1 Set the geographic context - field"^^xsd:string ;
sp:templates ([ sp:object _:b179 ;
sp:templates ([ sp:object _:b164 ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b180
sp:subject _:b165
]) ;
sp:where ([ sp:object _:b181 ;
sp:where ([ sp:object _:b166 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ;
sp:subject spin:_this
] [ sp:object _:b182 ;
] [ sp:object _:b167 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fieldRef> ;
sp:subject _:b181
] [ sp:object _:b183 ;
sp:subject _:b166
] [ sp:object _:b168 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b182
sp:subject _:b167
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b184
sp:subject _:b169
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b185
] [ sp:object _:b184 ;
sp:subject _:b170
] [ sp:object _:b169 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b185
] [ sp:object _:b180 ;
sp:subject _:b170
] [ sp:object _:b165 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b185
sp:subject _:b170
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b183
sp:arg1 _:b168
] ;
sp:variable _:b186
sp:variable _:b171
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b186
sp:arg1 _:b171
] ;
sp:variable _:b179
sp:variable _:b164
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20101g2 Set the geographic context - country
generate a country URI to ensure that unwanted anonymous countries are not generated"""^^xsd:string ;
sp:templates ([ sp:object _:b187 ;
sp:templates ([ sp:object _:b172 ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b188
sp:subject _:b173
] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ;
sp:predicate rdf:type ;
sp:subject _:b187
] [ sp:object _:b189 ;
sp:subject _:b172
] [ sp:object _:b174 ;
sp:predicate rdfs:label ;
sp:subject _:b187
sp:subject _:b172
]) ;
sp:where ([ sp:object _:b190 ;
sp:where ([ sp:object _:b175 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ;
sp:subject spin:_this
] [ sp:object _:b189 ;
] [ sp:object _:b174 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#country> ;
sp:subject _:b190
sp:subject _:b175
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b191
sp:subject _:b176
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b192
] [ sp:object _:b191 ;
sp:subject _:b177
] [ sp:object _:b176 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b192
] [ sp:object _:b188 ;
sp:subject _:b177
] [ sp:object _:b173 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b192
sp:subject _:b177
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b189
sp:arg1 _:b174
] ;
sp:variable _:b193
sp:variable _:b178
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildCountryURI ;
sp:arg1 _:b193
sp:arg1 _:b178
] ;
sp:variable _:b187
sp:variable _:b172
])
] ;
spin:rule
......@@ -1255,203 +1155,343 @@ generate a country URI to ensure that unwanted anonymous countries are not gener
rdfs:comment "STEP 20101h1 Set the geographic context - field - installation or context facility do not exist"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b194
] [ sp:object _:b195 ;
sp:subject _:b179
] [ sp:object _:b180 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b194
sp:subject _:b179
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b195
] [ sp:object _:b196 ;
sp:subject _:b180
] [ sp:object _:b181 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b194
] [ sp:object _:b197 ;
sp:subject _:b179
] [ sp:object _:b182 ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b195
sp:subject _:b180
]) ;
sp:where ([ sp:object _:b198 ;
sp:where ([ sp:object _:b183 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ;
sp:subject spin:_this
] [ sp:object _:b199 ;
] [ sp:object _:b184 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#fieldRef> ;
sp:subject _:b198
] [ sp:object _:b200 ;
sp:subject _:b183
] [ sp:object _:b185 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b199
sp:subject _:b184
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b196
sp:subject _:b181
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b201
] [ sp:object _:b196 ;
sp:subject _:b186
] [ sp:object _:b181 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b201
sp:subject _:b186
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b200
sp:arg1 _:b185
] ;
sp:variable _:b202
sp:variable _:b187
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b202
sp:arg1 _:b187
] ;
sp:variable _:b197
sp:variable _:b182
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20101i Set the geographic context - offshore location - not done yet"^^xsd:string ;
sp:templates () ;
sp:where ([ sp:object _:b203 ;
sp:where ([ sp:object _:b188 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#geographicContextRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "offshoreLocationRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#offshoreLocationRef> ;
sp:subject _:b203
sp:subject _:b188
])
] .
_:b155
sp:varName "productionActivityToDate"^^xsd:string .
_:b156
sp:varName "productionFlowsToDate"^^xsd:string .
_:b157
sp:varName "productVolumeSet"^^xsd:string .
_:b158
sp:varName "root"^^xsd:string .
_:b159
sp:varName "productionOperationSetRef"^^xsd:string .
_:b160
sp:varName "productionOperationRef"^^xsd:string .
_:b161
sp:varName "installationRef"^^xsd:string .
_:b162
sp:varName "installationName"^^xsd:string .
_:b163
sp:varName "dTimEnd"^^xsd:string .
_:b164
sp:varName "normalizedInstallationName"^^xsd:string .
_:b179
sp:varName "field"^^xsd:string .
_:b180
sp:varName "productionInstallation"^^xsd:string .
_:b181
sp:varName "geographicContextRef"^^xsd:string .
_:b182
sp:varName "fieldRef"^^xsd:string .
_:b183
sp:varName "fieldName"^^xsd:string .
_:b184
sp:varName "productionFlowsToDate"^^xsd:string .
_:b185
sp:varName "productionFacilityToDate"^^xsd:string .
_:b186
sp:varName "normalizedFieldName"^^xsd:string .
_:b203
sp:varName "geographicContextRef"^^xsd:string .
_:b165
sp:varName "periodKindRef"^^xsd:string .
_:b148
sp:varName "operator"^^xsd:string .
_:b149
sp:varName "productionInstallation"^^xsd:string .
_:b150
sp:varName "operatorRef"^^xsd:string .
_:b151
sp:varName "operatorName"^^xsd:string .
_:b152
sp:varName "productionFlowsToDate"^^xsd:string .
_:b153
sp:varName "productionFacilityToDate"^^xsd:string .
_:b154
sp:varName "normalizedOperatorName"^^xsd:string .
_:b196
sp:varName "productionFlowsToDate"^^xsd:string .
_:b197
sp:varName "field"^^xsd:string .
_:b198
sp:varName "geographicContextRef"^^xsd:string .
_:b199
sp:varName "fieldRef"^^xsd:string .
_:b200
sp:varName "fieldName"^^xsd:string .
_:b201
sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
_:b202
sp:varName "normalizedFieldName"^^xsd:string .
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20104 record the product flows
namingSystem not processed"""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "productFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b189
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b189
] [ sp:object _:b189 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b189
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowName"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "productKind"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productNameRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "productNameRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "flowName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFlowName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductType ;
sp:arg1 [ sp:varName "productKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "productType"^^xsd:string
] ;
sp:arg2 rdfs:label
] ;
sp:variable
[ sp:varName "productTypeName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "productTypeName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedProductTypeName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string
] ;
sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productFlow"^^xsd:string
]
])
] .
_:b90
_:b1 sp:varName "productionActivityToDate"^^xsd:string .
_:b2 sp:varName "productionFlowsToDate"^^xsd:string .
_:b3 sp:varName "productVolumeSet"^^xsd:string .
_:b4 sp:varName "root"^^xsd:string .
_:b5 sp:varName "productionOperationSetRef"^^xsd:string .
_:b6 sp:varName "productionOperationRef"^^xsd:string .
_:b7 sp:varName "installationRef"^^xsd:string .
_:b8 sp:varName "installationName"^^xsd:string .
_:b9 sp:varName "dateEnd"^^xsd:string .
_:b10
sp:varName "normalizedInstallationName"^^xsd:string .
_:b11
sp:varName "productionFacility"^^xsd:string .
_:b12
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b13
sp:varName "productionFlow"^^xsd:string .
_:b14
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b15
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b16
sp:varName "flowName"^^xsd:string .
_:b18
sp:varName "productionFlowsToDate"^^xsd:string .
_:b91
sp:varName "productionFlowsName"^^xsd:string .
_:b19
sp:varName "flowRef"^^xsd:string .
_:b92
sp:varName "dateEnd"^^xsd:string .
_:b20
sp:varName "facilityRef"^^xsd:string .
_:b93
sp:varName "normalizedProductionFlowsName"^^xsd:string .
_:b21
sp:varName "facilityNameRef"^^xsd:string .
_:b187
sp:varName "country"^^xsd:string .
_:b22
sp:varName "facilityName"^^xsd:string .
_:b188
_:b23
sp:varName "flowKind"^^xsd:string .
_:b24
sp:varName "flowDirection"^^xsd:string .
_:b25
sp:varName "flowQualifier"^^xsd:string .
_:b26
sp:varName "normalizedFacilityName"^^xsd:string .
_:b27
sp:varName "normalizedFlowName"^^xsd:string .
_:b28
sp:varName "state"^^xsd:string .
_:b29
sp:varName "productionInstallation"^^xsd:string .
_:b189
sp:varName "countryName"^^xsd:string .
_:b30
sp:varName "stateName"^^xsd:string .
_:b190
_:b31
sp:varName "geographicContextRef"^^xsd:string .
_:b191
_:b32
sp:varName "productionFlowsToDate"^^xsd:string .
_:b192
_:b33
sp:varName "productionFacilityToDate"^^xsd:string .
_:b193
sp:varName "normalizedCountryName"^^xsd:string .
_:b34
sp:varName "normalizedStateName"^^xsd:string .
_:b37
sp:varName "productionFlowsToDate"^^xsd:string .
_:b38
sp:varName "state"^^xsd:string .
_:b39
sp:varName "stateName"^^xsd:string .
_:b40
sp:varName "geographicContextRef"^^xsd:string .
_:b41
sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
_:b42
sp:varName "normalizedStateName"^^xsd:string .
_:b45
sp:varName "operator"^^xsd:string .
......@@ -1492,51 +1532,99 @@ _:b56
_:b57
sp:varName "normalizedFacilityName"^^xsd:string .
_:b1 sp:varName "productionActivityToDate"^^xsd:string .
_:b59
sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
_:b2 sp:varName "productionFlowsToDate"^^xsd:string .
_:b60
sp:varName "productFlowToDate"^^xsd:string .
_:b3 sp:varName "productVolumeSet"^^xsd:string .
_:b61
sp:varName "endTime"^^xsd:string .
_:b4 sp:varName "root"^^xsd:string .
_:b63
sp:varName "relationshipToMeasure"^^xsd:string .
_:b5 sp:varName "productionOperationSetRef"^^xsd:string .
_:b64
sp:varName "realVolume"^^xsd:string .
_:b6 sp:varName "productionOperationRef"^^xsd:string .
_:b65
sp:varName "volumeScale"^^xsd:string .
_:b7 sp:varName "installationRef"^^xsd:string .
_:b67
sp:varName "volumeStdType"^^xsd:string .
_:b8 sp:varName "installationName"^^xsd:string .
_:b68
sp:varName "realVolumeStd"^^xsd:string .
_:b9 sp:varName "dateEnd"^^xsd:string .
_:b69
sp:varName "volumeStdScale"^^xsd:string .
_:b10
sp:varName "normalizedInstallationName"^^xsd:string .
_:b70
sp:varName "standardTempPres"^^xsd:string .
_:b106
_:b71
sp:varName "facilityRef"^^xsd:string .
_:b72
sp:varName "flowRef"^^xsd:string .
_:b73
sp:varName "productRef"^^xsd:string .
_:b74
sp:varName "periodRef"^^xsd:string .
_:b75
sp:varName "periodKindRef"^^xsd:string .
_:b76
sp:varName "volumeRef"^^xsd:string .
_:b77
sp:varName "uomVolume"^^xsd:string .
_:b78
sp:varName "volumeStdRef"^^xsd:string .
_:b79
sp:varName "uomVolumeStd"^^xsd:string .
_:b82
sp:varName "productionFlowsToDate"^^xsd:string .
_:b83
sp:varName "productionContextFacility"^^xsd:string .
_:b107
_:b84
sp:varName "productionContextFacilityType"^^xsd:string .
_:b108
_:b85
sp:varName "contextFacilityRef"^^xsd:string .
_:b109
_:b86
sp:varName "contextFacilityName"^^xsd:string .
_:b110
_:b87
sp:varName "contextFacilityKind"^^xsd:string .
_:b111
sp:varName "productionFlowsToDate"^^xsd:string .
_:b112
_:b88
sp:varName "productionFacilityToDate"^^xsd:string .
_:b113
_:b89
sp:varName "normalizedContextFacilityName"^^xsd:string .
_:b90
sp:varName "productionFlowsToDate"^^xsd:string .
_:b91
sp:varName "productionFlowsName"^^xsd:string .
_:b92
sp:varName "dateEnd"^^xsd:string .
_:b93
sp:varName "normalizedProductionFlowsName"^^xsd:string .
_:b94
sp:varName "productionFlowsToDate"^^xsd:string .
......@@ -1567,68 +1655,29 @@ _:b104
_:b105
sp:varName "normalizedCountryName"^^xsd:string .
_:b82
sp:varName "productionFlowsToDate"^^xsd:string .
_:b83
_:b106
sp:varName "productionContextFacility"^^xsd:string .
_:b84
_:b107
sp:varName "productionContextFacilityType"^^xsd:string .
_:b85
_:b108
sp:varName "contextFacilityRef"^^xsd:string .
_:b86
_:b109
sp:varName "contextFacilityName"^^xsd:string .
_:b87
_:b110
sp:varName "contextFacilityKind"^^xsd:string .
_:b88
sp:varName "productionFacilityToDate"^^xsd:string .
_:b89
sp:varName "normalizedContextFacilityName"^^xsd:string .
_:b28
sp:varName "state"^^xsd:string .
_:b29
sp:varName "productionInstallation"^^xsd:string .
_:b30
sp:varName "stateName"^^xsd:string .
_:b31
sp:varName "geographicContextRef"^^xsd:string .
_:b32
sp:varName "productionFlowsToDate"^^xsd:string .
_:b33
sp:varName "productionFacilityToDate"^^xsd:string .
_:b34
sp:varName "normalizedStateName"^^xsd:string .
_:b37
sp:varName "productionFlowsToDate"^^xsd:string .
_:b38
sp:varName "state"^^xsd:string .
_:b39
sp:varName "stateName"^^xsd:string .
_:b40
sp:varName "geographicContextRef"^^xsd:string .
_:b111
sp:varName "productionFlowsToDate"^^xsd:string .
_:b41
sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
_:b112
sp:varName "productionFacilityToDate"^^xsd:string .
_:b42
sp:varName "normalizedStateName"^^xsd:string .
_:b113
sp:varName "normalizedContextFacilityName"^^xsd:string .
_:b115
sp:varName "productionInstallation"^^xsd:string .
......@@ -1651,218 +1700,194 @@ _:b120
_:b121
sp:varName "normalizedInstallationName"^^xsd:string .
_:b70
sp:varName "standardTempPres"^^xsd:string .
_:b71
sp:varName "facilityRef"^^xsd:string .
_:b72
sp:varName "flowRef"^^xsd:string .
_:b73
sp:varName "productRef"^^xsd:string .
_:b60
sp:varName "productFlowToDate"^^xsd:string .
_:b74
sp:varName "periodRef"^^xsd:string .
_:b75
sp:varName "periodKindRef"^^xsd:string .
_:b61
sp:varName "endTime"^^xsd:string .
_:b76
sp:varName "volumeRef"^^xsd:string .
_:b64
sp:varName "realVolume"^^xsd:string .
_:b77
sp:varName "uomVolume"^^xsd:string .
_:b78
sp:varName "volumeStdRef"^^xsd:string .
_:b68
sp:varName "realVolumeStd"^^xsd:string .
_:b79
sp:varName "uomVolumeStd"^^xsd:string .
_:b63
sp:varName "relationshipToMeasure"^^xsd:string .
_:b59
sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
_:b67
sp:varName "volumeStdType"^^xsd:string .
_:b65
sp:varName "volumeScale"^^xsd:string .
_:b123
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b69
sp:varName "volumeStdScale"^^xsd:string .
_:b124
sp:varName "productionFlow"^^xsd:string .
_:b18
sp:varName "productionFlowsToDate"^^xsd:string .
_:b125
sp:varName "relatedFacilityType"^^xsd:string .
_:b20
_:b126
sp:varName "facilityRef"^^xsd:string .
_:b21
sp:varName "facilityNameRef"^^xsd:string .
_:b22
sp:varName "facilityName"^^xsd:string .
_:b19
_:b127
sp:varName "flowRef"^^xsd:string .
_:b16
_:b128
sp:varName "flowName"^^xsd:string .
_:b23
sp:varName "flowKind"^^xsd:string .
_:b24
_:b129
sp:varName "flowDirection"^^xsd:string .
_:b25
sp:varName "flowQualifier"^^xsd:string .
_:b26
sp:varName "normalizedFacilityName"^^xsd:string .
_:b130
sp:varName "relatedFacilityRef"^^xsd:string .
_:b11
sp:varName "productionFacility"^^xsd:string .
_:b131
sp:varName "relatedFacilityKind"^^xsd:string .
_:b27
_:b132
sp:varName "normalizedFlowName"^^xsd:string .
_:b13
sp:varName "productionFlow"^^xsd:string .
_:b133
sp:varName "operator"^^xsd:string .
_:b14
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b134
sp:varName "productionInstallation"^^xsd:string .
_:b15
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b135
sp:varName "operatorRef"^^xsd:string .
_:b12
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b136
sp:varName "operatorName"^^xsd:string .
_:b137
sp:varName "productionFlowsToDate"^^xsd:string .
_:b138
sp:varName "productionFlowToDate"^^xsd:string .
sp:varName "productionFacilityToDate"^^xsd:string .
_:b140
sp:varName "flowRef"^^xsd:string .
_:b139
sp:varName "normalizedOperatorName"^^xsd:string .
_:b134
sp:varName "productionFlow"^^xsd:string .
_:b140
sp:varName "productionActivityToDate"^^xsd:string .
_:b141
sp:varName "facilityRef"^^xsd:string .
sp:varName "productionFlowsToDate"^^xsd:string .
_:b142
sp:varName "flowName"^^xsd:string .
_:b139
sp:varName "productRef"^^xsd:string .
sp:varName "productVolumeSet"^^xsd:string .
_:b143
sp:varName "productKind"^^xsd:string .
_:b135
sp:varName "productType"^^xsd:string .
sp:varName "root"^^xsd:string .
_:b144
sp:varName "productTypeName"^^xsd:string .
sp:varName "productionOperationSetRef"^^xsd:string .
_:b145
sp:varName "productNameRef"^^xsd:string .
_:b136
sp:varName "productFlowName"^^xsd:string .
sp:varName "productionOperationRef"^^xsd:string .
_:b146
sp:varName "normalizedFlowName"^^xsd:string .
sp:varName "installationRef"^^xsd:string .
_:b147
sp:varName "normalizedProductTypeName"^^xsd:string .
sp:varName "installationName"^^xsd:string .
_:b133
sp:varName "productFlow"^^xsd:string .
_:b148
sp:varName "dTimEnd"^^xsd:string .
_:b126
_:b149
sp:varName "normalizedInstallationName"^^xsd:string .
_:b150
sp:varName "periodKindRef"^^xsd:string .
_:b151
sp:varName "relatedFacility"^^xsd:string .
_:b152
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b153
sp:varName "productionFlow"^^xsd:string .
_:b154
sp:varName "relatedFacilityType"^^xsd:string .
_:b155
sp:varName "facilityRef"^^xsd:string .
_:b127
_:b156
sp:varName "flowRef"^^xsd:string .
_:b128
_:b157
sp:varName "flowName"^^xsd:string .
_:b129
_:b158
sp:varName "flowDirection"^^xsd:string .
_:b130
_:b159
sp:varName "relatedFacilityRef"^^xsd:string .
_:b131
_:b160
sp:varName "relatedFacilityName"^^xsd:string .
_:b161
sp:varName "relatedFacilityKind"^^xsd:string .
_:b132
_:b162
sp:varName "normalizedFlowName"^^xsd:string .
_:b124
sp:varName "productionFlow"^^xsd:string .
_:b163
sp:varName "normalizedRelatedFacilityName"^^xsd:string .
_:b125
sp:varName "relatedFacilityType"^^xsd:string .
_:b164
sp:varName "field"^^xsd:string .
_:b123
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b165
sp:varName "productionInstallation"^^xsd:string .
_:b166
sp:varName "geographicContextRef"^^xsd:string .
_:b167
sp:varName "fieldRef"^^xsd:string .
_:b168
sp:varName "fieldName"^^xsd:string .
_:b169
sp:varName "productionFlowsToDate"^^xsd:string .
_:b170
sp:varName "facilityRef"^^xsd:string .
sp:varName "productionFacilityToDate"^^xsd:string .
_:b171
sp:varName "flowRef"^^xsd:string .
sp:varName "normalizedFieldName"^^xsd:string .
_:b172
sp:varName "flowName"^^xsd:string .
sp:varName "country"^^xsd:string .
_:b173
sp:varName "flowDirection"^^xsd:string .
sp:varName "productionInstallation"^^xsd:string .
_:b174
sp:varName "relatedFacilityRef"^^xsd:string .
sp:varName "countryName"^^xsd:string .
_:b175
sp:varName "relatedFacilityName"^^xsd:string .
sp:varName "geographicContextRef"^^xsd:string .
_:b176
sp:varName "relatedFacilityKind"^^xsd:string .
sp:varName "productionFlowsToDate"^^xsd:string .
_:b177
sp:varName "normalizedFlowName"^^xsd:string .
_:b168
sp:varName "productionFlow"^^xsd:string .
sp:varName "productionFacilityToDate"^^xsd:string .
_:b178
sp:varName "normalizedRelatedFacilityName"^^xsd:string .
sp:varName "normalizedCountryName"^^xsd:string .
_:b166
sp:varName "relatedFacility"^^xsd:string .
_:b181
sp:varName "productionFlowsToDate"^^xsd:string .
_:b169
sp:varName "relatedFacilityType"^^xsd:string .
_:b182
sp:varName "field"^^xsd:string .
_:b167
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b183
sp:varName "geographicContextRef"^^xsd:string .
_:b184
sp:varName "fieldRef"^^xsd:string .
_:b185
sp:varName "fieldName"^^xsd:string .
_:b186
sp:varName "temporalPartOfAProductionFacility"^^xsd:string .
_:b187
sp:varName "normalizedFieldName"^^xsd:string .
_:b188
sp:varName "geographicContextRef"^^xsd:string .
......