David Price

Merge branch 'master' into workdpr2

......@@ -12,7 +12,7 @@
<http://www.reportinghub.no/ep/schema/1.0/production-equipment>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-facility> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-facility> , <http://www.reportinghub.no/ep/schema/1.0/equipment> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/ep/schema/equipment#ChokeValve>
......@@ -25,7 +25,7 @@ ep-prodeqt:BlockValve
rdfs:subClassOf ep-prodeqt:Valve .
ep-prodeqt:ClosedValve
rdf:type owl:Class , ep-prodeqt:ValveOpenClosedType ;
rdf:type ep-prodeqt:ValveOpenClosedType , owl:Class ;
rdfs:comment "valve that is closed"^^xsd:string ;
rdfs:label "closed valve"^^xsd:string ;
rdfs:subClassOf ep-prodeqt:Valve ;
......@@ -49,7 +49,7 @@ ep-prodeqt:GasLiftChoke
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> .
ep-prodeqt:OpenValve
rdf:type owl:Class , ep-prodeqt:ValveOpenClosedType ;
rdf:type ep-prodeqt:ValveOpenClosedType , owl:Class ;
rdfs:comment "valve that is open"^^xsd:string ;
rdfs:label "open valve"^^xsd:string ;
rdfs:subClassOf ep-prodeqt:Valve ;
......@@ -97,37 +97,49 @@ ep-prodeqt:WingValve
rdfs:subClassOf ep-prodeqt:Valve .
ep-prodeqt:areaOpen
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 "open area for a valve"^^xsd:string ;
rdfs:domain ep-prodeqt:Valve ;
rdfs:label "area open"^^xsd:string ;
rdfs:range ep-core:Area .
ep-prodeqt:areaOpenFraction
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:domain ep-prodeqt:Valve ;
rdfs:label "area open fraction"^^xsd:string ;
rdfs:range ep-core:AreaPerArea .
ep-prodeqt:hasCaptain
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:label "has captain"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/organization#Person> .
ep-prodeqt:meteringFactor
rdf:type ep-core:Class_of_indirect_property , owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain ep-prodeqt:FlowMeter ;
rdfs:label "metering factor"^^xsd:string ;
rdfs:range ep-core:Ratio .
ep-prodeqt:tankContainsMaterial
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/equipment#Tank> ;
rdfs:label "tank contains material"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> .
ep-prodeqt:tankFreeVolume
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:domain <http://www.reportinghub.no/ep/schema/equipment#Tank> ;
rdfs:label "tank free volume"^^xsd:string ;
rdfs:range ep-core:Volume .
ep-prodeqt:tankHeightUsed
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:domain <http://www.reportinghub.no/ep/schema/equipment#Tank> ;
rdfs:label "tank height used"^^xsd:string ;
rdfs:range ep-core:Length .
ep-prodeqt:tankHeightUsedFraction
rdf:type ep-core:Class_of_indirect_property , owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty , ep-core:Class_of_indirect_property ;
rdfs:domain <http://www.reportinghub.no/ep/schema/equipment#Tank> ;
rdfs:label "tank height used fraction"^^xsd:string ;
rdfs:range ep-core:LengthPerLength .
......
......@@ -46,6 +46,10 @@
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.reportinghub.no/ep/schema/core#Ratio>
transhelp:rangeOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_meteringfactor> .
<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> .
......@@ -68,7 +72,7 @@
<http://www.reportinghub.no/ep/schema/equipment#Tank>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_availableroom> , <http://www.epim.no/schemas/mprml/1#FP_tankfluidlevel> , <http://www.epim.no/schemas/mprml/1#FP_relativetanklevel> .
<http://www.epim.no/schemas/mprml/1#FP_availableroom> , <http://www.epim.no/schemas/mprml/1#FP_tankfluidlevel> , <http://www.epim.no/schemas/mprml/1#FP_relativetanklevel> , <http://www.epim.no/schemas/mprml/1#FP_tankproductstandardvolume> , <http://www.epim.no/schemas/mprml/1#FP_tankproductvolume> .
<http://www.reportinghub.no/ep/schema/equipment#Tubing>
transhelp:domainOfPropertyMapsToMPREnumeration
......@@ -76,12 +80,16 @@
<http://www.reportinghub.no/ep/schema/facility#Facility>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_available> , <http://www.epim.no/schemas/mprml/1#FP_facilityuptime> , <http://www.epim.no/schemas/mprml/1#FP_scheduleddowntime> , <http://www.epim.no/schemas/mprml/1#FP_shutdownorder> .
<http://www.epim.no/schemas/mprml/1#FP_available> , <http://www.epim.no/schemas/mprml/1#FP_facilityuptime> , <http://www.epim.no/schemas/mprml/1#FP_scheduleddowntime> , <http://www.epim.no/schemas/mprml/1#FP_shutdownorder> , <http://www.epim.no/schemas/mprml/1#FP_watercutspotsample> .
<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.reportinghub.no/ep/schema/production-activity#WellOperationType>
transhelp:rangeOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_welloperationtype> .
<http://www.reportinghub.no/ep/schema/production-equipment#BlockValve>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_blockvalvestatus> .
......@@ -90,6 +98,10 @@
transhelp:valueOfPropertyMapsToMPRString
"closed"^^xsd:string .
<http://www.reportinghub.no/ep/schema/production-equipment#FlowMeter>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_meteringfactor> .
<http://www.reportinghub.no/ep/schema/production-equipment#OpenValve>
transhelp:valueOfPropertyMapsToMPRString
"open"^^xsd:string .
......@@ -114,6 +126,10 @@
transhelp:propertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_relativevalveopening> , <http://www.epim.no/schemas/mprml/1#FP_chokesize> .
<http://www.reportinghub.no/ep/schema/production-equipment#meteringFactor>
transhelp:propertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_meteringfactor> .
<http://www.reportinghub.no/ep/schema/production-equipment#tankFreeVolume>
transhelp:propertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_availableroom> .
......@@ -154,6 +170,10 @@
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_annuluspressure> .
<http://www.reportinghub.no/ep/schema/production-well#TemporalPartOfAWellOrWellBore>
transhelp:domainOfPropertyMapsToMPREnumeration
<http://www.epim.no/schemas/mprml/1#FP_welloperationtype> .
<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> .
......@@ -176,4 +196,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_wingvalvestatus> , <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_blockvalvestatus> , <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_wingvalvestatus> , <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_welloperationtype> , <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_blockvalvestatus> , <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> .
......
......@@ -23,7 +23,7 @@
<http://www.reportinghub.no/ep/mpr/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-mpr-spin-lib:Function
......@@ -199,6 +199,28 @@ ep-mpr-spin-lib:buildSubstanceTypeURI
])
] .
ep-mpr-spin-lib:buildWellOperationTypeURI
rdf:type spin:Function ;
rdfs:label "build well operation type URI"^^xsd:string ;
rdfs:subClassOf ep-mpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
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/wellOperationType/" ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
ep-mpr-spin-lib:buildWellTestTypeURI
rdf:type spin:Function ;
rdfs:label "build WellTestType URI"^^xsd:string ;
......