David Leal

MPR productVolume added wellStatus and operationTime

...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
12 12
13 <http://www.reportinghub.no/ep/schema/1.0/production-facility> 13 <http://www.reportinghub.no/ep/schema/1.0/production-facility>
14 rdf:type owl:Ontology ; 14 rdf:type owl:Ontology ;
15 - 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> ; 15 + 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> ;
16 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 16 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
17 17
18 <http://www.reportinghub.no/ep/schema/equipment#ChokeValve> 18 <http://www.reportinghub.no/ep/schema/equipment#ChokeValve>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
60 rdf:type ep-prodfac:ProductionFacilityType . 60 rdf:type ep-prodfac:ProductionFacilityType .
61 61
62 <http://www.reportinghub.no/ep/schema/facility#facilityOperator> 62 <http://www.reportinghub.no/ep/schema/facility#facilityOperator>
63 - rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; 63 + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
64 rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; 64 rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
65 rdfs:label "facility operator"^^xsd:string ; 65 rdfs:label "facility operator"^^xsd:string ;
66 rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> . 66 rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> .
...@@ -101,22 +101,22 @@ ep-prodfac:Boat ...@@ -101,22 +101,22 @@ ep-prodfac:Boat
101 rdfs:subClassOf ep-prodfac:ShipOrBoat . 101 rdfs:subClassOf ep-prodfac:ShipOrBoat .
102 102
103 ep-prodfac:Field-area 103 ep-prodfac:Field-area
104 - rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; 104 + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
105 rdfs:label "field - area"^^xsd:string ; 105 rdfs:label "field - area"^^xsd:string ;
106 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> . 106 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
107 107
108 ep-prodfac:Field-group 108 ep-prodfac:Field-group
109 - rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; 109 + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
110 rdfs:label "field - group"^^xsd:string ; 110 rdfs:label "field - group"^^xsd:string ;
111 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> . 111 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
112 112
113 ep-prodfac:Field-part 113 ep-prodfac:Field-part
114 - rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; 114 + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
115 rdfs:label "field - part"^^xsd:string ; 115 rdfs:label "field - part"^^xsd:string ;
116 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> . 116 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> .
117 117
118 ep-prodfac:Installation 118 ep-prodfac:Installation
119 - rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; 119 + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
120 rdfs:label "installation"^^xsd:string ; 120 rdfs:label "installation"^^xsd:string ;
121 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 121 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
122 122
...@@ -126,17 +126,17 @@ ep-prodfac:OilTanker ...@@ -126,17 +126,17 @@ ep-prodfac:OilTanker
126 rdfs:subClassOf ep-prodfac:Ship . 126 rdfs:subClassOf ep-prodfac:Ship .
127 127
128 ep-prodfac:Plant 128 ep-prodfac:Plant
129 - rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; 129 + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
130 rdfs:label "plant"^^xsd:string ; 130 rdfs:label "plant"^^xsd:string ;
131 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 131 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
132 132
133 ep-prodfac:Plant-processing 133 ep-prodfac:Plant-processing
134 - rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; 134 + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
135 rdfs:label "plant - processing"^^xsd:string ; 135 rdfs:label "plant - processing"^^xsd:string ;
136 rdfs:subClassOf ep-prodfac:Plant . 136 rdfs:subClassOf ep-prodfac:Plant .
137 137
138 ep-prodfac:ProcessingFacility 138 ep-prodfac:ProcessingFacility
139 - rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; 139 + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
140 rdfs:label "processing facility"^^xsd:string ; 140 rdfs:label "processing facility"^^xsd:string ;
141 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 141 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
142 142
...@@ -155,7 +155,7 @@ ep-prodfac:ShipOrBoat ...@@ -155,7 +155,7 @@ ep-prodfac:ShipOrBoat
155 rdfs:subClassOf ep-prodfac:TemporalPartOfAShipOrBoat . 155 rdfs:subClassOf ep-prodfac:TemporalPartOfAShipOrBoat .
156 156
157 ep-prodfac:StorageFacility 157 ep-prodfac:StorageFacility
158 - rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; 158 + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ;
159 rdfs:label "storage facility"^^xsd:string ; 159 rdfs:label "storage facility"^^xsd:string ;
160 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 160 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
161 161
...@@ -169,7 +169,7 @@ ep-prodfac:TemporalPartOfAShipOrBoat ...@@ -169,7 +169,7 @@ ep-prodfac:TemporalPartOfAShipOrBoat
169 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 169 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
170 170
171 ep-prodfac:TrunkLine 171 ep-prodfac:TrunkLine
172 - rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; 172 + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ;
173 rdfs:label "trunk line"^^xsd:string ; 173 rdfs:label "trunk line"^^xsd:string ;
174 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . 174 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> .
175 175
...@@ -213,6 +213,12 @@ ep-prodfac:numberOfPersonnelOnBoard ...@@ -213,6 +213,12 @@ ep-prodfac:numberOfPersonnelOnBoard
213 rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; 213 rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
214 rdfs:range xsd:integer . 214 rdfs:range xsd:integer .
215 215
216 +ep-prodfac:operatingTime
217 + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
218 + rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
219 + rdfs:label "operating time"^^xsd:string ;
220 + rdfs:range ep-core:TimeDuration .
221 +
216 <http://www.reportinghub.no/ep/schema/production-organization#CommercialEntity> 222 <http://www.reportinghub.no/ep/schema/production-organization#CommercialEntity>
217 rdf:type ep-prodfac:ProductionFacilityType . 223 rdf:type ep-prodfac:ProductionFacilityType .
218 224
......
...@@ -48,7 +48,7 @@ sp:if ...@@ -48,7 +48,7 @@ sp:if
48 48
49 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> 49 <http://www.reportinghub.no/ep/dpr/spin/1.1/lib>
50 rdf:type owl:Ontology ; 50 rdf:type owl:Ontology ;
51 - 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> ; 51 + 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> ;
52 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 52 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
53 53
54 ep-dpr-spin-lib:Function 54 ep-dpr-spin-lib:Function
...@@ -295,6 +295,28 @@ ep-dpr-spin-lib:buildFacilityURI ...@@ -295,6 +295,28 @@ ep-dpr-spin-lib:buildFacilityURI
295 ]) 295 ])
296 ] . 296 ] .
297 297
298 +ep-dpr-spin-lib:buildHarbourURI
299 + rdf:type spin:Function ;
300 + rdfs:label "build Harbour URI"^^xsd:string ;
301 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
302 + spin:body
303 + [ rdf:type sp:Select ;
304 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
305 + ]) ;
306 + sp:where ([ rdf:type sp:Bind ;
307 + sp:expression
308 + [ rdf:type ep-spin-lib:buildURI ;
309 + sp:arg1 "https://www.reportinghub.no/ep/data/harbour/" ;
310 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
311 + sp:arg1 spin:_arg1
312 + ]
313 + ] ;
314 + sp:variable
315 + [ sp:varName "uri"^^xsd:string
316 + ]
317 + ])
318 + ] .
319 +
298 ep-dpr-spin-lib:buildOrganizationURI 320 ep-dpr-spin-lib:buildOrganizationURI
299 rdf:type spin:Function ; 321 rdf:type spin:Function ;
300 rdfs:label "build Organization URI"^^xsd:string ; 322 rdfs:label "build Organization URI"^^xsd:string ;
...@@ -800,6 +822,28 @@ arg3 is end date"""^^xsd:string ; ...@@ -800,6 +822,28 @@ arg3 is end date"""^^xsd:string ;
800 ]) 822 ])
801 ] . 823 ] .
802 824
825 +ep-dpr-spin-lib:buildTerminalURI
826 + rdf:type spin:Function ;
827 + rdfs:label "build Terminal URI"^^xsd:string ;
828 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
829 + spin:body
830 + [ rdf:type sp:Select ;
831 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
832 + ]) ;
833 + sp:where ([ rdf:type sp:Bind ;
834 + sp:expression
835 + [ rdf:type ep-spin-lib:buildURI ;
836 + sp:arg1 "https://www.reportinghub.no/ep/data/terminal/" ;
837 + sp:arg2 [ rdf:type ep-spin-lib:normalizeString ;
838 + sp:arg1 spin:_arg1
839 + ]
840 + ] ;
841 + sp:variable
842 + [ sp:varName "uri"^^xsd:string
843 + ]
844 + ])
845 + ] .
846 +
803 ep-dpr-spin-lib:selectAnglePerLengthScale 847 ep-dpr-spin-lib:selectAnglePerLengthScale
804 rdf:type spin:Function ; 848 rdf:type spin:Function ;
805 rdfs:label "select angle per length scale"^^xsd:string ; 849 rdfs:label "select angle per length scale"^^xsd:string ;
...@@ -5721,6 +5765,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5721,6 +5765,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5721 rdfs:subClassOf ep-dpr-spin-lib:Function ; 5765 rdfs:subClassOf ep-dpr-spin-lib:Function ;
5722 spin:body 5766 spin:body
5723 [ rdf:type sp:Select ; 5767 [ rdf:type sp:Select ;
5768 + sp:resultVariables (_:b22) ;
5769 + sp:where ([ rdf:type sp:Bind ;
5770 + sp:expression
5771 + [ rdf:type sp:if ;
5772 + sp:arg1 [ rdf:type sp:eq ;
5773 + sp:arg1 spin:_arg1 ;
5774 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5775 + ] ;
5776 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5777 + sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5778 + ] ;
5779 + sp:variable _:b22
5780 + ])
5781 + ] ;
5782 + spin:body
5783 + [ rdf:type sp:Select ;
5724 sp:resultVariables ([ sp:varName "myVar"^^xsd:string 5784 sp:resultVariables ([ sp:varName "myVar"^^xsd:string
5725 ]) ; 5785 ]) ;
5726 sp:where ([ rdf:type sp:Bind ; 5786 sp:where ([ rdf:type sp:Bind ;
...@@ -5800,22 +5860,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5800,22 +5860,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5800 [ sp:varName "myVar"^^xsd:string 5860 [ sp:varName "myVar"^^xsd:string
5801 ] 5861 ]
5802 ]) 5862 ])
5803 - ] ;
5804 - spin:body
5805 - [ rdf:type sp:Select ;
5806 - sp:resultVariables (_:b22) ;
5807 - sp:where ([ rdf:type sp:Bind ;
5808 - sp:expression
5809 - [ rdf:type sp:if ;
5810 - sp:arg1 [ rdf:type sp:eq ;
5811 - sp:arg1 spin:_arg1 ;
5812 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5813 - ] ;
5814 - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5815 - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5816 - ] ;
5817 - sp:variable _:b22
5818 - ])
5819 ] . 5863 ] .
5820 5864
5821 ep-dpr-spin-lib:selectTemperatureScale 5865 ep-dpr-spin-lib:selectTemperatureScale
...@@ -7350,62 +7394,62 @@ ep-dpr-spin-lib:selectWorkScale ...@@ -7350,62 +7394,62 @@ ep-dpr-spin-lib:selectWorkScale
7350 ]) 7394 ])
7351 ] . 7395 ] .
7352 7396
7353 -_:b23 7397 +_:b1 sp:varName "uri"^^xsd:string .
7354 - sp:varName "volumeFlowRateAtStdType"^^xsd:string .
7355 7398
7356 -_:b22 7399 +_:b2 sp:varName "UUID"^^xsd:string .
7357 - sp:varName "specificVolumeScale"^^xsd:string .
7358 7400
7359 -_:b21 7401 +_:b3 sp:varName "uri"^^xsd:string .
7360 - sp:varName "safetyActivityType"^^xsd:string .
7361 7402
7362 -_:b20 7403 +_:b4 sp:varName "uri"^^xsd:string .
7363 - sp:varName "productionFlowPurposeType"^^xsd:string .
7364 7404
7365 -_:b19 7405 +_:b5 sp:varName "uri"^^xsd:string .
7366 - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7367 7406
7368 -_:b18 7407 +_:b6 sp:varName "uri"^^xsd:string .
7369 - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7370 7408
7371 -_:b17 7409 +_:b7 sp:varName "uri"^^xsd:string .
7372 - sp:varName "productionFlowDefinitionType"^^xsd:string .
7373 7410
7374 -_:b16 7411 +_:b8 sp:varName "uri"^^xsd:string .
7375 - sp:varName "productionFacilityType"^^xsd:string .
7376 7412
7377 -_:b15 7413 +_:b9 sp:varName "uri"^^xsd:string .
7378 - sp:varName "productVolumeReportPeriodType"^^xsd:string .
7379 7414
7380 -_:b14 7415 +_:b10
7381 - sp:varName "densityScale"^^xsd:string . 7416 + sp:varName "uri"^^xsd:string .
7382 7417
7383 -_:b13 7418 +_:b11
7384 sp:varName "uri"^^xsd:string . 7419 sp:varName "uri"^^xsd:string .
7385 7420
7386 _:b12 7421 _:b12
7387 sp:varName "uri"^^xsd:string . 7422 sp:varName "uri"^^xsd:string .
7388 7423
7389 -_:b11 7424 +_:b13
7390 sp:varName "uri"^^xsd:string . 7425 sp:varName "uri"^^xsd:string .
7391 7426
7392 -_:b10 7427 +_:b14
7393 - sp:varName "uri"^^xsd:string . 7428 + sp:varName "densityScale"^^xsd:string .
7394 7429
7395 -_:b9 sp:varName "uri"^^xsd:string . 7430 +_:b23
7431 + sp:varName "volumeFlowRateAtStdType"^^xsd:string .
7396 7432
7397 -_:b8 sp:varName "uri"^^xsd:string . 7433 +_:b22
7434 + sp:varName "specificVolumeScale"^^xsd:string .
7398 7435
7399 -_:b7 sp:varName "uri"^^xsd:string . 7436 +_:b21
7437 + sp:varName "safetyActivityType"^^xsd:string .
7400 7438
7401 -_:b6 sp:varName "uri"^^xsd:string . 7439 +_:b20
7440 + sp:varName "productionFlowPurposeType"^^xsd:string .
7402 7441
7403 -_:b5 sp:varName "uri"^^xsd:string . 7442 +_:b19
7443 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7404 7444
7405 -_:b4 sp:varName "uri"^^xsd:string . 7445 +_:b18
7446 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7406 7447
7407 -_:b3 sp:varName "uri"^^xsd:string . 7448 +_:b17
7449 + sp:varName "productionFlowDefinitionType"^^xsd:string .
7408 7450
7409 -_:b2 sp:varName "UUID"^^xsd:string . 7451 +_:b16
7452 + sp:varName "productionFacilityType"^^xsd:string .
7410 7453
7411 -_:b1 sp:varName "uri"^^xsd:string . 7454 +_:b15
7455 + sp:varName "productVolumeReportPeriodType"^^xsd:string .
......