David Leal

MPR productVolume added wellStatus and operationTime

......@@ -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#ChokeValve>
......@@ -60,7 +60,7 @@
rdf:type ep-prodfac:ProductionFacilityType .
<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:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:label "facility operator"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> .
......@@ -101,22 +101,22 @@ ep-prodfac:Boat
rdfs:subClassOf ep-prodfac:ShipOrBoat .
ep-prodfac:Field-area
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdfs:label "field - area"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
ep-prodfac:Field-group
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdfs:label "field - group"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
ep-prodfac:Field-part
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdfs:label "field - part"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
ep-prodfac:Installation
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "installation"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
......@@ -126,17 +126,17 @@ ep-prodfac:OilTanker
rdfs:subClassOf ep-prodfac:Ship .
ep-prodfac:Plant
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdfs:label "plant"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
ep-prodfac:Plant-processing
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdfs:label "plant - processing"^^xsd:string ;
rdfs:subClassOf ep-prodfac:Plant .
ep-prodfac:ProcessingFacility
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdfs:label "processing facility"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
......@@ -155,7 +155,7 @@ ep-prodfac:ShipOrBoat
rdfs:subClassOf ep-prodfac:TemporalPartOfAShipOrBoat .
ep-prodfac:StorageFacility
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdfs:label "storage facility"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
......@@ -169,7 +169,7 @@ ep-prodfac:TemporalPartOfAShipOrBoat
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
ep-prodfac:TrunkLine
rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
rdfs:label "trunk line"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
......@@ -213,6 +213,12 @@ ep-prodfac:numberOfPersonnelOnBoard
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:range xsd:integer .
ep-prodfac:operatingTime
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:label "operating time"^^xsd:string ;
rdfs:range ep-core:TimeDuration .
<http://www.reportinghub.no/ep/schema/production-organization#CommercialEntity>
rdf:type ep-prodfac:ProductionFacilityType .
......
......@@ -48,7 +48,7 @@ sp:if
<http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-dpr-spin-lib:Function
......@@ -295,6 +295,28 @@ ep-dpr-spin-lib:buildFacilityURI
])
] .
ep-dpr-spin-lib:buildHarbourURI
rdf:type spin:Function ;
rdfs:label "build Harbour URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-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/harbour/" ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
ep-dpr-spin-lib:buildOrganizationURI
rdf:type spin:Function ;
rdfs:label "build Organization URI"^^xsd:string ;
......@@ -800,6 +822,28 @@ arg3 is end date"""^^xsd:string ;
])
] .
ep-dpr-spin-lib:buildTerminalURI
rdf:type spin:Function ;
rdfs:label "build Terminal URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-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/terminal/" ;
sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
]
] ;
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
ep-dpr-spin-lib:selectAnglePerLengthScale
rdf:type spin:Function ;
rdfs:label "select angle per length scale"^^xsd:string ;
......@@ -5721,6 +5765,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b22) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b22
])
] ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "myVar"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
......@@ -5800,22 +5860,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
[ sp:varName "myVar"^^xsd:string
]
])
] ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b22) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b22
])
] .
ep-dpr-spin-lib:selectTemperatureScale
......@@ -7350,62 +7394,62 @@ ep-dpr-spin-lib:selectWorkScale
])
] .
_:b23
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b22
sp:varName "specificVolumeScale"^^xsd:string .
_:b2 sp:varName "UUID"^^xsd:string .
_:b21
sp:varName "safetyActivityType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b20
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b19
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b18
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b17
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b16
sp:varName "productionFacilityType"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b15
sp:varName "productVolumeReportPeriodType"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b14
sp:varName "densityScale"^^xsd:string .
_:b10
sp:varName "uri"^^xsd:string .
_:b13
_:b11
sp:varName "uri"^^xsd:string .
_:b12
sp:varName "uri"^^xsd:string .
_:b11
_:b13
sp:varName "uri"^^xsd:string .
_:b10
sp:varName "uri"^^xsd:string .
_:b14
sp:varName "densityScale"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b23
sp:varName "volumeFlowRateAtStdType"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b22
sp:varName "specificVolumeScale"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b21
sp:varName "safetyActivityType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b20
sp:varName "productionFlowPurposeType"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b19
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b18
sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b17
sp:varName "productionFlowDefinitionType"^^xsd:string .
_:b2 sp:varName "UUID"^^xsd:string .
_:b16
sp:varName "productionFacilityType"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b15
sp:varName "productVolumeReportPeriodType"^^xsd:string .
......