David Leal

Reorder product volume rules as suggested by Holger, and used map rather than IF…

… statements for volume UoM
......@@ -15,12 +15,12 @@
<http://www.reportinghub.no/ep/schema/1.0/scale-maps-to-mpr-enumeration>
rdf:type owl:Ontology ;
owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.epim.no/schemas/mprml/1> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/ep/schema/core#acre_ft>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_acre.ft> .
<http://www.epim.no/schemas/mprml/1#VU_acre.ft> , <http://www.epim.no/schemas/mprml/1#AU_acre.ft> .
<http://www.reportinghub.no/ep/schema/core#angstrom>
transhelp:scaleMapsToMPREnumeration
......@@ -48,11 +48,11 @@
<http://www.reportinghub.no/ep/schema/core#barrel>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_bbl> .
<http://www.epim.no/schemas/mprml/1#VU_bbl> , <http://www.epim.no/schemas/mprml/1#AU_bbl> .
<http://www.reportinghub.no/ep/schema/core#billionFt3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_bcf> .
<http://www.epim.no/schemas/mprml/1#VU_bcf> , <http://www.epim.no/schemas/mprml/1#AU_bcf> .
<http://www.reportinghub.no/ep/schema/core#celsius>
transhelp:scaleMapsToMPREnumeration
......@@ -84,7 +84,7 @@
<http://www.reportinghub.no/ep/schema/core#cm3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_cm3> .
<http://www.epim.no/schemas/mprml/1#VU_cm3> , <http://www.epim.no/schemas/mprml/1#AU_cm3> .
<http://www.reportinghub.no/ep/schema/core#cmH20at4degC>
transhelp:scaleMapsToMPREnumeration
......@@ -100,7 +100,7 @@
<http://www.reportinghub.no/ep/schema/core#dm3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_dm3> .
<http://www.epim.no/schemas/mprml/1#VU_dm3> , <http://www.epim.no/schemas/mprml/1#AU_dm3> .
<http://www.reportinghub.no/ep/schema/core#dyne_cm-2>
transhelp:scaleMapsToMPREnumeration
......@@ -124,7 +124,7 @@
<http://www.reportinghub.no/ep/schema/core#foot3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_ft3> .
<http://www.epim.no/schemas/mprml/1#VU_ft3> , <http://www.epim.no/schemas/mprml/1#AU_ft3> .
<http://www.reportinghub.no/ep/schema/core#footUS>
transhelp:scaleMapsToMPREnumeration
......@@ -244,7 +244,7 @@
<http://www.reportinghub.no/ep/schema/core#hectare_metre>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_ha.m> .
<http://www.epim.no/schemas/mprml/1#VU_ha.m> , <http://www.epim.no/schemas/mprml/1#AU_ha.m> .
<http://www.reportinghub.no/ep/schema/core#hectobar>
transhelp:scaleMapsToMPREnumeration
......@@ -252,7 +252,7 @@
<http://www.reportinghub.no/ep/schema/core#hectolitre>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_hL> .
<http://www.epim.no/schemas/mprml/1#VU_hL> , <http://www.epim.no/schemas/mprml/1#AU_hL> .
<http://www.reportinghub.no/ep/schema/core#hour>
transhelp:scaleMapsToMPREnumeration
......@@ -268,7 +268,7 @@
<http://www.reportinghub.no/ep/schema/core#in3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_in3> .
<http://www.epim.no/schemas/mprml/1#VU_in3> , <http://www.epim.no/schemas/mprml/1#AU_in3> .
<http://www.reportinghub.no/ep/schema/core#inH20at39.2F>
transhelp:scaleMapsToMPREnumeration
......@@ -340,7 +340,7 @@
<http://www.reportinghub.no/ep/schema/core#km3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_km3> .
<http://www.epim.no/schemas/mprml/1#VU_km3> , <http://www.epim.no/schemas/mprml/1#AU_km3> .
<http://www.reportinghub.no/ep/schema/core#km_cm-1>
transhelp:scaleMapsToMPREnumeration
......@@ -420,7 +420,7 @@
<http://www.reportinghub.no/ep/schema/core#litre>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_L> .
<http://www.epim.no/schemas/mprml/1#VU_L> , <http://www.epim.no/schemas/mprml/1#AU_L> .
<http://www.reportinghub.no/ep/schema/core#mBar>
transhelp:scaleMapsToMPREnumeration
......@@ -460,7 +460,7 @@
<http://www.reportinghub.no/ep/schema/core#metre3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_m3> .
<http://www.epim.no/schemas/mprml/1#VU_m3> , <http://www.epim.no/schemas/mprml/1#AU_m3> .
<http://www.reportinghub.no/ep/schema/core#metre_German_Legal>
transhelp:scaleMapsToMPREnumeration
......@@ -488,7 +488,7 @@
<http://www.reportinghub.no/ep/schema/core#micrometre2_m>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_um2.m> .
<http://www.epim.no/schemas/mprml/1#VU_um2.m> , <http://www.epim.no/schemas/mprml/1#AU_um2.m> .
<http://www.reportinghub.no/ep/schema/core#microsecond>
transhelp:scaleMapsToMPREnumeration
......@@ -504,7 +504,7 @@
<http://www.reportinghub.no/ep/schema/core#mile3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_mi3> .
<http://www.epim.no/schemas/mprml/1#VU_mi3> , <http://www.epim.no/schemas/mprml/1#AU_mi3> .
<http://www.reportinghub.no/ep/schema/core#mile_US>
transhelp:scaleMapsToMPREnumeration
......@@ -532,23 +532,23 @@
<http://www.reportinghub.no/ep/schema/core#millilitre>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_mL> .
<http://www.epim.no/schemas/mprml/1#VU_mL> , <http://www.epim.no/schemas/mprml/1#AU_mL> .
<http://www.reportinghub.no/ep/schema/core#millimetre>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_mm> , <http://www.epim.no/schemas/mprml/1#AnyUom_AU_mm> .
<http://www.epim.no/schemas/mprml/1#AnyUom_AU_mm> , <http://www.epim.no/schemas/mprml/1#AU_mm> .
<http://www.reportinghub.no/ep/schema/core#million_barrel>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_MMbbl> .
<http://www.epim.no/schemas/mprml/1#VU_L> , <http://www.epim.no/schemas/mprml/1#AU_MMbbl> .
<http://www.reportinghub.no/ep/schema/core#million_foot3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_Mcf> , <http://www.epim.no/schemas/mprml/1#AU_Mft3> .
<http://www.epim.no/schemas/mprml/1#VU_Mft3> , <http://www.epim.no/schemas/mprml/1#VU_Mcf> , <http://www.epim.no/schemas/mprml/1#AU_Mft3> , <http://www.epim.no/schemas/mprml/1#AU_Mcf> .
<http://www.reportinghub.no/ep/schema/core#million_metre3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_Mm3> .
<http://www.epim.no/schemas/mprml/1#VU_Mm3> , <http://www.epim.no/schemas/mprml/1#AU_Mm3> .
<http://www.reportinghub.no/ep/schema/core#millisecond>
transhelp:scaleMapsToMPREnumeration
......@@ -564,7 +564,7 @@
<http://www.reportinghub.no/ep/schema/core#mm3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_mm3> .
<http://www.epim.no/schemas/mprml/1#VU_mm3> , <http://www.epim.no/schemas/mprml/1#AU_mm3> .
<http://www.reportinghub.no/ep/schema/core#mmHgAt0C>
transhelp:scaleMapsToMPREnumeration
......@@ -652,11 +652,11 @@
<http://www.reportinghub.no/ep/schema/core#thousandFt3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_1000ft3> .
<http://www.epim.no/schemas/mprml/1#VU_1000ft3> , <http://www.epim.no/schemas/mprml/1#AU_1000ft3> .
<http://www.reportinghub.no/ep/schema/core#thousand_barrel>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_Mbbl> .
<http://www.epim.no/schemas/mprml/1#VU_Mbbl> , <http://www.epim.no/schemas/mprml/1#AU_Mbbl> .
<http://www.reportinghub.no/ep/schema/core#torr>
transhelp:scaleMapsToMPREnumeration
......@@ -664,23 +664,23 @@
<http://www.reportinghub.no/ep/schema/core#trillionFt3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_tcf> .
<http://www.epim.no/schemas/mprml/1#VU_tcf> , <http://www.epim.no/schemas/mprml/1#AU_tcf> .
<http://www.reportinghub.no/ep/schema/core#ukFlOz>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_flozUK> .
<http://www.epim.no/schemas/mprml/1#VU_flozUK> , <http://www.epim.no/schemas/mprml/1#AU_flozUK> .
<http://www.reportinghub.no/ep/schema/core#ukGallon>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_galUK> .
<http://www.epim.no/schemas/mprml/1#VU_galUK> , <http://www.epim.no/schemas/mprml/1#AU_galUK> .
<http://www.reportinghub.no/ep/schema/core#ukPint>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_ptUK> .
<http://www.epim.no/schemas/mprml/1#VU_ptUK> , <http://www.epim.no/schemas/mprml/1#AU_ptUK> .
<http://www.reportinghub.no/ep/schema/core#ukQuart>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_qtUK> .
<http://www.epim.no/schemas/mprml/1#VU_qtUK> , <http://www.epim.no/schemas/mprml/1#AU_qtUK> .
<http://www.reportinghub.no/ep/schema/core#umHgAt0C>
transhelp:scaleMapsToMPREnumeration
......@@ -692,19 +692,19 @@
<http://www.reportinghub.no/ep/schema/core#usFlOz>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_flozUS> .
<http://www.epim.no/schemas/mprml/1#VU_flozUS> , <http://www.epim.no/schemas/mprml/1#AU_flozUS> .
<http://www.reportinghub.no/ep/schema/core#usGallon>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_galUS> .
<http://www.epim.no/schemas/mprml/1#VU_galUS> , <http://www.epim.no/schemas/mprml/1#AU_galUS> .
<http://www.reportinghub.no/ep/schema/core#usPint>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_ptUS> .
<http://www.epim.no/schemas/mprml/1#VU_ptUS> , <http://www.epim.no/schemas/mprml/1#AU_ptUS> .
<http://www.reportinghub.no/ep/schema/core#usQuart>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_qtUS> .
<http://www.epim.no/schemas/mprml/1#VU_qtUS> , <http://www.epim.no/schemas/mprml/1#AU_qtUS> .
<http://www.reportinghub.no/ep/schema/core#usTonF_ft-2>
transhelp:scaleMapsToMPREnumeration
......@@ -724,7 +724,7 @@
<http://www.reportinghub.no/ep/schema/core#yard3>
transhelp:scaleMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#AU_yd3> .
<http://www.epim.no/schemas/mprml/1#VU_yd3> , <http://www.epim.no/schemas/mprml/1#AU_yd3> .
<http://www.reportinghub.no/ep/schema/core#yd_Benoit_A>
transhelp:scaleMapsToMPREnumeration
......
......@@ -390,13 +390,11 @@
[ sp:varName "workRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "volumeScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
......@@ -2275,13 +2273,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "volumeScale"^^xsd:string
]
])
......@@ -2384,22 +2380,16 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90071a Process volume for a quantity of material - creating volume if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b43 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b43
] [ sp:object
rdfs:comment "STEP 90071 Process volume for a quantity of material - volume exists"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b43
sp:subject
[ sp:varName "volume"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
......@@ -2418,20 +2408,18 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "volume"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volume"^^xsd:string
]
])
] [ sp:object
[ sp:varName "volume"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volume"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
......@@ -2456,29 +2444,33 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "volumeScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90071 Process volume for a quantity of material - volume exists"^^xsd:string ;
sp:templates ([ sp:object
rdfs:comment "STEP 90071a Process volume for a quantity of material - creating volume if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b43 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b43
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject
[ sp:varName "volume"^^xsd:string
]
sp:subject _:b43
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
......@@ -2497,18 +2489,20 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object
[ sp:varName "volume"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volume"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "volume"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volume"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
......@@ -2533,13 +2527,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "volumeScale"^^xsd:string
]
])
......@@ -2676,106 +2668,56 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
<http://www.epim.no/schemas/mprml/1#VolumeQualifiedMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90170b Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b45 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b45
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b45
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90173b Process volume at standard conditions for a quantity of material - status specified"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b46
sp:subject _:b45
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b46
sp:subject _:b45
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInASpecifiedState> ;
sp:predicate rdf:type ;
sp:subject _:b46
sp:subject _:b45
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInAStandardState> ;
sp:predicate rdf:type ;
sp:subject _:b46
sp:subject _:b45
] [ sp:object
[ sp:varName "standardTemperature"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b46
sp:subject _:b45
] [ sp:object
[ sp:varName "standardPressure"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b46
] [ sp:object _:b46 ;
sp:subject _:b45
] [ sp:object _:b45 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b47
sp:subject _:b46
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b47
sp:subject _:b46
] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
sp:predicate rdf:type ;
sp:subject _:b47
sp:subject _:b46
] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
sp:predicate rdf:type ;
sp:subject _:b47
] [ sp:object _:b48 ;
sp:subject _:b46
] [ sp:object _:b47 ;
sp:predicate rdf:type ;
sp:subject _:b47
sp:subject _:b46
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b48
sp:subject _:b47
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b48
sp:subject _:b47
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ;
......@@ -2804,13 +2746,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "volumeScale"^^xsd:string
]
] [ rdf:type sp:NotExists ;
......@@ -2856,53 +2796,53 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b49
sp:subject _:b48
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b49
sp:subject _:b48
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInASpecifiedState> ;
sp:predicate rdf:type ;
sp:subject _:b49
sp:subject _:b48
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInAStandardState> ;
sp:predicate rdf:type ;
sp:subject _:b49
sp:subject _:b48
] [ sp:object
[ sp:varName "standardTemperature"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b49
sp:subject _:b48
] [ sp:object
[ sp:varName "standardPressure"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b49
] [ sp:object _:b49 ;
sp:subject _:b48
] [ sp:object _:b48 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b50
sp:subject _:b49
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b50
sp:subject _:b49
] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
sp:predicate rdf:type ;
sp:subject _:b50
sp:subject _:b49
] [ sp:object
[ sp:varName "measuredQualityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b50
] [ sp:object _:b51 ;
sp:subject _:b49
] [ sp:object _:b50 ;
sp:predicate rdf:type ;
sp:subject _:b50
sp:subject _:b49
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b51
sp:subject _:b50
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b51
sp:subject _:b50
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ;
......@@ -2931,13 +2871,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "volumeScale"^^xsd:string
]
] [ sp:object
......@@ -2990,38 +2928,38 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b52
sp:subject _:b51
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b52
sp:subject _:b51
] [ sp:object <http://www.reportinghub.no/ep/schema/core#FlowState> ;
sp:predicate rdf:type ;
sp:subject _:b52
] [ sp:object _:b52 ;
sp:subject _:b51
] [ sp:object _:b51 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b53
sp:subject _:b52
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b53
sp:subject _:b52
] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
sp:predicate rdf:type ;
sp:subject _:b53
sp:subject _:b52
] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
sp:predicate rdf:type ;
sp:subject _:b53
] [ sp:object _:b54 ;
sp:subject _:b52
] [ sp:object _:b53 ;
sp:predicate rdf:type ;
sp:subject _:b53
sp:subject _:b52
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b54
sp:subject _:b53
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b54
sp:subject _:b53
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
......@@ -3059,13 +2997,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "volumeScale"^^xsd:string
]
] [ rdf:type sp:NotExists ;
......@@ -3084,40 +3020,40 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b55
sp:subject _:b54
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b55
sp:subject _:b54
] [ sp:object <http://www.reportinghub.no/ep/schema/core#FlowState> ;
sp:predicate rdf:type ;
sp:subject _:b55
] [ sp:object _:b55 ;
sp:subject _:b54
] [ sp:object _:b54 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b56
sp:subject _:b55
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b56
sp:subject _:b55
] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
sp:predicate rdf:type ;
sp:subject _:b56
sp:subject _:b55
] [ sp:object
[ sp:varName "measuredQualityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b56
] [ sp:object _:b57 ;
sp:subject _:b55
] [ sp:object _:b56 ;
sp:predicate rdf:type ;
sp:subject _:b56
sp:subject _:b55
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b57
sp:subject _:b56
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b57
sp:subject _:b56
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
......@@ -3155,13 +3091,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "volumeScale"^^xsd:string
]
] [ sp:object
......@@ -3185,44 +3119,44 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
rdfs:comment "STEP 90171b Process volume for a quantity of material - volume for a specified state - status not specified"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b58
sp:subject _:b57
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b58
sp:subject _:b57
] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
sp:predicate rdf:type ;
sp:subject _:b58
sp:subject _:b57
] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
sp:predicate rdf:type ;
sp:subject _:b58
] [ sp:object _:b59 ;
sp:subject _:b57
] [ sp:object _:b58 ;
sp:predicate rdf:type ;
sp:subject _:b58
sp:subject _:b57
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b59
sp:subject _:b58
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b59
sp:subject _:b58
]) ;
sp:where ([ sp:object
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject
[ sp:varName "somethingRef"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
......@@ -3245,13 +3179,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "volumeScale"^^xsd:string
]
] [ rdf:type sp:NotExists ;
......@@ -3265,49 +3197,149 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90170b Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b59 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b59
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b59
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90170a Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b60 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b60
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b60
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90171a Process volume for a quantity of material - volume for a specified state - status specified"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b60
sp:subject _:b61
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b60
sp:subject _:b61
] [ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
sp:predicate rdf:type ;
sp:subject _:b60
sp:subject _:b61
] [ sp:object
[ sp:varName "measuredQualityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b60
] [ sp:object _:b61 ;
sp:subject _:b61
] [ sp:object _:b62 ;
sp:predicate rdf:type ;
sp:subject _:b60
sp:subject _:b61
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b61
sp:subject _:b62
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b61
sp:subject _:b62
]) ;
sp:where ([ sp:object
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject
[ sp:varName "somethingRef"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
......@@ -3330,13 +3362,11 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectVolumeScale ;
sp:arg1 [ sp:varName "uomVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "uomVolume"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "volumeScale"^^xsd:string
]
] [ sp:object
......@@ -3354,56 +3384,6 @@ except where the quantity of material is derived from a flow"""^^xsd:string ;
[ sp:varName "measuredQualityType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90170a Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b62 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b62
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b62
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
])
])
] .
<http://www.epim.no/schemas/mprml/1#WorkMeasure>
......