Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
David Leal
2012-08-24 18:10:10 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0da7ecb2c88549fd7d23aadaadcb4d5995eb96a
c0da7ecb
1 parent
91dc8293
ProductionReporrtKind changed to ProductionReportType
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1039 additions
and
1039 deletions
www.reportinghub.no/ep/schema/1.0/SCHEMA_EP-REPORT-v1.0.ttl
www.reportinghub.no/ep/transform/TRANSFORM_dpr-productVolumeReport-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1.ttl
www.reportinghub.no/ep/schema/1.0/SCHEMA_EP-REPORT-v1.0.ttl
View file @
c0da7ec
...
...
@@ -13,11 +13,11 @@
<http://www.reportinghub.no/ep/schema/1.0/report>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/
ep/schema/1.0/well>
,
<http://www.reportinghub.no/ep/schema/1.0/equipment>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
,
<http://www.reportinghub.no/np/schema/1.0/npd
>
;
owl:
imports
<http://www.reportinghub.no/
np/schema/1.0/npd>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/equipment>
,
<http://www.reportinghub.no/ep/schema/1.0/well
>
;
owl:
versionInfo
"0.1.0"
^^
xsd:
string
.
<http://www.reportinghub.no/ep/schema/activity#existsThroughout>
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdfs:
domain
<http://www.reportinghub.no/ep/schema/core#PhysicalObject>
;
rdfs:
label
"exists throughout"
^^
xsd:
string
;
rdfs:
range
xsd:
dateTime
.
...
...
@@ -43,7 +43,7 @@ ep-report:DailyProductionReport
rdfs:
subClassOf
ep-report:
ProductionReport
.
ep-report:
FinalDailyDrillingReport
rdf:
type
owl:
Class
,
ep-report:
DailyDrillingReportFinalisationType
;
rdf:
type
ep-report:
DailyDrillingReportFinalisationType
,
owl:
Class
;
rdfs:
label
"final daily drilling report"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
DailyDrillingReport
.
...
...
@@ -62,8 +62,13 @@ ep-report:NonProductivetimeReport
rdfs:
subClassOf
ep-report:
Report
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
owl:
allValuesFrom
xsd:
dateTime
;
owl:
onProperty
ep-report:
createdAt
]
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
owl:
cardinality
"1"
^^
xsd:
nonNegativeInteger
;
owl:
onProperty
ep-report:
reportOn
owl:
onProperty
ep-report:
createdAt
]
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
...
...
@@ -73,21 +78,16 @@ ep-report:NonProductivetimeReport
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
owl:
cardinality
"1"
^^
xsd:
nonNegativeInteger
;
owl:
onProperty
ep-report:
createdAt
]
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
owl:
allValuesFrom
xsd:
dateTime
;
owl:
onProperty
ep-report:
createdAt
owl:
onProperty
ep-report:
reportOn
]
.
ep-report:
NormalDailyDrillingReport
rdf:
type
owl:
Class
,
ep-report:
DailyDrillingReportFinalisationType
;
rdf:
type
ep-report:
DailyDrillingReportFinalisationType
,
owl:
Class
;
rdfs:
label
"normal daily drilling report"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
DailyDrillingReport
.
ep-report:
PreliminaryDailyDrillingReport
rdf:
type
owl:
Class
,
ep-report:
DailyDrillingReportFinalisationType
;
rdf:
type
ep-report:
DailyDrillingReportFinalisationType
,
owl:
Class
;
rdfs:
label
"preliminary daily drilling report"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
DailyDrillingReport
.
...
...
@@ -116,9 +116,9 @@ ep-report:ProductionReport
rdfs:
label
"Production Report"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ProductionReport
Kind
ep-report:
ProductionReport
Type
rdf:
type
rdfs:
Class
;
rdfs:
label
"production report
kind
"
^^
xsd:
string
;
rdfs:
label
"production report
type
"
^^
xsd:
string
;
rdfs:
subClassOf
owl:
Class
.
ep-report:
Report
...
...
@@ -131,8 +131,8 @@ ep-report:ReportAliasIdentifier
rdfs:
subClassOf
owl:
Thing
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
owl:
c
ardinality
"1"
^^
xsd:
nonNegativeInteger
;
owl:
onProperty
ep-report:
isAliasFor
owl:
minC
ardinality
"1"
^^
xsd:
nonNegativeInteger
;
owl:
onProperty
ep-report:
aliasName
]
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
...
...
@@ -141,62 +141,62 @@ ep-report:ReportAliasIdentifier
]
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
owl:
minC
ardinality
"1"
^^
xsd:
nonNegativeInteger
;
owl:
onProperty
ep-report:
aliasName
owl:
c
ardinality
"1"
^^
xsd:
nonNegativeInteger
;
owl:
onProperty
ep-report:
isAliasFor
]
.
ep-report:
ReportForGasYearToDate
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdfs:
label
"report for gas year to date"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ReportForInstant
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdfs:
label
"report for instant"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ReportForMonthToDate
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdfs:
label
"report for month to date"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ReportForOneDay
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdfs:
label
"report for one day"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ReportForOneGasDay
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdfs:
label
"report for one gas day"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ReportForOneGasMonth
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdfs:
label
"report for one gas month"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ReportForOneGasYear
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdfs:
label
"report for one gas year"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ReportForOneMonth
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdfs:
label
"report for one month"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ReportForOneWeek
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdfs:
label
"report for one week"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ReportForOneYear
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdfs:
label
"report for one year"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
ep-report:
ReportForYearToDate
rdf:
type
owl:
Class
,
ep-report:
ReportPeriodType
;
rdf:
type
ep-report:
ReportPeriodType
,
owl:
Class
;
rdfs:
label
"report for year to date"
^^
xsd:
string
;
rdfs:
subClassOf
ep-report:
Report
.
...
...
@@ -210,23 +210,23 @@ ep-report:WeeklyDrillingReport
rdfs:
subClassOf
ep-report:
Report
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
owl:
cardinality
"1"
^^
xsd:
nonNegativeInteger
;
owl:
onProperty
ep-report:
createdAt
owl:
allValuesFrom
ep-report:
DailyDrillingReport
;
owl:
onProperty
ep-report:
reportOn
]
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
owl:
allValuesFrom
xsd:
dateTime
;
owl:
onProperty
ep-report:
createdAt
owl:
cardinality
"7"
^^
xsd:
nonNegativeInteger
;
owl:
onProperty
ep-report:
reportOn
]
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
owl:
cardinality
"7"
^^
xsd:
nonNegativeInteger
;
owl:
onProperty
ep-report:
reportOn
owl:
allValuesFrom
xsd:
dateTime
;
owl:
onProperty
ep-report:
createdAt
]
;
rdfs:
subClassOf
[
rdf:
type
owl:
Restriction
;
owl:
allValuesFrom
ep-report:
DailyDrillingReport
;
owl:
onProperty
ep-report:
reportOn
owl:
cardinality
"1"
^^
xsd:
nonNegativeInteger
;
owl:
onProperty
ep-report:
createdAt
]
.
ep-report:
WellTestReport
...
...
@@ -243,12 +243,12 @@ ep-report:aliasOwner
rdfs:
range
<http://www.reportinghub.no/np/schema/npd#Individual>
.
ep-report:
createdAt
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdfs:
domain
ep-report:
Report
;
rdfs:
label
"created at"
^^
xsd:
string
.
ep-report:
dailyDrillingReportNumber
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdfs:
domain
ep-report:
DailyDrillingReport
;
rdfs:
label
"daily drilling report number"
^^
xsd:
string
.
...
...
@@ -273,7 +273,7 @@ ep-report:disclaimer
rdfs:
range
xsd:
string
.
ep-report:
hasContent
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdfs:
domain
ep-report:
Report
;
rdfs:
label
"has content"
^^
xsd:
string
.
...
...
@@ -282,12 +282,12 @@ ep-report:isAliasFor
rdfs:
range
<http://www.reportinghub.no/np/schema/npd#Individual>
.
ep-report:
issuedAt
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdfs:
domain
ep-report:
Report
;
rdfs:
label
"issued at"
^^
xsd:
string
.
ep-report:
nameAsDatumObject
rdf:
type
owl:
FunctionalProperty
,
owl:
Datatype
Property
;
rdf:
type
owl:
DatatypeProperty
,
owl:
Functional
Property
;
rdfs:
domain
<http://www.reportinghub.no/ep/schema/core#PhysicalObject>
;
rdfs:
label
"name as datum object"
^^
xsd:
string
.
...
...
@@ -297,13 +297,13 @@ ep-report:reportOn
rdfs:
label
"report on"
^^
xsd:
string
.
ep-report:
reportSubmittedBy
rdf:
type
owl:
FunctionalProperty
,
owl:
Object
Property
;
rdf:
type
owl:
ObjectProperty
,
owl:
Functional
Property
;
rdfs:
domain
ep-report:
Report
;
rdfs:
label
"report submitted by"
^^
xsd:
string
;
rdfs:
range
<http://www.reportinghub.no/ep/schema/core#PhysicalObject>
.
ep-report:
reportSubmittedFrom
rdf:
type
owl:
ObjectProperty
,
owl:
Functional
Property
;
rdf:
type
owl:
FunctionalProperty
,
owl:
Object
Property
;
rdfs:
domain
ep-report:
Report
;
rdfs:
label
"report submitted from"
^^
xsd:
string
;
rdfs:
range
<http://www.reportinghub.no/ep/schema/facility#Facility>
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_dpr-productVolumeReport-v1.1.1.ttl
View file @
c0da7ec
This diff could not be displayed because it is too large.
www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1.ttl
View file @
c0da7ec
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/flow
# imports: http://www.reportinghub.no/ep/schema/1.0/material
# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema
@prefix
:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#>
.
@prefix
ep-dpr-spin-lib:
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib#>
.
@prefix
ep-mpr-spin-lib:
<http://www.reportinghub.no/ep/mpr/spin/1.1/lib#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
sp:
<http://spinrdf.org/sp#>
.
@prefix
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.epim.no/schemas/mprml/1#Cs_datedComment>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 9020
2 Set the commentation role (whole life person set)"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"comment
ator"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Person
Role>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#PersonRoleType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#PersonRole>
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"role"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
commentingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"commentator"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentator>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"role"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#role>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildPersonRoleTypeURI
;
sp:
arg1
[
sp:
varName
"role"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90201 Set the commentation whole life person"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentator>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Person>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
[
sp:
varName
"person"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b2
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#
WholeLifePerson>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"person"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"who"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"person"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"
commentingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
who"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#who>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildPersonURI
;
sp:
arg1
[
sp:
varName
"who"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"person"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90203 Set the commentation role (whole life person not set)"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentator>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Person>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b3
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#PersonRole>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
sp:
object
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#PersonRoleType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#PersonRole>
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"role"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"commentator"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentator>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"
role"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
role>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-
mpr-spin-lib:
buildPersonRoleTypeURI
;
sp:
arg1
[
sp:
varName
"
role"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"person
RoleType"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90200 Create the commenting activity"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
[
sp:
varName
"activityForComment"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"typeOfPartCommentedOn"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
_:
b5
]
[
sp:
object
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
_:
b5
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/production-activity#MakeAComment>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentUpon>
;
sp:
subject
_:
b6
]
[
sp:
object
[
sp:
varName
"remark"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentMade>
;
sp:
subject
_:
b6
]
[
sp:
object
spin:
_this
;
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#forComment>
;
sp:
subject
[
sp:
varName
"activityForComment"
^^
xsd:
string
]
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#typeOfPartCommentedOn>
;
sp:
subject
[
sp:
varName
"typeOfPartCommentedOn"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dTimStart>
;
sp:
subject
spin:
_this
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dTimEnd>
;
sp:
subject
spin:
_this
])
]
[
sp:
object
[
sp:
varName
"remark"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#remark>
;
sp:
subject
spin:
_this
])
]
.
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/schema/1.0/material>
,
<http://www.reportinghub.no/ep/mpr/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/schema/1.0/flow>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/transform/transform-helper-schema>
,
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.epim.no/schemas/mprml/1>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/flow
# imports: http://www.reportinghub.no/ep/schema/1.0/material
# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema
@prefix
:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#>
.
@prefix
ep-dpr-spin-lib:
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib#>
.
@prefix
ep-mpr-spin-lib:
<http://www.reportinghub.no/ep/mpr/spin/1.1/lib#>
.
@prefix
owl:
<http://www.w3.org/2002/07/owl#>
.
@prefix
rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
sp:
<http://spinrdf.org/sp#>
.
@prefix
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
<http://www.epim.no/schemas/mprml/1#Cs_datedComment>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 9020
3 Set the commentation role (whole life person not set)"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
production-activity#commentator>
;
sp:
subject
[
sp:
varName
"comment
ingActivity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Person
>
;
sp:
predicate
rdf:
type
;
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/organization#PersonRole>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#PersonRoleType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#PersonRole>
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"role"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"
personRoleType"
^^
xsd:
string
]
]
)
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"commentator"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentator>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
])
]
[
sp:
object
[
sp:
varName
"role"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#role>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildPersonRoleTypeURI
;
sp:
arg1
[
sp:
varName
"role"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90202 Set the commentation role (whole life person set)"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"commentator"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#
PersonRole>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#PersonRoleType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#PersonRole>
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
[
sp:
varName
"
personRoleType"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
role"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"commentator"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentator>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"role"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#role>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-mpr-spin-lib:
buildPersonRoleTypeURI
;
sp:
arg1
[
sp:
varName
"role"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"personRoleType"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90201 Set the commentation whole life person"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentator>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Person>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
sp:
object
[
sp:
varName
"person"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b4
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#WholeLifePerson>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"person"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"who"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"person"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"commentingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
who"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
who>
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-
dpr-spin-lib:
buildPersonURI
;
sp:
arg1
[
sp:
varName
"
who"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"person
"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 90200 Create the commenting activity"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
[
sp:
varName
"activityForComment"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"typeOfPartCommentedOn"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#startedAt>
;
sp:
subject
_:
b5
]
[
sp:
object
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
_:
b5
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/production-activity#MakeAComment>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b6
]
[
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentUpon>
;
sp:
subject
_:
b6
]
[
sp:
object
[
sp:
varName
"remark"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/production-activity#commentMade>
;
sp:
subject
_:
b6
]
[
sp:
object
spin:
_this
;
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#forComment>
;
sp:
subject
[
sp:
varName
"activityForComment"
^^
xsd:
string
]
]
[
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#typeOfPartCommentedOn>
;
sp:
subject
[
sp:
varName
"typeOfPartCommentedOn"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dTimStart>
;
sp:
subject
spin:
_this
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dTimEnd>
;
sp:
subject
spin:
_this
])
]
[
sp:
object
[
sp:
varName
"remark"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#remark>
;
sp:
subject
spin:
_this
])
]
.
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://www.reportinghub.no/ep/schema/1.0/material>
,
<http://www.reportinghub.no/ep/mpr/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/schema/1.0/flow>
,
<http://spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/transform/transform-helper-schema>
,
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.epim.no/schemas/mprml/1>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0.ttl
View file @
c0da7ec
...
...
@@ -22,32 +22,30 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 200
40 Set the production facility - supplied
"
^^
xsd:
string
;
rdfs:
comment
"STEP 200
20 Add the report kind .
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"
productionFacility
"
^^
xsd:
string
[
sp:
varName
"
reportKind
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
[
sp:
varName
"
productVolumeReport
"
^^
xsd:
string
]
]
[
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/report#ProductionReportType>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
productionFacilityToDate
"
^^
xsd:
string
[
sp:
varName
"
reportKind
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
facility#ProductionFacility
>
;
sp:
predicate
rdf
:
type
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/
report#ProductionReport
>
;
sp:
predicate
rdf
s:
subClassOf
;
sp:
subject
[
sp:
varName
"
productionFacility
"
^^
xsd:
string
[
sp:
varName
"
reportKind
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
normalizedProductionFacilityName
"
^^
xsd:
string
[
sp:
varName
"
kind
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/
transform/transform-helper-schema#hasDerivedText
>
;
sp:
predicate
<http://www.reportinghub.no/ep/
schema/core#name
>
;
sp:
subject
[
sp:
varName
"
productVolumeRef
"
^^
xsd:
string
[
sp:
varName
"
reportKind
"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
...
...
@@ -61,110 +59,93 @@
[
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
"product
ionFacility
"
^^
xsd:
string
[
sp:
varName
"product
VolumeReport
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductVolumeReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
[
sp:
varName
"
productVolumeReport
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
]
[
sp:
object
[
sp:
varName
"nameRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#nameRef>
;
sp:
subject
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
[
sp:
varName
"
productVolumeRef
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
productionFacilityToDat
e"
^^
xsd:
string
[
sp:
varName
"
nam
e"
^^
xsd:
string
]
;
sp:
predicate
<http://www.
reportinghub.no/ep/schema/core#temporalPartOf
>
;
sp:
predicate
<http://www.
linkedmodel.org/schema/dtype#value
>
;
sp:
subject
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
[
sp:
varName
"
nameRef
"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate>
;
sp:
predicate
rdf:
type
;
]
[
sp:
object
[
sp:
varName
"kind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kind>
;
sp:
subject
[
sp:
varName
"product
ionFacilityToDate
"
^^
xsd:
string
[
sp:
varName
"product
VolumeRef
"
^^
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>
[
rdf:
type
ep-dpr-spin-lib:
buildProductionReportKindURI
;
sp:
arg1
[
sp:
varName
"kind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"
normalizedProductionFacilityName
"
^^
xsd:
string
[
sp:
varName
"
reportKind
"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 200
33 Inherit end dates from the report context if necessary
"
^^
xsd:
string
;
rdfs:
comment
"STEP 200
41 Set the production facility - taken from context
"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
[
sp:
varName
"
productionFacility
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
activity#finishedAt
>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#temporalPartOf
>
;
sp:
subject
[
sp:
varName
"
productionFlowNetwork
"
^^
xsd:
string
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
[
sp:
varName
"
productionFacility
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
activity#finishedAt
>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
core#temporalPartOf
>
;
sp:
subject
[
sp:
varName
"productionF
lowNetwork
ToDate"
^^
xsd:
string
[
sp:
varName
"productionF
acility
ToDate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
[
sp:
varName
"
normalizedProductionFacilityName
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/
schema/activity#finishedA
t>
;
sp:
predicate
<http://www.reportinghub.no/ep/
transform/transform-helper-schema#hasDerivedTex
t>
;
sp:
subject
[
sp:
varName
"product
ionInventoryCollection
"
^^
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
InventoryCollectionToDate
"
^^
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
;
...
...
@@ -173,18 +154,9 @@
]
]
[
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
]
...
...
@@ -194,54 +166,6 @@
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionFlowNetwork"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFlowNetwork"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionFlowNetworkToDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"productionFlowNetwork"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionFlowNetworkToDate"
^^
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
"productionInventoryCollection"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionInventoryCollection"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionInventoryCollectionToDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"productionInventoryCollection"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionInventoryCollectionToDate"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productVolumeRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
...
...
@@ -321,6 +245,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
20050
Set
the
context
facility
-
installation
is
always
specified
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
contextFacility
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject
[ sp:varName "
productionFacility
"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
installationRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
installationRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
productionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
contextFacilityRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
contextFacilityRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
contextFacility
"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
20012
Create
the
period
ProductionInventoryCollection
and
the
ProductionInventoryCollectionToDate
.
"^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
...
...
@@ -360,34 +335,238 @@ role is ignored, because it is implicitly \"operator\""""^^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:varName "
productionReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionReport
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
productVolumeReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeReport
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
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
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "
periodKindRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
])
] [ rdf:type sp:Exists ;
sp:elements ([ sp:object
[ sp:varName "
facilityRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
flowRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "
facilityRef
"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "
flowRef
"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectTemporalPartDurationType ;
sp:arg1 [ sp:varName "
periodKindRef
"^^xsd:string
]
] ;
sp:variable
[ sp:varName "
temporalPartDurationType
"^^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 "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlowNetworkToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionInventoryCollectionToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
] ;
sp: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 <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:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^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 "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionFlowNetworkToDate
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/
report#ProductionReport
> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/
flow#ProductionFlowNetworkToDate
> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
production
Report
"^^xsd:string
[ sp:varName "
production
FlowNetworkToDate
"^^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 "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
product
VolumeRef
"^^xsd:string
[ sp:varName "
product
ionInventoryCollection
"^^xsd:string
]
] [ sp:object
[ sp:varName "
product
VolumeRef
"^^xsd:string
[ sp:varName "
product
ionInventoryCollectionToDate
"^^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
ionInventoryCollection
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/
report#ProductVolumeReport
> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/
flow#ProductionInventoryCollectionToDate
> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
product
VolumeReport
"^^xsd:string
[ sp:varName "
product
ionInventoryCollecctionToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
...
...
@@ -413,45 +592,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "
periodKindRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
])
] [ rdf:type sp:Exists ;
sp:elements ([ sp:object
[ sp:varName "
facilityRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
flowRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#flowRef> ;
sp:subject
[ sp:varName "
facilityRef
"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_inventory> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "
flowRef
"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectTemporalPartDurationType ;
sp:arg1 [ sp:varName "
periodKindRef
"^^xsd:string
]
] ;
sp:variable
[ sp:varName "
temporalPartDurationType
"^^xsd:string
]
])
] ;
spin:rule
...
...
@@ -737,27 +877,32 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
200
32
Inherit
start
dates
from
the
report
context
if
necessary
"^^xsd:string ;
rdfs:comment "
STEP
200
40
Set
the
production
facility
-
supplied
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
dateStart
"^^xsd:string
[ sp:varName "
productionFacility
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/
activity#startedAt
> ;
sp:predicate <http://www.reportinghub.no/ep/schema/
core#temporalPartOf
> ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateStart
"^^xsd:string
[ sp:varName "
productionFacility
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/
activity#startedAt
> ;
sp:predicate <http://www.reportinghub.no/ep/schema/
core#temporalPartOf
> ;
sp:subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateStart
"^^xsd:string
[ sp:varName "
normalizedProductionFacilityName
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/
schema/activity#startedA
t> ;
sp:predicate <http://www.reportinghub.no/ep/
transform/transform-helper-schema#hasDerivedTex
t> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
[ sp:varName "
productVolumeRef
"^^xsd:string
]
]) ;
sp:where ([ sp:object
...
...
@@ -765,81 +910,24 @@ 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 "
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: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
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionFlowNetworkToDate
"^^xsd:string
[ sp:varName "
installationRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ;
sp:predicate rdf:type ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "
productionFlowNetworkToDate
"^^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 "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionInventoryCollectionToDate
"^^xsd:string
[ sp:varName "
installationRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
production
InventoryCollectionToDate
"^^xsd:string
[ sp:varName "
production
Facility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
...
...
@@ -865,151 +953,58 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
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: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:subject
[ sp:varName "
reportKind
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdfs:subClassOf ;
sp:subject
[ sp:varName "
reportKind
"^^xsd:string
]
] [ sp:object
[ sp:varName "
kind
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "
reportKind
"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
productVolumeReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeReport
"^^xsd:string
]
] [ sp:object
[ sp:varName "
nameRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
name
"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "
nameRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
kind
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
sp:arg1 [ sp:varName "
kind
"^^xsd:string
]
[ 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 "
reportKind
"^^xsd:string
[ sp:varName "
normalizedProductionFacilityName
"^^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 "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
[ sp:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFlowNetwork
ToDate
"^^xsd:string
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
d
TimStart
"^^xsd:string
[ sp:varName "
d
ateEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#
start
edAt> ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#
finish
edAt> ;
sp:subject
[ sp:varName "
production
InventoryCollection
"^^xsd:string
[ sp:varName "
production
FlowNetworkToDate
"^^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 "
productionInventoryCollection
"^^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 "
productionInventoryCollectionToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
[ sp: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
...
...
@@ -1021,25 +1016,34 @@ 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 <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:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
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#dTimEnd> ;
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
]
] [ 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
] ;
...
...
@@ -1086,93 +1090,8 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionInventoryCollecctionToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
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
20041
Set
the
production
facility
-
taken
from
context
"^^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 "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ 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:object
[ sp:varName "
normalizedProductionFacilityName
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
productionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
normalizedProductionFacilityName
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
[ sp:varName "
productionInventoryCollectionToDate
"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "
installationRefx
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
]
])
] [ sp:object
[ sp:varName "
productVolumeRef
"^^xsd:string
] ;
...
...
@@ -1366,13 +1285,27 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
200
50
Set
the
context
facility
-
installation
is
always
specified
"^^xsd:string ;
rdfs:comment "
STEP
200
32
Inherit
start
dates
from
the
report
context
if
necessary
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
contextFacility
"^^xsd:string
[ sp:varName "
dateStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/
geography#locatedWithin
> ;
sp:predicate <http://www.reportinghub.no/ep/schema/
activity#startedAt
> ;
sp:subject
[ sp:varName "
productionFacility
"^^xsd:string
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateStart
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
]) ;
sp:where ([ sp:object
...
...
@@ -1380,43 +1313,110 @@ 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 "
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: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
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object
[ sp:varName "
installationRef
"^^xsd:string
[ sp:varName "
productionFlowNetworkToDate
"^^xsd:string
] ;
sp:predicate <http://www.
epim.no/schemas/mprml/1#installationRe
f> ;
sp:predicate <http://www.
reportinghub.no/ep/schema/core#temporalPartO
f> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
[ sp:varName "
productionFlowNetwork
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetworkToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionFlowNetworkToDate
"^^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 "
productionFacility
"^^xsd:string
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollection> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object
[ sp:varName "
contextFacilityRef
"^^xsd:string
[ sp:varName "
productionInventoryCollectionToDate
"^^xsd:string
] ;
sp:predicate <http://www.
epim.no/schemas/mprml/1#contextFacilityRe
f> ;
sp:predicate <http://www.
reportinghub.no/ep/schema/core#temporalPartO
f> ;
sp:subject
[ sp:varName "
productVolumeRef
"^^xsd:string
[ sp:varName "
productionInventoryCollection
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryCollectionToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionInventoryCollectionToDate
"^^xsd:string
]
] [ sp:object
[ sp:varName "
contextFacility
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 "
contextFacility
"^^xsd:string
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
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
]
])
] .
<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
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1.ttl
View file @
c0da7ec
This diff could not be displayed because it is too large.
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1.ttl
View file @
c0da7ec
...
...
@@ -22,57 +22,48 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionOperationReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"productionReport"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#partOf>
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b1
]
[
sp:
object
[
sp:
varName
"reportPeriodType"
^^
xsd:
string
rdfs:
comment
"STEP 40020 Add the report kind ."
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"reportKind"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#reportOn>
;
sp:
subject
_:
b1
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b2
]
[
sp:
object
[
sp:
varName
"productionOperationRef"
^^
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/facility#ProductionFacilityToDate>
;
sp:
subject
[
sp:
varName
"productionOperationReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReportType>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
;
sp:
predicate
rdfs:
subClassOf
;
sp:
subject
[
sp:
varName
"reportKind"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"
title
"
^^
xsd:
string
[
sp:
varName
"
kind
"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/report#title>
;
sp:
subject
_:
b1
sp:
predicate
rdfs:
label
;
sp:
subject
[
sp:
varName
"reportKind"
^^
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
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#Production
Operation
Report>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionOperationReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionReport"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#partOf>
;
sp:
subject
[
sp:
varName
"productionOperationReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
...
...
@@ -98,59 +89,37 @@
sp:
subject
[
sp:
varName
"nameRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"periodKindRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#periodKindRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
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
"productionOperationRef"
^^
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
[
sp:
varName
"kind"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#kind>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-
mpr-spin-lib:
selectReportPeriodType
;
sp:
arg1
[
sp:
varName
"
periodKindRef
"
^^
xsd:
string
[
rdf:
type
ep-
dpr-spin-lib:
buildProductionReportKindURI
;
sp:
arg1
[
sp:
varName
"
kind
"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"report
PeriodType
"
^^
xsd:
string
[
sp:
varName
"report
Kind
"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 40051 Set the context facility - installation does not exist"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/facility#ProductionFacility>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
sp:
object
[
sp:
varName
"contextFacility"
^^
xsd:
string
rdfs:
comment
"STEP 40040 Set the installation"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/geography#locatedWithin>
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
_:
b4
;
]
[
sp:
object
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
[
sp:
varName
"productionFacilityToDate"
^^
xsd:
string
...
...
@@ -166,38 +135,22 @@
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
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
"
contextFacility
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
"productionOperationRef"
^^
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
"
context
Facility"
^^
xsd:
string
[
sp:
varName
"
production
Facility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"product
Volume
Ref"
^^
xsd:
string
[
sp:
varName
"product
ionOperation
Ref"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
...
...
@@ -224,27 +177,69 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 40031 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 40060 Set the facility operator
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
[ sp:varName "
operator
"^^xsd:string
] ;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "
productionOperationRef
"^^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_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionOperationRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
[ sp:varName "
operatorRef
"^^xsd:string
] ;
sp:
predicate
<http://www.
reportinghub.no/ep/schema/activity#finishedAt
>
;
sp:predicate <http://www.
epim.no/schemas/mprml/1#operatorRef
> ;
sp:subject
[
sp:
varName
"productionFacilityToDate"
^^
xsd:
string
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
operatorRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
operator
"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
40050
Set
the
context
facility
-
installation
exists
"^^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
...
...
@@ -258,42 +253,32 @@
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ sp:object
[
sp:
varName
"
dateStart
"
^^
xsd:
string
[ sp:varName "
installationRef
"^^xsd:string
] ;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#
dateStart
>
;
sp:predicate <http://www.epim.no/schemas/mprml/1#
installationRef
> ;
sp:subject
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ sp:object
[
sp:
varName
"
dateEnd
"
^^
xsd:
string
[ sp:varName "
installationRef
"^^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
"production
OperationsRef
"
^^
xsd:
string
[ sp:varName "
production
Facility
"^^xsd:string
]
] [ sp:object
[
sp:
varName
"
productionOperation
Ref"
^^
xsd:
string
[ sp:varName "
contextFacility
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:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[
sp:
varName
"
temporalPartOfAProductionFacility
"
^^
xsd:
string
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ sp:object
[
sp:
varName
"
productionFacilityToDate
"
^^
xsd:
string
[ sp:varName "
contextFacilityRef
"^^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:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[
sp:
varName
"
productionFacilityToDate
"
^^
xsd:
string
[ sp:varName "
contextFacility
"^^xsd:string
]
])
] ;
...
...
@@ -374,13 +359,27 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:
comment
"STEP 400
50 Set the context facility - installation exist
s"
^^
xsd:
string
;
rdfs:comment "
STEP
400
31
Record
the
start
and
end
date
s
"^^xsd:string ;
sp:templates ([ sp:object
[
sp:
varName
"
contextFacility
"
^^
xsd:
string
[ sp:varName "
dateStart
"^^xsd:string
] ;
sp:
predicate
<http://www.reportinghub.no/ep/schema/
geography#locatedWithin
>
;
sp:predicate <http://www.reportinghub.no/ep/schema/
activity#startedAt
> ;
sp:subject
[
sp:
varName
"productionFacility"
^^
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: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
...
...
@@ -394,62 +393,18 @@
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ sp:object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#installationRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"installationRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"contextFacilityRef"
^^
xsd:
string
[ sp: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 "
productionOperationRef
"^^xsd:string
]
] [ sp:object
[
sp:
varName
"contextFacilityRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"contextFacility"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 40060 Set the facility operator
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b5 ;
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 _:b5
] [ sp:object
[ sp:varName "
operator
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b5
]) ;
sp:where ([ sp:object
[ sp:varName "
productionOperationRef
"^^xsd:string
[ sp:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "
productionOperationRef
"^^xsd:string
[ sp:varName "
productionOperation
s
Ref
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionOperationRef
"^^xsd:string
...
...
@@ -464,34 +419,36 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
operatorRef
"^^xsd:string
[ sp:varName "
productionFacilityToDate
"^^xsd:string
] ;
sp:predicate <http://www.
epim.no/schemas/mprml/1#operatorRe
f> ;
sp:predicate <http://www.
reportinghub.no/ep/schema/core#temporalPartO
f> ;
sp:subject
[ sp:varName "
productionOperationRef
"^^xsd:string
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
operatorRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
operator
"^^xsd:string
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
40040
Set
the
installation
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
productionFacility
"^^xsd:string
rdfs:comment "
STEP
40051
Set
the
context
facility
-
installation
does
not
exist
"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "
contextFacility
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b2
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionFacility
"^^xsd:string
] ;
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
...
...
@@ -507,22 +464,38 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:subject
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "
installationRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "
productionOperationRef
"^^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 "
installation
Ref
"^^xsd:string
[ sp:varName "
contextFacility
Ref
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#
installation
Ref> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#
contextFacility
Ref> ;
sp:subject
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
installation
Ref
"^^xsd:string
[ sp:varName "
contextFacility
Ref
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "
production
Facility
"^^xsd:string
[ sp:varName "
context
Facility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
product
ionOperation
Ref
"^^xsd:string
[ sp:varName "
product
Volume
Ref
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
...
...
@@ -549,48 +522,57 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "
STEP
40020
Add
the
report
kind
.
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
reportKind
"^^xsd:string
rdfs:comment "
STEP
40010
Create
the
ProductionOperationReport
;
the
period
ProductionFacility
and
the
ProductionFacilityToDate
.
"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "
productionReport
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "
name
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "
reportPeriodType
"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionOperationReport
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReportKind> ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
reportKind
"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdfs:subClassOf ;
sp:subject
[ sp:varName "
reportKind
"^^xsd:string
]
sp:subject _:b4
] [ sp:object
[ sp:varName "
kind
"^^xsd:string
[ sp:varName "
productionOperationRef
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "
reportKind
"^^xsd:string
]
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/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "
title
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#title> ;
sp:subject _:b3
]) ;
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#Production
Operation
Report> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionOperationReport
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionReport
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "
productionOperationReport
"^^xsd:string
]
] [ sp:object
[ sp:varName "
productionOperationRef
"^^xsd:string
...
...
@@ -616,26 +598,44 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:subject
[ sp:varName "
nameRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
kind
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
sp:subject
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "
periodKindRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
sp:subject
[ sp:varName "
productionOperationRef
"^^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 "
productionOperationRef
"^^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
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1>
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