David Leal

Next tranche of work on MPR productionOperation transform

......@@ -12,7 +12,7 @@
<http://www.reportinghub.no/ep/schema/1.0/production-facility>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/production-well> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/ep/schema/equipment#ChokeValve>
......@@ -60,7 +60,7 @@
rdf:type ep-prodfac:ProductionFacilityType .
<http://www.reportinghub.no/ep/schema/facility#facilityOperator>
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:label "facility operator"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> .
......@@ -101,22 +101,22 @@ ep-prodfac:Boat
rdfs:subClassOf ep-prodfac:ShipOrBoat .
ep-prodfac:Field-area
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "field - area"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
ep-prodfac:Field-group
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "field - group"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
ep-prodfac:Field-part
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "field - part"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
ep-prodfac:Installation
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdfs:label "installation"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
......@@ -126,17 +126,17 @@ ep-prodfac:OilTanker
rdfs:subClassOf ep-prodfac:Ship .
ep-prodfac:Plant
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "plant"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
ep-prodfac:Plant-processing
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "plant - processing"^^xsd:string ;
rdfs:subClassOf ep-prodfac:Plant .
ep-prodfac:ProcessingFacility
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "processing facility"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
......@@ -155,7 +155,7 @@ ep-prodfac:ShipOrBoat
rdfs:subClassOf ep-prodfac:TemporalPartOfAShipOrBoat .
ep-prodfac:StorageFacility
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "storage facility"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
......@@ -169,7 +169,7 @@ ep-prodfac:TemporalPartOfAShipOrBoat
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
ep-prodfac:TrunkLine
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdfs:label "trunk line"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
......@@ -178,11 +178,6 @@ ep-prodfac:numberOfBedsAvailable
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:range xsd:integer .
ep-prodfac:numberOfCateringCrew
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:range xsd:integer .
ep-prodfac:numberOfContractorCrew
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
......
......@@ -48,7 +48,7 @@ sp:if
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-dpr-spin-lib:Function
......@@ -140,7 +140,9 @@ ep-dpr-spin-lib:buildBlockURI
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/block/" ;
sp:arg2 spin:_arg1
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable
[ sp:varName "uri"^^xsd:string
......@@ -154,16 +156,19 @@ ep-dpr-spin-lib:buildCountryURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b5) ;
sp:resultVariables ([ sp:varName "uri"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/country/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b5
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
......@@ -175,7 +180,7 @@ ep-dpr-spin-lib:buildDailyProductionActivityURI
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b6) ;
sp:resultVariables (_:b5) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -190,7 +195,7 @@ arg3 is end date"""^^xsd:string ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b6
sp:variable _:b5
])
] .
......@@ -202,7 +207,7 @@ ep-dpr-spin-lib:buildDailyProductionOperationsActivityURI
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b7) ;
sp:resultVariables (_:b6) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -217,7 +222,7 @@ arg3 is end date"""^^xsd:string ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b7
sp:variable _:b6
])
] .
......@@ -228,18 +233,25 @@ ep-dpr-spin-lib:buildDailyProductionReportURI
[ rdf:type sp:Select ;
rdfs:comment """arg1 is the name of the report
arg2 is the report date"""^^xsd:string ;
sp:resultVariables (_:b8) ;
sp:resultVariables ([ sp:varName "uri"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionReport/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
sp:arg3 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg2
]
]
] ;
sp:variable _:b8
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
......@@ -249,14 +261,60 @@ ep-dpr-spin-lib:buildFacilityURI
spin:body
[ rdf:type sp:Select ;
rdfs:comment "arg1 is name of facility (this is going to change when we sort out the identity lookup)"^^xsd:string ;
sp:resultVariables (_:b9) ;
sp:resultVariables (_:b7) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/facility/" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b9
sp:variable _:b7
])
] .
ep-dpr-spin-lib:buildOrganizationURI
rdf:type spin:Function ;
rdfs:label "build Organization URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment "arg1 is name of the organization - assumed to be unique in this scope"^^xsd:string ;
sp:resultVariables ([ sp:varName "uri"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/organization/" ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
ep-dpr-spin-lib:buildPersonURI
rdf:type spin:Function ;
rdfs:label "build Person URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment "arg1 is name of the person - assumed to be unique in this scope"^^xsd:string ;
sp:resultVariables ([ sp:varName "uri"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/person/" ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
......@@ -266,7 +324,7 @@ ep-dpr-spin-lib:buildProductFlowURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b10) ;
sp:resultVariables (_:b8) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -277,7 +335,7 @@ ep-dpr-spin-lib:buildProductFlowURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b10
sp:variable _:b8
])
] .
......@@ -340,7 +398,7 @@ ep-dpr-spin-lib:buildProductionActivityToDateURI
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is end date"""^^xsd:string ;
sp:resultVariables (_:b11) ;
sp:resultVariables (_:b9) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -353,7 +411,7 @@ arg2 is end date"""^^xsd:string ;
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b11
sp:variable _:b9
])
] .
......@@ -363,16 +421,19 @@ ep-dpr-spin-lib:buildProductionFacilityURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b12) ;
sp:resultVariables ([ sp:varName "uri"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFacility/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b12
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
......@@ -382,16 +443,19 @@ ep-dpr-spin-lib:buildProductionFlowURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b13) ;
sp:resultVariables ([ sp:varName "uri"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b13
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
......@@ -401,7 +465,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b14) ;
sp:resultVariables (_:b10) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -414,7 +478,7 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b14
sp:variable _:b10
])
] .
......@@ -424,7 +488,7 @@ ep-dpr-spin-lib:buildProductionFlowsToDateURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b15) ;
sp:resultVariables (_:b11) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -435,7 +499,7 @@ ep-dpr-spin-lib:buildProductionFlowsToDateURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b15
sp:variable _:b11
])
] .
......@@ -451,7 +515,7 @@ ep-dpr-spin-lib:buildProductionInventoryURI
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionInventory/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
......@@ -473,7 +537,7 @@ ep-dpr-spin-lib:buildProductionReportKindURI
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionReportKind/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
......@@ -489,16 +553,19 @@ ep-dpr-spin-lib:buildShipURI
spin:body
[ rdf:type sp:Select ;
rdfs:comment "arg1 is name of the ship - assumed to be unique in this scope"^^xsd:string ;
sp:resultVariables (_:b16) ;
sp:resultVariables ([ sp:varName "uri"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/Ship/" ;
sp:arg1 "https://www.reportinghub.no/ep/data/ship/" ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b16
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
......@@ -508,16 +575,19 @@ ep-dpr-spin-lib:buildStateURI
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b17) ;
sp:resultVariables ([ sp:varName "uri"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/state/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b17
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
......@@ -529,7 +599,7 @@ ep-dpr-spin-lib:buildTemporalPartOfFacilityURI
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b18) ;
sp:resultVariables (_:b12) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -544,7 +614,7 @@ arg3 is end date"""^^xsd:string ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b18
sp:variable _:b12
])
] .
......@@ -556,7 +626,7 @@ ep-dpr-spin-lib:buildTemporalPartOfShipURI
rdfs:comment """arg1 is name of ship
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b19) ;
sp:resultVariables (_:b13) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
......@@ -571,7 +641,7 @@ arg3 is end date"""^^xsd:string ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b19
sp:variable _:b13
])
] .
......@@ -877,75 +947,7 @@ ep-dpr-spin-lib:selectAreaScale
ep-dpr-spin-lib:selectCrewCountRelationshipType
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "crewCountRelationshipType"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_cateringcrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfCateringCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_contractorcrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfContractorCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_dayvisitors>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfDayVisitors> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_drillingcontractcrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfDrillingContractCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_owncrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfOwnCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_ownothercrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfOwnOtherCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_othercrew>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfOtherCrew> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#CT_personnelonboard>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#numberOfPersonnelOnBoard> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow>
]
]
]
]
]
]
]
] ;
sp:variable
[ sp:varName "crewCountRelationshipType"^^xsd:string
]
])
] .
rdfs:subClassOf ep-dpr-spin-lib:Function .
ep-dpr-spin-lib:selectDensityAtStandardTemperaturePressureType
rdf:type spin:Function ;
......@@ -991,7 +993,7 @@ ep-dpr-spin-lib:selectDensityScale
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b20) ;
sp:resultVariables (_:b14) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1198,7 +1200,7 @@ ep-dpr-spin-lib:selectDensityScale
]
]
] ;
sp:variable _:b20
sp:variable _:b14
])
] .
......@@ -4342,7 +4344,7 @@ ep-dpr-spin-lib:selectProductVolumeReportPeriodType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b21) ;
sp:resultVariables (_:b15) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4416,7 +4418,7 @@ ep-dpr-spin-lib:selectProductVolumeReportPeriodType
]
]
] ;
sp:variable _:b21
sp:variable _:b15
])
] .
......@@ -4584,7 +4586,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b22) ;
sp:resultVariables (_:b16) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4763,7 +4765,7 @@ ep-dpr-spin-lib:selectProductionFacilityType
]
]
] ;
sp:variable _:b22
sp:variable _:b16
])
] .
......@@ -4773,7 +4775,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b23) ;
sp:resultVariables (_:b17) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4833,7 +4835,7 @@ ep-dpr-spin-lib:selectProductionFlowDefinitionType
]
]
] ;
sp:variable _:b23
sp:variable _:b17
])
] .
......@@ -4843,7 +4845,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b24) ;
sp:resultVariables (_:b18) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4861,7 +4863,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionInverseRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b24
sp:variable _:b18
])
] .
......@@ -4871,7 +4873,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b25) ;
sp:resultVariables (_:b19) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -4889,7 +4891,7 @@ ep-dpr-spin-lib:selectProductionFlowDirectionRelationshipType
sp:arg3 <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf>
]
] ;
sp:variable _:b25
sp:variable _:b19
])
] .
......@@ -4899,7 +4901,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b26) ;
sp:resultVariables (_:b20) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5050,7 +5052,7 @@ ep-dpr-spin-lib:selectProductionFlowPurposeType
]
]
] ;
sp:variable _:b26
sp:variable _:b20
])
] .
......@@ -5239,7 +5241,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b27) ;
sp:resultVariables (_:b21) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -5383,7 +5385,7 @@ ep-dpr-spin-lib:selectSafetyActivityType
]
]
] ;
sp:variable _:b27
sp:variable _:b21
])
] .
......@@ -5564,22 +5566,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b28) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b28
])
] ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "myVar"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
......@@ -5659,6 +5645,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
[ sp:varName "myVar"^^xsd:string
]
])
] ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b22) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b22
])
] .
ep-dpr-spin-lib:selectTemperatureScale
......@@ -6050,7 +6052,7 @@ ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b29) ;
sp:resultVariables (_:b23) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -6075,7 +6077,7 @@ ep-dpr-spin-lib:selectVolumeFlowRateAtStandardTemperaturePressureType
]
]
] ;
sp:variable _:b29
sp:variable _:b23
])
] .
......@@ -7193,80 +7195,62 @@ ep-dpr-spin-lib:selectWorkScale
])
] .
_:b29
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
_:b28
sp:varName "specificVolumeScale"^^xsd:string .
_:b27
sp:varName "safetyActivityType"^^xsd:string .
_:b26
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b25
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b24
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b23
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b22
sp:varName "productionFacilityType"^^xsd:string .
_:b2 sp:varName "UUID"^^xsd:string .
_:b21
sp:varName "productVolumeReportPeriodType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b20
sp:varName "densityScale"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b19
sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b18
sp:varName "uri"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b17
sp:varName "uri"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b16
sp:varName "uri"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b15
sp:varName "uri"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b14
_:b10
sp:varName "uri"^^xsd:string .
_:b13
_:b11
sp:varName "uri"^^xsd:string .
_:b12
sp:varName "uri"^^xsd:string .
_:b11
_:b13
sp:varName "uri"^^xsd:string .
_:b10
sp:varName "uri"^^xsd:string .
_:b14
sp:varName "densityScale"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b15
sp:varName "productVolumeReportPeriodType"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b16
sp:varName "productionFacilityType"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b17
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b18
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b19
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b20
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b21
sp:varName "safetyActivityType"^^xsd:string .
_:b2 sp:varName "UUID"^^xsd:string .
_:b22
sp:varName "specificVolumeScale"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b23
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
......
......@@ -90,7 +90,7 @@ ep-mpr-spin-lib:buildPersonRoleTypeURI
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/personRoleType/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
......@@ -114,9 +114,13 @@ arg2 is the interval identifier"""^^xsd:string ;
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionReport/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
sp:arg3 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg2
]
]
] ;
sp:variable
......
......@@ -3,11 +3,13 @@
# imports: http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults
# imports: http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults
# imports: http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0
......@@ -16,11 +18,13 @@
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
@prefix TRANSFORM_mpr-comment-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#> .
@prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> .
@prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> .
@prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> .
@prefix TRANSFORM_mpr-geographicContext-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1#> .
@prefix TRANSFORM_mpr-installationReport-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1#> .
@prefix TRANSFORM_mpr-operationalHSEReport-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1#> .
@prefix TRANSFORM_mpr-organization-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1#> .
@prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> .
@prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> .
......@@ -44,5 +48,5 @@
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1> ;
owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.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
@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#> .
......@@ -19,31 +21,30 @@
<http://www.epim.no/schemas/mprml/1#Cs_datedComment>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90203 Set the commentation role (whole life person not set)"^^xsd:string ;
rdfs:comment "STEP 90202 Set the commentation role (whole life person set)"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "commentingActivity"^^xsd:string
[ sp:varName "commentator"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-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/production-organization#PersonRole> ;
sp:predicate rdf:type ;
sp:subject _:b2
sp:subject _:b1
] [ sp:object
[ sp:varName "personRoleType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b2
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRoleType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "personRoleType"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRole> ;
sp:predicate rdfs:subClassOf ;
sp:subject
[ sp:varName "personRoleType"^^xsd:string
]
] [ sp:object
[ sp:varName "role"^^xsd:string
] ;
......@@ -57,15 +58,13 @@
sp:subject
[ sp:varName "commentingActivity"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
] [ 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
] ;
......@@ -84,12 +83,18 @@
] ;
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> ;
rdfs:comment "STEP 90203 Set the commentation role (whole life person not set)"^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentator> ;
sp:subject
[ sp:varName "commentator"^^xsd:string
[ sp:varName "commentingActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#Person> ;
sp:predicate rdf:type ;
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/production-organization#PersonRole> ;
sp:predicate rdf:type ;
sp:subject _:b3
......@@ -103,6 +108,11 @@
sp:subject
[ sp:varName "personRoleType"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-organization#PersonRole> ;
sp:predicate rdfs:subClassOf ;
sp:subject
[ sp:varName "personRoleType"^^xsd:string
]
] [ sp:object
[ sp:varName "role"^^xsd:string
] ;
......@@ -116,13 +126,15 @@
sp:subject
[ sp:varName "commentingActivity"^^xsd:string
]
] [ sp:object
] [ 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
] ;
......@@ -141,43 +153,8 @@
] ;
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/production-organization#Person> ;
sp:predicate rdf:type ;
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/production-organization#WholeLifePerson> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "who"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b5
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#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
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90200 Create the commenting activity"^^xsd:string ;
sp:templates ([ sp:object _:b6 ;
sp:templates ([ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "activityForComment"^^xsd:string
......@@ -186,31 +163,31 @@
[ sp:varName "typeOfPartCommentedOn"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b6
sp:subject _:b4
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b6
sp:subject _:b4
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b6
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MakeAComment> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b6 ;
sp:subject _:b5
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ;
sp:subject _:b7
sp:subject _:b5
] [ sp:object
[ sp:varName "remark"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentMade> ;
sp:subject _:b7
sp:subject _:b5
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b7
sp:subject _:b5
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
......@@ -242,9 +219,59 @@
sp:predicate <http://www.epim.no/schemas/mprml/1#remark> ;
sp:subject spin:_this
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 90201 Set the commentation whole life person"^^xsd:string ;
sp:templates ([ sp:object _:b6 ;
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/production-organization#Person> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object
[ sp:varName "person"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/production-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/schema/core#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
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ;
owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
......@@ -21,56 +21,22 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40305 Set the time since most recent defined hazard and accident situation"^^xsd:string ;
rdfs:comment "STEP 40302 Set the safety consideration description"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SafetyConsideration> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#DefinedHazardAndAccidentSituation> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b1
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "realDefinedSituation"^^xsd:string
] ;
sp:predicate
[ sp:varName "sinceDefinedSituationScale"^^xsd:string
[ sp:varName "safetyDescription"^^xsd:string
] ;
sp:subject _:b3
sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-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:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -112,83 +78,49 @@
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "sinceDefinedSituationRef"^^xsd:string
[ sp:varName "safetyDescription"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sinceDefinedSituationRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#safetyDescription> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
]
] [ sp:object
[ sp:varName "realSinceDefinedSituation"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "sinceDefinedSituationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomSinceDefinedSituation"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "sinceDefinedSituationRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomSinceDefinedSituation"^^xsd:string
]
] ;
sp:variable
[ sp:varName "sinceDefinedSituationScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40309 Set the mean time between incidents"^^xsd:string ;
sp:templates ([ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasCompositionOfAllPartsOfDefinedType> ;
rdfs:comment "STEP 40303 Set the time since most recent lost time accident"^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#CompositionOfAllPartsOfDefinedType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentOrInjury> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LostTimeAccident> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#meanTimeBetweenParts> ;
sp:subject _:b4
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject _:b5
sp:subject _:b4
] [ sp:object
[ sp:varName "realMeantimeIncident"^^xsd:string
[ sp:varName "realSinceLostTime"^^xsd:string
] ;
sp:predicate
[ sp:varName "meantimeIncidentScale"^^xsd:string
[ sp:varName "sinceLostTimeScale"^^xsd:string
] ;
sp:subject _:b5
sp:subject _:b4
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-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:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -230,89 +162,72 @@
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "operationalHSERef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "safetyRef"^^xsd:string
[ sp:varName "sinceLostTimeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#safetyRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sinceLostTimeRef> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
]
] [ sp:object
[ sp:varName "meantimeIncidentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#meantimeIncidentRef> ;
sp:subject
[ sp:varName "safetyRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realMeantimeIncident"^^xsd:string
[ sp:varName "realSinceLostTime"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "meantimeIncidentRef"^^xsd:string
[ sp:varName "sinceLostTimeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomMeantimeIncident"^^xsd:string
[ sp:varName "uomSinceLostTime"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "meantimeIncidentRef"^^xsd:string
[ sp:varName "sinceLostTimeRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomMeantimeIncident"^^xsd:string
sp:arg1 [ sp:varName "uomSinceLostTime"^^xsd:string
]
] ;
sp:variable
[ sp:varName "meantimeIncidentScale"^^xsd:string
[ sp:varName "sinceLostTimeScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40307 Set the number of number of medical treatments"^^xsd:string ;
sp:templates ([ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
rdfs:comment "STEP 40305 Set the time since most recent defined hazard and accident situation"^^xsd:string ;
sp:templates ([ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MedicalTreatment> ;
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#DefinedHazardAndAccidentSituation> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object
[ sp:varName "medicalTreatmentCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
] [ sp:object _:b7 ;
sp:predicate rdf:type ;
sp:subject _:b6
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
sp:subject _:b7
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
[ sp:varName "realSinceDefinedSituation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
sp:predicate
[ sp:varName "sinceDefinedSituationScale"^^xsd:string
] ;
sp:subject _:b7
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -354,59 +269,72 @@
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "sinceDefinedSituationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sinceDefinedSituationRef> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
]
] [ sp:object
[ sp:varName "realSinceDefinedSituation"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
[ sp:varName "sinceDefinedSituationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "medicalTreatmentCount"^^xsd:string
[ sp:varName "uomSinceDefinedSituation"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#medicalTreatmentCount> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
[ sp:varName "sinceDefinedSituationRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomSinceDefinedSituation"^^xsd:string
]
] ;
sp:variable
[ sp:varName "sinceDefinedSituationScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40301 Set the number of personnel safety introductions"^^xsd:string ;
sp:templates ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
rdfs:comment "STEP 40304 Set the time since most recent accident prevention exercise"^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#PersonnelSafetyIntroduction> ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentPreventionExercise> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b7
] [ sp:object
[ sp:varName "safetyIntroCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
sp:subject _:b7
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
sp:subject _:b9
] [ sp:object _:b10 ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
[ sp:varName "realSincePreventionExercise"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
sp:predicate
[ sp:varName "sincePreventionExerciseScale"^^xsd:string
] ;
sp:subject _:b10
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -448,59 +376,58 @@
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "operationalHSERef"^^xsd:string
[ sp:varName "sincePreventionExerciseRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sincePreventionExerciseRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
[ sp:varName "operationalHSERef"^^xsd:string
]
] [ sp:object
[ sp:varName "safetyIntroCount"^^xsd:string
[ sp:varName "realSincePreventionExercise"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#safetyIntroCount> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
[ sp:varName "sincePreventionExerciseRef"^^xsd:string
]
])
] [ sp:object
[ sp:varName "uomSincePreventionExercise"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "sincePreventionExerciseRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomSincePreventionExercise"^^xsd:string
]
] ;
sp:variable
[ sp:varName "sincePreventionExerciseScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40308 Set the number of number of alarms"^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
rdfs:comment "STEP 40306 Set the number of number of accidents and injuries"^^xsd:string ;
sp:templates ([ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#Alarm> ;
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentOrInjury> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b8
sp:subject _:b11
] [ sp:object
[ sp:varName "alarmCount"^^xsd:string
[ sp:varName "incidentCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
sp:subject _:b8
sp:subject _:b11
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-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:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -549,9 +476,9 @@
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "alarmCount"^^xsd:string
[ sp:varName "incidentCount"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#alarmCount> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#incidentCount> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
]
......@@ -559,43 +486,22 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40311 Set the safety counts - for year to date incidents
rdfs:comment """STEP 40312 Set the whole activity and the type of part activity for comment
period not processed"""^^xsd:string ;
sp:templates ([ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
sp:subject
[ sp:varName "annualProductionOperationToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#Incident> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b9
] [ sp:object
[ sp:varName "safetyCount"^^xsd:string
sp:templates ([ sp:object
[ sp:varName "commentRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
sp:subject _:b9
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
[ sp:varName "commentRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#HealthSafetyAndEnvironmentActivity>
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -663,73 +569,38 @@ period not processed"""^^xsd:string ;
[ sp:varName "operationalHSERef"^^xsd:string
]
] [ sp:object
[ sp:varName "safetyCountRef"^^xsd:string
[ sp:varName "commentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#safetyCountRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#commentRef> ;
sp:subject
[ sp:varName "safetyRef"^^xsd:string
]
] [ sp:object
[ sp:varName "safetyCount"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "safetyCountRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#ST_year-to-dateincidents> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
sp:subject
[ sp:varName "safetyCountRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "reportingPeriod"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
sp:subject
[ sp:varName "safetyCountRef"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40306 Set the number of number of accidents and injuries"^^xsd:string ;
sp:templates ([ sp:object _:b10 ;
rdfs:comment """STEP 40310 Set the safety counts - except year to date incidents
period not processed"""^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentOrInjury> ;
sp:subject _:b12
] [ sp:object
[ sp:varName "safetyActivityType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b10
sp:subject _:b12
] [ sp:object
[ sp:varName "incidentCount"^^xsd:string
[ sp:varName "safetyCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
sp:subject _:b10
sp:subject _:b12
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-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:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -778,173 +649,83 @@ period not processed"""^^xsd:string ;
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "incidentCount"^^xsd:string
[ sp:varName "safetyRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#incidentCount> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#safetyRef> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40304 Set the time since most recent accident prevention exercise"^^xsd:string ;
sp:templates ([ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentPreventionExercise> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object _:b13 ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ sp:object
[ sp:varName "realSincePreventionExercise"^^xsd:string
] ;
sp:predicate
[ sp:varName "sincePreventionExerciseScale"^^xsd:string
] ;
sp:subject _:b13
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-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 "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
[ sp:varName "safetyCountRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:predicate <http://www.epim.no/schemas/mprml/1#safetyCountRef> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
[ sp:varName "safetyRef"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "safetyCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
[ sp:varName "safetyCountRef"^^xsd:string
]
] [ sp:object
[ sp:varName "sincePreventionExerciseRef"^^xsd:string
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "safetyTypeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sincePreventionExerciseRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
[ sp:varName "safetyCountRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realSincePreventionExercise"^^xsd:string
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "reportingPeriod"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodRef> ;
sp:subject
[ sp:varName "sincePreventionExerciseRef"^^xsd:string
[ sp:varName "safetyCountRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomSincePreventionExercise"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#ST_year-to-dateincidents> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
sp:subject
[ sp:varName "sincePreventionExerciseRef"^^xsd:string
[ sp:varName "safetyCountRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomSincePreventionExercise"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectSafetyActivityType ;
sp:arg1 [ sp:varName "safetyTypeRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "sincePreventionExerciseScale"^^xsd:string
[ sp:varName "safetyActivityType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40302 Set the safety consideration description"^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
rdfs:comment "STEP 40301 Set the number of personnel safety introductions"^^xsd:string ;
sp:templates ([ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SafetyConsideration> ;
sp:predicate rdf:type ;
sp:subject _:b14
] [ sp:object
[ sp:varName "safetyDescription"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
sp:subject _:b14
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
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:subject _:b13
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#PersonnelSafetyIntroduction> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b13
] [ sp:object
[ sp:varName "safetyIntroCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
sp:subject _:b13
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -986,9 +767,16 @@ period not processed"""^^xsd:string ;
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "safetyDescription"^^xsd:string
[ sp:varName "operationalHSERef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#safetyDescription> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "safetyIntroCount"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#safetyIntroCount> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
]
......@@ -996,56 +784,33 @@ period not processed"""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40303 Set the time since most recent lost time accident"^^xsd:string ;
sp:templates ([ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
rdfs:comment "STEP 40309 Set the mean time between incidents"^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasCompositionOfAllPartsOfDefinedType> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LastPartOfTypeRemainingActivityPair> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#CompositionOfAllPartsOfDefinedType> ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#LostTimeAccident> ;
sp:subject _:b14
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AccidentOrInjury> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b15
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
sp:subject _:b15
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject _:b16
] [ sp:object _:b17 ;
sp:predicate rdf:type ;
sp:subject _:b16
sp:subject _:b14
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#meanTimeBetweenParts> ;
sp:subject _:b14
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject _:b17
sp:subject _:b15
] [ sp:object
[ sp:varName "realSinceLostTime"^^xsd:string
[ sp:varName "realMeantimeIncident"^^xsd:string
] ;
sp:predicate
[ sp:varName "sinceLostTimeScale"^^xsd:string
[ sp:varName "meantimeIncidentScale"^^xsd:string
] ;
sp:subject _:b17
sp:subject _:b15
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-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:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -1087,78 +852,150 @@ period not processed"""^^xsd:string ;
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "sinceLostTimeRef"^^xsd:string
[ sp:varName "operationalHSERef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sinceLostTimeRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "safetyRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#safetyRef> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
]
] [ sp:object
[ sp:varName "realSinceLostTime"^^xsd:string
[ sp:varName "meantimeIncidentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#meantimeIncidentRef> ;
sp:subject
[ sp:varName "safetyRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realMeantimeIncident"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "sinceLostTimeRef"^^xsd:string
[ sp:varName "meantimeIncidentRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomSinceLostTime"^^xsd:string
[ sp:varName "uomMeantimeIncident"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "sinceLostTimeRef"^^xsd:string
[ sp:varName "meantimeIncidentRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectDurationScale ;
sp:arg1 [ sp:varName "uomSinceLostTime"^^xsd:string
sp:arg1 [ sp:varName "uomMeantimeIncident"^^xsd:string
]
] ;
sp:variable
[ sp:varName "sinceLostTimeScale"^^xsd:string
[ sp:varName "meantimeIncidentScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40310 Set the safety counts - except year to date incidents
period not processed"""^^xsd:string ;
sp:templates ([ sp:object _:b18 ;
rdfs:comment "STEP 40307 Set the number of number of medical treatments"^^xsd:string ;
sp:templates ([ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
sp:predicate rdf:type ;
sp:subject _:b18
] [ sp:object
[ sp:varName "safetyActivityType"^^xsd:string
] ;
sp:subject _:b16
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MedicalTreatment> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b18
sp:subject _:b16
] [ sp:object
[ sp:varName "safetyCount"^^xsd:string
[ sp:varName "medicalTreatmentCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
sp:subject _:b18
sp:subject _:b16
]) ;
sp:where ([ sp:object spin:_this ;
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 "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^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 <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
[ sp:varName "operationalHSERef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "medicalTreatmentCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#medicalTreatmentCount> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40311 Set the safety counts - for year to date incidents
period not processed"""^^xsd:string ;
sp:templates ([ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
[ sp:varName "annualProductionOperationToDate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
sp:predicate rdf:type ;
sp:subject _:b17
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#Incident> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b17
] [ sp:object
[ sp:varName "safetyCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
sp:subject _:b17
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -1200,6 +1037,18 @@ period not processed"""^^xsd:string ;
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "annualProductionOperationToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "annualProductionOperationToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "operationalHSERef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
......@@ -1227,15 +1076,11 @@ period not processed"""^^xsd:string ;
sp:subject
[ sp:varName "safetyCountRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "safetyTypeRef"^^xsd:string
] ;
] [ sp:object <http://www.epim.no/schemas/mprml/1#ST_year-to-dateincidents> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
sp:subject
[ sp:varName "safetyCountRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "reportingPeriod"^^xsd:string
......@@ -1245,59 +1090,29 @@ period not processed"""^^xsd:string ;
[ sp:varName "safetyCountRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#ST_year-to-dateincidents> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#typeRef> ;
sp:subject
[ sp:varName "safetyCountRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectSafetyActivityType ;
sp:arg1 [ sp:varName "safetyTypeRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "safetyActivityType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40312 Set the whole activity and the type of part activity for comment
period not processed"""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "commentRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
rdfs:comment "STEP 40308 Set the number of number of alarms"^^xsd:string ;
sp:templates ([ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#hasSetOfAllPartsOfDefinedType> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "commentRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#HealthSafetyAndEnvironmentActivity>
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-core#SetOfAllPartsOfDefinedType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
sp:subject _:b18
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#Alarm> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#definingType> ;
sp:subject _:b18
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
[ sp:varName "alarmCount"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#numberInSet> ;
sp:subject _:b18
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -1339,18 +1154,6 @@ period not processed"""^^xsd:string ;
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "annualProductionOperationToDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#AnnualProductionOperationToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "annualProductionOperationToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "operationalHSERef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operationalHSERef> ;
......@@ -1358,23 +1161,16 @@ period not processed"""^^xsd:string ;
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "safetyRef"^^xsd:string
[ sp:varName "alarmCount"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#safetyRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#alarmCount> ;
sp:subject
[ sp:varName "operationalHSERef"^^xsd:string
]
] [ sp:object
[ sp:varName "commentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#commentRef> ;
sp:subject
[ sp:varName "safetyRef"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-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> ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
......@@ -6,6 +6,7 @@
@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-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 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#> .
......@@ -18,34 +19,9 @@
<http://www.epim.no/schemas/mprml/1#Cs_businessAssociate>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00044 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
rdfs:comment "STEP 00043 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b1
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
......@@ -56,13 +32,7 @@
sp:subject
[ sp:varName "organization"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00043 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
......@@ -73,16 +43,20 @@
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject spin:_this
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
......@@ -153,7 +127,7 @@
<http://www.epim.no/schemas/mprml/1#RefNameString>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ;
rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
......@@ -161,7 +135,7 @@
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
......@@ -189,7 +163,7 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00022 Set organization - operating company in NPD fact pages"^^xsd:string ;
rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
......@@ -197,7 +171,7 @@
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
......@@ -225,103 +199,7 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00032 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b2
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00028 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b3
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ;
rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
......@@ -329,7 +207,7 @@
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
......@@ -357,7 +235,7 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00025 Set organization - parent company in NPD fact pages"^^xsd:string ;
rdfs:comment "STEP 00029 Set organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
......@@ -365,7 +243,7 @@
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
......@@ -393,21 +271,27 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00024 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
rdfs:comment "STEP 00027 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b4
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b4
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b4
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
......@@ -423,42 +307,21 @@
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00023 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
rdfs:comment "STEP 00023 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
......@@ -470,19 +333,14 @@
sp:subject
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00027 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
......@@ -491,23 +349,27 @@
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
sp:variable
[ sp:varName "organization"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00029 Set organization - parent company in NPD fact pages"^^xsd:string ;
rdfs:comment "STEP 00021 Set organization - parent company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
......@@ -515,7 +377,7 @@
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#buyerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
......@@ -543,8 +405,20 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00030 Set organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
rdfs:comment "STEP 00031 Set organization - define organization not in the NPD fact pages."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
......@@ -560,26 +434,27 @@
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "organization"^^xsd:string
[ sp:varName "somethingElse"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildOrganizationURI ;
sp:arg1 [ sp:varName "organizationName"^^xsd:string
]
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
sp:variable
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 00031 Set organization - not in NPD fact pages but already defined in the file"^^xsd:string ;
rdfs:comment "STEP 00026 Set organization - operating company in NPD fact pages"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
......@@ -587,7 +462,7 @@
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sellerRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#ownerRef> ;
sp:subject
[ sp:varName "something"^^xsd:string
]
......@@ -596,7 +471,8 @@
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "organization"^^xsd:string
......@@ -604,14 +480,16 @@
] [ sp:object
[ sp:varName "organizationName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "organization"^^xsd:string
]
]) ;
sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1>
rdf:type owl:Ontology ;
owl:imports <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/dpr/spin/1.1/lib> ;
owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
......@@ -21,96 +21,49 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
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/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "reportKind"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b6
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject _:b6
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b7
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject _:b7
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-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://purl.org/dc/elements/1.1/title> ;
sp:subject _:b1
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/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
......@@ -135,103 +88,173 @@
sp:subject
[ sp:varName "nameRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "periodKindRef"^^xsd:string
] [ sp:object
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
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
]
] ;
sp:variable
[ sp:varName "reportKind"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20051 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 _:b1
] [ sp:object
[ sp:varName "contextFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "titleRef"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "title"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "titleRef"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
sp:arg1 [ sp:varName "periodKindRef"^^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:variable
[ sp:varName "reportPeriodType"^^xsd:string
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#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 20030 Record the start and end date-times"^^xsd:string ;
rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "productionInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionInventoryToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ 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 "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 "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
......@@ -249,16 +272,16 @@
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
......@@ -338,52 +361,57 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20050 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> ;
rdfs:comment """STEP 20060 Set the facility operator
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "operator"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object
[ sp:varName "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/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^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 <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
[ sp:varName "operator"^^xsd:string
]
])
] ;
......@@ -457,121 +485,116 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 20060 Set the facility operator
role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
rdfs:comment "STEP 20050 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 "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object
[ sp:varName "operator"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
] [ 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 "operatorRef"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#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 "operatorRef"^^xsd:string
[ sp:varName "contextFacilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "operator"^^xsd:string
[ sp:varName "contextFacility"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ;
rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFlowToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "productionInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionInventoryToDate"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
[ 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 "dateEnd"^^xsd:string
[ 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 "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
......@@ -589,16 +612,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
......@@ -678,132 +701,96 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ;
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20051 Set the context facility - installation does not exist"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject _:b9
sp:subject _:b3
] [ sp:object
[ sp:varName "contextFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b9
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "installationRef"^^xsd:string
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
])
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
[ sp:varName "reportPeriodType"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
sp:predicate rdf:type ;
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/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
]
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
sp:subject _:b6
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
sp:subject _:b8
] [ sp:object
[ sp:varName "productionFacilityToDate"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 20020 Add the report kind ."^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "reportKind"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
sp:subject _:b9
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b8
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject _:b8
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject _:b9
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject _:b9
] [ sp:object
[ sp:varName "kind"^^xsd:string
[ sp:varName "title"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
sp:predicate <http://purl.org/dc/elements/1.1/title> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
......@@ -828,35 +815,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
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "periodKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "kind"^^xsd:string
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "titleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "title"^^xsd:string
] ;
sp:variable
[ sp:varName "normalizedKind"^^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 "normalizedKind"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectReportPeriodType ;
sp:arg1 [ sp:varName "periodKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "reportKind"^^xsd:string
[ sp:varName "reportPeriodType"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
......@@ -21,19 +21,32 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40207 Set the marine operation activity comment"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "activityRef"^^xsd:string
rdfs:comment "STEP 40205 Set the standby vessel"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedBy> ;
sp:subject
[ sp:varName "standbyVesselOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#TemporalPartOfAShipOrBoat> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "standbyVessel"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#Ship> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "marineOperation"^^xsd:string
[ sp:varName "standbyVessel"^^xsd:string
]
] [ sp:object
[ sp:varName "activityRef"^^xsd:string
[ sp:varName "standbyVesselName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#MarineOperation>
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "standbyVessel"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
......@@ -93,36 +106,50 @@
[ sp:varName "productionActivityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "marineOperationRef"^^xsd:string
[ sp:varName "marineOperation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "marineOperation"^^xsd:string
[ sp:varName "standbyVesselOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#StandbyVesselOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "standbyVesselOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "activityRef"^^xsd:string
[ sp:varName "standbyVesselName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#activityRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#standbyVessel> ;
sp:subject
[ sp:varName "marineOperationRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildShipURI ;
sp:arg1 [ sp:varName "standbyVesselName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "standbyVessel"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40206 Set the basket movement comment"^^xsd:string ;
rdfs:comment "STEP 40207 Set the standby vessel operation comment"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "basketMovementRef"^^xsd:string
[ sp:varName "standbyVesselCommentRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
sp:subject
[ sp:varName "marineOperation"^^xsd:string
[ sp:varName "standbyVesselOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "basketMovementRef"^^xsd:string
[ sp:varName "standbyVesselCommentRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#BasketMovement>
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#StandbyVesselOperation>
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
......@@ -189,9 +216,21 @@
[ sp:varName "marineOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "basketMovementRef"^^xsd:string
[ sp:varName "marineOperation"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#basketMovementRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "standbyVesselOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#StandbyVesselOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "standbyVesselOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "standbyVesselCommentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#standbyVesselCommentRef> ;
sp:subject
[ sp:varName "marineOperationRef"^^xsd:string
]
......@@ -199,19 +238,19 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40205 Set the supply ship operation comment"^^xsd:string ;
rdfs:comment "STEP 40206 Set the supply ship operation comment"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "standbyVesselCommentRef"^^xsd:string
[ sp:varName "supplyShipCommentRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
sp:subject
[ sp:varName "marineOperation"^^xsd:string
[ sp:varName "supplyShipOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "standbyVesselCommentRef"^^xsd:string
[ sp:varName "supplyShipCommentRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#StandbyVesselOperation>
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#SupplyShipOperation>
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
......@@ -278,9 +317,21 @@
[ sp:varName "marineOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "standbyVesselCommentRef"^^xsd:string
[ sp:varName "marineOperation"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#standbyVesselCommentRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "supplyShipOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SupplyShipOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "supplyShipOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "supplyShipCommentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#supplyShipCommentRef> ;
sp:subject
[ sp:varName "marineOperationRef"^^xsd:string
]
......@@ -288,19 +339,32 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40204 Set the supply ship operation comment"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "supplyShipCommentRef"^^xsd:string
rdfs:comment "STEP 40204 Set the supply ship"^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedBy> ;
sp:subject
[ sp:varName "supplyShipOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#TemporalPartOfAShipOrBoat> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "supplyShip"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#Ship> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "marineOperation"^^xsd:string
[ sp:varName "supplyShip"^^xsd:string
]
] [ sp:object
[ sp:varName "supplyShipCommentRef"^^xsd:string
[ sp:varName "supplyShipName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#SupplyShipOperation>
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "supplyShip"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
......@@ -360,37 +424,51 @@
[ sp:varName "productionActivityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "marineOperationRef"^^xsd:string
[ sp:varName "marineOperation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "marineOperation"^^xsd:string
[ sp:varName "supplyShipOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SupplyShipOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "supplyShipOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "supplyShipCommentRef"^^xsd:string
[ sp:varName "supplyShipName"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#supplyShipCommentRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#supplyShip> ;
sp:subject
[ sp:varName "marineOperationRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildShipURI ;
sp:arg1 [ sp:varName "supplyShipName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "supplyShip"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40203 Create the MarineOperation activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MarineOperation> ;
rdfs:comment "STEP 40201 Create the ProductionOperationProduction activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProduction> ;
sp:predicate rdf:type ;
sp:subject _:b1
sp:subject _:b3
] [ sp:object
[ sp:varName "productionOperation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b1
sp:subject _:b3
] [ sp:object
[ sp:varName "marineOperationRef"^^xsd:string
[ sp:varName "lostProductionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b1
sp:subject _:b3
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
......@@ -436,6 +514,18 @@
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationProductionAndInjection"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProductionAndInjection> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationProductionAndInjection"^^xsd:string
]
] [ sp:object
[ sp:varName "productionActivityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
......@@ -443,9 +533,9 @@
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "marineOperationRef"^^xsd:string
[ sp:varName "lostProductionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#marineOperationRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#lostProductionRef> ;
sp:subject
[ sp:varName "productionActivityRef"^^xsd:string
]
......@@ -456,17 +546,17 @@
rdfs:comment "STEP 40202 Create the ProductionOperationInjection activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationInjection> ;
sp:predicate rdf:type ;
sp:subject _:b2
sp:subject _:b4
] [ sp:object
[ sp:varName "productionOperation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b2
sp:subject _:b4
] [ sp:object
[ sp:varName "lostInjectionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b2
sp:subject _:b4
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
......@@ -541,20 +631,47 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40201 Create the ProductionOperationProduction activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProduction> ;
rdfs:comment "STEP 40203 Create the MarineOperation activity"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#MarineOperation> ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:subject _:b5
] [ sp:object
[ sp:varName "productionOperation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b3
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SupplyShipOperation> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#StandbyVesselOperation> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b7
] [ sp:object
[ sp:varName "lostProductionRef"^^xsd:string
[ sp:varName "marineOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b3
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
[ sp:varName "generalComment"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
sp:subject _:b5
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
......@@ -600,16 +717,195 @@
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "productionActivityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "marineOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#marineOperationRef> ;
sp:subject
[ sp:varName "productionActivityRef"^^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
[ sp:varName "marineOperationRef"^^xsd:string
]
])
] [ 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
[ sp:varName "marineOperationRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "generalComment"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#generalComment> ;
sp:subject
[ sp:varName "marineOperationRef"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40208 Set the basket movement comment"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "basketMovementRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
sp:subject
[ sp:varName "marineOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "basketMovementRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#BasketMovement>
]) ;
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 "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "productionOperationProductionAndInjection"^^xsd:string
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProductionAndInjection> ;
] [ sp:object
[ sp:varName "productionActivityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#productionActivityRef> ;
sp:subject
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "marineOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#marineOperationRef> ;
sp:subject
[ sp:varName "productionActivityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "marineOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "marineOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "basketMovementRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#basketMovementRef> ;
sp:subject
[ sp:varName "marineOperationRef"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40209 Set the marine operation activity comment"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "activityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#forComment> ;
sp:subject
[ sp:varName "marineOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "activityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#typeOfPartCommentedOn> ;
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#MarineOperation>
]) ;
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 "productionOperationProductionAndInjection"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationReportRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationReportRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "productionActivityRef"^^xsd:string
......@@ -619,12 +915,26 @@
[ sp:varName "installationReportRef"^^xsd:string
]
] [ sp:object
[ sp:varName "lostProductionRef"^^xsd:string
[ sp:varName "marineOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#lostProductionRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#marineOperationRef> ;
sp:subject
[ sp:varName "productionActivityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "marineOperationRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "marineOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "activityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#activityRef> ;
sp:subject
[ sp:varName "marineOperationRef"^^xsd:string
]
])
] .
......@@ -632,27 +942,27 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40295 Create the ProductionOperationProcessing - loss contributing third party processing - add gas volume"^^xsd:string ;
sp:templates ([ sp:object _:b4 ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Gas> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate rdf:type ;
sp:subject _:b4
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b5
sp:subject _:b9
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b5
sp:subject _:b9
]) ;
sp:where ([ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
......@@ -706,27 +1016,27 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40294 Create the ProductionOperationProcessing - loss contributing third party processing - add oil volume"^^xsd:string ;
sp:templates ([ sp:object _:b6 ;
sp:templates ([ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Oil> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b7 ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate rdf:type ;
sp:subject _:b6
sp:subject _:b10
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b7
sp:subject _:b11
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b7
sp:subject _:b11
]) ;
sp:where ([ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
......@@ -780,19 +1090,19 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40293 Create the ProductionOperationProcessing - loss contributing third party processing - add third party installation"^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:templates ([ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "thirdPartyProcessingLoss"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b8
sp:subject _:b12
] [ sp:object
[ sp:varName "thirdPartyProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
sp:subject _:b12
]) ;
sp:where ([ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
......@@ -832,17 +1142,17 @@
rdfs:comment "STEP 40292 Create the ProductionOperationProcessing - loss contributing third party processing"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ThirdPartyProcessingLoss> ;
sp:predicate rdf:type ;
sp:subject _:b9
sp:subject _:b13
] [ sp:object
[ sp:varName "productionOperationProcessing"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b9
sp:subject _:b13
] [ sp:object
[ sp:varName "thirdPartyProcessingRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b9
sp:subject _:b13
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
......@@ -863,31 +1173,31 @@
[ sp:varName "reasonForLossOfProcessingType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b10
sp:subject _:b14
] [ sp:object
[ sp:varName "productionOperationProcessing"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:subject _:b14
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
sp:subject _:b10
sp:subject _:b14
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:subject _:b15
] [ sp:object _:b16 ;
sp:predicate rdf:type ;
sp:subject _:b11
sp:subject _:b15
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject _:b12
sp:subject _:b16
] [ sp:object
[ sp:varName "realVolume"^^xsd:string
] ;
sp:predicate
[ sp:varName "volumeScale"^^xsd:string
] ;
sp:subject _:b12
sp:subject _:b16
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
......
......@@ -21,27 +21,50 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
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> ;
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:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
sp:predicate rdfs:subClassOf ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
] [ sp:object
[ sp:varName "contextFacility"^^xsd:string
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "reportKind"^^xsd:string
]
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
[ sp:varName "productionReport"^^xsd:string
]
]) ;
sp:where ([ sp:object
] [ sp:object <http://www.reportinghub.no/ep/schema/production-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> ;
......@@ -51,76 +74,168 @@
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "installationRef"^^xsd:string
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "nameRef"^^xsd:string
]
])
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
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/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "contextFacilityRef"^^xsd:string
[ 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/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "contextFacility"^^xsd:string
]
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 "productVolumeRef"^^xsd:string
[ 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/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
] [ 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 "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacilityToDate"^^xsd:string
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
[ 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 ;
rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
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
]
......@@ -136,18 +251,18 @@
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
[ sp:varName "productionOperationsRef"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
......@@ -177,45 +292,30 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ;
rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "reportKind"^^xsd:string
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "kind"^^xsd:string
[ sp:varName "dTimEnd"^^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/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
[ sp:varName "productionFacilityToDate"^^xsd:string
]
] [ sp:object
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -226,43 +326,42 @@
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:subject
[ sp:varName "nameRef"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "kind"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kind> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "kind"^^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:variable
[ sp:varName "normalizedKind"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] ;
sp:variable
[ sp:varName "reportKind"^^xsd:string
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
])
] ;
......@@ -319,28 +418,21 @@
] ;
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> ;
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 "dTimEnd"^^xsd:string
[ sp:varName "operator"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
]
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b4
]) ;
sp:where ([ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
......@@ -353,20 +445,6 @@
[ 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/schema/core#derivedFrom> ;
......@@ -379,40 +457,35 @@
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacilityToDate"^^xsd:string
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionFacilityToDate"^^xsd:string
[ sp:varName "operator"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40031 Record the start and end dates"^^xsd:string ;
rdfs:comment "STEP 40040 Set the installation"^^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: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 "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 "productionFacilityToDate"^^xsd:string
]
......@@ -428,18 +501,18 @@
[ 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/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionOperationsRef"^^xsd:string
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
......@@ -469,54 +542,27 @@
] ;
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/production-report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "reportPeriodType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
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 _:b3
sp:subject _:b5
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "contextFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b3
] [ sp:object _:b4 ;
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 _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "title"^^xsd:string
] ;
sp:predicate <http://purl.org/dc/elements/1.1/title> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
] [ 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> ;
......@@ -526,86 +572,38 @@
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 ;
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "titleRef"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "title"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
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
[ sp:varName "productionFacility"^^xsd:string
]
])
] [ sp:object
[ sp:varName "contextFacilityRef"^^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:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "productionOperationRef"^^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 "contextFacilityRef"^^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.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "contextFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
......@@ -617,23 +615,21 @@ 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#operatorRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
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/schema/core#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
]
])
] .
<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> ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
......@@ -19,52 +19,6 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
sp:subject spin:_this
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
sp:arg1 [ sp:varName "dateStart"^^xsd:string
] ;
sp:arg2 [ sp:varName "dateEnd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "intervalIdentifier"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10010 Add the contextFacility"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "contextFacility"^^xsd:string
......@@ -126,7 +80,7 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ;
rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
......@@ -162,21 +116,21 @@
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
......@@ -185,25 +139,6 @@
sp:subject
[ sp:varName "installation"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "something"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
......@@ -229,7 +164,7 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ;
rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
......@@ -265,21 +200,21 @@
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
[ 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_productVolume> ;
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
[ 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 "productVolumeRef"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
......@@ -290,25 +225,6 @@
]
] [ rdf:type sp:NotExists ;
sp:elements ([ 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
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
......@@ -319,7 +235,7 @@
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
[ sp:varName "something"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
......@@ -351,10 +267,20 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ;
sp:templates ([ sp:object "noDate" ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
sp:subject spin:_this
rdfs:comment "STEP 10020 Add the operator"^^xsd:string ;
sp:templates ([ sp:object _:b3 ;
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 _:b3
] [ sp:object
[ sp:varName "operator"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
......@@ -366,33 +292,37 @@
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "date"^^xsd:string
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
[ sp:varName "operator"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
])
])
] ;
spin:rule
......@@ -405,13 +335,13 @@
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
sp:predicate rdfs:subClassOf ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReportKind> ;
sp:predicate rdf:type ;
] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
sp:predicate rdfs:subClassOf ;
sp:subject
[ sp:varName "reportKind"^^xsd:string
]
......@@ -488,17 +418,8 @@
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "kind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedKind"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionReportKindURI ;
sp:arg1 [ sp:varName "normalizedKind"^^xsd:string
sp:arg1 [ sp:varName "kind"^^xsd:string
]
] ;
sp:variable
......@@ -508,119 +429,55 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ;
sp:templates ([ sp:object "noDate" ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "productVolumeRef"^^xsd:string
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ 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:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "productionOperationRef"^^xsd:string
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "contextRef"^^xsd:string
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 "noInstallation"
] ;
sp:variable
[ sp:varName "normalizedName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
sp:arg1 [ sp:varName "normalizedName"^^xsd:string
] ;
sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
]
] ;
sp:variable
[ sp:varName "productionReport"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ;
rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "date"^^xsd:string
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
sp:subject spin:_this
......@@ -636,35 +493,35 @@
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
sp:arg1 [ sp:varName "dateStart"^^xsd:string
] ;
sp:arg2 [ sp:varName "dateEnd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "intervalIdentifier"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ;
rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
......@@ -700,21 +557,21 @@
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "contextRef"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
......@@ -723,6 +580,44 @@
sp:subject
[ sp:varName "installation"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ 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
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
......@@ -748,6 +643,61 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
sp:subject spin:_this
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
sp:arg1 [ sp:varName "date"^^xsd:string
] ;
sp:arg2 [ sp:varName "dateEnd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "intervalIdentifier"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
......@@ -794,20 +744,12 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10020 Add the 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
rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b5
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
sp:subject spin:_this
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
......@@ -820,95 +762,144 @@
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
[ sp:varName "date"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "operatorRef"^^xsd:string
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "operator"^^xsd:string
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "productionReport"^^xsd:string
]
])
] [ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ;
sp:templates ([ sp:object
sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ;
sp:subject _:b5
]) ;
sp:where ([ sp:object
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ;
sp:subject spin:_this
]) ;
sp:where ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
]
] [ sp:object
[ sp:varName "date"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
[ sp:varName "productVolumeRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "productionOperationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
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 "contextRef"^^xsd:string
[ 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
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "contextRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "installationRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
sp:subject
[ sp:varName "contextRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
sp:arg1 [ sp:varName "date"^^xsd:string
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 "noInstallation"
] ;
sp:arg2 [ sp:varName "dateEnd"^^xsd:string
sp:variable
[ sp:varName "normalizedName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
sp:arg1 [ sp:varName "normalizedName"^^xsd:string
] ;
sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
]
] ;
sp:variable
[ sp:varName "intervalIdentifier"^^xsd:string
[ sp:varName "productionReport"^^xsd:string
]
])
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ;
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> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
......@@ -14,7 +14,7 @@
<name>TRYM production operation</name>
<installation kind="well" namingSystem="NPD" uidRef="18081500">10/1-A-9</installation>
<contextFacility kind="field" namingSystem="NPD" uidRef="18081500">TRYM</contextFacility>
<kind>ReportKind</kind>
<kind>report kind</kind>
<periodKind>day</periodKind>
<dateStart>2012-04-12</dateStart>
<dateEnd>2012-04-13</dateEnd>
......@@ -34,6 +34,35 @@
<work uom="h">100</work>
<workMonthToDate uom="h">200</workMonthToDate>
<workYearToDate uom="h">300</workYearToDate>
<operationalHSE>
<IncidentCount>4</IncidentCount>
<sinceLostTime uom="d">5</sinceLostTime>
<sincePreventionExercise uom="d">6</sincePreventionExercise>
<sinceDefinedSituation uom="d">7</sinceDefinedSituation>
<medicalTreatmentCount>8</medicalTreatmentCount>
<alarmCount>9</alarmCount>
<safetyIntroCount>10</safetyIntroCount>
<safetyDescription>A safety description</safetyDescription>
<safety>
<meantimeIncident uom="h">36</meantimeIncident>
<safetyCount type="lost time accident">11</safetyCount>
<safetyCount type="year-to-date incidents">99</safetyCount>
<comment>
<who>David Leal</who>
<role>ontologist</role>
<dTimStart>2012-04-19T10:00:00</dTimStart>
<dTimEnd>2012-04-20T10:00:00</dTimEnd>
<remark>A comment from David</remark>
</comment>
<comment>
<who>David Leal</who>
<role>engineer</role>
<dTimStart>2012-04-21T10:00:00</dTimStart>
<dTimEnd>2012-04-21T10:00:00</dTimEnd>
<remark>Another comment from David</remark>
</comment>
</safety>
</operationalHSE>
<productionActivity>
<lostProduction>
<volumeAndReason uom="m3" reasonLost="preventive maint topside">1000</volumeAndReason>
......@@ -63,6 +92,48 @@
<gasStdTempPres uom="m3">2500</gasStdTempPres>
</thirdPartyProcessing>
</lostInjection>
<marineOperation>
<dTimStart>2012-04-19T10:00:00</dTimStart>
<dTimEnd>2012-04-20T10:00:00</dTimEnd>
<generalComment>General comment about a marine operation</generalComment>
<supplyShip>Supply Venture</supplyShip>
<standbyVessel>Standby Queen</standbyVessel>
<supplyShipComment>
<who>David Leal</who>
<role>ontologist</role>
<dTimStart>2012-04-19T10:00:00</dTimStart>
<dTimEnd>2012-04-19T11:00:00</dTimEnd>
<remark>A supply ship comment from David</remark>
</supplyShipComment>
<standbyVesselComment>
<who>David Leal</who>
<role>ontologist</role>
<dTimStart>2012-04-19T12:00:00</dTimStart>
<dTimEnd>2012-04-19T13:00:00</dTimEnd>
<remark>A standby vessel comment from David</remark>
</standbyVesselComment>
<standbyVesselComment>
<who>David Leal</who>
<role>ontologist</role>
<dTimStart>2012-04-19T13:00:00</dTimStart>
<dTimEnd>2012-04-19T14:00:00</dTimEnd>
<remark>Another standby vessel comment from David</remark>
</standbyVesselComment>
<basketMovement>
<who>David Leal</who>
<role>ontologist</role>
<dTimStart>2012-04-19T14:00:00</dTimStart>
<dTimEnd>2012-04-19T15:00:00</dTimEnd>
<remark>A basket movement comment from David</remark>
</basketMovement>
<activity>
<who>David Leal</who>
<role>ontologist</role>
<dTimStart>2012-04-19T15:00:00</dTimStart>
<dTimEnd>2012-04-19T16:00:00</dTimEnd>
<remark>A marine operations activity comment from David</remark>
</activity>
</marineOperation>
</productionActivity>
</installationReport>
</object>
......