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-05-31 17:11:52 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
29cae21cb531a93b2af77eefdaf5d223dc87be33
29cae21c
1 parent
d2d1c827
Minor follow-up to the previous fix.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
226 additions
and
226 deletions
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0.ttl
View file @
29cae21
...
...
@@ -20,10 +20,8 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
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
]
;
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>
;
sp:
subject
spin:
_this
])
;
...
...
@@ -37,47 +35,40 @@
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd
>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"date
Start
"
^^
xsd:
string
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date
Start
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateStart
>
;
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 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
...
...
@@ -93,48 +84,49 @@
[
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
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dateEnd"
^^
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:
variable
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateStart>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
])
])
]
;
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>
;
rdfs:
comment
"STEP 10001z Add the issue date and title"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"month"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#issuedAt>
;
sp:
subject
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
[
sp:
varName
"
productionReport
"
^^
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
"
title
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b1
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
...
...
@@ -146,47 +138,48 @@
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"operatorRef"
^^
xsd:
string
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"month"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#operatorRef
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#month
>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"operatorRef"
^^
xsd:
string
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"titleRef"
^^
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:
predicate
<http://www.epim.no/schemas/mprml/1#titleRef>
;
sp:
subject
[
sp:
varName
"productionReport
"
^^
xsd:
string
[
sp:
varName
"contextRef
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temporalPartOfAProductionFacility
"
^^
xsd:
string
[
sp:
varName
"title
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn
>
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value
>
;
sp:
subject
[
sp:
varName
"productionReport
"
^^
xsd:
string
[
sp:
varName
"titleRef
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
])
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
[
sp:
varName
"
productionReport
"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 100
01c Create the interval identifier - date from context
"
^^
xsd:
string
;
rdfs:
comment
"STEP 100
10 Add the contextFacility
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"
date
"
^^
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
...
...
@@ -199,37 +192,50 @@
[
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:
object
[
sp:
varName
"contextFacilityRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateStart
>
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom
>
;
sp:
subject
[
sp:
varName
"contextRef
"
^^
xsd:
string
[
sp:
varName
"contextFacility
"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"dateEnd"
^^
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.epim.no/schemas/mprml/1#dateEnd
>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportSubmittedBy
>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
[
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
]
])
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001
d Create the interval identifier -
dateEnd from context"
^^
xsd:
string
;
rdfs:
comment
"STEP 10001
b Create the interval identifier - date and
dateEnd from context"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
[
sp:
varName
"
intervalIdentifier
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier>
;
sp:
subject
spin:
_this
...
...
@@ -245,21 +251,12 @@
[
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:
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
...
...
@@ -269,70 +266,42 @@
[
sp:
varName
"contextRef"
^^
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>
;
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
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
]
[
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:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"date"
^^
xsd:
string
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildIntervalIdentifier
;
sp:
arg1
[
sp:
varName
"date"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#date>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
sp:
arg2
[
sp:
varName
"dateEnd"
^^
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:
variable
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
])
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001n Set the submitting installation"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
2
;
sp:
templates
([
sp:
object
_:
b
1
;
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
_:
b
2
sp:
subject
_:
b
1
]
[
sp:
object
[
sp:
varName
"installation"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b
2
sp:
subject
_:
b
1
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
...
...
@@ -367,74 +336,12 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 10001
z Add the issue date and title
"
^^
xsd:
string
;
rdfs:
comment
"STEP 10001
a Create the inteval identifier - dateStart and dateEnd from context
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"month"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#issuedAt>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"title"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
epim.no/schemas/mprml/1#contextRef
>
;
sp:
predicate
<http://www.
reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier
>
;
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
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"month"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#month>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
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
"contextRef"
^^
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
]
])
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
])
]
;
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>
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"contextRef"
^^
xsd:
string
...
...
@@ -447,42 +354,29 @@
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
contectFacilityRef
"
^^
xsd:
string
[
sp:
varName
"
dateStart
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
contextFacilityRef
>
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
dateStart
>
;
sp:
subject
[
sp:
varName
"contextRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
contextFacilityRef
"
^^
xsd:
string
[
sp:
varName
"
dateEnd
"
^^
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:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"
productionReport
"
^^
xsd:
string
[
sp:
varName
"
contextRef
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildIntervalIdentifier
;
sp:
arg1
[
sp:
varName
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
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:
arg2
[
sp:
varName
"dateEnd"
^^
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:
variable
[
sp:
varName
"intervalIdentifier"
^^
xsd:
string
]
])
]
;
...
...
@@ -556,9 +450,115 @@
[
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/
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:
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:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment