David Leal

Much better (more extensible) structure to the processing of product volume properties

......@@ -3,6 +3,7 @@
# imports: http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults
# imports: http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults
# imports: http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0
......@@ -14,6 +15,7 @@
@prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> .
@prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> .
@prefix TRANSFORM_mpr-productionReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0#> .
@prefix TRANSFORM_mpr-volumeValue-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1#> .
@prefix injectionTestResults: <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix productionTestResults: <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults#> .
......@@ -30,5 +32,5 @@
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/flow
# imports: http://www.reportinghub.no/ep/schema/1.0/material
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1#> .
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.epim.no/schemas/mprml/1#Cs_densityValue>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90020 Process densityValue for a quantityOfMaterial"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
])
] .
<http://www.epim.no/schemas/mprml/1#Cs_volumeValue>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90001 Process volumeValue for a quantityOfMaterial average amount of material"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
] ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "realTemp"^^xsd:string
] ;
sp:predicate
[ sp:varName "temperatureScale"^^xsd:string
] ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "realPres"^^xsd:string
] ;
sp:predicate
[ sp:varName "pressureScale"^^xsd:string
] ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
sp:predicate owl:onProperty ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "grossCalorificValueScale"^^xsd:string
] ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#energyContent> ;
sp:predicate owl:onProperty ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate
[ sp:varName "workScale"^^xsd:string
] ;
sp:subject _:b9
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object
[ sp:varName "volumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
sp:subject spin:_this
] [ 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.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "volumeRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "tempRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#tempRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "realTemp"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "tempRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomTemp"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "tempRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "presRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#presRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "realPres"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "presRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomPres"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "presRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "grossCalorificValueRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#grossCalorificValueRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "grossCalorificValueRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomGrossCalorificValue"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "grossCalorificValueRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "workRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "workRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomWork"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ 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:variable
[ sp:varName "volumeScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectTemperatureScale ;
sp:arg1 [ sp:varName "uomTemp"^^xsd:string
]
] ;
sp:variable
[ sp:varName "temperatureScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectPressureScale ;
sp:arg1 [ sp:varName "uomPres"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pressureScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectEnergyPerVolumeScale ;
sp:arg1 [ sp:varName "uomGrossCalorificValue"^^xsd:string
]
] ;
sp:variable
[ sp:varName "grossCalorificValueScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectWorkScale ;
sp:arg1 [ sp:varName "uomWork"^^xsd:string
]
] ;
sp:variable
[ sp:varName "workScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90000 Process volumeValue for a quantityOfMaterial"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
sp:subject _:b10
] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "grossCalorificValueScale"^^xsd:string
] ;
sp:subject _:b11
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b10
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "grossCalorificValueRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#grossCalorificValueRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "grossCalorificValueRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomGrossCalorificValue"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "grossCalorificValueRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectEnergyPerVolumeScale ;
sp:arg1 [ sp:varName "uomGrossCalorificValue"^^xsd:string
]
] ;
sp:variable
[ sp:varName "grossCalorificValueScale"^^xsd:string
]
])
] .
<http://www.epim.no/schemas/mprml/1#DensityMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90060 Process density for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object
[ sp:varName "realDensity"^^xsd:string
] ;
sp:predicate
[ sp:varName "densityScale"^^xsd:string
] ;
sp:subject _:b12
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#densityRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ sp:object
[ sp:varName "realDensity"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "uomDensity"^^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:selectDensityScale ;
sp:arg1 [ sp:varName "uomDensity"^^xsd:string
]
] ;
sp:variable
[ sp:varName "densityScale"^^xsd:string
]
])
] .
<http://www.epim.no/schemas/mprml/1#MassMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90010 Process mass for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b13 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ sp:object
[ sp:varName "realMass"^^xsd:string
] ;
sp:predicate
[ sp:varName "massScale"^^xsd:string
] ;
sp:subject _:b13
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#massRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ sp:object
[ sp:varName "realMass"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "uomMass"^^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:selectMassScale ;
sp:arg1 [ sp:varName "uomMass"^^xsd:string
]
] ;
sp:variable
[ sp:varName "massScale"^^xsd:string
]
])
] .
<http://www.epim.no/schemas/mprml/1#PressureMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90040 Process pressure for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject _:b14
] [ sp:object
[ sp:varName "realPressure"^^xsd:string
] ;
sp:predicate
[ sp:varName "pressureScale"^^xsd:string
] ;
sp:subject _:b14
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#presRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ sp:object
[ sp:varName "realPressure"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "uomPressure"^^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:selectPressureScale ;
sp:arg1 [ sp:varName "uomPressure"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pressureScale"^^xsd:string
]
])
] .
<http://www.epim.no/schemas/mprml/1#ThermodynamicTemperatureMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90050 Process temperature for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b15 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object
[ sp:varName "realTemperature"^^xsd:string
] ;
sp:predicate
[ sp:varName "temperatureScale"^^xsd:string
] ;
sp:subject _:b15
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#tempRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ sp:object
[ sp:varName "realTemperature"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "uomTemperature"^^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:selectTemperatureScale ;
sp:arg1 [ sp:varName "uomTemperature"^^xsd:string
]
] ;
sp:variable
[ sp:varName "temperatureScale"^^xsd:string
]
])
] .
<http://www.epim.no/schemas/mprml/1#VolumeMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90070 Process volume for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b16 ;
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 _:b16
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b16
]) ;
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/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "uomVolume"^^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:variable
[ sp:varName "volumeScale"^^xsd:string
]
])
] .
<http://www.epim.no/schemas/mprml/1#WorkMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90030 Process work for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b17 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
sp:predicate rdf:type ;
sp:subject _:b17
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate
[ sp:varName "workScale"^^xsd:string
] ;
sp:subject _:b17
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "uomWork"^^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:selectWorkScale ;
sp:arg1 [ sp:varName "uomWork"^^xsd:string
]
] ;
sp:variable
[ sp:varName "workScale"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/flow> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .