David Leal

missing volume bug fixed.

......@@ -25,9 +25,7 @@
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
......@@ -193,9 +191,7 @@
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ sp:object
[ sp:varName "quantityOfMaterial"^^xsd:string
] ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
......@@ -230,7 +226,7 @@
sp:subject _:b6
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#densityValueRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
sp:subject
[ sp:varName "target"^^xsd:string
]
......@@ -308,169 +304,89 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90002 Process volumeValue for a productInventory"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object
[ sp:varName "productInventory"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "grossCalorificValueScale"^^xsd:string
] ;
sp:subject _:b9
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b8
]) ;
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/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productInventory"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productInventory"^^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 90003 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 _:b10
] [ sp:object _:b11 ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b10
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b11
sp:subject _:b9
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b10
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
sp:subject _:b12
sp:subject _:b10
] [ sp:object
[ sp:varName "realTemp"^^xsd:string
] ;
sp:predicate
[ sp:varName "temperatureScale"^^xsd:string
] ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
sp:subject _:b13
sp:subject _:b11
] [ sp:object
[ sp:varName "realPres"^^xsd:string
] ;
sp:predicate
[ sp:varName "pressureScale"^^xsd:string
] ;
sp:subject _:b13
] [ sp:object _:b14 ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b10
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
sp:predicate owl:onProperty ;
sp:subject _:b14
] [ sp:object _:b15 ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b14
sp:subject _:b12
] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
sp:predicate rdf:type ;
sp:subject _:b15
sp:subject _:b13
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "grossCalorificValueScale"^^xsd:string
] ;
sp:subject _:b15
] [ sp:object _:b16 ;
sp:subject _:b13
] [ sp:object _:b14 ;
sp:predicate rdfs:subClassOf ;
sp:subject _:b10
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#energyContent> ;
sp:predicate owl:onProperty ;
sp:subject _:b16
] [ sp:object _:b17 ;
sp:subject _:b14
] [ sp:object _:b15 ;
sp:predicate owl:allValuesFrom ;
sp:subject _:b16
sp:subject _:b14
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
sp:predicate rdf:type ;
sp:subject _:b17
sp:subject _:b15
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate
[ sp:varName "workScale"^^xsd:string
] ;
sp:subject _:b17
sp:subject _:b15
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ;
......@@ -641,6 +557,86 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90002 Process volumeValue for a productInventory"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object
[ sp:varName "productInventory"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b16
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ;
sp:subject _:b16
] [ sp:object <http://www.reportinghub.no/ep/schema/core#EnergyPerVolume> ;
sp:predicate rdf:type ;
sp:subject _:b17
] [ sp:object
[ sp:varName "realGrossCalorificValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "grossCalorificValueScale"^^xsd:string
] ;
sp:subject _:b17
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b16
]) ;
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/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "productInventory"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productInventory"^^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 90000 Process volumeValue for a quantityOfMaterial"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
......@@ -737,11 +733,11 @@
<http://www.epim.no/schemas/mprml/1#DensityMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90061 Process density for a flow"^^xsd:string ;
rdfs:comment "STEP 90060 Process density for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b20 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
sp:predicate rdf:type ;
......@@ -764,13 +760,27 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ 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/transform/transform-helper-schema#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
] ;
......@@ -794,11 +804,11 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90060 Process density for a quantity of material"^^xsd:string ;
rdfs:comment "STEP 90061 Process density for a flow"^^xsd:string ;
sp:templates ([ sp:object _:b21 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
sp:predicate rdf:type ;
......@@ -821,27 +831,13 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ 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 "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
] ;
......@@ -867,33 +863,22 @@
<http://www.epim.no/schemas/mprml/1#MassMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90011 Process mass for a flow - create a quantity of material if necessary"^^xsd:string ;
rdfs:comment "STEP 90010 Process mass for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b22
] [ sp:object _:b23 ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject _:b23
sp:subject _:b22
] [ sp:object
[ sp:varName "realMass"^^xsd:string
] ;
sp:predicate
[ sp:varName "massScale"^^xsd:string
] ;
sp:subject _:b23
sp:subject _:b22
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#massRef> ;
......@@ -905,12 +890,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
......@@ -926,20 +911,6 @@
[ sp:varName "classOfMaterialWithMassCriterion"^^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
]
])
] [ sp:object
[ sp:varName "realMass"^^xsd:string
] ;
......@@ -964,21 +935,21 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90012 Process mass for a product inventory"^^xsd:string ;
sp:templates ([ sp:object _:b24 ;
sp:templates ([ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#summedDailyMass> ;
sp:subject
[ sp:varName "productInventory"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject _:b24
sp:subject _:b23
] [ sp:object
[ sp:varName "realMass"^^xsd:string
] ;
sp:predicate
[ sp:varName "massScale"^^xsd:string
] ;
sp:subject _:b24
sp:subject _:b23
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#massRef> ;
......@@ -1020,12 +991,23 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90010 Process mass for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b25 ;
sp:predicate rdf:type ;
rdfs:comment "STEP 90011 Process mass for a flow - create a quantity of material if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b24
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b24
] [ sp:object _:b25 ;
sp:predicate rdf:type ;
sp:subject _:b24
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject _:b25
......@@ -1047,12 +1029,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
......@@ -1068,6 +1050,20 @@
[ sp:varName "classOfMaterialWithMassCriterion"^^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
]
])
] [ sp:object
[ sp:varName "realMass"^^xsd:string
] ;
......@@ -1093,11 +1089,11 @@
<http://www.epim.no/schemas/mprml/1#PressureMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90041 Process pressure for a flow"^^xsd:string ;
rdfs:comment "STEP 90040 Process pressure for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b26 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
......@@ -1120,13 +1116,27 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ 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/transform/transform-helper-schema#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
] ;
......@@ -1150,11 +1160,11 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90040 Process pressure for a quantity of material"^^xsd:string ;
rdfs:comment "STEP 90041 Process pressure for a flow"^^xsd:string ;
sp:templates ([ sp:object _:b27 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ;
sp:predicate rdf:type ;
......@@ -1177,27 +1187,13 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ 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 "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
] ;
......@@ -1223,11 +1219,11 @@
<http://www.epim.no/schemas/mprml/1#ThermodynamicTemperatureMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90051 Process temperature for a flow"^^xsd:string ;
rdfs:comment "STEP 90050 Process temperature for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b28 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
......@@ -1250,13 +1246,27 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ 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/transform/transform-helper-schema#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
] ;
......@@ -1280,11 +1290,11 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90050 Process temperature for a quantity of material"^^xsd:string ;
rdfs:comment "STEP 90051 Process temperature for a flow"^^xsd:string ;
sp:templates ([ sp:object _:b29 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ;
sp:predicate rdf:type ;
......@@ -1307,27 +1317,13 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ 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 "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
] ;
......@@ -1353,33 +1349,22 @@
<http://www.epim.no/schemas/mprml/1#VolumeMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90071 Process volume for a flow - creating a quantityOfMaterial if necessary"^^xsd:string ;
rdfs:comment "STEP 90070 Process volume for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b30
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b30
] [ sp:object _:b31 ;
sp:predicate rdf:type ;
sp:subject _:b30
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b31
sp:subject _:b30
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b31
sp:subject _:b30
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
......@@ -1391,12 +1376,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
......@@ -1404,12 +1389,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ sp:object
......@@ -1435,12 +1420,23 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90070 Process volume for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b32 ;
sp:predicate rdf:type ;
rdfs:comment "STEP 90071 Process volume for a flow - creating a quantityOfMaterial if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b31
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b31
] [ sp:object _:b32 ;
sp:predicate rdf:type ;
sp:subject _:b31
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b32
......@@ -1462,12 +1458,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
......@@ -1475,12 +1471,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
])
] [ sp:object
......@@ -1508,33 +1504,22 @@
<http://www.epim.no/schemas/mprml/1#VolumeQualifiedMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90071a Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
rdfs:comment "STEP 90070a Process volume for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b33 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b33
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b33
] [ sp:object _:b34 ;
sp:predicate rdf:type ;
sp:subject _:b33
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b34
sp:subject _:b33
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b34
sp:subject _:b33
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ;
......@@ -1546,12 +1531,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
......@@ -1559,12 +1544,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ sp:object
......@@ -1590,12 +1575,23 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90070a Process volume for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b35 ;
sp:predicate rdf:type ;
rdfs:comment "STEP 90071a Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b34 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b34
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b34
] [ sp:object _:b35 ;
sp:predicate rdf:type ;
sp:subject _:b34
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b35
......@@ -1617,12 +1613,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
......@@ -1630,12 +1626,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
])
] [ sp:object
......@@ -1663,33 +1659,22 @@
<http://www.epim.no/schemas/mprml/1#WorkMeasure>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90031 Process work for a flow - creating a quantity of material if necessary"^^xsd:string ;
rdfs:comment "STEP 90030 Process work for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b36 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b36
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b36
] [ sp:object _:b37 ;
sp:predicate rdf:type ;
sp:subject _:b36
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
sp:predicate rdf:type ;
sp:subject _:b37
sp:subject _:b36
] [ sp:object
[ sp:varName "realWork"^^xsd:string
] ;
sp:predicate
[ sp:varName "workScale"^^xsd:string
] ;
sp:subject _:b37
sp:subject _:b36
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ;
......@@ -1701,12 +1686,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
[ sp:varName "quantityOfMaterial"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
......@@ -1714,12 +1699,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterialx"^^xsd:string
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
]
])
] [ sp:object
......@@ -1745,12 +1730,23 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90030 Process work for a quantity of material"^^xsd:string ;
sp:templates ([ sp:object _:b38 ;
sp:predicate rdf:type ;
rdfs:comment "STEP 90031 Process work for a flow - creating a quantity of material if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b37 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b37
] [ sp:object
[ sp:varName "target"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b37
] [ sp:object _:b38 ;
sp:predicate rdf:type ;
sp:subject _:b37
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ;
sp:predicate rdf:type ;
sp:subject _:b38
......@@ -1772,12 +1768,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterial"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
......@@ -1785,12 +1781,12 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string
[ sp:varName "quantityOfMaterialx"^^xsd:string
]
])
] [ sp:object
......@@ -1817,5 +1813,5 @@
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1>
rdf:type owl:Ontology ;
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> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <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: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/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 rhspin: <http://www.reportinghub.no/spin/rh#> .
@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_businessAssociate>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00041 Set organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00042 Set organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00043 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] .
<http://www.epim.no/schemas/mprml/1#RefNameString>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00031 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00023 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00027 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00029 Set organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/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 rhspin: <http://www.reportinghub.no/spin/rh#> .
@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_businessAssociate>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00043 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00042 Set organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00041 Set organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] .
<http://www.epim.no/schemas/mprml/1#RefNameString>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00037 Set source unit organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sourceUnitRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00034 Set sales administrator organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#salesAdministratorRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00031 Set seller organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00030 Set seller organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00036 Set source unit organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sourceUnitRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00035 Set source unit organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sourceUnitRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00027 Set owner organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00023 Set buyer organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00026 Set owner organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00025 Set owner organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00032 Set sales administrator organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#salesAdministratorRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00022 Set buyer organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00029 Set seller organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00033 Set sales administrator organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#salesAdministratorRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00021 Set buyer organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......