David Leal

delta on parameterSet

......@@ -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/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/production-well> ;
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:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/ep/schema/equipment#Compressor>
......@@ -73,56 +73,56 @@
rdf:type ep-prodfac:ReportingFacilityType .
<http://www.reportinghub.no/ep/schema/facility#averageHighestThirdWaveHeight>
rdf:type owl:ObjectProperty , ep-core:Class_of_indirect_property , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , ep-core:Class_of_indirect_property , owl:ObjectProperty ;
rdfs:comment "length that is the average of the higher 1/3 of the wave heights passing during a sample period (typically 20 to 30 minutes) (source: MPR-XSD)"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ;
rdfs:label "average highest third wave height"^^xsd:string ;
rdfs:range ep-core:Length .
<http://www.reportinghub.no/ep/schema/facility#averageWaveHeight>
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:comment "length that is the average height of surface waves"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ;
rdfs:label "average wave height"^^xsd:string ;
rdfs:range ep-core:Length .
<http://www.reportinghub.no/ep/schema/facility#cloudCeilingHeight>
rdf:type owl:ObjectProperty , ep-core:Class_of_indirect_property , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , ep-core:Class_of_indirect_property , owl:ObjectProperty ;
rdfs:comment "length that is the height of the cloud ceiling"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#CloudCover> ;
rdfs:label "cloud ceiling height"^^xsd:string ;
rdfs:range ep-core:Length .
<http://www.reportinghub.no/ep/schema/facility#facilityOperator>
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:comment "organization that operates a facility"^^xsd:string ;
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> .
<http://www.reportinghub.no/ep/schema/facility#maximumWaveHeight>
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:comment "length that is the maximum height of surface waves"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ;
rdfs:label "maximum wave height"^^xsd:string ;
rdfs:range ep-core:Length .
<http://www.reportinghub.no/ep/schema/facility#surfaceWavePeriod>
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:comment "time duration that is the period of surface waves"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ;
rdfs:label "period"^^xsd:string ;
rdfs:range ep-core:TimeDuration .
<http://www.reportinghub.no/ep/schema/facility#visibility>
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:comment "length that is the maximum distance at which things can be seen through surrounding air"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurroundingAir> ;
rdfs:label "visibility"^^xsd:string ;
rdfs:range ep-core:Length .
<http://www.reportinghub.no/ep/schema/facility#windChillTemperature>
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:comment "temperature that is the wind chill temperature of surrounding air"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurroundingAir> ;
rdfs:label "wind chill temperature"^^xsd:string ;
......@@ -143,12 +143,23 @@
<http://www.reportinghub.no/ep/schema/production-equipment#FlowMeter>
rdfs:label "flow meter"^^xsd:string .
ep-prodfac:AvailableFacility
rdf:type ep-prodfac:FacilityAvailabilityType , owl:Class ;
rdfs:label "available facility"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> ;
owl:disjointWith ep-prodfac:UnavailableFacility .
ep-prodfac:Boat
rdf:type owl:Class ;
rdfs:comment "facility that is a boat"^^xsd:string ;
rdfs:label "boat"^^xsd:string ;
rdfs:subClassOf ep-prodfac:ShipOrBoat .
ep-prodfac:FacilityAvailabilityType
rdf:type rdfs:Class ;
rdfs:label "facility availability type"^^xsd:string ;
rdfs:subClassOf owl:Class .
ep-prodfac:Field-area
rdf:type owl:Class ;
rdfs:comment "part of the surface of the earth that is the area of ground above a field (source: MPR-XSD)"^^xsd:string ;
......@@ -236,6 +247,12 @@ ep-prodfac:TrunkLine
rdfs:label "trunk line"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
ep-prodfac:UnavailableFacility
rdf:type ep-prodfac:FacilityAvailabilityType , owl:Class ;
rdfs:label "unavailable facility"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> ;
owl:disjointWith ep-prodfac:AvailableFacility .
ep-prodfac:numberOfBedsAvailable
rdf:type owl:DatatypeProperty ;
rdfs:comment "number of beds available on a facility"^^xsd:string ;
......@@ -243,12 +260,30 @@ ep-prodfac:numberOfBedsAvailable
rdfs:range xsd:integer .
ep-prodfac:operatingTime
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:comment "time duration that is the operating time of a temporal part of a facility"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:label "operating time"^^xsd:string ;
rdfs:range ep-core:TimeDuration .
ep-prodfac:scheduledTimeUnavailable
rdf:type owl:ObjectProperty , ep-core:Class_of_indirect_property , owl:FunctionalProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:label "scheduled time unavailable"^^xsd:string ;
rdfs:range ep-core:TimeDuration .
ep-prodfac:shutDownSequenceNumber
rdf:type owl:DatatypeProperty ;
rdfs:comment "shut down sequence number"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:range xsd:integer .
ep-prodfac:timeAvailable
rdf:type owl:ObjectProperty , ep-core:Class_of_indirect_property , owl:FunctionalProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:label "time available"^^xsd:string ;
rdfs:range ep-core:TimeDuration .
<http://www.reportinghub.no/ep/schema/well#Cluster>
rdf:type ep-prodfac:ReportingFacilityType .
......
......@@ -15,12 +15,12 @@
<http://www.reportinghub.no/ep/schema/1.0/property-maps-to-mpr-enumeration>
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#Density>
transhelp:rangeOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_density> , <http://www.epim.no/schemas/mprml/1#FP_linedensity> .
<http://www.epim.no/schemas/mprml/1#FP_linedensity> , <http://www.epim.no/schemas/mprml/1#FP_density> .
<http://www.reportinghub.no/ep/schema/core#Frequency>
transhelp:rangeOfPropertyMapsToMPREnumeration
......@@ -28,15 +28,19 @@
<http://www.reportinghub.no/ep/schema/core#Pressure>
transhelp:rangeOfPropertyMapsToMPREnumeration
<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.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.reportinghub.no/ep/schema/core#Temperature>
transhelp:rangeOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> , <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_temperature> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> .
<http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_temperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> .
<http://www.reportinghub.no/ep/schema/core#TimeDuration>
transhelp:rangeOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_scheduleddowntime> , <http://www.epim.no/schemas/mprml/1#FP_facilityuptime> .
<http://www.reportinghub.no/ep/schema/equipment#Casing>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> .
<http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> .
<http://www.reportinghub.no/ep/schema/equipment#Compressor>
transhelp:domainOfPropertyMapsToMPREnumeration
......@@ -44,11 +48,35 @@
<http://www.reportinghub.no/ep/schema/equipment#Tubing>
transhelp:domainOfPropertyMapsToMPREnumeration
<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.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.reportinghub.no/ep/schema/facility#Facility>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_shutdownorder> , <http://www.epim.no/schemas/mprml/1#FP_scheduleddowntime> , <http://www.epim.no/schemas/mprml/1#FP_facilityuptime> , <http://www.epim.no/schemas/mprml/1#FP_available> .
<http://www.reportinghub.no/ep/schema/flow#Flow>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_density> , <http://www.epim.no/schemas/mprml/1#FP_linedensity> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_temperature> .
<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_linedensity> , <http://www.epim.no/schemas/mprml/1#FP_density> .
<http://www.reportinghub.no/ep/schema/production-facility#AvailableFacility>
transhelp:valueOfPropertyMapsToMPRString
"true"^^xsd:string .
<http://www.reportinghub.no/ep/schema/production-facility#UnavailableFacility>
transhelp:valueOfPropertyMapsToMPRString
"false"^^xsd:string .
<http://www.reportinghub.no/ep/schema/production-facility#scheduledTimeUnavailable>
transhelp:propertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_scheduleddowntime> .
<http://www.reportinghub.no/ep/schema/production-facility#shutDownSequenceNumber>
transhelp:propertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_shutdownorder> .
<http://www.reportinghub.no/ep/schema/production-facility#timeAvailable>
transhelp:propertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_facilityuptime> .
<http://www.reportinghub.no/ep/schema/production-well#Annulus>
transhelp:domainOfPropertyMapsToMPREnumeration
......@@ -56,24 +84,24 @@
<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.epim.no/schemas/mprml/1#FP_wellheadpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> .
<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.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> .
<http://www.reportinghub.no/ep/schema/production-well#WellHeadDownStreamChokeValve>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> .
<http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> .
<http://www.reportinghub.no/ep/schema/well#WellBoreBottom>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> , <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> .
<http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> .
<http://www.reportinghub.no/ep/schema/well#WellHead>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> , <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_wellheadtemperature> .
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_bottomholetemperature> , <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_annuluspressure> , <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_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_reciprocatingspeed> , <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_density> , <http://www.epim.no/schemas/mprml/1#FP_linedensity> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> .
<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_bottomholetemperature> , <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_available> , <http://www.epim.no/schemas/mprml/1#FP_annuluspressure> , <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_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_reciprocatingspeed> , <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_linedensity> , <http://www.epim.no/schemas/mprml/1#FP_density> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> .
......
......@@ -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://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/activity> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
transhelp:buildRdlURI
......@@ -44,15 +44,15 @@ transhelp:derivedFrom
rdf:type owl:ObjectProperty .
transhelp:domainOfPropertyMapsToMPREnumeration
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
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:InverseFunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdfs:label "flowing state maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
......@@ -74,25 +74,25 @@ 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 .
......@@ -100,25 +100,25 @@ transhelp:necessaryIntervalString
rdf:type owl:DatatypeProperty .
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:InverseFunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdfs:label "range of property maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
transhelp:scaleMapsToMPREnumeration
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdfs:label "scale maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
......@@ -131,3 +131,8 @@ transhelp:typeOfPartCommentedOn
rdfs:comment "Used to pass an argument to Cs_datedComment"^^xsd:string ;
rdfs:domain owl:Class ;
rdfs:label "type of part commented on"^^xsd:string .
transhelp:valueOfPropertyMapsToMPRString
rdf:type owl:DatatypeProperty ;
rdfs:label "value of property maps to MPR string"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
......
......@@ -9,6 +9,7 @@
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
@prefix erhfacts: <http://www.reportinghub.no/ep/schema/1.0/erhfacts#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
......@@ -17,35 +18,24 @@
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix erhfacts: <http://www.reportinghub.no/ep/schema/1.0/erhfacts#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.epim.no/schemas/mprml/1#Cs_productVolumeFacility>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates"^^xsd:string ;
sp:templates ([ sp:object
rdfs:comment "STEP 80000a Find the classes of spatial part that need to be created for the parameter set properties."^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "classOfSpatialPart"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:where ([ sp:object
[ sp:varName "parameterSetRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ;
sp:subject spin:_this
] [ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
......@@ -56,59 +46,29 @@
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "parameterSetRef"^^xsd:string
]
] [ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ;
sp:subject
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "classOfSpatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalString"^^xsd:string
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:substr ;
sp:arg1 [ sp:varName "intervalString"^^xsd:string
] ;
sp:arg2 0 ;
sp:arg3 [ rdf:type smf:indexOf ;
sp:arg1 [ sp:varName "intervalString"^^xsd:string
] ;
sp:arg2 "$"
]
] ;
sp:variable
[ sp:varName "intervalStart"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:substr ;
sp:arg1 [ rdf:type afn:substr ;
sp:arg1 [ sp:varName "intervalString"^^xsd:string
] ;
sp:arg2 [ rdf:type smf:indexOf ;
sp:arg1 [ sp:varName "intervalString"^^xsd:string
] ;
sp:arg2 "$"
]
] ;
sp:arg2 1
] ;
sp:variable
[ sp:varName "intervalEnd"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
......@@ -117,22 +77,22 @@
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject _:b2
sp:subject _:b1
] [ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b2
sp:subject _:b1
] [ sp:object
[ sp:varName "startedAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b2
sp:subject _:b1
] [ sp:object
[ sp:varName "finishedAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b2
sp:subject _:b1
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
......@@ -176,19 +136,29 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80000a Find the classes of spatial part that need to be created for the parameter set properties."^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "parameterSetRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ;
sp:subject spin:_this
] [ sp:object spin:_this ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
......@@ -199,41 +169,71 @@
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "parameterSetRef"^^xsd:string
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
[ sp:varName "classOfSpatialPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "classOfSpatialPart"^^xsd:string
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
] [ sp:object
[ sp:varName "intervalString"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:substr ;
sp:arg1 [ sp:varName "intervalString"^^xsd:string
] ;
sp:arg2 0 ;
sp:arg3 [ rdf:type smf:indexOf ;
sp:arg1 [ sp:varName "intervalString"^^xsd:string
] ;
sp:arg2 "$"
]
] ;
sp:variable
[ sp:varName "intervalStart"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:substr ;
sp:arg1 [ rdf:type afn:substr ;
sp:arg1 [ sp:varName "intervalString"^^xsd:string
] ;
sp:arg2 [ rdf:type smf:indexOf ;
sp:arg1 [ sp:varName "intervalString"^^xsd:string
] ;
sp:arg2 "$"
]
] ;
sp:arg2 1
] ;
sp:variable
[ sp:varName "intervalEnd"^^xsd:string
]
])
])
] .
<http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80003d No temporal part of the parameterSetFacility is required"^^xsd:string ;
rdfs:comment "STEP 80002b Find existing temporal part of parameterSet facility corresponding to the nominal time"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
[ sp:varName "parameterFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
......@@ -242,68 +242,58 @@
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "classOfParameterSetFacility"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
[ sp:varName "dTim"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
[ sp:varName "dTim"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalEnd"^^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 "parameterSetFacility"^^xsd:string
[ sp:varName "parameterFacility"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80004b 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 "parameterFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
sp:predicate rdf:type ;
rdfs:comment "STEP 80005b Assign parameter value - integer"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "integerValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "propertyType"^^xsd:string
] ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "qualifierRef"^^xsd:string
sp:where ([ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ;
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#propertyMapsToMPREnumeration> ;
sp:subject
[ sp:varName "propertyType"^^xsd:string
]
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
......@@ -316,31 +306,32 @@
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "integerValueRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#integerValueRef> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
] [ sp:object
[ sp:varName "integerValue"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "integerValueRef"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80002a Create temporal part of parameterSet facility corresponding to the nominal time, if necessary"^^xsd:string ;
rdfs:comment "STEP 80001b Regularise start and end times - start time inherited from temporal part of production facility"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "classOfParameterSetFacility"^^xsd:string
[ sp:varName "startString"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "dTim"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "parameterSetFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
] [ sp:object
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
] ;
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.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
......@@ -348,57 +339,93 @@
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "classOfParameterSetFacility"^^xsd:string
[ sp:varName "startedAt"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:cast ;
arg:datatype xsd:string ;
sp:arg1 [ sp:varName "startedAt"^^xsd:string
]
] ;
sp:variable
[ sp:varName "startString"^^xsd:string
]
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:subject spin:_this
] [ 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:NotExists ;
sp:elements ([ sp:object
[ sp:varName "dTim"^^xsd:string
sp:elements ([ rdf:type sp:Union ;
sp:elements (([ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
[ sp:varName "parameterRef"^^xsd:string
]
] [ sp:object
[ sp:varName "parameterSetFacility"^^xsd:string
]) ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
[ sp:varName "parameterRef"^^xsd:string
]
]))
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80002b Find existing temporal part of parameterSet facility corresponding to the nominal time"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "parameterRef"^^xsd:string
rdfs:comment "STEP 80005a Assign parameter value - member of a property space"^^xsd:string ;
sp:templates ([ sp:object _:b3 ;
sp:predicate
[ sp:varName "propertyType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "quantityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "measureValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "measureScale"^^xsd:string
] ;
sp:subject _:b3
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:where ([ 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#propertyMapsToMPREnumeration> ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
[ sp:varName "propertyType"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#rangeOfPropertyMapsToMPREnumeration> ;
sp:subject
[ sp:varName "quantityType"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#PropertySpace> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityType"^^xsd:string
]
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
......@@ -406,35 +433,49 @@
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTim"^^xsd:string
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "measureValueRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#measureValueRef> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
] [ sp:object
[ sp:varName "dTim"^^xsd:string
[ sp:varName "measureValue"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
[ sp:varName "measureValueRef"^^xsd:string
]
] [ sp:object
[ sp:varName "parameterSetFacility"^^xsd:string
[ sp:varName "measureUom"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
[ sp:varName "measureValueRef"^^xsd:string
]
] [ sp:object
[ sp:varName "measureUom"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:subject
[ sp:varName "measureScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80000d The whole production facility has the parameterSet property"^^xsd:string ;
rdfs:comment "STEP 80000a Create the spatial parts that have the parameterSet property"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
......@@ -455,6 +496,20 @@
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
......@@ -464,39 +519,38 @@
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ;
sp:subject
[ sp:varName "classOfProductionFacility"^^xsd:string
[ sp:varName "classOfSpatialPart"^^xsd:string
]
] [ sp:object
[ sp:varName "classOfProductionFacility"^^xsd:string
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ;
sp:subject <http://www.reportinghub.no/ep/schema/facility#Facility>
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80005 Assign parameter value"^^xsd:string ;
sp:templates ([ sp:object _:b4 ;
rdfs:comment "STEP 80005c Assign parameter value - string mapped to class"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "classOfFacility"^^xsd:string
] ;
sp:predicate
[ sp:varName "propertyType"^^xsd:string
] ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "quantityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "measureValue"^^xsd:string
] ;
sp:predicate
[ sp:varName "measureScale"^^xsd:string
] ;
sp:subject _:b4
]) ;
sp:where ([ sp:object
[ sp:varName "nameRef"^^xsd:string
......@@ -514,9 +568,7 @@
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#rangeOfPropertyMapsToMPREnumeration> ;
sp:subject
[ sp:varName "quantityType"^^xsd:string
]
sp:subject <http://www.reportinghub.no/ep/schema/production-facility#FacilityAvailabilityType>
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
......@@ -530,44 +582,81 @@
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "measureValueRef"^^xsd:string
[ sp:varName "stringValueRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#measureValueRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#stringValueRef> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
] [ sp:object
[ sp:varName "measureValue"^^xsd:string
[ sp:varName "stringValue"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "measureValueRef"^^xsd:string
[ sp:varName "stringValueRef"^^xsd:string
]
] [ sp:object
[ sp:varName "measureUom"^^xsd:string
[ sp:varName "stringValue"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#valueOfPropertyMapsToMPRString> ;
sp:subject
[ sp:varName "measureValueRef"^^xsd:string
[ sp:varName "classOfFacility"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80004a Measurement qualifier specified"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "measureUom"^^xsd:string
[ sp:varName "measuredQualityType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "measureScale"^^xsd:string
[ sp:varName "parameterFacility"^^xsd:string
]
]) ;
sp:where ([ 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 "parameterRef"^^xsd:string
] ;
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 "parameterFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ;
sp:arg1 [ sp:varName "qualifierRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "measuredQualityType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80001b Regularise start and end times - start time inherited from temporal part of production facility"^^xsd:string ;
rdfs:comment "STEP 80003a Create list of necessary temporal parts of parameterSet facility corresponding to the start and end"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "startString"^^xsd:string
[ sp:varName "intervalString"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
[ sp:varName "parameterSetFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
......@@ -576,119 +665,136 @@
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "startedAt"^^xsd:string
[ sp:varName "classOfParameterSetFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:cast ;
arg:datatype xsd:string ;
sp:arg1 [ sp:varName "startedAt"^^xsd:string
]
] ;
sp:variable
[ sp:varName "startString"^^xsd:string
]
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ rdf:type sp:Union ;
sp:elements (([ sp:object
[ sp:varName "dTimStart"^^xsd:string
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
]) ([ sp:object
[ sp:varName "dateStart"^^xsd:string
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
]))
])
])
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 [ sp:varName "intervalStart"^^xsd:string
] ;
sp:arg2 "$" ;
sp:arg3 [ sp:varName "intervalEnd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "intervalString"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80002a Create temporal part of parameterSet facility corresponding to the nominal time, if necessary"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "classOfParameterSetFacility"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "dTim"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject _:b4
] [ sp:object
[ sp:varName "parameterSetFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b4
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80000c Create the spatial parts that have the parameterSet property"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
]
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 "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 "temporalPartOfAProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
sp:subject
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
[ sp:varName "classOfParameterSetFacility"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ 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 "dTim"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
sp:subject
[ sp:varName "classOfSpatialPart"^^xsd:string
[ sp:varName "parameterRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "classOfSpatialPart"^^xsd:string
[ sp:varName "dTim"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "parameterSetFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80003c Assign temporal parts of parameterSet facility to parameter elements"^^xsd:string ;
rdfs:comment "STEP 80003d No temporal part of the parameterSetFacility is required"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
[ sp:varName "parameterSetFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
......@@ -704,56 +810,83 @@
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "classOfParameterSetFacility"^^xsd:string
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
[ sp:varName "parameterRef"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "parameterSetFacility"^^xsd:string
]
])
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80004b 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 "parameterFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "parameterFacility"^^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 "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
[ sp:varName "parameterFacility"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates - moved to a rule on Cs_productVolumeFacility"^^xsd:string ;
sp:templates () ;
sp:where ()
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80001a Regularise start and end times - time specified by parameter element"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dTimStartString"^^xsd:string
......@@ -927,123 +1060,127 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80003a Create list of necessary temporal parts of parameterSet facility corresponding to the start and end"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "intervalString"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ;
rdfs:comment "STEP 80000b The whole production facility has the parameterSet property"^^xsd:string ;
sp:templates ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "classOfParameterSetFacility"^^xsd:string
[ 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:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
[ sp:varName "classOfProductionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] [ rdf:type sp:Union ;
sp:elements (([ sp:object
[ sp:varName "classOfProductionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
[ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "intervalStart"^^xsd:string
]) ([ sp:object
[ sp:varName "nameRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ;
sp:subject <http://www.reportinghub.no/ep/schema/facility#Facility>
]))
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80003c Assign temporal parts of parameterSet facility to parameter elements"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
[ sp:varName "classOfParameterSetFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "parameterSetFacility"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 [ sp:varName "intervalStart"^^xsd:string
] [ sp:object
[ sp:varName "classOfParameterSetFacility"^^xsd:string
] ;
sp:arg2 "$" ;
sp:arg3 [ sp:varName "intervalEnd"^^xsd:string
sp:predicate rdf:type ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:variable
[ sp:varName "intervalString"^^xsd:string
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates - moved to a rule on Cs_productVolumeFacility"^^xsd:string ;
sp:templates () ;
sp:where ()
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 80004a Measurement qualifier specified"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "measuredQualityType"^^xsd:string
[ sp:varName "parameterSetFacility"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
]) ;
sp:where ([ 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 "parameterRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "parameterRef"^^xsd:string
[ sp:varName "intervalStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ;
sp:subject
[ sp:varName "parameterFacility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ;
sp:arg1 [ sp:varName "qualifierRef"^^xsd:string
[ sp:varName "parameterRef"^^xsd:string
]
] [ sp:object
[ sp:varName "intervalEnd"^^xsd:string
] ;
sp:variable
[ sp:varName "measuredQualityType"^^xsd:string
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ;
sp:subject
[ sp:varName "parameterRef"^^xsd:string
]
])
] ;
......@@ -1094,5 +1231,5 @@
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/schema/1.0/erhfacts> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/erhfacts> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......