David Leal

MPR Density data bug fix

......@@ -35,7 +35,7 @@
sp:subject _:b1
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#densityValueRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
......@@ -71,89 +71,183 @@
<http://www.epim.no/schemas/mprml/1#Cs_volumeValue>
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 _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "grossCalorificValueScale"^^xsd:string
] ;
sp:subject _:b3
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b2
]) ;
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
]
])
] ;
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:subject _:b4
] [ sp:object _:b5 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:subject _:b5
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
sp:subject _:b4
sp:subject _:b6
] [ sp:object
[ sp:varName "realTemp"^^xsd:string
] ;
sp:predicate
[ sp:varName "temperatureScale"^^xsd:string
] ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject _:b5
sp:subject _:b7
] [ sp:object
[ sp:varName "realPres"^^xsd:string
] ;
sp:predicate
[ sp:varName "pressureScale"^^xsd:string
] ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
sp:predicate owl:onProperty ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b6
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
sp:predicate rdf:type ;
sp:subject _:b7
sp:subject _:b9
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "grossCalorificValueScale"^^xsd:string
] ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b2
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#energyContent> ;
sp:predicate owl:onProperty ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b8
sp:subject _:b10
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
sp:predicate rdf:type ;
sp:subject _:b9
sp:subject _:b11
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate
[ sp:varName "workScale"^^xsd:string
] ;
sp:subject _:b9
sp:subject _:b11
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
......@@ -321,100 +415,6 @@
[ 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>
......@@ -782,25 +782,98 @@
])
] .
<http://www.epim.no/schemas/mprml/1#VolumeQualifiedMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90070a Process volume 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#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b17
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b17
]) ;
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:templates ([ sp:object _:b18 ;
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:subject _:b18
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate
[ sp:varName "workScale"^^xsd:string
] ;
sp:subject _:b17
sp:subject _:b18
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
......@@ -857,5 +930,5 @@
<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:imports <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......