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-15 12:40:18 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d7af8958030dbb3fc805ea7d37d9d2d03c07d132
d7af8958
1 parent
63e932be
Duplicate crew bug fixed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
640 additions
and
635 deletions
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1.ttl
View file @
d7af895
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-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/transform/transform-helper-schema
@prefix
:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1#>
.
@prefix
arg:
<http://spinrdf.org/arg#>
.
@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
ep-spin-lib:
<http://www.reportinghub.no/ep/spin/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
rhspin:
<http://www.reportinghub.no/spin/rh#>
.
@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#A_Global-Objects>
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
]
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionOperationReport"
^^
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
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#ProductionOperationReport>
;
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
]
;
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
"nameRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#nameRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
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
"productionOperationRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-dpr-spin-lib:
buildProductionReportKindURI
;
sp:
arg1
[
sp:
varName
"kind"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"reportKind"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 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
]
;
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:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
[
sp:
varName
"title"
^^
xsd:
string
]
;
sp:
predicate
<http://purl.org/dc/elements/1.1/title>
;
sp:
subject
_:
b1
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"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
"nameRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#nameRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"nameRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"periodKindRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#periodKindRef>
;
sp:
subject
[
sp:
varName
"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-mpr-spin-lib:
selectReportPeriodType
;
sp:
arg1
[
sp:
varName
"periodKindRef"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"reportPeriodType"
^^
xsd:
string
]
])
]
;
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>
;
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
"temporalPartOfAProductionFacility"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#finishedAt>
;
sp:
subject
[
sp:
varName
"productionFacilityToDate"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"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
"dateStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateStart>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dateEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dateEnd>
;
sp:
subject
[
sp:
varName
"productionOperationsRef"
^^
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
"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 40030 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
"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
"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
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dTimStart>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"dTimEnd"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#dTimEnd>
;
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
"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 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
[
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
"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:
predicate
<http://www.epim.no/schemas/mprml/1#contextFacilityRef>
;
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
;
# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-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/transform/transform-helper-schema
@prefix
:
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1#>
.
@prefix
arg:
<http://spinrdf.org/arg#>
.
@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
ep-spin-lib:
<http://www.reportinghub.no/ep/spin/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
rhspin:
<http://www.reportinghub.no/spin/rh#>
.
@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#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
]
;
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:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
[
sp:
varName
"title"
^^
xsd:
string
]
;
sp:
predicate
<http://purl.org/dc/elements/1.1/title>
;
sp:
subject
_:
b1
])
;
sp:
where
([
sp:
object
spin:
_this
;
sp:
predicate
<http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom>
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"productionReport"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"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
"nameRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#nameRef>
;
sp:
subject
[
sp:
varName
"productionOperationRef"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"name"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
[
sp:
varName
"nameRef"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
[
sp:
varName
"periodKindRef"
^^
xsd:
string
]
;
sp:
predicate
<http://www.epim.no/schemas/mprml/1#periodKindRef>
;
sp:
subject
[
sp:
varName
"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-mpr-spin-lib:
selectReportPeriodType
;
sp:
arg1
[
sp:
varName
"periodKindRef"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"reportPeriodType"
^^
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
]
;
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:
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
"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
"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
"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 40060 Set the facility operator
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b4 ;
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 _:b4
] [ sp:object
[ sp:varName "
operator
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b4
]) ;
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 "
operatorRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ 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
40040
Set
the
installation
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
productionFacility
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
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: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 "
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 "
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 "
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
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 _:b5
] [ sp:object
[ sp:varName "
contextFacility
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
]) ;
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
]
] [ 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 "
contextFacilityRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
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
]
] [ 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
]
])
] .
<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:versionInfo "
Created
with
TopBraid
Composer
"
^^
xsd:
string
.
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b4 ;
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 _:b4
] [ sp:object
[ sp:varName "
operator
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b4
]) ;
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 "
operatorRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ 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
[ 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 "
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:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
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
40030
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 "
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 "
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 "
dTimStart
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:subject
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dTimEnd
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
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 "
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
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> ;
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 "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "
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 "
dateStart
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "
productionOperationRef
"^^xsd:string
]
] [ sp:object
[ sp:varName "
dateEnd
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "
productionOperationsRef
"^^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 "
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
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 _:b5
] [ sp:object
[ sp:varName "
contextFacility
"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
temporalPartOfAProductionFacility
"^^xsd:string
]
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "
productionFacilityToDate
"^^xsd:string
]
]) ;
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
]
] [ 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 "
contextFacilityRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
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
]
] [ 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
40020
Add
the
report
kind
.
"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "
reportKind
"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "
productionOperationReport
"^^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 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#ProductionOperationReport> ;
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
] ;
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 "
nameRef
"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "
productionOperationRef
"^^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 "
productionOperationRef
"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
sp:arg1 [ sp:varName "
kind
"^^xsd:string
]
] ;
sp:variable
[ sp:varName "
reportKind
"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
owl:versionInfo "
Created
with
TopBraid
Composer
"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment