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-06-18 16:57:35 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
91d5d77d2ebb5900d79f196fb74bc297c2c7affb
91d5d77d
1 parent
63007632
MPR Start and end times inherited from context
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
791 additions
and
455 deletions
www.reportinghub.no/ep/transform/SCHEMA_transform-helper-schema.ttl
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-productionReport-v1.0.ttl
www.reportinghub.no/ep/transform/SCHEMA_transform-helper-schema.ttl
View file @
91d5d77
...
...
@@ -17,13 +17,19 @@ transhelp:derivedFrom
transhelp:
hasDerivedText
rdf:
type
owl:
DatatypeProperty
.
transhelp:
intervalEnd
rdf:
type
owl:
FunctionalProperty
,
owl:
DatatypeProperty
.
transhelp:
intervalIdentifier
rdf:
type
owl:
DatatypeProperty
,
owl:
FunctionalProperty
.
rdf:
type
owl:
FunctionalProperty
,
owl:
DatatypeProperty
.
transhelp:
intervalStart
rdf:
type
owl:
FunctionalProperty
,
owl:
DatatypeProperty
.
transhelp:
mapsTo
rdf:
type
rdf:
Property
.
transhelp:
materialClassMapsToMPREnumeration
rdf:
type
owl:
InverseFunctionalProperty
,
owl:
FunctionalProperty
,
owl:
Object
Property
;
rdf:
type
owl:
ObjectProperty
,
owl:
FunctionalProperty
,
owl:
InverseFunctional
Property
;
rdfs:
label
"material class maps to MPR enumeration"
^^
xsd:
string
;
rdfs:
subPropertyOf
transhelp:
mapsTo
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0.ttl
View file @
91d5d77
This diff could not be displayed because it is too large.
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0.ttl
View file @
91d5d77
...
...
@@ -22,43 +22,16 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
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
_:
b1
;
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#ProductionFlow>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
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/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b1
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate>
;
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
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
sp:
subject
[
sp:
varName
"productionFacility
ToDate
"
^^
xsd:
string
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
])
;
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
sp:
where
([
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
...
...
@@ -69,40 +42,32 @@
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
productVolume
Ref"
^^
xsd:
string
[
sp:
varName
"
installation
Ref"
^^
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.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productVolumeRe
port
"
^^
xsd:
string
[
sp:
varName
"productVolumeRe
f
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
productVolume
Ref"
^^
xsd:
string
[
sp:
varName
"
installation
Ref"
^^
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
"productionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
productionFacilityToDate
"
^^
xsd:
string
[
sp:
varName
"
contextFacilityRef
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
reportinghub.no/ep/schema/core#temporalPartO
f>
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#contextFacilityRe
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
"contextFacilityRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
productionFacilityToDate
"
^^
xsd:
string
[
sp:
varName
"
contextFacility
"
^^
xsd:
string
]
])
]
;
...
...
@@ -111,54 +76,54 @@
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
3
sp:
subject
_:
b
1
]
[
sp:
object
[
sp:
varName
"productionReport"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#partOf>
;
sp:
subject
_:
b
3
sp:
subject
_:
b
1
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b
3
sp:
subject
_:
b
1
]
[
sp:
object
[
sp:
varName
"reportPeriodType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
3
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
_:
b
3
sp:
subject
_:
b
1
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
4
sp:
subject
_:
b
2
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
_:
b
4
]
[
sp:
object
_:
b
5
;
sp:
subject
_:
b
2
]
[
sp:
object
_:
b
3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b
4
sp:
subject
_:
b
2
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
5
sp:
subject
_:
b
3
]
[
sp:
object
[]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow>
;
sp:
subject
_:
b
4
sp:
subject
_:
b
2
]
[
sp:
object
[]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow>
;
sp:
subject
_:
b
5
sp:
subject
_:
b
3
]
[
sp:
object
[
sp:
varName
"title"
^^
xsd:
string
]
;
sp:
predicate
<http://purl.org/dc/elements/1.1/title>
;
sp:
subject
_:
b
3
sp:
subject
_:
b
1
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
...
...
@@ -309,16 +274,43 @@
]
;
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
rdfs:
comment
"STEP 20011 Create the period ProductionFlow and the ProductionFlowToDate - if necessary ."
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b4
;
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#ProductionFlow>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b4
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow>
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow>
;
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
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#objectRef>
;
...
...
@@ -329,100 +321,209 @@
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
installation
Ref"
^^
xsd:
string
[
sp:
varName
"
productVolume
Ref"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#installationRef
>
;
sp:
predicate
<http://www.
reportinghub.no/ep/transform/transform-helper-schema#derivedFrom
>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
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
"
installation
Ref"
^^
xsd:
string
[
sp:
varName
"
productVolume
Ref"
^^
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 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>
;
rdfs:
comment
"STEP 20012 Create the period ProductionInventory and the ProductionInventoryToDate - if necessary ."
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
[
sp:
varName
"product
ionFlow
"
^^
xsd:
string
[
sp:
varName
"product
VolumeReport
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventory>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b6
]
[
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
_:
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#ProductionInventoryToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b7
]
[
sp:
object
_:
b6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasSpatialPart>
;
sp:
subject
[
sp:
varName
"
productionFlow
"
^^
xsd:
string
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
]
[
sp:
object
_:
b7
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasSpatialPart>
;
sp:
subject
[
sp:
varName
"productionF
low
ToDate"
^^
xsd:
string
[
sp:
varName
"productionF
acility
ToDate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
dateStart
"
^^
xsd:
string
[
sp:
varName
"
facilityRef
"
^^
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
_:
b6
]
[
sp:
object
[
sp:
varName
"flowRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
_:
b6
]
[
sp:
object
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
_:
b6
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"production
Inventory
"
^^
xsd:
string
[
sp:
varName
"production
Report
"
^^
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.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
ionInventory
"
^^
xsd:
string
[
sp:
varName
"product
VolumeRef
"
^^
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
"productionInventoryToDate"
^^
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
"
dateStart
"
^^
xsd:
string
[
sp:
varName
"
productVolumeRef
"
^^
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
"temporalPartOfAProductionFacility"
^^
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#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
"productionFacilityToDate"
^^
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 20030 Record the start and end date-times"
^^
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:
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
"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
...
...
@@ -436,16 +537,16 @@
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"d
ate
Start"
^^
xsd:
string
[
sp:
varName
"d
Tim
Start"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#d
ate
Start>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#d
Tim
Start>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"d
ate
End"
^^
xsd:
string
[
sp:
varName
"d
Tim
End"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#d
ate
End>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#d
Tim
End>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
...
...
@@ -525,21 +626,28 @@
]
;
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 _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
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 "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"
productionFlow
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b6
]
[
sp:
object
[ sp:varName "
operator
"^^xsd:string
[
sp:
varName
"
dateStart
"
^^
xsd:
string
]
;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b6
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:
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
...
...
@@ -547,79 +655,80 @@ 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 "
productVolumeRef
"^^xsd:string
[
sp:
varName
"
dateStart
"
^^
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:
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:
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 "
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
[
sp:
varName
"
productionFlow
"
^^
xsd:
string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
20040
Set
the
installation
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
productionFacility
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlow>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[
sp:
varName
"
productionFlow
"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
productionF
acility
"^^xsd:string
[
sp:
varName
"productionF
lowToDate
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[ sp:varName "
productionF
acilityToDate
"^^xsd:string
[
sp:
varName
"productionF
low
"
^^
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#ProductionFlowToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
[ sp:varName "
product
VolumeRef
"^^xsd:string
[
sp:
varName
"product
ionFlowToDate
"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
installation
Ref
"^^xsd:string
[
sp:
varName
"
productVolume
Ref"
^^
xsd:
string
]
;
sp:predicate <http://www.
epim.no/schemas/mprml/1#installationRef
> ;
sp:
predicate
<http://www.
reportinghub.no/ep/transform/transform-helper-schema#derivedFrom
>
;
sp:
subject
[ sp:varName "
productVolumeRef
"^^xsd:string
[
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 "
installationRef
"^^xsd:string
[
sp:
varName
"
productionInventoryToDate
"
^^
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 "
productionFacility
"^^xsd:string
[
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:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
...
...
@@ -649,65 +758,65 @@ 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-tim
es
"^^xsd:string ;
rdfs:
comment
"STEP 2003
1 Record the start and end dat
es"
^^
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
"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
"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 "
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
"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
"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 "
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
"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
[
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
...
...
@@ -725,16 +834,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
d
Tim
Start
"^^xsd:string
[
sp:
varName
"d
ate
Start"
^^
xsd:
string
]
;
sp:predicate <http://www.epim.no/schemas/mprml/1#d
Tim
Start> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#d
ate
Start>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
]
[
sp:
object
[ sp:varName "
d
Tim
End
"^^xsd:string
[
sp:
varName
"d
ate
End"
^^
xsd:
string
]
;
sp:predicate <http://www.epim.no/schemas/mprml/1#d
Tim
End> ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#d
ate
End>
;
sp:
subject
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
...
...
@@ -814,78 +923,259 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:comment "
STEP
20012
Create
the
period
ProductionInventory
and
the
ProductionInventoryToDate
-
if
necessary
.
"^^xsd:string ;
sp:templates ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
rdfs:
comment
"STEP 20040 Set the installation"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[ sp:varName "
productVolumeReport
"^^xsd:string
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
]
[
sp:
object
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
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 _:b7
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
"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#ProductionInventoryToDate> ;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:subject _:b8
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
]
[
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
]
])
]
;
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 _: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 "
facilityRef
"^^xsd:string
[ sp:varName "
operator
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b7
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 "
flow
Ref
"^^xsd:string
[ sp:varName "
productVolume
Ref
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b7
] [ sp:object
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 _:b7
]) ;
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:varName "
operator
"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
20033
Inherit
end
dates
from
the
report
context
if
necessary
"^^xsd:string ;
sp:templates ([ sp:object
[ 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 "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlowToDate
"^^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 "
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
[ 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 <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:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
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
VolumeReport
"^^xsd:string
[ sp:varName "
product
ionFlow
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/
report#ProductVolumeReport
> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/
flow#ProductionFlow
> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeReport
"^^xsd:string
[ sp:varName "
productionFlow
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionFlowToDate
"^^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: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 "
productionInventoryToDate
"^^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:object
[ sp:varName "
productVolumeRef
"^^xsd:string
...
...
@@ -916,5 +1206,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
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0.ttl
View file @
91d5d77
...
...
@@ -20,6 +20,187 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10020 Add the 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:
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
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"operatorRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#operatorRef>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
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:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportSubmittedBy>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001b Create the interval identifier - date and dateEnd from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart>
;
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:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateStart>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildIntervalIdentifier
;
sp:
arg1
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier>
;
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
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateStart>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildIntervalIdentifier
;
sp:
arg1
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001e Create the interval identifier - no date"
^^
xsd:
string
;
sp:
templates
([
sp:
object
"noDate"
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier>
;
...
...
@@ -66,12 +247,22 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001
d Create the interval identifier - dateEnd
from context"
^^
xsd:
string
;
rdfs:
comment
"STEP 10001
c Create the interval identifier - date
from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"date
End
"
^^
xsd:
string
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
...
...
@@ -84,26 +275,26 @@
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"date
End
"
^^
xsd:
string
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date
End
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
[
sp:
varName
"date
Start
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date
Start
>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"date
Start
"
^^
xsd:
string
[
sp:
varName
"date
End
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date
Start
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date
End
>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
...
...
@@ -172,73 +363,62 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10010 Add the contextFacility"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"contextFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
rdfs:
comment
"STEP 10001n Set the submitting installation"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportSubmittedBy>
;
sp:
subject
[
sp:
varName
"production
Facility
"
^^
xsd:
string
[
sp:
varName
"production
Report
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
[
sp:
varName
"installation"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b2
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
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.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
contectFacility
Ref"
^^
xsd:
string
[
sp:
varName
"
installation
Ref"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
contextFacility
Ref>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
installation
Ref>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
contextFacility
Ref"
^^
xsd:
string
[
sp:
varName
"
installation
Ref"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"contextFacility"
^^
xsd:
string
]
]
[
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
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportSubmittedBy>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
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
"productionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
[
sp:
varName
"installation"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 100
01b Create the interval identifier - date and dateEnd from context
"
^^
xsd:
string
;
rdfs:
comment
"STEP 100
10 Add the contextFacility
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"
intervalIdentifier
"
^^
xsd:
string
[
sp:
varName
"
contextFacility
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier>
;
sp:
subject
spin:
_this
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
...
...
@@ -251,97 +431,63 @@
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
date
"
^^
xsd:
string
[
sp:
varName
"
contectFacilityRef
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
date
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
contextFacilityRef
>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateStart>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
[
sp:
varName
"
contextFacilityRef
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#dateEnd
>
;
sp:
predicate
<http://www.
reportinghub.no/ep/transform/transform-helper-schema#derivedFrom
>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildIntervalIdentifier
;
sp:
arg1
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
[
sp:
varName
"contextFacility"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001n Set the submitting installation"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportSubmittedBy>
;
]
[
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/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"installation"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b1
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportSubmittedBy>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.
epim.no/schemas/mprml/1#Obj_report
>
;
]
[
sp:
object
<http://www.
reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility
>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
installationRef
"
^^
xsd:
string
[
sp:
varName
"
productionFacility
"
^^
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
"
installation
"
^^
xsd:
string
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001
a Create the inteval identifier - dateStart and
dateEnd from context"
^^
xsd:
string
;
rdfs:
comment
"STEP 10001
d Create the interval identifier -
dateEnd from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"
intervalIdentifier
"
^^
xsd:
string
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier>
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart>
;
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:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
...
...
@@ -354,30 +500,30 @@
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateStart>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildIntervalIdentifier
;
sp:
arg1
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateStart>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
])
]
;
spin:
rule
...
...
@@ -450,115 +596,9 @@
[
sp:
varName
"productionReport"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10020 Add the operator"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
;
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
_:
b2
]
[
sp:
object
[
sp:
varName
"operator"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b2
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"operatorRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#operatorRef>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
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:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportSubmittedBy>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001c Create the interval identifier - date from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier>
;
sp:
subject
spin:
_this
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#contextRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
<http://www.epim.no/schemas/mprml/1#Obj_report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateStart>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
])
]
.
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/
transform/transform-helper-schema>
,
<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
>
;
owl:
imports
<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>
,
<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