David Leal

Merge branch 'MPRTransform2'

# Saved by TopBraid on Fri Dec 16 17:30:20 GMT 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
# imports: http://www.witsml.org/schemas/131/addendum/combo
@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> .
......@@ -48,7 +49,7 @@ sp:if
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
rdf:type owl:Ontology ;
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: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:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-dpr-spin-lib:BuildDailyProductionReportURI
......@@ -361,7 +362,9 @@ 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:arg1 spin:_arg1 ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b13
......@@ -5515,6 +5518,22 @@ 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 ;
......@@ -5594,22 +5613,6 @@ 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
......@@ -7192,9 +7195,6 @@ _:b15
_:b14
sp:varName "uri"^^xsd:string .
_:b13
sp:varName "uri"^^xsd:string .
_:b12
sp:varName "uri"^^xsd:string .
......@@ -7221,3 +7221,6 @@ _:b3 sp:varName "UUID"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b13
sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Fri Dec 16 17:30:20 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
# baseURI: http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume
# imports: http://spinrdf.org/spin
# imports: 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-facility
# 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/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
# imports: http://www.witsml.org/schemas/131/addendum/combo
@prefix : <http://www.reportinghub.no/ep/transform/1.0/dpr/productVolume#> .
......@@ -31,325 +32,166 @@
<http://www.witsml.org/schemas/131/addendum/combo#Co_productVolume>
spin:rule
[ rdf:type sp:Construct ;
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 _:b1
] [ sp:object
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "productFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "endTime"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b1
] [ sp:object _:b2 ;
sp:predicate
[ sp:varName "relationshipToMeasure"^^xsd:string
] ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate _:b2 ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate
[ sp:varName "relationshipToMeasure"^^xsd:string
] ;
sp:subject _:b1
] [ sp:object
[ sp:varName "volumeStdType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "realVolumeStd"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeStdScale"^^xsd:string
] ;
sp:subject _:b3
]) ;
sp:where ([ sp:object
[ sp:varName "standardTempPres"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#standardTempPresRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:where ([ sp:object _:b5 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
] [ sp:object _:b6 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b5
] [ sp:object _:b7 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^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 "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ sp:object
[ sp:varName "periodKindRef"^^xsd:string
] ;
sp:subject _:b5
] [ sp:object _:b9 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b8
] [ 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
[ sp:varName "periodRef"^^xsd:string
]
] [ sp:object
[ sp:varName "endTime"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "volumeRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "volumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
sp:subject
[ sp:varName "volumeRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "volumeStdRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ;
sp:subject
[ sp:varName "periodRef"^^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: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
]
sp:subject _:b10
] [ 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
]
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b7
] ;
sp:variable
[ sp:varName "volumeStdType"^^xsd:string
]
sp:variable _:b12
] [ 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:selectProductionFlowPurposeType ;
sp:arg1 [ sp:varName "flowKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeScale"^^xsd:string
]
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolumeStd"^^xsd:string
]
[ rdf:type spl:object ;
sp:arg1 _:b13 ;
sp:arg2 rdfs:label
] ;
sp:variable
[ sp:varName "volumeStdScale"^^xsd:string
]
])
] ;
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 _:b4
] [ sp:object _:b5 ;
sp:predicate rdf:type ;
sp:subject _:b4
]) ;
sp:where ([ sp:object _:b6 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b7 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b7
] [ 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 _:b7
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b9 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b7
])
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b8
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b12 ;
sp:arg2 _:b14
] ;
sp:variable _:b10
sp:variable _:b3
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b10
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b11
] ;
sp:variable _:b4
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b9
] ;
sp:variable _:b5
sp:variable _:b2
])
] ;
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 _:b11 ;
sp:predicate _:b12 ;
sp:subject _:b13
] [ sp:object _:b14 ;
sp:templates ([ sp:object _:b15 ;
sp:predicate _:b16 ;
sp:subject _:b17
] [ sp:object _:b18 ;
sp:predicate rdf:type ;
sp:subject _:b11
sp:subject _:b15
]) ;
sp:where ([ sp:object _:b15 ;
sp:where ([ sp:object _:b19 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b16 ;
] [ sp:object _:b20 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
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:subject _:b15
] [ sp:object _:b17 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject _:b16
] [ sp:object _:b18 ;
sp:subject _:b19
] [ sp:object _:b23 ;
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 _:b16
] [ sp:object _:b19 ;
sp:subject _:b22
] [ sp:object _:b25 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
sp:subject _:b16
] [ sp:object _:b20 ;
sp:subject _:b22
] [ sp:object _:b26 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b19
sp:subject _:b25
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b21 ;
sp:elements ([ sp:object _:b27 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b19
sp:subject _:b25
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b17
sp:arg1 _:b21
] ;
sp:variable _:b28
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 _:b23
] ;
sp:variable _:b22
sp:variable _:b29
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 _:b29 ;
sp:arg2 rdfs:label
] ;
sp:variable _:b30
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b22
sp:arg1 _:b28 ;
sp:arg2 _:b30
] ;
sp:variable _:b13
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b20
sp:arg1 _:b26
] ;
sp:variable _:b23
sp:variable _:b31
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b23
sp:arg1 _:b31
] ;
sp:variable _:b11
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b21
sp:arg1 _:b27
] ;
sp:variable _:b14
sp:variable _:b18
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b18
sp:arg1 _:b24
] ;
sp:variable _:b12
sp:variable _:b16
])
] ;
spin:rule
......@@ -386,11 +228,11 @@ namingSystem not processed"""^^xsd:string ;
[ sp:varName "productFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b24
sp:subject _:b32
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b24
] [ sp:object _:b24 ;
sp:subject _:b32
] [ sp:object _:b32 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
......@@ -399,7 +241,7 @@ namingSystem not processed"""^^xsd:string ;
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b24
sp:subject _:b32
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
......@@ -521,334 +363,518 @@ namingSystem not processed"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20103b record the related facility - only its kind is specified"^^xsd:string ;
sp:templates ([ sp:object _:b25 ;
sp:predicate _:b26 ;
sp:subject _:b27
] [ sp:object _:b28 ;
rdfs:comment "STEP 20103a record the flows"^^xsd:string ;
sp:templates ([ sp:object _:b33 ;
sp:predicate _:b34 ;
sp:subject _:b35
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject _:b25
sp:subject _:b35
] [ sp:object _:b36 ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b37 ;
sp:predicate rdf:type ;
sp:subject _:b35
] [ sp:object _:b38 ;
sp:predicate rdfs:label ;
sp:subject _:b35
] [ sp:object _:b35 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b39
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b39
] [ sp:object _:b39 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject _:b40
] [ sp:object _:b41 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b39
]) ;
sp:where ([ sp:object _:b29 ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b42
] [ sp:object _:b40 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b42
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b40
] [ sp:object _:b43 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#facilityRef> ;
sp:subject spin:_this
] [ sp:object _:b30 ;
] [ 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:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject _:b29
] [ sp:object _:b31 ;
sp:subject _:b43
] [ sp:object _:b38 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:subject _:b30
] [ sp:object _:b32 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b30
] [ sp:object _:b33 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#relatedFacilityRef> ;
sp:subject _:b30
] [ sp:object _:b34 ;
sp:subject _:b41
] [ sp:object _:b46 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject _:b33
sp:subject _:b41
] [ sp:object _:b47 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:subject _:b41
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b48 ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
sp:subject _:b41
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b31
sp:arg1 _:b45
] ;
sp:variable _:b35
sp:variable _:b49
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b49
] ;
sp:variable _:b33
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 _:b46
] ;
sp:variable _:b36
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 _:b36 ;
sp:arg2 rdfs:label
] ;
sp:variable _:b50
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b35
sp:arg1 _:b49 ;
sp:arg2 _:b50
] ;
sp:variable _:b27
sp:variable _:b35
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b34
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ;
sp:arg1 _:b48
] ;
sp:variable _:b28
sp:variable _:b37
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b32
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
sp:arg1 _:b47
] ;
sp:variable _:b26
sp:variable _:b34
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20103a record the flows"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "productionFacility"^^xsd:string
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 ;
sp:predicate rdf:type ;
sp:subject _:b51
]) ;
sp:where ([ sp:object _:b53 ;
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: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:predicate
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
sp:variable _:b57
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b57
] ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:variable _:b51
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b56
] ;
sp:variable _:b52
])
] ;
spin:rule
[ rdf:type sp:Construct ;
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
[ sp:varName "productionFlow"^^xsd:string
]
sp:subject _:b58
] [ sp:object
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b58
] [ sp:object
[ sp:varName "productFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b58
] [ sp:object
[ sp:varName "productionFlowPurposeType"^^xsd:string
[ sp:varName "endTime"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b58
] [ sp:object _:b59 ;
sp:predicate
[ sp:varName "relationshipToMeasure"^^xsd:string
] ;
sp:subject _:b58
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
sp:subject _:b59
] [ sp:object
[ sp:varName "flowName"^^xsd:string
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b59
] [ sp:object _:b60 ;
sp:predicate
[ sp:varName "relationshipToMeasure"^^xsd:string
] ;
sp:subject _:b58
] [ sp:object
[ sp:varName "productionFlow"^^xsd:string
[ sp:varName "volumeStdType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b36
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b36
] [ sp:object _:b36 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
sp:subject _:b60
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "realVolumeStd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b36
sp:predicate
[ sp:varName "volumeStdScale"^^xsd:string
] ;
sp:subject _:b60
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "dailyProductionFlows"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowsToDate"^^xsd:string
sp:where ([ sp:object
[ sp:varName "standardTempPres"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "dailyProductionFlows"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#standardTempPresRef> ;
sp:subject spin:_this
] [ 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 "facilityNameRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#nameRef> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#productRef> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#flowRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
[ sp:varName "productFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "flowName"^^xsd:string
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#name> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#periodRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "productRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowKind"^^xsd:string
[ sp:varName "periodKindRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#kindRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "periodRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowDirection"^^xsd:string
[ sp:varName "endTime"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#directionRef> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimEnd> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowQualifier"^^xsd:string
[ sp:varName "volumeRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#qualifierRef> ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeRef> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "volumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#uomRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "volumeRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "volumeStdRef"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#volumeStdRef> ;
sp:subject
[ sp:varName "periodRef"^^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: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-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "flowName"^^xsd:string
[ rdf:type ep-dpr-spin-lib:selectRelationshipToMeasure ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFlowName"^^xsd:string
[ sp:varName "relationshipToMeasure"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string
[ rdf:type ep-dpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlow"^^xsd:string
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
]
] [ 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:selectVolumeAtStandardTemperaturePressureType ;
sp:arg1 [ sp:varName "standardTempPres"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowPurposeType"^^xsd:string
[ sp:varName "volumeStdType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDefinitionType ;
sp:arg1 [ sp:varName "flowQualifier"^^xsd:string
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowDefinitionType"^^xsd:string
[ sp:varName "volumeScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
[ rdf:type ep-dpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolumeStd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
[ sp:varName "volumeStdScale"^^xsd:string
]
])
] .
_:b11
sp:varName "relatedFacility"^^xsd:string .
_:b51
sp:varName "productionFacility"^^xsd:string .
_:b12
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b52
sp:varName "productionFacilityType"^^xsd:string .
_:b13
sp:varName "productionFlow"^^xsd:string .
_:b53
sp:varName "facilityRef"^^xsd:string .
_:b14
sp:varName "relatedFacilityType"^^xsd:string .
_:b54
sp:varName "facilityNameRef"^^xsd:string .
_:b15
_:b55
sp:varName "facilityName"^^xsd:string .
_:b56
sp:varName "facilityKind"^^xsd:string .
_:b57
sp:varName "normalizedFacilityName"^^xsd:string .
_:b42
sp:varName "dailyProductionFlows"^^xsd:string .
_:b40
sp:varName "productionFlowsToDate"^^xsd:string .
_:b43
sp:varName "facilityRef"^^xsd:string .
_:b16
_:b44
sp:varName "facilityNameRef"^^xsd:string .
_:b45
sp:varName "facilityName"^^xsd:string .
_:b41
sp:varName "flowRef"^^xsd:string .
_:b17
_:b38
sp:varName "flowName"^^xsd:string .
_:b18
_:b46
sp:varName "flowKind"^^xsd:string .
_:b47
sp:varName "flowDirection"^^xsd:string .
_:b19
sp:varName "relatedFacilityRef"^^xsd:string .
_:b48
sp:varName "flowQualifier"^^xsd:string .
_:b20
sp:varName "relatedFacilityName"^^xsd:string .
_:b49
sp:varName "normalizedFacilityName"^^xsd:string .
_:b21
sp:varName "relatedFacilityKind"^^xsd:string .
_:b33
sp:varName "productionFacility"^^xsd:string .
_:b22
sp:varName "normalizedFlowName"^^xsd:string .
_:b36
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b23
sp:varName "normalizedRelatedFacilityName"^^xsd:string .
_:b50
sp:varName "productionFlowPurposeTypeName"^^xsd:string .
_:b4 sp:varName "productionFacility"^^xsd:string .
_:b35
sp:varName "productionFlow"^^xsd:string .
_:b5 sp:varName "productionFacilityType"^^xsd:string .
_:b37
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b6 sp:varName "facilityRef"^^xsd:string .
_:b34
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b7 sp:varName "facilityNameRef"^^xsd:string .
_:b19
sp:varName "facilityRef"^^xsd:string .
_:b8 sp:varName "facilityName"^^xsd:string .
_:b20
sp:varName "facilityNameRef"^^xsd:string .
_:b9 sp:varName "facilityKind"^^xsd:string .
_:b21
sp:varName "facilityName"^^xsd:string .
_:b10
sp:varName "normalizedFacilityName"^^xsd:string .
_:b22
sp:varName "flowRef"^^xsd:string .
_:b23
sp:varName "flowKind"^^xsd:string .
_:b24
sp:varName "flowDirection"^^xsd:string .
_:b25
sp:varName "relatedFacilityRef"^^xsd:string .
_:b26
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
sp:varName "relatedFacilityName"^^xsd:string .
_:b27
sp:varName "productionFlow"^^xsd:string .
sp:varName "relatedFacilityKind"^^xsd:string .
_:b28
sp:varName "relatedFacilityType"^^xsd:string .
sp:varName "normalizedFacilityName"^^xsd:string .
_:b29
sp:varName "facilityRef"^^xsd:string .
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b30
sp:varName "flowRef"^^xsd:string .
sp:varName "productionFlowPurposeTypeName"^^xsd:string .
_:b17
sp:varName "productionFlow"^^xsd:string .
_:b31
sp:varName "flowName"^^xsd:string .
sp:varName "normalizedRelatedFacilityName"^^xsd:string .
_:b32
sp:varName "flowDirection"^^xsd:string .
_:b15
sp:varName "relatedFacility"^^xsd:string .
_:b33
_:b18
sp:varName "relatedFacilityType"^^xsd:string .
_:b16
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b5 sp:varName "facilityRef"^^xsd:string .
_:b6 sp:varName "facilityNameRef"^^xsd:string .
_:b7 sp:varName "facilityName"^^xsd:string .
_:b8 sp:varName "flowRef"^^xsd:string .
_:b9 sp:varName "flowDirection"^^xsd:string .
_:b10
sp:varName "relatedFacilityRef"^^xsd:string .
_:b34
_:b11
sp:varName "relatedFacilityKind"^^xsd:string .
_:b35
sp:varName "normalizedFlowName"^^xsd:string .
_:b12
sp:varName "normalizedFacilityName"^^xsd:string .
_:b13
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b14
sp:varName "productionFlowPurposeTypeName"^^xsd:string .
_:b3 sp:varName "productionFlow"^^xsd:string .
_:b4 sp:varName "relatedFacilityType"^^xsd:string .
_:b2 sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
......
# Saved by TopBraid on Thu Dec 15 19:02:38 GMT 2011
# Saved by TopBraid on Fri Dec 16 17:53:47 GMT 2011
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.epim.no/schemas/mprml/1
......@@ -23,141 +23,122 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20106 This step (not in the DPR) is there because there can be multiple volumeValue elements"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate _:b2 ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b4 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate _:b6 ;
sp:subject _:b4
] [ sp:object _:b7 ;
sp:predicate rdf:type ;
rdfs:comment "STEP 20103c record the related facility - only its kind is specified"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "relatedFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:predicate _:b9 ;
sp:subject _:b7
] [ sp:object _:b10 ;
sp:predicate rdf:type ;
] [ sp:object _:b2 ;
sp:predicate _:b3 ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
] [ sp:object _:b4 ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate _:b12 ;
sp:subject _:b10
sp:subject _:b2
]) ;
sp:where ([ sp:object _:b13 ;
sp:where ([ sp:object _:b5 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ sp:object _:b14 ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject _:b13
] [ sp:object _:b15 ;
sp:subject _:b5
] [ sp:object _:b7 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject _:b6
] [ sp:object _:b8 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b7
] [ sp:object _:b9 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject _:b14
] [ sp:object _:b16 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
sp:subject _:b15
] [ sp:object _:b17 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
sp:subject _:b16
] [ sp:object _:b18 ;
sp:subject _:b6
] [ sp:object _:b10 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b17
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b3
] [ sp:object _:b19 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject _:b17
] [ sp:object _:b20 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject _:b19
] [ sp:object _:b5 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject _:b20
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b22 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#tempRef> ;
sp:subject _:b19
] [ sp:object _:b8 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b22
] [ sp:object _:b23 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject _:b22
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b24 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#presRef> ;
sp:subject _:b19
] [ sp:object _:b11 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b24
] [ sp:object _:b25 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject _:b24
])
sp:subject _:b9
] [ sp:object _:b11 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
sp:subject _:b9
] [ sp:object _:b12 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ;
sp:subject _:b9
] [ sp:object _:b13 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectRelationshipToMeasure ;
sp:arg1 _:b18
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b8
] ;
sp:variable _:b2
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 _:b21
[ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 _:b10
] ;
sp:variable _:b6
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectTemperatureScale ;
sp:arg1 _:b23
[ rdf:type spl:object ;
sp:arg1 _:b15 ;
sp:arg2 rdfs:label
] ;
sp:variable _:b9
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectPressureScale ;
sp:arg1 _:b25
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b14 ;
sp:arg2 _:b16
] ;
sp:variable _:b1
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b13
] ;
sp:variable _:b4
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 _:b11
] ;
sp:variable _:b12
sp:variable _:b3
])
] ;
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> ;
rdfs:comment """STEP 20105 record the temporal parts of product flows
period/kind is optional, but is assumed mandatory here. This is because it is not clear how to obtain the default value which is the period of the report.
There are several different ways of specifying the time of the period. Temporarily, only dTimStart and dTimEnd are supported."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
sp:subject _:b17
] [ sp:object
[ sp:varName "productionFacilityType"^^xsd:string
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
sp:subject _:b17
] [ sp:object
[ sp:varName "productFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b17
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b17
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b17
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b17
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -177,88 +158,146 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ sp:object
[ sp:varName "periodKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityNamingSystem"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "periodRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "facilityKind"^^xsd:string
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
[ sp:varName "periodRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "facilityKind"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFacilityType"^^xsd:string
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20103c record the related facility - only its kind is specified"^^xsd:string ;
rdfs:comment """STEP 20104 record the product flows - unlike for the DPR the flow name is not used to construct the ProductionFlow URI
namingSystem not processed"""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "relatedFacility"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object _:b26 ;
sp:predicate
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^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 "productionFlow"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityType"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b18
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b26
sp:subject _:b18
] [ sp:object _:b18 ;
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 _:b18
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -278,6 +317,13 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
......@@ -285,61 +331,96 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowDirection"^^xsd:string
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityRef"^^xsd:string
[ sp:varName "flowRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
[ 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 "relatedFacilityKind"^^xsd:string
[ sp:varName "productKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "relatedFacilityRef"^^xsd:string
[ sp:varName "productRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#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 afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectProductType ;
sp:arg1 [ sp:varName "productKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "localname"^^xsd:string
[ sp:varName "productType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "normalizedFlowName"^^xsd:string
[ 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 "productionFlow"^^xsd:string
[ sp:varName "normalizedProductTypeName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "relatedFacilityKind"^^xsd:string
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "relatedFacilityType"^^xsd:string
[ sp:varName "localname"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
[ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
sp:arg1 [ sp:varName "localname"^^xsd:string
] ;
sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
[ sp:varName "productFlow"^^xsd:string
]
])
] ;
......@@ -347,156 +428,113 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20103b record the related facility - a neutral link is provided in case there is no direction.
nothing is done with the facilityParent1 or facilityParent2 of the related facility"""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "relatedFacility"^^xsd:string
] ;
sp:templates ([ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacility"^^xsd:string
] ;
sp:predicate
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
] ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityType"^^xsd:string
] ;
sp:subject _:b20
] [ sp:object _:b19 ;
sp:predicate _:b21 ;
sp:subject _:b20
] [ sp:object _:b22 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "relatedFacility"^^xsd:string
]
sp:subject _:b19
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:where ([ sp:object _:b23 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:subject _:b23
] [ sp:object _:b24 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:subject _:b23
] [ sp:object _:b25 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject _:b24
] [ sp:object _:b26 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b25
] [ sp:object _:b27 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
sp:subject _:b24
] [ sp:object _:b28 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b27
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowDirection"^^xsd:string
] ;
sp:elements ([ sp:object _:b29 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
sp:subject _:b27
])
] [ sp:object
[ sp:varName "relatedFacilityRef"^^xsd:string
] ;
] [ sp:object _:b30 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#relatedFacilityRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityNameRef"^^xsd:string
] ;
sp:subject _:b27
] [ sp:object _:b31 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "relatedFacilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "relatedFacilityName"^^xsd:string
] ;
sp:subject _:b30
] [ sp:object _:b32 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "relatedFacilityNameRef"^^xsd:string
]
sp:subject _:b31
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "relatedFacilityNamingSystem"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
sp:subject
[ sp:varName "relatedFacilityNameRef"^^xsd:string
]
sp:subject _:b31
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "relatedFacilityKind"^^xsd:string
] ;
sp:elements ([ sp:object _:b33 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "relatedFacilityNameRef"^^xsd:string
]
sp:subject _:b31
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
]
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b26
] ;
sp:variable
[ sp:varName "localname"^^xsd:string
]
sp:variable _:b34
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 _:b28
] ;
sp:variable _:b35
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 _:b35 ;
sp:arg2 rdfs:label
] ;
sp:variable _:b36
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "localname"^^xsd:string
]
sp:arg1 _:b34 ;
sp:arg2 _:b36
] ;
sp:variable
[ sp:varName "productionFlow"^^xsd:string
]
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "relatedFacilityName"^^xsd:string
]
sp:arg1 _:b32
] ;
sp:variable
[ sp:varName "normalizedRelatedFacilityName"^^xsd:string
]
sp:variable _:b37
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedRelatedFacilityName"^^xsd:string
]
sp:arg1 _:b37
] ;
sp:variable
[ sp:varName "relatedFacility"^^xsd:string
]
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "relatedFacilityKind"^^xsd:string
]
sp:arg1 _:b33
] ;
sp:variable
[ sp:varName "relatedFacilityType"^^xsd:string
]
sp:variable _:b22
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
]
sp:arg1 _:b29
] ;
sp:variable
[ sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string
]
sp:variable _:b21
])
] ;
spin:rule
......@@ -504,256 +542,144 @@ nothing is done with the facilityParent1 or facilityParent2 of the related facil
rdfs:comment """STEP 20103a record the flows
The corresponding STEP for the DPR relies upon a flow name. For the MPR, the flow name is optional :(.
The corresponding STEP for the DPR relies upon a direction, to link the flow to the productionFacility. Her a neutral link has been provided as well. Without a direction the relationship will be the same as for a relatedFacility."""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:templates ([ sp:object _:b38 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
] ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
sp:subject _:b39
] [ sp:object _:b38 ;
sp:predicate _:b40 ;
sp:subject _:b39
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowPurposeType"^^xsd:string
] ;
sp:subject _:b39
] [ sp:object _:b41 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowDefinitionType"^^xsd:string
] ;
sp:subject _:b39
] [ sp:object _:b42 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "flowName"^^xsd:string
] ;
sp:subject _:b39
] [ sp:object _:b43 ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlow"^^xsd:string
] ;
sp:subject _:b39
] [ sp:object _:b39 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b27
sp:subject _:b44
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b27
] [ sp:object _:b27 ;
sp:subject _:b44
] [ sp:object _:b44 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:subject _:b45
] [ sp:object _:b46 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b27
sp:subject _:b44
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:where ([ sp:object _:b47 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:subject _:b47
] [ sp:object _:b47 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "reportingPeriodProductionFlows"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowsToDate"^^xsd:string
] ;
sp:subject _:b48
] [ sp:object _:b45 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "reportingPeriodProductionFlows"^^xsd:string
]
sp:subject _:b48
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:subject _:b45
] [ sp:object _:b49 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityNameRef"^^xsd:string
] ;
sp:subject _:b47
] [ sp:object _:b50 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
sp:subject _:b49
] [ sp:object _:b51 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:subject _:b50
] [ sp:object _:b46 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
sp:subject _:b49
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowName"^^xsd:string
] ;
sp:elements ([ sp:object _:b43 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
sp:subject _:b46
])
] [ sp:object
[ sp:varName "flowKind"^^xsd:string
] ;
] [ sp:object _:b52 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
sp:subject _:b46
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowDirection"^^xsd:string
] ;
sp:elements ([ sp:object _:b53 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#directionRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
sp:subject _:b46
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowQualifier"^^xsd:string
] ;
sp:elements ([ sp:object _:b54 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
sp:subject _:b46
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
sp:arg1 _:b51
] ;
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
sp:variable _:b55
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
sp:arg1 _:b55
] ;
sp:variable
[ sp:varName "productionFacility"^^xsd:string
]
sp:variable _:b38
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
]
[ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 _:b52
] ;
sp:variable
[ sp:varName "localname"^^xsd:string
]
sp:variable _:b41
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 [ sp:varName "localname"^^xsd:string
]
[ rdf:type spl:object ;
sp:arg1 _:b41 ;
sp:arg2 rdfs:label
] ;
sp:variable
[ sp:varName "productionFlow"^^xsd:string
]
sp:variable _:b56
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowPurposeType ;
sp:arg1 [ sp:varName "flowKind"^^xsd:string
]
[ rdf:type ep-dpr-spin-lib:buildProductionFlowURI ;
sp:arg1 _:b55 ;
sp:arg2 _:b56
] ;
sp:variable
[ sp:varName "productionFlowPurposeType"^^xsd:string
]
sp:variable _:b39
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDefinitionType ;
sp:arg1 [ sp:varName "flowQualifier"^^xsd:string
]
sp:arg1 _:b54
] ;
sp:variable
[ sp:varName "productionFlowDefinitionType"^^xsd:string
]
sp:variable _:b42
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowDirectionRelationshipType ;
sp:arg1 [ sp:varName "flowDirection"^^xsd:string
]
sp:arg1 _:b53
] ;
sp:variable
[ sp:varName "productionFlowDirectionRelationshipType"^^xsd:string
]
sp:variable _:b40
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20105 record the temporal parts of product flows
period/kind is optional, but is assumed mandatory here. This is because it is not clear how to obtain the default value which is the period of the report.
There are several different ways of specifying the time of the period. Temporarily, only dTimStart and dTimEnd are supported."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAProductFlow> ;
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 _:b28
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
[ sp:varName "productionFacilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b28
] [ sp:object
[ sp:varName "productFlowToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b28
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b28
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b28
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b28
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -773,331 +699,400 @@ There are several different ways of specifying the time of the period. Temporari
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
[ sp:varName "facilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productRef> ;
sp:subject
[ sp:varName "flowRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "periodRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ sp:object
[ sp:varName "periodKindRef"^^xsd:string
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "facilityNamingSystem"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dTimStart> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "facilityKind"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/131/addendum/combo#dateStart> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "periodRef"^^xsd:string
]
])
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectTemporalPartOfAFlowDurationType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "temporalPartOfAFlowDurationType"^^xsd:string
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "facilityKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionFacilityType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20104 record the product flows - unlike for the DPR the flow name is not used to construct the ProductionFlow URI
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> ;
rdfs:comment "STEP 20106 This step (not in the DPR) is there because there can be multiple volumeValue elements"^^xsd:string ;
sp:templates ([ sp:object _:b57 ;
sp:predicate _:b58 ;
sp:subject _:b59
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Fluid> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "productType"^^xsd:string
] ;
sp:subject _:b57
] [ sp:object _:b60 ;
sp:predicate rdf:type ;
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 _:b29
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowToDate> ;
sp:subject _:b57
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b29
] [ sp:object _:b29 ;
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 _:b29
sp:subject _:b60
] [ sp:object _:b61 ;
sp:predicate _:b62 ;
sp:subject _:b60
] [ sp:object _:b63 ;
sp:predicate rdf:type ;
sp:subject _:b57
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
sp:subject _:b63
] [ sp:object _:b64 ;
sp:predicate _:b65 ;
sp:subject _:b63
] [ sp:object _:b66 ;
sp:predicate rdf:type ;
sp:subject _:b57
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject _:b66
] [ sp:object _:b67 ;
sp:predicate _:b68 ;
sp:subject _:b66
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:where ([ sp:object _:b69 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:subject _:b69
] [ sp:object _:b70 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFlowsToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "flowRef"^^xsd:string
] ;
sp:subject _:b69
] [ sp:object _:b71 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productRef"^^xsd:string
] ;
sp:subject _:b70
] [ sp:object _:b72 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#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:subject _:b71
] [ sp:object _:b73 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
sp:subject _:b72
] [ sp:object _:b74 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
sp:subject _:b73
] [ sp:object _:b73 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b59
] [ sp:object _:b75 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject _:b73
] [ sp:object _:b76 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject _:b75
] [ sp:object _:b61 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b76
] [ sp:object _:b77 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject _:b76
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "productRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowName"^^xsd:string
] ;
sp:elements ([ sp:object _:b78 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#tempRef> ;
sp:subject _:b75
] [ sp:object _:b64 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "productNameRef"^^xsd:string
]
sp:subject _:b78
] [ sp:object _:b79 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject _:b78
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b80 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#presRef> ;
sp:subject _:b75
] [ sp:object _:b67 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b80
] [ sp:object _:b81 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject _:b80
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-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
[ rdf:type ep-mpr-spin-lib:selectRelationshipToMeasure ;
sp:arg1 _:b74
] ;
sp:variable
[ sp:varName "productTypeName"^^xsd:string
]
sp:variable _:b58
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "productTypeName"^^xsd:string
]
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 _:b77
] ;
sp:variable
[ sp:varName "normalizedProductTypeName"^^xsd:string
]
sp:variable _:b62
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 [ sp:varName "flowRef"^^xsd:string
]
[ rdf:type ep-mpr-spin-lib:selectTemperatureScale ;
sp:arg1 _:b79
] ;
sp:variable
[ sp:varName "localname"^^xsd:string
]
sp:variable _:b65
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductFlowURI ;
sp:arg1 [ sp:varName "localname"^^xsd:string
] ;
sp:arg2 [ sp:varName "normalizedProductTypeName"^^xsd:string
]
[ rdf:type ep-mpr-spin-lib:selectPressureScale ;
sp:arg1 _:b81
] ;
sp:variable
[ sp:varName "productFlow"^^xsd:string
]
sp:variable _:b68
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0>
rdf:type owl:Ontology ;
owl:imports <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ;
owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b13
_:b58
sp:varName "relationshipToMeasure"^^xsd:string .
_:b59
sp:varName "temporalPartOfAProductFlow"^^xsd:string .
_:b61
sp:varName "realVolume"^^xsd:string .
_:b62
sp:varName "volumeScale"^^xsd:string .
_:b64
sp:varName "realTemp"^^xsd:string .
_:b65
sp:varName "temperatureScale"^^xsd:string .
_:b67
sp:varName "realPres"^^xsd:string .
_:b68
sp:varName "pressureScale"^^xsd:string .
_:b69
sp:varName "productVolumeRef"^^xsd:string .
_:b14
_:b70
sp:varName "facilityRef"^^xsd:string .
_:b15
_:b71
sp:varName "flowRef"^^xsd:string .
_:b16
_:b72
sp:varName "productRef"^^xsd:string .
_:b17
_:b73
sp:varName "periodRef"^^xsd:string .
_:b18
_:b74
sp:varName "periodKindRef"^^xsd:string .
_:b3 sp:varName "temporalPartOfAProductFlow"^^xsd:string .
_:b19
_:b75
sp:varName "volumeValueRef"^^xsd:string .
_:b20
_:b76
sp:varName "volumeRef"^^xsd:string .
_:b5 sp:varName "realVolume"^^xsd:string .
_:b21
_:b77
sp:varName "uomVolume"^^xsd:string .
_:b22
_:b78
sp:varName "tempRef"^^xsd:string .
_:b8 sp:varName "realTemp"^^xsd:string .
_:b23
_:b79
sp:varName "uomTemp"^^xsd:string .
_:b24
_:b80
sp:varName "presRef"^^xsd:string .
_:b11
sp:varName "realPres"^^xsd:string .
_:b81
sp:varName "uomPres"^^xsd:string .
_:b47
sp:varName "productVolumeRef"^^xsd:string .
_:b48
sp:varName "reportingPeriodProductionFlows"^^xsd:string .
_:b45
sp:varName "productionFlowsToDate"^^xsd:string .
_:b49
sp:varName "facilityRef"^^xsd:string .
_:b50
sp:varName "facilityNameRef"^^xsd:string .
_:b51
sp:varName "facilityName"^^xsd:string .
_:b46
sp:varName "flowRef"^^xsd:string .
_:b43
sp:varName "flowName"^^xsd:string .
_:b52
sp:varName "flowKind"^^xsd:string .
_:b53
sp:varName "flowDirection"^^xsd:string .
_:b54
sp:varName "flowQualifier"^^xsd:string .
_:b55
sp:varName "normalizedFacilityName"^^xsd:string .
_:b38
sp:varName "productionFacility"^^xsd:string .
_:b41
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b56
sp:varName "productionFlowPurposeTypeName"^^xsd:string .
_:b39
sp:varName "productionFlow"^^xsd:string .
_:b42
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b40
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b23
sp:varName "productVolumeRef"^^xsd:string .
_:b24
sp:varName "facilityRef"^^xsd:string .
_:b25
sp:varName "uomPres"^^xsd:string .
sp:varName "facilityNameRef"^^xsd:string .
_:b26
sp:varName "facilityName"^^xsd:string .
_:b27
sp:varName "flowRef"^^xsd:string .
_:b28
sp:varName "flowKind"^^xsd:string .
_:b29
sp:varName "flowDirection"^^xsd:string .
_:b30
sp:varName "relatedFacilityRef"^^xsd:string .
_:b31
sp:varName "relatedFacilityNameRef"^^xsd:string .
_:b32
sp:varName "relatedFacilityName"^^xsd:string .
_:b33
sp:varName "relatedFacilityKind"^^xsd:string .
_:b34
sp:varName "normalizedFacilityName"^^xsd:string .
_:b35
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b2 sp:varName "relationshipToMeasure"^^xsd:string .
_:b36
sp:varName "productionFlowPurposeTypeName"^^xsd:string .
_:b6 sp:varName "volumeScale"^^xsd:string .
_:b20
sp:varName "productionFlow"^^xsd:string .
_:b37
sp:varName "normalizedRelatedFacilityName"^^xsd:string .
_:b19
sp:varName "relatedFacility"^^xsd:string .
_:b22
sp:varName "relatedFacilityType"^^xsd:string .
_:b21
sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
_:b5 sp:varName "productVolumeRef"^^xsd:string .
_:b6 sp:varName "facilityRef"^^xsd:string .
_:b7 sp:varName "facilityNameRef"^^xsd:string .
_:b9 sp:varName "temperatureScale"^^xsd:string .
_:b8 sp:varName "facilityName"^^xsd:string .
_:b9 sp:varName "flowRef"^^xsd:string .
_:b10
sp:varName "flowKind"^^xsd:string .
_:b11
sp:varName "flowDirection"^^xsd:string .
_:b12
sp:varName "pressureScale"^^xsd:string .
sp:varName "relatedFacilityRef"^^xsd:string .
_:b13
sp:varName "relatedFacilityKind"^^xsd:string .
_:b14
sp:varName "normalizedFacilityName"^^xsd:string .
_:b15
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b16
sp:varName "productionFlowPurposeTypeName"^^xsd:string .
_:b1 sp:varName "productionFlow"^^xsd:string .
_:b4 sp:varName "relatedFacilityType"^^xsd:string .
_:b3 sp:varName "productionFlowDirectionInverseRelationshipType"^^xsd:string .
......
# Saved by TopBraid on Thu Dec 15 19:02:38 GMT 2011
# Saved by TopBraid on Fri Dec 16 17:53:47 GMT 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......