Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
David Leal
2012-07-19 19:30:38 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a0a6eb8adbc236fb79c64092d1d6e042d3d7edd3
a0a6eb8a
1 parent
6914e3f6
missing volume bug fixed.
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
603 additions
and
365 deletions
www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v.1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1.ttl
View file @
a0a6eb8
...
...
@@ -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#
density
ValueRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
volume
ValueRef>
;
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
_:
b
10
]
[
sp:
object
_:
b
11
;
sp:
subject
_:
b
8
]
[
sp:
object
_:
b
9
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b
10
sp:
subject
_:
b
8
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Volume>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
11
sp:
subject
_:
b
9
]
[
sp:
object
[
sp:
varName
"realVolume"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"volumeScale"
^^
xsd:
string
]
;
sp:
subject
_:
b
11
]
[
sp:
object
_:
b1
2
;
sp:
subject
_:
b
9
]
[
sp:
object
_:
b1
0
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b
10
sp:
subject
_:
b
8
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Temperature>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
2
sp:
subject
_:
b1
0
]
[
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
_:
b1
3
sp:
subject
_:
b1
1
]
[
sp:
object
[
sp:
varName
"realPres"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"pressureScale"
^^
xsd:
string
]
;
sp:
subject
_:
b1
3
]
[
sp:
object
_:
b1
4
;
sp:
subject
_:
b1
1
]
[
sp:
object
_:
b1
2
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b
10
sp:
subject
_:
b
8
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#grossCalorificValue>
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b1
4
]
[
sp:
object
_:
b1
5
;
sp:
subject
_:
b1
2
]
[
sp:
object
_:
b1
3
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b1
4
sp:
subject
_:
b1
2
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#EnergyPerVolume>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
5
sp:
subject
_:
b1
3
]
[
sp:
object
[
sp:
varName
"realGrossCalorificValue"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"grossCalorificValueScale"
^^
xsd:
string
]
;
sp:
subject
_:
b1
5
]
[
sp:
object
_:
b1
6
;
sp:
subject
_:
b1
3
]
[
sp:
object
_:
b1
4
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
_:
b
10
sp:
subject
_:
b
8
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#energyContent>
;
sp:
predicate
owl:
onProperty
;
sp:
subject
_:
b1
6
]
[
sp:
object
_:
b1
7
;
sp:
subject
_:
b1
4
]
[
sp:
object
_:
b1
5
;
sp:
predicate
owl:
allValuesFrom
;
sp:
subject
_:
b1
6
sp:
subject
_:
b1
4
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Work>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
7
sp:
subject
_:
b1
5
]
[
sp:
object
[
sp:
varName
"realWork"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"workScale"
^^
xsd:
string
]
;
sp:
subject
_:
b1
7
sp:
subject
_:
b1
5
])
;
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 9006
1 Process density for a flow
"
^^
xsd:
string
;
rdfs:
comment
"STEP 9006
0 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 9006
0 Process density for a quantity of material
"
^^
xsd:
string
;
rdfs:
comment
"STEP 9006
1 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 9001
1 Process mass for a flow - create a quantity of material if necessary
"
^^
xsd:
string
;
rdfs:
comment
"STEP 9001
0 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
_:
b2
3
sp:
subject
_:
b2
2
]
[
sp:
object
[
sp:
varName
"realMass"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"massScale"
^^
xsd:
string
]
;
sp:
subject
_:
b2
3
sp:
subject
_:
b2
2
])
;
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
_:
b2
4
;
sp:
templates
([
sp:
object
_:
b2
3
;
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
_:
b2
4
sp:
subject
_:
b2
3
]
[
sp:
object
[
sp:
varName
"realMass"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"massScale"
^^
xsd:
string
]
;
sp:
subject
_:
b2
4
sp:
subject
_:
b2
3
])
;
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 9001
0 Process mass for a quantity of material
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
5
;
sp:
predicate
rdf:
type
;
rdfs:
comment
"STEP 9001
1 Process mass for a flow - create a quantity of material if necessary
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
4
;
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 9004
1 Process pressure for a flow
"
^^
xsd:
string
;
rdfs:
comment
"STEP 9004
0 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 9004
0 Process pressure for a quantity of material
"
^^
xsd:
string
;
rdfs:
comment
"STEP 9004
1 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:
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/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"classOfMaterialWithMassCriterion"
^^
xsd:
string
[
sp:
varName
"flow"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion
>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#Flow
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"classOfMaterialWithMassCriterion
"
^^
xsd:
string
[
sp:
varName
"flow
"
^^
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 9005
1 Process temperature for a flow
"
^^
xsd:
string
;
rdfs:
comment
"STEP 9005
0 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 9005
0 Process temperature for a quantity of material
"
^^
xsd:
string
;
rdfs:
comment
"STEP 9005
1 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:
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/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"classOfMaterialWithMassCriterion"
^^
xsd:
string
[
sp:
varName
"flow"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion
>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#Flow
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"classOfMaterialWithMassCriterion
"
^^
xsd:
string
[
sp:
varName
"flow
"
^^
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 9007
1 Process volume for a flow - creating a quantityOfMaterial if necessary
"
^^
xsd:
string
;
rdfs:
comment
"STEP 9007
0 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
_:
b3
1
sp:
subject
_:
b3
0
]
[
sp:
object
[
sp:
varName
"realVolume"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"volumeScale"
^^
xsd:
string
]
;
sp:
subject
_:
b3
1
sp:
subject
_:
b3
0
])
;
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 9007
0 Process volume for a quantity of material
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b3
2
;
sp:
predicate
rdf:
type
;
rdfs:
comment
"STEP 9007
1 Process volume for a flow - creating a quantityOfMaterial if necessary
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b3
1
;
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 9007
1a Process volume for a flow - creating a quantity of material if necessary
"
^^
xsd:
string
;
rdfs:
comment
"STEP 9007
0a 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
_:
b3
4
sp:
subject
_:
b3
3
]
[
sp:
object
[
sp:
varName
"realVolume"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"volumeScale"
^^
xsd:
string
]
;
sp:
subject
_:
b3
4
sp:
subject
_:
b3
3
])
;
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 9007
0a Process volume for a quantity of material
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b3
5
;
sp:
predicate
rdf:
type
;
rdfs:
comment
"STEP 9007
1a Process volume for a flow - creating a quantity of material if necessary
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b3
4
;
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 9003
1 Process work for a flow - creating a quantity of material if necessary
"
^^
xsd:
string
;
rdfs:
comment
"STEP 9003
0 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
_:
b3
7
sp:
subject
_:
b3
6
]
[
sp:
object
[
sp:
varName
"realWork"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"workScale"
^^
xsd:
string
]
;
sp:
subject
_:
b3
7
sp:
subject
_:
b3
6
])
;
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 9003
0 Process work for a quantity of material
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b3
8
;
sp:
predicate
rdf:
type
;
rdfs:
comment
"STEP 9003
1 Process work for a flow - creating a quantity of material if necessary
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b3
7
;
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
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v.1.1.1.ttl
View file @
a0a6eb8
...
...
@@ -20,7 +20,51 @@
<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
;
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
...
...
@@ -33,7 +77,7 @@
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:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#
OperatingCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
...
...
@@ -51,7 +95,7 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0004
2 Set organization - operating company in NPD fact pages"
^^
xsd:
string
;
rdfs:
comment
"STEP 0004
1 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
...
...
@@ -64,7 +108,7 @@
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:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#
ParentCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
...
...
@@ -79,10 +123,12 @@
])
;
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 000
43 Set organization - define organization not in the NPD fact pages."
^^
xsd:
string
;
rdfs:
comment
"STEP 000
37 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
...
...
@@ -101,10 +147,15 @@
[
sp:
varName
"organization"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
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.
epim.no/schemas/mprml/1#name>
;
sp:
predicate
<http://www.
linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
spin:
_this
;
...
...
@@ -123,20 +174,30 @@
[
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
;
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#
ownerRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
salesAdministratorRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -145,26 +206,27 @@
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
N
amedGraph
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#OperatingCompany>
;
sp:
predicate
rdf:
type
;
]
[
rdf:
type
sp:
N
otExists
;
sp:
elements
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
[
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:
object
[
sp:
varName
"organizationName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/np/schema/npd#name>
;
sp:
subject
sp:
variable
[
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
;
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
...
...
@@ -213,7 +275,7 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 000
21 Set organization - parent company in NPD fact pages"
^^
xsd:
string
;
rdfs:
comment
"STEP 000
30 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
...
...
@@ -221,7 +283,79 @@
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#buyerRef>
;
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
]
...
...
@@ -249,7 +383,7 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0002
3 Set organization - define organization not in the NPD fact pages."
^^
xsd:
string
;
rdfs:
comment
"STEP 0002
7 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
...
...
@@ -269,7 +403,7 @@
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
buyerRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
ownerRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -298,7 +432,7 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0002
7 Set organization - define organization not in the NPD fact pages."
^^
xsd:
string
;
rdfs:
comment
"STEP 0002
3 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
...
...
@@ -318,7 +452,7 @@
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
ownerRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
buyerRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -347,7 +481,7 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0002
9 Set organization - parent company in NPD fact pages"
^^
xsd:
string
;
rdfs:
comment
"STEP 0002
6 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
...
...
@@ -355,7 +489,7 @@
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
sellerRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
ownerRef>
;
sp:
subject
[
sp:
varName
"something"
^^
xsd:
string
]
...
...
@@ -365,7 +499,7 @@
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:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#
OperatingCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
...
...
@@ -383,7 +517,7 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00025 Set o
rganization - parent company in NPD fact pages"
^^
xsd:
string
;
rdfs:
comment
"STEP 00025 Set o
wner 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
...
...
@@ -419,7 +553,79 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 00030 Set organization - operating company in NPD fact pages"
^^
xsd:
string
;
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
...
...
@@ -437,6 +643,42 @@
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
...
...
@@ -455,7 +697,7 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 0002
2 Set organization - operating company in NPD fact pages"
^^
xsd:
string
;
rdfs:
comment
"STEP 0002
1 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
...
...
@@ -473,7 +715,7 @@
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:
elements
([
sp:
object
<http://www.reportinghub.no/np/schema/npd#
ParentCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"organization"
^^
xsd:
string
...
...
@@ -492,5 +734,5 @@
<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:
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
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0.ttl
View file @
a0a6eb8
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment