David Price

Merge branch 'master' into mprspinwork

......@@ -519,3 +519,21 @@ ep-well:TemporalPartOfAWellBore
ep-well:WellGroup
rdf:type owl:Class .
ep-prodwell:WellHead-flowingConditions
rdf:type ep-prodwell:WellHeadFlowingConditionsType , owl:Class ;
rdfs:comment "wellhead that is in flowing conditions"^^xsd:string ;
rdfs:label "well head - flowing conditions"^^xsd:string ;
rdfs:subClassOf ep-well:WellHead .
ep-prodwell:WellHead-nonflowingConditions
rdf:type ep-prodwell:WellHeadFlowingConditionsType , owl:Class ;
rdfs:comment "wellhead that is in nonflowing conditions"^^xsd:string ;
rdfs:label "well head - nonflowing conditions"^^xsd:string ;
rdfs:subClassOf ep-well:WellHead .
ep-prodwell:WellHeadFlowingConditionsType
rdf:type rdfs:Class ;
rdfs:comment "class that consists of subclasses of wellhead according to whether it is flowing or non-flowing"^^xsd:string ;
rdfs:label "well flowing conditions type"^^xsd:string ;
rdfs:subClassOf owl:Class .
......
......@@ -15,12 +15,12 @@
<http://www.reportinghub.no/ep/schema/1.0/unnamed>
rdf:type owl:Ontology ;
owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.epim.no/schemas/mprml/1> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/ep/schema/core#Pressure>
transhelp:rangeOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_annuluspressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> .
<http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> , <http://www.epim.no/schemas/mprml/1#FP_annuluspressure> , <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> .
<http://www.reportinghub.no/ep/schema/core#Temperature>
transhelp:rangeOfPropertyMapsToMPREnumeration
......@@ -28,19 +28,27 @@
<http://www.reportinghub.no/ep/schema/equipment#Casing>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> .
<http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> .
<http://www.reportinghub.no/ep/schema/equipment#Tubing>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> .
<http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> .
<http://www.reportinghub.no/ep/schema/production-well#WellHead-flowingConditions>
transhelp:flowingStateMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> .
<http://www.reportinghub.no/ep/schema/production-well#WellHead-nonflowingConditions>
transhelp:flowingStateMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> .
<http://www.reportinghub.no/ep/schema/production-well#WellHeadDownStreamChokeValve>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> .
<http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> .
<http://www.reportinghub.no/ep/schema/well#WellBoreBottom>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> .
<http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> , <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> .
<http://www.reportinghub.no/ep/schema/well#WellHead>
transhelp:domainOfPropertyMapsToMPREnumeration
......@@ -48,4 +56,4 @@
rdf:type
transhelp:propertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <http://www.epim.no/schemas/mprml/1#FP_temperature> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> .
<http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <http://www.epim.no/schemas/mprml/1#FP_temperature> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> .
......
......@@ -15,7 +15,7 @@
<http://www.reportinghub.no/ep/transform/transform-helper-schema>
rdf:type owl:Ontology ;
rdfs:comment "The Transform Helper Schema is the set of properties and classes used for the creation of temporary data used as part of the ERH transformations. All instances of classes and uses of these properties is deleted before the triples are stored in the RDF database."^^xsd:string ;
owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.epim.no/schemas/mprml/1> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
transhelp:buildRdlURI
......@@ -44,12 +44,17 @@ transhelp:derivedFrom
rdf:type owl:ObjectProperty .
transhelp:domainOfPropertyMapsToMPREnumeration
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdfs:label "domain of property maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
transhelp:facilityIdentifier
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
transhelp:flowingStateMapsToMPREnumeration
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdfs:label "flowing state maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
transhelp:forComment
rdf:type owl:ObjectProperty ;
......@@ -66,43 +71,43 @@ transhelp:hasEquivalentInRDL
rdfs:label "has equivalent in RDL"^^xsd:string .
transhelp:interval
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
transhelp:intervalEnd
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
transhelp:intervalIdentifier
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
transhelp:intervalStart
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
transhelp:label
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
transhelp:mapsTo
rdf:type rdf:Property .
transhelp:materialClassMapsToMPREnumeration
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdfs:label "material class maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
transhelp:nominalInstant
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
transhelp:propertyMapsToMPREnumeration
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdfs:label "property maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
transhelp:quantitySpaceMapsToClassOfScale
rdf:type owl:FunctionalProperty , owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty , owl:FunctionalProperty ;
rdfs:label "quantity space maps to class of scale"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
transhelp:rangeOfPropertyMapsToMPREnumeration
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdfs:label "range of property maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
......
......@@ -19,26 +19,16 @@
<http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80002b Measurement qualifier not specified"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
rdfs:comment "STEP 80004 Set flowing or not-flowing state"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "flowingStateType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPart"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "qualifierRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ;
sp:subject spin:_this
])
] [ sp:object
sp:where ([ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
......@@ -48,7 +38,26 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "temporalPart"^^xsd:string
[ sp:varName "temporalPartOfASpatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "temporalPartOfASpatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#flowingStateMapsToMPREnumeration> ;
sp:subject
[ sp:varName "flowingStateType"^^xsd:string
]
])
] ;
......@@ -98,44 +107,57 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80001b Set the times for the temporal part corresponding to the parameter period"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dTim"^^xsd:string
rdfs:comment "STEP 80001a Create temporal parts corresponding to the parameter period"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "temporalPart"^^xsd:string
]
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
[ sp:varName "spatialPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "temporalPart"^^xsd:string
]
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
[ sp:varName "classOfSpatialPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "temporalPart"^^xsd:string
]
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ;
sp:subject
[ sp:varName "temporalPart"^^xsd:string
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "temporalPart"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "spatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
......@@ -152,57 +174,44 @@
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "temporalPart"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
] [ rdf:type sp:Exists ;
sp:elements ([ rdf:type sp:Union ;
sp:elements (([ sp:object
[ sp:varName "dTim"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
]) ([ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
]) ([ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
]) ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
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 "parameterRef"^^xsd:string
]
]))
])
])
] ;
......@@ -271,7 +280,7 @@
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80003 Assign parameter value"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:templates ([ sp:object _:b3 ;
sp:predicate
[ sp:varName "propertyType"^^xsd:string
] ;
......@@ -282,14 +291,14 @@
[ sp:varName "quantityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b1
sp:subject _:b3
] [ sp:object
[ sp:varName "measureValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "measureScale"^^xsd:string
] ;
sp:subject _:b1
sp:subject _:b3
]) ;
sp:where ([ sp:object
[ sp:varName "nameRef"^^xsd:string
......@@ -358,27 +367,37 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80001a Create temporal part corresponding to the parameter period"^^xsd:string ;
rdfs:comment "STEP 80000 Create the object that has the parameterSet property - either for all of its life or for a temporal part"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "spatialPart"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject _:b4
] [ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:subject _:b4
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b2
sp:subject _:b4
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "spatialPart"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
......@@ -392,97 +411,180 @@
sp:subject
[ sp:varName "classOfSpatialPart"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80001b Set the times for the temporal part corresponding to the parameter period"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dTim"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "temporalPartOfASpatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "temporalPartOfASpatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "temporalPartOfASpatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "temporalPartOfASpatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "temporalPartOfASpatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "dTim"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "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: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 "temporalPartOfAProductionFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:subject spin:_this
] [ rdf:type sp:Exists ;
sp:elements ([ rdf:type sp:Union ;
sp:elements (([ sp:object
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfASpatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "temporalPartOfASpatialPart"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTim"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
]) ([ sp:object
])
] [ 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 "parameterRef"^^xsd:string
]
]) ([ sp:object
])
] [ 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 "parameterRef"^^xsd:string
]
]) ([ sp:object
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
]) ([ sp:object
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dateEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
]))
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80000 Create the object that has the parameterSet property - either for all of its life or for a temporal part"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
] ;
rdfs:comment "STEP 80002b Measurement qualifier not specified"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b3
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "temporalPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "temporalPart"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "qualifierRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ;
sp:subject spin:_this
])
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "classOfSpatialPart"^^xsd:string
[ sp:varName "temporalPart"^^xsd:string
]
])
] .
......