David Leal

Fixed Production facility, production flow and product flow URIs for DPR and MPR…

…. Made small addition to geography schema.
# Saved by TopBraid on Sun Dec 18 21:34:11 GMT 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/geography
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
# imports: http://www.reportinghub.no/np/schema/1.0/npd
# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> .
......@@ -14,11 +15,11 @@
<http://www.reportinghub.no/ep/schema/1.0/geography>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/production-core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-core:Area
rdf:type ep-core:PropertySpace , rdfs:Class ;
rdf:type rdfs:Class , ep-core:PropertySpace ;
rdfs:label "Compressibility"^^xsd:string ;
rdfs:subClassOf owl:Class .
......@@ -38,22 +39,22 @@ ep-core:licenceBlockHasNpdPolygonPart
rdfs:subPropertyOf ep-core:hasPart .
ep-geo:AreaCoveredByBusinessArrangement
rdf:type ep-fac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-fac:ProductionFacilityType ;
rdfs:label "A part of the earth recognised in a Business Arrangement"^^xsd:string ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:LicenceBlock , ep-geo:State , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country .
owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:State , ep-geo:LicenceBlock .
ep-geo:Country
rdf:type owl:Class , ep-fac:ProductionFacilityType ;
rdf:type ep-fac:ProductionFacilityType , owl:Class ;
rdfs:label "country"^^xsd:string ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:State .
owl:disjointWith ep-geo:State , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement .
ep-geo:County
rdf:type owl:Class , ep-fac:ProductionFacilityType ;
rdf:type ep-fac:ProductionFacilityType , owl:Class ;
rdfs:label "county"^^xsd:string ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:State , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country .
owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:State , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement .
ep-geo:LicenceBlock
rdf:type owl:Class , ep-fac:ProductionFacilityType ;
......@@ -62,10 +63,15 @@ ep-geo:LicenceBlock
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:Country , ep-geo:State , ep-geo:County , ep-geo:AreaCoveredByBusinessArrangement , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon .
ep-geo:OffshoreLocation
rdf:type owl:Class ;
rdfs:label "offshore location"^^xsd:string ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth .
ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon
rdf:type owl:Class ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:Country , ep-geo:State .
owl:disjointWith ep-geo:State , ep-geo:Country , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement .
ep-geo:PartOfTheSurfaceOfTheEarth
rdf:type owl:Class ;
......@@ -73,10 +79,10 @@ ep-geo:PartOfTheSurfaceOfTheEarth
rdfs:subClassOf ep-core:PhysicalObject .
ep-geo:State
rdf:type owl:Class , ep-fac:ProductionFacilityType ;
rdf:type ep-fac:ProductionFacilityType , owl:Class ;
rdfs:label "state"^^xsd:string ;
rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
owl:disjointWith ep-geo:AreaCoveredByBusinessArrangement , ep-geo:LicenceBlock , ep-geo:County , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:Country .
owl:disjointWith ep-geo:Country , ep-geo:PartOfSurfaceOfTheEarthSpecifiedAsPolygon , ep-geo:County , ep-geo:LicenceBlock , ep-geo:AreaCoveredByBusinessArrangement .
ep-geo:areaOnSurfaceOfEarth
rdf:type owl:ObjectProperty ;
......@@ -88,6 +94,31 @@ ep-geo:businessArrangementGoverningArea
rdfs:domain ep-geo:AreaCoveredByBusinessArrangement ;
rdfs:range <http://www.reportinghub.no/np/schema/npd#BusinessArrangementArea> .
ep-geo:hasAreaName
rdf:type owl:DatatypeProperty ;
rdfs:domain ep-geo:OffshoreLocation ;
rdfs:label "has area name"^^xsd:string .
ep-geo:hasNorthSeaAreaName
rdf:type owl:DatatypeProperty ;
rdfs:domain ep-geo:OffshoreLocation ;
rdfs:label "has North Sea area name"^^xsd:string .
ep-geo:hasNorthSeaBlockSuffixId
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:domain ep-geo:OffshoreLocation ;
rdfs:label "has North Sea block suffix ID"^^xsd:string .
ep-geo:hasNorthSeaQuadrantId
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:domain ep-geo:OffshoreLocation ;
rdfs:label "has North Sea quadrant ID"^^xsd:string .
ep-geo:hasOffshoreLocationComment
rdf:type owl:DatatypeProperty ;
rdfs:domain ep-geo:OffshoreLocation ;
rdfs:label "has offshore location comment"^^xsd:string .
ep-geo:locatedWithin
rdf:type owl:ObjectProperty ;
rdfs:domain ep-core:PhysicalThing ;
......
# Saved by TopBraid on Fri Dec 16 17:30:20 GMT 2011
# Saved by TopBraid on Sun Dec 18 18:59:30 GMT 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/production
......@@ -49,7 +49,7 @@ sp:if
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
rdf:type owl:Ontology ;
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> ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-dpr-spin-lib:BuildDailyProductionReportURI
......@@ -362,9 +362,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b13
......@@ -5518,22 +5516,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b28) ;
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#VPVU_m3m3>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b28
])
] ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "myVar"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
......@@ -5613,6 +5595,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
[ sp:varName "myVar"^^xsd:string
]
])
] ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b28) ;
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#VPVU_m3m3>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b28
])
] .
ep-dpr-spin-lib:selectTemperatureScale
......
# Saved by TopBraid on Fri Dec 16 17:30:20 GMT 2011
# Saved by TopBraid on Sun Dec 18 18:59:31 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Fri Dec 16 17:56:20 GMT 2011
# Saved by TopBraid on Sun Dec 18 21:08:09 GMT 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
......@@ -13,7 +13,9 @@
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@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#> .
......@@ -32,497 +34,447 @@
<http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ;
rdfs:comment """STEP 20104 record the product flows
namingSystem not processed"""^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate _:b2 ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject _:b1
]) ;
sp:where ([ sp:object _:b5 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b6 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
] [ sp:object _:b3 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b4 ;
sp:predicate rdfs:label ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b5
] [ sp:object _:b7 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b5
]) ;
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 _:b8 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b9 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b8
] [ sp:object _:b7 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
sp:subject _:b9
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b6
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b6
] [ sp:object _:b10 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
sp:subject _:b8
] [ sp:object _:b11 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b7
] ;
sp:variable _:b12
sp:subject _:b7
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b11 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b7
] [ sp:object _:b4 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b11
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 [ sp:varName "flowKind"^^xsd:string
]
[ rdf:type ep-dpr-spin-lib:selectProductType ;
sp:arg1 _:b10
] ;
sp:variable _:b13
sp:variable _:b3
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 _:b13 ;
sp:arg1 _:b3 ;
sp:arg2 rdfs:label
] ;
sp:variable _:b14
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b12 ;
sp:arg2 _:b14
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b12
] ;
sp:variable _:b3
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b11
[ rdf:type spl:object ;
sp:arg1 _:b9 ;
sp:arg2 rdfs:label
] ;
sp:variable _:b4
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b9
[ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
sp:arg1 _:b14 ;
sp:arg2 _:b13
] ;
sp:variable _:b2
sp:variable _:b1
])
] ;
spin:rule
[ 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 _:b15 ;
sp:predicate _:b16 ;
sp:subject _:b17
] [ sp:object _:b18 ;
rdfs:comment """STEP 20102c Record the Facility that has the flows - kind is not \"well\", facilityParent1 is supplied, but not facilityParent2.
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 _:b15
] [ sp:object _:b16 ;
sp:predicate rdfs:label ;
sp:subject _:b15
] [ sp:object _:b17 ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b15
] [ sp:object _:b16 ;
sp:predicate rdfs:label ;
sp:subject _:b18
]) ;
sp:where ([ sp:object _:b19 ;
sp:where ([ sp:object _:b18 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b20 ;
] [ sp:object _:b19 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b18
] [ sp:object _:b20 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b19
] [ sp:object _:b21 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b20
] [ sp:object _:b22 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b19
] [ sp:object _:b23 ;
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.witsml.org/schemas/131/addendum/combo#RF_well> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b22
] [ sp:object _:b24 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b22
] [ sp:object _:b25 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
sp:subject _:b22
] [ sp:object _:b26 ;
sp:subject _:b19
])
] [ sp:object _:b22 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityParent1Ref> ;
sp:subject _:b18
] [ sp:object _:b23 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b25
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b27 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b25
sp:subject _:b22
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "facilityParent2Ref"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityParent2Ref> ;
sp:subject _:b18
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b21
sp:arg1 _:b20
] ;
sp:variable _:b28
sp:variable _:b24
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b23
] ;
sp:variable _:b29
sp:variable _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 _:b29 ;
sp:arg2 rdfs:label
[ rdf:type fn:concat ;
sp:arg1 _:b25 ;
sp:arg2 "$" ;
sp:arg3 _:b24
] ;
sp:variable _:b30
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b28 ;
sp:arg2 _:b30
] ;
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b26
] ;
sp:variable _:b31
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b31
sp:arg1 _:b16
] ;
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b27
] ;
sp:variable _:b18
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b24
sp:arg1 _:b21
] ;
sp:variable _:b16
sp:variable _:b17
])
] ;
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
] ;
rdfs:comment """STEP 20102b Record the Facility that has the flows - kind is not \"well\" and facilityParent1 is not supplied
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
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowName"^^xsd:string
] ;
sp:subject _:b26
] [ sp:object _:b27 ;
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 _:b32
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
sp:subject _:b26
] [ sp:object _:b28 ;
sp:predicate rdf:type ;
sp:subject _:b32
] [ sp:object _:b32 ;
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:subject _:b26
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b32
sp:subject _:b26
] [ sp:object _:b27 ;
sp:predicate rdfs:label ;
sp:subject _:b29
]) ;
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:where ([ sp:object _:b29 ;
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:object _:b30 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b29
] [ sp:object _:b31 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b30
] [ sp:object _:b32 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:subject _:b30
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.witsml.org/schemas/131/addendum/combo#RF_well> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b30
])
] [ rdf:type sp:NotExists ;
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:varName "facilityParent1Ref"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "productNameRef"^^xsd:string
]
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityParent1Ref> ;
sp:subject _:b29
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductType ;
sp:arg1 [ sp:varName "productKind"^^xsd:string
]
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b31
] ;
sp:variable
[ sp:varName "productType"^^xsd:string
]
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "productType"^^xsd:string
] ;
sp:arg2 rdfs:label
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b27
] ;
sp:variable
[ sp:varName "productTypeName"^^xsd:string
]
sp:variable _:b26
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "productTypeName"^^xsd:string
]
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b32
] ;
sp:variable
[ sp:varName "normalizedProductTypeName"^^xsd:string
]
sp:variable _:b28
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20102a Record the Facility that has the flows - kind is \"well\"
Nothing is done with the namingSystem!"""^^xsd:string ;
sp:templates ([ sp:object _:b33 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b34
] [ sp:object _:b35 ;
sp:predicate rdfs:label ;
sp:subject _:b33
]) ;
sp:where ([ sp:object _:b33 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b36 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b33
] [ sp:object _:b37 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b36
] [ sp:object <http://www.witsml.org/schemas/131/addendum/combo#RF_well> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b36
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "flowName"^^xsd:string
]
sp:arg1 _:b37
] ;
sp:variable
[ sp:varName "normalizedFlowName"^^xsd:string
]
sp:variable _:b35
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string
[ rdf:type rhspin:wellByName ;
arg:wellName _:b37
] ;
sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productFlow"^^xsd:string
]
sp:variable _:b34
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20103a record the flows"^^xsd:string ;
sp:templates ([ sp:object _:b33 ;
sp:predicate _:b34 ;
sp:subject _:b35
sp:templates ([ sp:object _:b38 ;
sp:predicate _:b39 ;
sp:subject _:b40
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b36 ;
sp:subject _:b40
] [ sp:object _:b41 ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b37 ;
sp:subject _:b40
] [ sp:object _:b42 ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b38 ;
sp:subject _:b40
] [ sp:object _:b43 ;
sp:predicate rdfs:label ;
sp:subject _:b35
] [ sp:object _:b35 ;
sp:subject _:b40
] [ sp:object _:b40 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b39
sp:subject _:b44
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b39
] [ sp:object _:b39 ;
sp:subject _:b44
] [ sp:object _:b44 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject _:b40
] [ sp:object _:b41 ;
sp:subject _:b45
] [ sp:object _:b46 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b39
sp:subject _:b44
] [ sp:object _:b47 ;
sp:predicate rdfs:label ;
sp:subject _:b46
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b42
] [ sp:object _:b40 ;
sp:subject _:b48
] [ sp:object _:b45 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b42
sp:subject _:b48
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b40
] [ sp:object _:b43 ;
sp:subject _:b45
] [ sp:object _:b49 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b44 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b43
] [ sp:object _:b45 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b44
] [ sp:object _:b41 ;
] [ sp:object _:b49 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b38
] [ sp:object _:b46 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b43
] [ sp:object _:b38 ;
sp:subject _:b49
] [ sp:object _:b43 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject _:b41
] [ sp:object _:b46 ;
sp:subject _:b46
] [ sp:object _:b50 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b41
] [ sp:object _:b47 ;
sp:subject _:b46
] [ sp:object _:b51 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b41
sp:subject _:b46
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b48 ;
sp:elements ([ sp:object _:b52 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
sp:subject _:b41
sp:subject _:b46
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b45
[ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 _:b50
] ;
sp:variable _:b49
sp:variable _:b41
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b49
[ rdf:type spl:object ;
sp:arg1 _:b41 ;
sp:arg2 rdfs:label
] ;
sp:variable _:b33
sp:variable _:b53
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 _:b46
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b53
] ;
sp:variable _:b36
sp:variable _:b54
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 _:b36 ;
sp:arg1 _:b49 ;
sp:arg2 rdfs:label
] ;
sp:variable _:b50
sp:variable _:b55
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 _:b55 ;
sp:arg2 "$" ;
sp:arg3 _:b54
] ;
sp:variable _:b47
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b49 ;
sp:arg2 _:b50
sp:arg1 _:b47
] ;
sp:variable _:b35
sp:variable _:b40
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ;
sp:arg1 _:b48
sp:arg1 _:b52
] ;
sp:variable _:b37
sp:variable _:b42
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
sp:arg1 _:b47
sp:arg1 _:b51
] ;
sp:variable _:b34
sp:variable _:b39
])
] ;
spin:rule
[ rdf:type sp:Construct ;
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 _:b51
] [ sp:object _:b52 ;
rdfs:comment "STEP 20103c record the related facility - only its kind is specified"^^xsd:string ;
sp:templates ([ sp:object _:b56 ;
sp:predicate _:b57 ;
sp:subject _:b58
] [ sp:object _:b59 ;
sp:predicate rdf:type ;
sp:subject _:b51
sp:subject _:b56
]) ;
sp:where ([ sp:object _:b53 ;
sp:where ([ sp:object _:b60 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b54 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b53
] [ sp:object _:b55 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b54
] [ 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 _:b54
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b56 ;
] [ sp:object _:b61 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b60
] [ sp:object _:b61 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b62
] [ sp:object _:b58 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b62
] [ sp:object _:b63 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b61
] [ sp:object _:b64 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
sp:subject _:b61
] [ sp:object _:b65 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b54
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b55
] ;
sp:variable _:b57
sp:subject _:b64
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b57
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b65
] ;
sp:variable _:b51
sp:variable _:b59
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b56
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b63
] ;
sp:variable _:b52
sp:variable _:b57
])
] ;
spin:rule
......@@ -530,54 +482,54 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
rdfs:comment "STEP 20105 record the temporal parts of product flows"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ;
sp:predicate rdf:type ;
sp:subject _:b58
sp:subject _:b66
] [ sp:object
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b58
sp:subject _:b66
] [ sp:object
[ sp:varName "productFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b58
sp:subject _:b66
] [ sp:object
[ sp:varName "endTime"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b58
] [ sp:object _:b59 ;
sp:subject _:b66
] [ sp:object _:b67 ;
sp:predicate
[ sp:varName "relationshipToMeasure"^^xsd:string
] ;
sp:subject _:b58
sp:subject _:b66
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b59
sp:subject _:b67
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b59
] [ sp:object _:b60 ;
sp:subject _:b67
] [ sp:object _:b68 ;
sp:predicate
[ sp:varName "relationshipToMeasure"^^xsd:string
] ;
sp:subject _:b58
sp:subject _:b66
] [ sp:object
[ sp:varName "volumeStdType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b60
sp:subject _:b68
] [ sp:object
[ sp:varName "realVolumeStd"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeStdScale"^^xsd:string
] ;
sp:subject _:b60
sp:subject _:b68
]) ;
sp:where ([ sp:object
[ sp:varName "standardTempPres"^^xsd:string
......@@ -665,216 +617,480 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
] [ sp:object
[ sp:varName "realVolumeStd"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "volumeStdRef"^^xsd:string
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "volumeStdRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolumeStd"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
sp:subject
[ sp:varName "volumeStdRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "relationshipToMeasure"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ;
sp:arg1 [ sp:varName "standardTempPres"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeStdType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolumeStd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeStdScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20102d Record the Facility that has the flows - kind is not \"well\", facilityParent1 and facilityParent2 are supplied.
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 _:b69
] [ sp:object _:b70 ;
sp:predicate rdfs:label ;
sp:subject _:b69
] [ sp:object _:b71 ;
sp:predicate rdf:type ;
sp:subject _:b69
] [ sp:object _:b72 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b69
] [ sp:object _:b70 ;
sp:predicate rdfs:label ;
sp:subject _:b72
]) ;
sp:where ([ sp:object _:b72 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b73 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b72
] [ sp:object _:b74 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b73
] [ sp:object _:b75 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b73
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.witsml.org/schemas/131/addendum/combo#RF_well> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b73
])
] [ sp:object _:b76 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityParent1Ref> ;
sp:subject _:b72
] [ sp:object _:b77 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b76
] [ sp:object _:b78 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityParent2Ref> ;
sp:subject _:b72
] [ sp:object _:b79 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b78
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b74
] ;
sp:variable _:b80
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b77
] ;
sp:variable _:b81
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b79
] ;
sp:variable
[ sp:varName "normalizedFacilityParent2Name"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolumeStd"^^xsd:string
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 _:b81 ;
sp:arg2 "$" ;
sp:arg3 _:b81 ;
sp:arg4 "$" ;
sp:arg5 _:b80
] ;
sp:variable _:b70
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b70
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
sp:subject
[ sp:varName "volumeStdRef"^^xsd:string
]
sp:variable _:b69
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b75
] ;
sp:variable _:b71
])
] ;
spin:rule
[ 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 _:b82 ;
sp:predicate _:b83 ;
sp:subject _:b84
] [ sp:object _:b85 ;
sp:predicate rdf:type ;
sp:subject _:b82
]) ;
sp:where ([ sp:object _:b86 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b87 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b86
] [ sp:object _:b87 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b88
] [ sp:object _:b84 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b88
] [ sp:object _:b89 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b87
] [ sp:object _:b90 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
sp:subject _:b87
] [ sp:object _:b91 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b90
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b92 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b90
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "relationshipToMeasure"^^xsd:string
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b91
] ;
sp:variable
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
]
sp:variable _:b93
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectVolumeAtStandardTemperaturePressureType ;
sp:arg1 [ sp:varName "standardTempPres"^^xsd:string
]
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b93
] ;
sp:variable
[ sp:varName "volumeStdType"^^xsd:string
]
sp:variable _:b82
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b92
] ;
sp:variable
[ sp:varName "volumeScale"^^xsd:string
]
sp:variable _:b85
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolumeStd"^^xsd:string
]
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b89
] ;
sp:variable
[ sp:varName "volumeStdScale"^^xsd:string
]
sp:variable _:b83
])
] .
_:b51
sp:varName "productionFacility"^^xsd:string .
_:b82
sp:varName "relatedFacility"^^xsd:string .
_:b52
sp:varName "productionFacilityType"^^xsd:string .
_:b83
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b53
_:b84
sp:varName "productionFlow"^^xsd:string .
_:b85
sp:varName "relatedFacilityType"^^xsd:string .
_:b86
sp:varName "facilityRef"^^xsd:string .
_:b54
sp:varName "facilityNameRef"^^xsd:string .
_:b87
sp:varName "flowRef"^^xsd:string .
_:b55
sp:varName "facilityName"^^xsd:string .
_:b88
sp:varName "productionFlowToDate"^^xsd:string .
_:b56
sp:varName "facilityKind"^^xsd:string .
_:b89
sp:varName "flowDirection"^^xsd:string .
_:b57
sp:varName "normalizedFacilityName"^^xsd:string .
_:b90
sp:varName "relatedFacilityRef"^^xsd:string .
_:b42
sp:varName "dailyProductionFlows"^^xsd:string .
_:b91
sp:varName "relatedFacilityName"^^xsd:string .
_:b40
sp:varName "productionFlowsToDate"^^xsd:string .
_:b92
sp:varName "relatedFacilityKind"^^xsd:string .
_:b43
_:b93
sp:varName "normalizedRelatedFacilityName"^^xsd:string .
_:b33
sp:varName "facilityRef"^^xsd:string .
_:b44
_:b36
sp:varName "facilityNameRef"^^xsd:string .
_:b45
_:b37
sp:varName "facilityName"^^xsd:string .
_:b41
sp:varName "flowRef"^^xsd:string .
_:b35
sp:varName "normalizedFacilityName"^^xsd:string .
_:b38
sp:varName "flowName"^^xsd:string .
_:b34
sp:varName "productionFacility"^^xsd:string .
_:b46
sp:varName "flowKind"^^xsd:string .
_:b29
sp:varName "facilityRef"^^xsd:string .
_:b47
sp:varName "flowDirection"^^xsd:string .
_:b30
sp:varName "facilityNameRef"^^xsd:string .
_:b48
sp:varName "flowQualifier"^^xsd:string .
_:b31
sp:varName "facilityName"^^xsd:string .
_:b49
_:b32
sp:varName "facilityKind"^^xsd:string .
_:b27
sp:varName "normalizedFacilityName"^^xsd:string .
_:b33
_:b26
sp:varName "productionFacility"^^xsd:string .
_:b36
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b50
sp:varName "productionFlowPurposeTypeName"^^xsd:string .
_:b35
sp:varName "productionFlow"^^xsd:string .
_:b37
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b28
sp:varName "productionFacilityType"^^xsd:string .
_:b34
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b18
sp:varName "facilityRef"^^xsd:string .
_:b19
sp:varName "facilityRef"^^xsd:string .
sp:varName "facilityNameRef"^^xsd:string .
_:b20
sp:varName "facilityNameRef"^^xsd:string .
sp:varName "facilityChildName"^^xsd:string .
_:b21
sp:varName "facilityName"^^xsd:string .
sp:varName "facilityKind"^^xsd:string .
_:b22
sp:varName "flowRef"^^xsd:string .
sp:varName "facilityParent1Ref"^^xsd:string .
_:b23
sp:varName "flowKind"^^xsd:string .
sp:varName "facilityParent1Name"^^xsd:string .
_:b24
sp:varName "flowDirection"^^xsd:string .
sp:varName "normalizedFacilityChildName"^^xsd:string .
_:b25
sp:varName "relatedFacilityRef"^^xsd:string .
sp:varName "normalizedFacilityParent1Name"^^xsd:string .
_:b26
sp:varName "relatedFacilityName"^^xsd:string .
_:b16
sp:varName "normalizedFacilityName"^^xsd:string .
_:b27
sp:varName "relatedFacilityKind"^^xsd:string .
_:b15
sp:varName "productionFacility"^^xsd:string .
_:b28
_:b17
sp:varName "productionFacilityType"^^xsd:string .
_:b72
sp:varName "facilityRef"^^xsd:string .
_:b73
sp:varName "facilityNameRef"^^xsd:string .
_:b74
sp:varName "facilityChildName"^^xsd:string .
_:b75
sp:varName "facilityKind"^^xsd:string .
_:b76
sp:varName "facilityParent1Ref"^^xsd:string .
_:b77
sp:varName "facilityParent1Name"^^xsd:string .
_:b78
sp:varName "facilityParent2Ref"^^xsd:string .
_:b79
sp:varName "facilityParent2Name"^^xsd:string .
_:b80
sp:varName "normalizedFacilityChildName"^^xsd:string .
_:b81
sp:varName "normalizedFacilityParent1Name"^^xsd:string .
_:b70
sp:varName "normalizedFacilityName"^^xsd:string .
_:b29
_:b69
sp:varName "productionFacility"^^xsd:string .
_:b71
sp:varName "productionFacilityType"^^xsd:string .
_:b48
sp:varName "dailyProductionFlows"^^xsd:string .
_:b45
sp:varName "productionFlowsToDate"^^xsd:string .
_:b49
sp:varName "facilityRef"^^xsd:string .
_:b38
sp:varName "productionFacility"^^xsd:string .
_:b46
sp:varName "flowRef"^^xsd:string .
_:b43
sp:varName "flowName"^^xsd:string .
_:b50
sp:varName "flowKind"^^xsd:string .
_:b51
sp:varName "flowDirection"^^xsd:string .
_:b52
sp:varName "flowQualifier"^^xsd:string .
_:b41
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b30
_:b53
sp:varName "productionFlowPurposeTypeName"^^xsd:string .
_:b17
_:b54
sp:varName "normalizedProductionFlowPurposeTypeName"^^xsd:string .
_:b55
sp:varName "normalizedFacilityName"^^xsd:string .
_:b47
sp:varName "normalizedProductionFlowName"^^xsd:string .
_:b40
sp:varName "productionFlow"^^xsd:string .
_:b31
sp:varName "normalizedRelatedFacilityName"^^xsd:string .
_:b42
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b15
sp:varName "relatedFacility"^^xsd:string .
_:b39
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b18
_:b60
sp:varName "facilityRef"^^xsd:string .
_:b61
sp:varName "flowRef"^^xsd:string .
_:b62
sp:varName "productionFlowToDate"^^xsd:string .
_:b58
sp:varName "productionFlow"^^xsd:string .
_:b63
sp:varName "flowDirection"^^xsd:string .
_:b64
sp:varName "relatedFacilityRef"^^xsd:string .
_:b65
sp:varName "relatedFacilityKind"^^xsd:string .
_:b59
sp:varName "relatedFacilityType"^^xsd:string .
_:b16
_:b57
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b5 sp:varName "facilityRef"^^xsd:string .
_:b8 sp:varName "facilityRef"^^xsd:string .
_:b6 sp:varName "facilityNameRef"^^xsd:string .
_:b9 sp:varName "flowRef"^^xsd:string .
_:b7 sp:varName "facilityName"^^xsd:string .
_:b7 sp:varName "productRef"^^xsd:string .
_:b8 sp:varName "flowRef"^^xsd:string .
_:b6 sp:varName "productionFlowToDate"^^xsd:string .
_:b9 sp:varName "flowDirection"^^xsd:string .
_:b2 sp:varName "productionFlow"^^xsd:string .
_:b10
sp:varName "relatedFacilityRef"^^xsd:string .
sp:varName "productKind"^^xsd:string .
_:b11
sp:varName "relatedFacilityKind"^^xsd:string .
sp:varName "productNameRef"^^xsd:string .
_:b4 sp:varName "productFlowName"^^xsd:string .
_:b3 sp:varName "productType"^^xsd:string .
_:b12
sp:varName "normalizedFacilityName"^^xsd:string .
sp:varName "productTypeName"^^xsd:string .
_:b13
sp:varName "productionFlowPurposeType"^^xsd:string .
sp:varName "normalizedProductTypeName"^^xsd:string .
_:b14
sp:varName "productionFlowPurposeTypeName"^^xsd:string .
_:b3 sp:varName "productionFlow"^^xsd:string .
_:b4 sp:varName "relatedFacilityType"^^xsd:string .
sp:varName "normalizedProductionFlowName"^^xsd:string .
_:b2 sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b1 sp:varName "productFlow"^^xsd:string .
......
# Saved by TopBraid on Fri Dec 16 17:53:47 GMT 2011
# Saved by TopBraid on Sun Dec 18 21:07:10 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Oct 25 15:26:03 BST 2011
# Saved by TopBraid on Sun Dec 18 21:17:35 GMT 2011
# baseURI: http://www.reportinghub.no/test/dpr/TEST_dpr-xml-ingest
# imports: http://www.reportinghub.no/np/data/npd
# imports: http://www.reportinghub.no/np/data/npd-alias-identifiers
......@@ -11,6 +11,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 small_amount_of_product_volume_data: <file:///EPIM-Ontologies/www.reportinghub.no/test/dpr/testcase/small_amount_of_product_volume_data.xml#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
......
# Saved by TopBraid on Tue Oct 25 15:26:03 BST 2011
# Saved by TopBraid on Sun Dec 18 21:17:35 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......