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-03 09:13:46 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
160b890e2d178ff262d5241b11255150ed940ff6
160b890e
1 parent
0bec2085
SalesActivity bug fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
496 additions
and
491 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 @
160b890
This diff could not be displayed because it is too large.
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0.ttl
View file @
160b890
...
...
@@ -22,62 +22,95 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 2003
2 Inherit start dates from the report context if necessary
"
^^
xsd:
string
;
rdfs:
comment
"STEP 2003
0 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
"productionFlow"
^^
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
"productionFlow"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
[
sp:
varName
"productionFlowToDate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"productionInventory"
^^
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
"productionInventory"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
[
sp:
varName
"productionInventoryToDate"
^^
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
]
;
...
...
@@ -154,124 +187,142 @@
]
;
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> ;
rdfs:
comment
"STEP 20031 Record the start and end dates"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"
productionFlow
"
^^
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:
varName
"
dateEnd
"
^^
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.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
[
sp:
varName
"productionFlow"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
[
sp:
varName
"productionFlowToDate"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
productVolumeRef
"^^xsd:string
[
sp:
varName
"
dateStart
"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"productionInventory"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
[
sp:
varName
"productionInventory"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
[
sp:
varName
"productionInventoryToDate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
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
<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:
varName
"
dateStart
"
^^
xsd:
string
]
;
sp:predicate <http://www.epim.no/schemas/mprml/1#
operatorRef
> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
dateStart
>
;
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
]
])
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
20011
Create
the
period
ProductionFlow
and
the
ProductionFlowToDate
-
if
necessary
.
"^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[ sp:varName "
productVolumeRe
port
"^^xsd:string
[
sp:
varName
"productVolumeRe
f
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject _:b2
]
[
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#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:
subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"
productionFlow
"
^^
xsd:
string
]
] [ sp:object
_:b3
;
sp:predicate
<http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlow>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
productionF
acilityToDate
"^^xsd:string
[
sp:
varName
"productionF
low
"
^^
xsd:
string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
]
[
sp:
object
[
sp:
varName
"productionFlowToDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[ sp:varName "
production
Report
"^^xsd:string
[
sp:
varName
"production
Flow
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/
report#ProductionReport
> ;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
flow#ProductionFlowToDate
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
production
Report
"^^xsd:string
[
sp:
varName
"production
FlowToDate
"
^^
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
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionInventory"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventory>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
product
VolumeRef
"^^xsd:string
[
sp:
varName
"product
ionInventory
"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
product
VolumeRef
"^^xsd:string
[
sp:
varName
"product
ionInventoryToDate
"
^^
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 "
product
VolumeReport
"^^xsd:string
[
sp:
varName
"product
ionInventory
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/
report#ProductVolumeReport
> ;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
flow#ProductionInventoryToDate
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
product
VolumeReport
"^^xsd:string
[
sp:
varName
"product
ionInventoryToDate
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
...
...
@@ -301,135 +352,115 @@ 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> ;
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 "
p
roductionFacility
"^^xsd:string
[ sp:varName "
temporalPartOfAP
roductionFacility
"^^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: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 "
installation
Ref
"^^xsd:string
[ sp:varName "
operator
Ref
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#
installation
Ref> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#
operator
Ref> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
installation
Ref
"^^xsd:string
[ sp:varName "
operator
Ref
"^^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
[ sp:varName "
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 "
productionFlow
"^^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
low
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 "
product
ionInventory
"^^xsd:string
[ sp:varName "
product
VolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
production
InventoryToDate
"^^xsd:string
[ sp:varName "
production
Facility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
temporalPartOfAP
roductionFacility
"^^xsd:string
[ sp:varName "
p
roductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^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:varName "
normalizedProductionFacilityName
"^^xsd:string
] ;
sp:predicate <http://www.
epim.no/schemas/mprml/1#objectRef
> ;
sp:predicate <http://www.
reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText
> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.
reportinghub.no/ep/transform/transform-helper-schema#intervalEnd
> ;
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 <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 "
dateEndx
"^^xsd:string
] ;
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:varName "
installationRefx
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#
dTimEnd
> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#
installationRef
> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
...
...
@@ -439,104 +470,84 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
productionFlow
"^^xsd:string
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/f
low#ProductionFlow
> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/f
acility#TemporalPartOfAProductionFacility
> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionFlow
"^^xsd:string
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionF
low
ToDate
"^^xsd:string
[ sp:varName "
productionF
acility
ToDate
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionFlow
"^^xsd:string
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/f
low#ProductionFlow
ToDate> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/f
acility#ProductionFacility
ToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionF
low
ToDate
"^^xsd:string
[ sp:varName "
productionF
acility
ToDate
"^^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 "
productionInventory
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
spin:rule
[ rdf:type sp:Construct ;
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
[ sp:varName "
productionInventory
"^^xsd:string
]
sp:subject _:b2
] [ sp:object
[ sp:varName "
productionInventoryToDate
"^^xsd:string
[ sp:varName "
productionReport
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "
name
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "
reportPeriodType
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionInventory
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionInventoryToDate
"^^xsd:string
]
sp:subject _:b2
] [ 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:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
sp:subject _:b3
] [ sp:object
[ sp:varName "
product
ionFacilityToDate
"^^xsd:string
[ sp:varName "
product
VolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
sp:subject _:b3
] [ 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
20020
Add
the
report
kind
.
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
reportKind
"^^xsd:string
sp:subject _:b4
] [ sp:object
[ sp:varName "
title
"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:predicate <http://purl.org/dc/elements/1.1/title> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
reportKind
"^^xsd:string
[ sp:varName "
productionReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf
s:subClassOf
;
sp:predicate rdf
:type
;
sp:subject
[ sp:varName "
reportKind
"^^xsd:string
[ sp:varName "
productionReport
"^^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:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...
...
@@ -547,18 +558,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ 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 "
nameRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
...
...
@@ -572,50 +571,86 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:subject
[ sp:varName "
nameRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
kind
"^^xsd:string
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "
periodKindRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
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-
dpr-spin-lib:buildProductionReportKindURI
;
sp:arg1 [ sp:varName "
kind
"^^xsd:string
[ rdf:type ep-
mpr-spin-lib:selectReportPeriodType
;
sp:arg1 [ sp:varName "
periodKindRef
"^^xsd:string
]
] ;
sp:variable
[ sp:varName "
report
Kind
"^^xsd:string
[ sp:varName "
report
PeriodType
"^^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
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
rdfs:comment "
STEP
20012
Create
the
period
ProductionInventory
and
the
ProductionInventoryToDate
.
"^^xsd:string ;
sp:templates ([ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[ sp:varName "
productVolumeReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "
product
ionFacility
"^^xsd:string
[ sp:varName "
product
VolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
normalizedProductionFacilityName
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject
[ sp:varName "
product
VolumeRef
"^^xsd:string
[ sp:varName "
product
ionFacilityToDate
"^^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> ;
...
...
@@ -626,18 +661,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ 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: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
...
...
@@ -663,195 +696,180 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "
installationRef
"^^xsd:string
] ;
sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
] ;
sp:variable
[ sp:varName "
normalizedProductionFacilityName
"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
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 _:b4
rdfs:comment "
STEP
20032
Inherit
start
dates
from
the
report
context
if
necessary
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
dateStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
productionFlow
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionRepo
rt
"^^xsd:string
[ sp:varName "
dateSta
rt
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b4
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
productionInventory
"^^xsd:string
]
] [ sp:object
[ sp:varName "
name
"^^xsd:string
[ sp:varName "
dateStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b4
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^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 "
reportPeriodType
"^^xsd:string
[ 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 _:b4
] [ sp:object
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "
dateStartx
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b5
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "
dTimStartx
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
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 _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:subject
[ sp:varName "
productionFlow
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject _:b6
sp:subject
[ sp:varName "
productionFlow
"^^xsd:string
]
] [ sp:object
[ sp:varName "
titl
e
"^^xsd:string
[ sp:varName "
productionFlowToDat
e
"^^xsd:string
] ;
sp:predicate <http://purl.org/dc/elements/1.1/title> ;
sp:subject _:b4
]) ;
sp:where ([ sp:object spin:_this ;
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 "
production
Report
"^^xsd:string
[ sp:varName "
production
Flow
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/
report#ProductionReport
> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/
flow#ProductionFlowToDate
> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
production
Report
"^^xsd:string
[ sp:varName "
production
FlowToDate
"^^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 <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
productionInventory
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
product
VolumeRef
"^^xsd:string
[ sp:varName "
product
ionInventory
"^^xsd:string
]
] [ sp:object
[ sp:varName "
nameRef
"^^xsd:string
[ sp:varName "
productionInventoryToDate
"^^xsd:string
] ;
sp:predicate <http://www.
epim.no/schemas/mprml/1#nameRe
f> ;
sp:predicate <http://www.
reportinghub.no/ep/schema/core#temporalPartO
f> ;
sp:subject
[ sp:varName "
product
VolumeRef
"^^xsd:string
[ sp:varName "
product
ionInventory
"^^xsd:string
]
] [ sp:object
[ sp:varName "
name
"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
nameRef
"^^xsd:string
[ sp:varName "
productionInventoryToDate
"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "
periodKindRef
"^^xsd:string
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef
> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom
> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
[ sp:varName "
temporalPartOfAProductionFacility
"^^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: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 "
titl
e
"^^xsd:string
[ sp:varName "
productionFacilityToDat
e
"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value
> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf
> ;
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:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] ;
sp:variable
[ sp:varName "
reportPeriodType
"^^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
2003
0
Record
the
start
and
end
date-times
"^^xsd:string ;
rdfs:comment "
STEP
2003
3
Inherit
end
dates
from
the
report
context
if
necessary
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
productionFlow
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
[ sp:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlow
"^^xsd:string
]
] [ sp:object
[ sp:varName "
d
Tim
End
"^^xsd:string
[ sp:varName "
d
ate
End
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlowToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
productionInventory
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
[ sp:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionInventory
"^^xsd:string
]
] [ sp:object
[ sp:varName "
d
Tim
End
"^^xsd:string
[ sp:varName "
d
ate
End
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionInventoryToDate
"^^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:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
d
Tim
End
"^^xsd:string
[ sp:varName "
d
ate
End
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
...
...
@@ -863,25 +881,39 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "
dateEnd
"^^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 rdf:type ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
] [ 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 "
dateEndx
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart
> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd
> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^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
]
])
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
...
...
@@ -958,7 +990,7 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
2004
1
Set
the
production
facility
-
taken
from
context
"^^xsd:string ;
rdfs:comment "
STEP
2004
0
Set
the
production
facility
-
supplied
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
productionFacility
"^^xsd:string
] ;
...
...
@@ -973,19 +1005,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
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
...
...
@@ -995,8 +1014,11 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "
normalizedProductionFacilityName
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
sp:subject spin:_this
] [ sp:object
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
...
...
@@ -1006,15 +1028,20 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "
installationRefx
"^^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 "
productVolumeRef
"^^xsd:string
] ;
...
...
@@ -1039,73 +1066,95 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "
installationRef
"^^xsd:string
] ;
sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
] ;
sp:variable
[ sp:varName "
normalizedProductionFacilityName
"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
200
31
Record
the
start
and
end
dates
"^^xsd:string ;
rdfs:comment "
STEP
200
50
Set
the
context
facility
-
installation
is
always
specified
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
dateStart
"^^xsd:string
[ sp:varName "
contextFacility
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/
activity#startedAt
> ;
sp:predicate <http://www.reportinghub.no/ep/schema/
geography#locatedWithin
> ;
sp:subject
[ sp:varName "
productionF
low
"^^xsd:string
[ sp:varName "
productionF
acility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
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
ionFlow
"^^xsd:string
[ sp:varName "
product
VolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
[ sp:varName "
installationRef
"^^xsd:string
] ;
sp:predicate <http://www.
reportinghub.no/ep/schema/activity#finishedAt
> ;
sp:predicate <http://www.
epim.no/schemas/mprml/1#installationRef
> ;
sp:subject
[ sp:varName "
product
ionFlowToDate
"^^xsd:string
[ sp:varName "
product
VolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateStart
"^^xsd:string
[ sp:varName "
installationRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/
schema/activity#startedAt
> ;
sp:predicate <http://www.reportinghub.no/ep/
transform/transform-helper-schema#derivedFrom
> ;
sp:subject
[ sp:varName "
production
Inventor
y
"^^xsd:string
[ sp:varName "
production
Facilit
y
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
[ sp:varName "
contextFacilityRef
"^^xsd:string
] ;
sp:predicate <http://www.
reportinghub.no/ep/schema/activity#finishedAt
> ;
sp:predicate <http://www.
epim.no/schemas/mprml/1#contextFacilityRef
> ;
sp:subject
[ sp:varName "
product
ionInventory
"^^xsd:string
[ sp:varName "
product
VolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
[ sp:varName "
contextFacilityRef
"^^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 "
productionInventoryToDate
"^^xsd:string
[ sp:varName "
contextFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateStart
"^^xsd:string
])
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
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 "
temporalPartOfAProductionFacility
"^^xsd:string
[ sp:varName "
productVolumeReport
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[ 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 "
dateE
nd
"^^xsd:string
[ sp:varName "
ki
nd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/
activity#finishedAt
> ;
sp:predicate <http://www.reportinghub.no/ep/schema/
core#name
> ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
[ sp:varName "
reportKind
"^^xsd:string
]
]) ;
sp:where ([ sp:object
...
...
@@ -1119,102 +1168,58 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateStart
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
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 "
product
ionFlow
"^^xsd:string
[ sp:varName "
product
VolumeReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/
flow#ProductionFlow
> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/
report#ProductVolumeReport
> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
product
ionFlow
"^^xsd:string
[ sp:varName "
product
VolumeReport
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionFlowToDate
"^^xsd:string
[ sp:varName "
nameRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionFlow
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "
productionFlowToDate
"^^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 "
productionInventory
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionInventory
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionInventoryToDat
e
"^^xsd:string
[ sp:varName "
nam
e
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionInventory
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
sp:predicate rdf:type ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "
productionInventoryToDate
"^^xsd:string
[ sp:varName "
nameRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
[ sp:varName "
kind
"^^xsd:string
] ;
sp:predicate <http://www.
reportinghub.no/ep/transform/transform-helper-schema#derivedFrom
> ;
sp:predicate <http://www.
epim.no/schemas/mprml/1#kind
> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [
sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate rdf:type ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
] [
rdf:type sp:Bind
;
sp:
expression
[ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
sp:arg1 [ sp:varName "
kind
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionFacilityToDate
"^^xsd:string
] ;
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
sp:variable
[ sp:varName "
reportKind
"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
2001
2
Create
the
period
ProductionInventory
and
the
ProductionInventoryToDate
-
if
necessary
.
"^^xsd:string ;
rdfs:comment "
STEP
2001
1
Create
the
period
ProductionFlow
and
the
ProductionFlowToDate
.
"^^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#Production
Inventory
> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Production
Flow
> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object
...
...
@@ -1225,16 +1230,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] [ 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#Production
Inventory
ToDate> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Production
Flow
ToDate> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/
core#hasSpatialPart
> ;
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/
core#hasSpatialPart
> ;
sp:predicate <http://www.reportinghub.no/ep/schema/
flow#facilityContainsFlow
> ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
...
...
@@ -1300,5 +1305,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/
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: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:versionInfo "
Created
with
TopBraid
Composer
"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment