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-08-25 08:59:10 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3f09e35cbe3bf63cb33f22e5ea99cd2e638bb402
3f09e35c
1 parent
c0da7ecb
Completed use of rdfs:label for data generated classes
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
521 additions
and
521 deletions
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0.ttl
View file @
3f09e35
This diff could not be displayed because it is too large.
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0.ttl
View file @
3f09e35
...
...
@@ -22,130 +22,59 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 200
20 Add the report kind .
"
^^
xsd:
string
;
rdfs:
comment
"STEP 200
33 Inherit end dates from the report context if necessary
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"reportKind"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productVolumeReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReportType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"kind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
;
sp:
predicate
rdf:
type
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
[
sp:
varName
"product
VolumeRef
"
^^
xsd:
string
[
sp:
varName
"product
ionFlowNetwork
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
productVolumeRef
"
^^
xsd:
string
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productVolumeReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductVolumeReport>
;
sp:
predicate
rdf:
type
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
[
sp:
varName
"product
VolumeReport
"
^^
xsd:
string
[
sp:
varName
"product
ionFlowNetworkToDate
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
nameRef
"
^^
xsd:
string
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#nameRef
>
;
sp:
predicate
<http://www.
reportinghub.no/ep/schema/activity#finishedAt
>
;
sp:
subject
[
sp:
varName
"product
VolumeRef
"
^^
xsd:
string
[
sp:
varName
"product
ionInventoryCollection
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
name
"
^^
xsd:
string
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
linkedmodel.org/schema/dtype#value
>
;
sp:
predicate
<http://www.
reportinghub.no/ep/schema/activity#finishedAt
>
;
sp:
subject
[
sp:
varName
"
nameRef
"
^^
xsd:
string
[
sp:
varName
"
productionInventoryCollectionToDate
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"kind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kind>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildProductionReportKindURI
;
sp:
arg1
[
sp:
varName
"kind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"reportKind"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 20041 Set the production facility - taken from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"productionFacility"
^^
xsd:
string
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#temporalPartOf
>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
activity#finishedAt
>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
productionFacility
"
^^
xsd:
string
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#temporalPartOf
>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
activity#finishedAt
>
;
sp:
subject
[
sp:
varName
"productionFacilityToDate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"normalizedProductionFacilityName"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"normalizedProductionFacilityName"
^^
xsd:
string
sp:
where
([
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText
>
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#objectRef
>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
productVolumeRef
"
^^
xsd:
string
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#objectRef
>
;
sp:
predicate
<http://www.
reportinghub.no/ep/transform/transform-helper-schema#intervalEnd
>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
;
sp:
predicate
rdf:
type
;
...
...
@@ -154,9 +83,18 @@
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"
installationRef
x"
^^
xsd:
string
[
sp:
varName
"
dateEnd
x"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dTimEndx"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dTimEnd>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
...
...
@@ -166,168 +104,109 @@
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
[
sp:
varName
"
productionFlowNetwork
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/f
acility#TemporalPartOfAProductionFacility
>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/f
low#ProductionFlowNetwork
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
[
sp:
varName
"
productionFlowNetwork
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionF
acility
ToDate"
^^
xsd:
string
[
sp:
varName
"productionF
lowNetwork
ToDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
[
sp:
varName
"
productionFlowNetwork
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/f
acility#ProductionFacility
ToDate>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/f
low#ProductionFlowNetwork
ToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFacilityToDate"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 20060 Set the facility operator
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"productionFlowNetworkToDate"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "
operator
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"productionInventoryCollection"
^^
xsd:
string
]
] [ sp:object <http://www.
epim.no/schemas/mprml/1#Obj_productVolume
> ;
]
[
sp:
object
<http://www.
reportinghub.no/ep/schema/flow#ProductionInventoryCollection
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
operatorRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
[
sp:
varName
"productionInventoryCollection"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
operatorRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
operator
"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
20050
Set
the
context
facility
-
installation
is
always
specified
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
contextFacility
"^^xsd:string
[
sp:
varName
"productionInventoryCollectionToDate"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/schema/
geography#locatedWithin
> ;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#temporalPartOf
>
;
sp:
subject
[ sp:varName "
production
Facility
"^^xsd:string
[
sp:
varName
"production
InventoryCollection
"
^^
xsd:
string
]
]) ;
sp:where ([ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
product
VolumeRef
"^^xsd:string
[
sp:
varName
"product
ionInventoryCollectionToDate
"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
installationRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
] [ sp:object
[ sp:varName "
installationRef
"^^xsd:string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[ sp:varName "
p
roductionFacility
"^^xsd:string
[
sp:
varName
"
temporalPartOfAP
roductionFacility"
^^
xsd:
string
]
] [ sp:object
[ sp:varName "
contextFacilityRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
productVolumeRef
"^^xsd:string
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
contextFacilityRef
"^^xsd:string
[
sp:
varName
"
productionFacilityToDate
"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/
transform/transform-helper-schema#derivedFrom
> ;
sp:
predicate
<http://www.reportinghub.no/ep/
schema/core#temporalPartOf
>
;
sp:
subject
[ sp:varName "
contextFacility
"^^xsd:string
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFacilityToDate"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:comment "
STEP
2001
2
Create
the
period
ProductionInventoryCollection
and
the
ProductionInventoryCollection
ToDate
.
"^^xsd:string ;
sp:templates ([ sp:object _:b
2
;
rdfs:
comment
"STEP 2001
1 Create the reporting period ProductionFlowNetwork and the ProductionFlowNetwork
ToDate."
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"productVolumeReport"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Production
InventoryCollection
> ;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#Production
FlowNetwork
>
;
sp:
predicate
rdf:
type
;
sp:subject _:b
2
sp:
subject
_:
b
1
]
[
sp:
object
[
sp:
varName
"temporalPartDurationType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:subject _:b
2
sp:
subject
_:
b
1
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:
subject
_:
b1
]
[
sp:
object
_:
b2
;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b1
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
] [ sp:object _:b
3
;
sp:predicate <http://www.reportinghub.no/ep/schema/
core#hasSpatialPart
> ;
]
[
sp:
object
_:
b
2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
flow#facilityContainsFlow
>
;
sp:
subject
[
sp:
varName
"productionFacilityToDate"
^^
xsd:
string
]
...
...
@@ -412,11 +291,27 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:
subject
[
sp:
varName
"facilityRef"
^^
xsd:
string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ;
]
[
sp:
object
[
sp:
varName
"flowKind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
[
sp:
varName
"flowRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
selectProductionFlowPurposeType
;
sp:
arg1
[
sp:
varName
"flowKind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"productionFlowPurposeType"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlowPurposeType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFlowPurposeType"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
...
...
@@ -431,95 +326,62 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:comment "
STEP
2003
0
Record
the
start
and
end
date-times
"^^xsd:string ;
rdfs:
comment
"STEP 2003
2 Inherit start dates from the report context if necessary
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[ sp:varName "
d
Tim
Start
"^^xsd:string
[
sp:
varName
"d
ate
Start"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"productionFlowNetwork"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlowNetworkToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"productionInventoryCollection"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionInventoryCollectionToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateStartx"
^^
xsd:
string
]
;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim
Start> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date
Start>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dTimStartx"
^^
xsd:
string
]
;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd
> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dTimStart
>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
...
...
@@ -566,7 +428,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
productionInventoryCollec
c
tionToDate
"^^xsd:string
[
sp:
varName
"productionInventoryCollectionToDate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
...
...
@@ -599,168 +461,51 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
rdfs:
comment
"STEP 20010 Create the ProductVolumeReport; the period ProductionFacility and the ProductionFacilityToDate ."
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductVolumeReport>
;
sp:
predicate
rdf:
type
;
sp:subject _:b
4
sp:
subject
_:
b
3
]
[
sp:
object
[
sp:
varName
"productionReport"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#partOf>
;
sp:subject _:b
4
sp:
subject
_:
b
3
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:subject _:b
4
sp:
subject
_:
b
3
]
[
sp:
object
[
sp:
varName
"reportPeriodType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:subject _:b
4
sp:
subject
_:
b
3
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:subject _:b
4
sp:
subject
_:
b
3
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:subject _:b
5
sp:
subject
_:
b
4
]
[
sp:
object
[
sp:
varName
"temporalPartDurationType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:subject _:b
5
sp:
subject
_:
b
4
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:subject _:b
5
] [ sp:object _:b
6
;
sp:
subject
_:
b
4
]
[
sp:
object
_:
b
5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:subject _:b
5
sp:
subject
_:
b
4
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate>
;
sp:
predicate
rdf:
type
;
sp:subject _:b
6
sp:
subject
_:
b
5
]
[
sp:
object
[
sp:
varName
"title"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#title>
;
sp:subject _:b4
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
productionReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionReport
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
nameRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
name
"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "
nameRef
"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "
periodKindRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "
titleRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
title
"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "
titleRef
"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
sp:arg1 [ sp:varName "
periodKindRef
"^^xsd:string
]
] ;
sp:variable
[ sp:varName "
reportPeriodType
"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectTemporalPartDurationType ;
sp:arg1 [ sp:varName "
periodKindRef
"^^xsd:string
]
] ;
sp:variable
[ sp:varName "
temporalPartDurationType
"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
20011
Create
the
reporting
period
ProductionFlowNetwork
and
the
ProductionFlowNetworkToDate
.
"^^xsd:string ;
sp:templates ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "
productVolumeReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object
[ sp:varName "
temporalPartDurationType
"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b7
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
sp:
subject
_:
b3
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
...
...
@@ -775,48 +520,26 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
productVolumeReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeReport
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"
productVolumeRef
"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
productionFacilityToDate
"^^xsd:string
[
sp:
varName
"
nameRef
"
^^
xsd:
string
]
;
sp:predicate <http://www.
reportinghub.no/ep/schema/core#temporalPartO
f> ;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#nameRe
f>
;
sp:
subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"
productVolumeRef
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
[
sp:
varName
"
nameRef
"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
...
...
@@ -827,43 +550,31 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
])
] [ rdf:type sp:
Exists
;
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[ sp:varName "
facility
Ref
"^^xsd:string
[
sp:
varName
"
title
Ref"
^^
xsd:
string
]
;
sp:predicate <http://www.epim.no/schemas/mprml/1#
facility
Ref> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
title
Ref>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
flowRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "
facilityRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
flowKind
"^^xsd:string
[
sp:
varName
"title"
^^
xsd:
string
]
;
sp:predicate <http://www.
epim.no/schemas/mprml/1#kindRef
> ;
sp:
predicate
<http://www.
linkedmodel.org/schema/dtype#value
>
;
sp:
subject
[ sp:varName "
flow
Ref
"^^xsd:string
[
sp:
varName
"
title
Ref"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[ rdf:type ep-mpr-spin-lib:selectProductionFlowPurpose
Type ;
sp:arg1 [ sp:varName "
flowKind
"^^xsd:string
[
rdf:
type
ep-mpr-spin-lib:
selectReportPeriod
Type
;
sp:
arg1
[
sp:
varName
"periodKindRef
"
^^
xsd:
string
]
]
;
sp:
variable
[ sp:varName "
productionFlowPurposeType
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowPurposeType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionFlowPurposeType
"^^xsd:string
[
sp:
varName
"reportPeriodType"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
selectTemporalPartDurationType
;
...
...
@@ -877,6 +588,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 20050 Set the context facility - installation is always specified"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"contextFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"contextFacilityRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextFacilityRef>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"contextFacilityRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"contextFacility"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 20040 Set the production facility - supplied"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"productionFacility"
^^
xsd:
string
...
...
@@ -967,154 +729,303 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:comment "
STEP
200
33
Inherit
end
dates
from
the
report
context
if
necessary
"^^xsd:string ;
rdfs:
comment
"STEP 200
41 Set the production facility - taken from context
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[ sp:varName "
dateEnd
"^^xsd:string
[
sp:
varName
"
productionFacility
"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/schema/
activity#finishedAt
> ;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#temporalPartOf
>
;
sp:
subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
dateEnd
"^^xsd:string
[
sp:
varName
"
productionFacility
"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/schema/
activity#finishedAt
> ;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#temporalPartOf
>
;
sp:
subject
[ sp:varName "
productionF
lowNetwork
ToDate
"^^xsd:string
[
sp:
varName
"productionF
acility
ToDate"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
dateEnd
"^^xsd:string
[
sp:
varName
"
normalizedProductionFacilityName
"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/
schema/activity#finishedA
t> ;
sp:
predicate
<http://www.reportinghub.no/ep/
transform/transform-helper-schema#hasDerivedTex
t>
;
sp:
subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
dateEnd
"^^xsd:string
[
sp:
varName
"
normalizedProductionFacilityName
"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
productionInventoryCollectionToDate
"^^xsd:string
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"installationRefx"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
])
]
[
sp:
object
[ sp:varName "
dateEnd
"^^xsd:string
[
sp:
varName
"
productVolumeRef
"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
dateEnd
"^^xsd:string
[
sp:
varName
"
productionFacilityToDate
"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFacilityToDate"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 20012 Create the period ProductionInventoryCollection and the ProductionInventoryCollectionToDate."
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"productVolumeReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b6
]
[
sp:
object
[
sp:
varName
"temporalPartDurationType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b6
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b7
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b6
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b7
]
[
sp:
object
_:
b6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasSpatialPart>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
_:
b7
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasSpatialPart>
;
sp:
subject
[
sp:
varName
"productionFacilityToDate"
^^
xsd:
string
]
])
;
sp:where ([ sp:object
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productVolumeReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductVolumeReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productVolumeReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
dateEnd
"^^xsd:string
[
sp:
varName
"
productionFacilityToDate
"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
product
VolumeRef
"^^xsd:string
[
sp:
varName
"product
ionFacilityToDate
"
^^
xsd:
string
]
] [ rdf:type sp:
NotExists
;
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[ sp:varName "
dateEndx
"^^xsd:string
[
sp:
varName
"
periodKindRef
"
^^
xsd:
string
]
;
sp:predicate <http://www.epim.no/schemas/mprml/1#
dateEnd
> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
periodKindRef
>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
])
] [ rdf:type sp:
Not
Exists ;
]
[
rdf:
type
sp:
Exists
;
sp:
elements
([
sp:
object
[ sp:varName "
dTimEndx
"^^xsd:string
[
sp:
varName
"
facilityRef
"
^^
xsd:
string
]
;
sp:predicate <http://www.epim.no/schemas/mprml/1#
dTimEnd
> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
facilityRef
>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
])
]
[
sp:
object
[ sp:varName "
productVolume
Ref
"^^xsd:string
[
sp:
varName
"flow
Ref"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom
> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#flowRef
>
;
sp:
subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
[
sp:
varName
"facilityRef
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork
> ;
sp:predicate rdf:type
;
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#RF_inventory
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kindRef>
;
sp:
subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
[
sp:
varName
"flowRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
selectTemporalPartDurationType
;
sp:
arg1
[
sp:
varName
"periodKindRef"
^^
xsd:
string
]
] [ sp:object
[ sp:varName "
productionFlowNetworkToDate
"^^xsd:string
]
;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
sp:
variable
[
sp:
varName
"temporalPartDurationType"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ;
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 20020 Add the report kind ."
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"reportKind"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
product
ionFlowNetworkToDate
"^^xsd:string
[
sp:
varName
"product
VolumeReport
"
^^
xsd:
string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReportType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
[
sp:
varName
"
reportKind
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/
flow#ProductionInventoryCollection
> ;
sp:predicate rdf
:type
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
report#ProductionReport
>
;
sp:
predicate
rdf
s:
subClassOf
;
sp:
subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
[
sp:
varName
"
reportKind
"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
productionInventoryCollectionToDate
"^^xsd:string
[
sp:
varName
"
kind
"
^^
xsd:
string
]
;
sp:predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
predicate
rdfs:
label
;
sp:
subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
[
sp:
varName
"
reportKind
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
])
;
sp:
where
([
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
product
ionInventoryCollectionToDate
"^^xsd:string
[
sp:
varName
"product
VolumeRef
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"
productVolumeReport
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/
facility#TemporalPartOfAProductionFacility
> ;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
report#ProductVolumeReport
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"
productVolumeReport
"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
productionFacilityToDate
"^^xsd:string
[
sp:
varName
"
nameRef
"
^^
xsd:
string
]
;
sp:predicate <http://www.
reportinghub.no/ep/schema/core#temporalPartO
f> ;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#nameRe
f>
;
sp:
subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"
productVolumeRef
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
[
sp:
varName
"nameRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"kind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kind>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildProductionReportKindURI
;
sp:
arg1
[
sp:
varName
"kind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"reportKind"
^^
xsd:
string
]
])
]
;
...
...
@@ -1285,62 +1196,151 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:comment "
STEP
20032
Inherit
start
dates
from
the
report
context
if
necessary
"^^xsd:string ;
rdfs:
comment
"""STEP 20060 Set the facility operator
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object
[ sp:varName "
operator
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
]) ;
sp:where ([ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
operatorRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
operatorRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
operator
"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
20030
Record
the
start
and
end
date-times
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
d
ate
Start
"^^xsd:string
[ sp:varName "
d
Tim
Start
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateStart
"^^xsd:string
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlowNetworkToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateStart
"^^xsd:string
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionInventoryCollectionToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "
dateStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "
dateStartx
"^^xsd:string
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date
Start> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim
Start> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "
dTimStartx
"^^xsd:string
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart
> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd
> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
])
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
...
...
@@ -1387,7 +1387,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionInventoryCollectionToDate
"^^xsd:string
[ sp:varName "
productionInventoryCollec
c
tionToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
...
...
@@ -1418,5 +1418,5 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/
dpr/spin/1.1/lib> , <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/transform/transform-helper-schema
> ;
owl:imports <http://www.reportinghub.no/ep/
transform/transform-helper-schema> , <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/dpr/spin/1.1/lib
> ;
owl:versionInfo "
Created
with
TopBraid
Composer
"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment