David Leal

Completed productVolume/geographicContext

1 -# baseURI: http://www.reportinghub.no/ep/schema/1.0/geography 1 +# baseURI: http://www.reportinghub.no/ep/schema/1.0/geography
2 -# imports: http://www.reportinghub.no/ep/schema/1.0/core 2 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
3 -# imports: http://www.reportinghub.no/ep/schema/1.0/facility 3 +# imports: http://www.reportinghub.no/ep/schema/1.0/facility
4 - 4 +# imports: http://www.reportinghub.no/ep/schema/1.0/production-core
5 -@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . 5 +
6 -@prefix ep-geo: <http://www.reportinghub.no/ep/schema/geography#> . 6 +@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> .
7 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 7 +@prefix ep-geo: <http://www.reportinghub.no/ep/schema/geography#> .
8 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 8 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
9 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 9 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
10 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 10 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
11 - 11 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
12 -<http://www.reportinghub.no/ep/schema/1.0/geography> 12 +
13 - rdf:type owl:Ontology ; 13 +<http://www.reportinghub.no/ep/schema/1.0/geography>
14 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> ; 14 + rdf:type owl:Ontology ;
15 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 15 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
16 - 16 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
17 -ep-geo:AreaCoveredByBusinessArrangement 17 +
18 - rdf:type ep-fac:ProductionFacilityType , owl:Class ; 18 +ep-geo:AreaCoveredByBusinessArrangement
19 - rdfs:label "NPD Block"^^xsd:string ; 19 + rdf:type owl:Class , ep-fac:ProductionFacilityType ;
20 - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; 20 + rdfs:label "NPD Block"^^xsd:string ;
21 - owl:disjointWith ep-geo:NpdPolygon , ep-geo:NpdBlock , ep-geo:Country , ep-geo:State , ep-geo:County . 21 + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
22 - 22 + owl:disjointWith ep-geo:County , ep-geo:State , ep-geo:Country , ep-geo:NpdBlock , ep-geo:NpdPolygon .
23 -ep-geo:Country 23 +
24 - rdf:type ep-fac:ProductionFacilityType , owl:Class ; 24 +ep-geo:Country
25 - rdfs:label "country"^^xsd:string ; 25 + rdf:type owl:Class , ep-fac:ProductionFacilityType ;
26 - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; 26 + rdfs:label "country"^^xsd:string ;
27 - owl:disjointWith ep-geo:NpdBlock , ep-geo:NpdPolygon , ep-geo:County , ep-geo:State . 27 + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
28 - 28 + owl:disjointWith ep-geo:State , ep-geo:County , ep-geo:NpdPolygon , ep-geo:NpdBlock .
29 -ep-geo:County 29 +
30 - rdf:type ep-fac:ProductionFacilityType , owl:Class ; 30 +ep-geo:County
31 - rdfs:label "county"^^xsd:string ; 31 + rdf:type owl:Class , ep-fac:ProductionFacilityType ;
32 - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; 32 + rdfs:label "county"^^xsd:string ;
33 - owl:disjointWith ep-geo:NpdBlock , ep-geo:NpdPolygon , ep-geo:State , ep-geo:Country . 33 + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
34 - 34 + owl:disjointWith ep-geo:Country , ep-geo:State , ep-geo:NpdPolygon , ep-geo:NpdBlock .
35 -ep-geo:NpdBlock 35 +
36 - rdf:type ep-fac:ProductionFacilityType , owl:Class ; 36 +ep-geo:NpdBlock
37 - rdfs:label "NPD Block"^^xsd:string ; 37 + rdf:type owl:Class , ep-fac:ProductionFacilityType ;
38 - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; 38 + rdfs:label "NPD Block"^^xsd:string ;
39 - owl:disjointWith ep-geo:Country , ep-geo:State , ep-geo:County . 39 + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
40 - 40 + owl:disjointWith ep-geo:County , ep-geo:State , ep-geo:Country .
41 -ep-geo:NpdPolygon 41 +
42 - rdf:type owl:Class ; 42 +ep-geo:NpdPolygon
43 - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; 43 + rdf:type owl:Class ;
44 - owl:disjointWith ep-geo:State , ep-geo:NpdBlock , ep-geo:County , ep-geo:Country . 44 + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
45 - 45 + owl:disjointWith ep-geo:Country , ep-geo:County , ep-geo:NpdBlock , ep-geo:State .
46 -ep-geo:PartOfTheSurfaceOfTheEarth 46 +
47 - rdf:type owl:Class ; 47 +ep-geo:OffshoreLocation
48 - rdfs:label "part of the surface of the earth"^^xsd:string ; 48 + rdf:type owl:Class ;
49 - rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . 49 + rdfs:label "offshore location"^^xsd:string ;
50 - 50 + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth .
51 -ep-geo:State 51 +
52 - rdf:type ep-fac:ProductionFacilityType , owl:Class ; 52 +ep-geo:PartOfTheSurfaceOfTheEarth
53 - rdfs:label "state"^^xsd:string ; 53 + rdf:type owl:Class ;
54 - rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; 54 + rdfs:label "part of the surface of the earth"^^xsd:string ;
55 - owl:disjointWith ep-geo:NpdBlock , ep-geo:NpdPolygon , ep-geo:County , ep-geo:Country . 55 + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/production-core#TemporalPartOfARegionOfSpace> .
56 - 56 +
57 -ep-geo:locatedWithin 57 +ep-geo:State
58 - rdf:type owl:ObjectProperty ; 58 + rdf:type owl:Class , ep-fac:ProductionFacilityType ;
59 - rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ; 59 + rdfs:label "state"^^xsd:string ;
60 - rdfs:label "located within"^^xsd:string ; 60 + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ;
61 - rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . 61 + owl:disjointWith ep-geo:Country , ep-geo:County , ep-geo:NpdPolygon , ep-geo:NpdBlock .
62 - 62 +
63 -ep-geo:nominallyLocatedAt 63 +ep-geo:hasAreaName
64 - rdf:type owl:ObjectProperty ; 64 + rdf:type owl:DatatypeProperty ;
65 - rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ; 65 + rdfs:domain ep-geo:OffshoreLocation ;
66 - rdfs:label "nominally located at"^^xsd:string ; 66 + rdfs:label "has area name"^^xsd:string .
67 - rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . 67 +
68 +ep-geo:hasNorthSeaAreaName
69 + rdf:type owl:DatatypeProperty ;
70 + rdfs:domain ep-geo:OffshoreLocation ;
71 + rdfs:label "has North Sea area name"^^xsd:string .
72 +
73 +ep-geo:hasNorthSeaBlockSuffixId
74 + rdf:type owl:DatatypeProperty ;
75 + rdfs:domain ep-geo:OffshoreLocation ;
76 + rdfs:label "has North Sea block suffix ID"^^xsd:string .
77 +
78 +ep-geo:hasNorthSeaQuadrantId
79 + rdf:type owl:DatatypeProperty ;
80 + rdfs:domain ep-geo:OffshoreLocation ;
81 + rdfs:label "has North Sea quadrant ID"^^xsd:string .
82 +
83 +ep-geo:hasOffshoreLocationComment
84 + rdf:type owl:DatatypeProperty ;
85 + rdfs:domain ep-geo:OffshoreLocation ;
86 + rdfs:label "has offshore location comment"^^xsd:string .
87 +
88 +ep-geo:locatedWithin
89 + rdf:type owl:ObjectProperty ;
90 + rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
91 + rdfs:label "located within"^^xsd:string ;
92 + rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
93 +
94 +ep-geo:nominallyLocatedAt
95 + rdf:type owl:ObjectProperty ;
96 + rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
97 + rdfs:label "nominally located at"^^xsd:string ;
98 + rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
......
...@@ -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:BuildDailyProductionReportURI 54 ep-dpr-spin-lib:BuildDailyProductionReportURI
...@@ -152,6 +152,26 @@ arg2 is report end date"""^^xsd:string ; ...@@ -152,6 +152,26 @@ arg2 is report end date"""^^xsd:string ;
152 ]) 152 ])
153 ] . 153 ] .
154 154
155 +ep-dpr-spin-lib:buildBlockURI
156 + rdf:type spin:Function ;
157 + rdfs:subClassOf ep-dpr-spin-lib:Function ;
158 + spin:body
159 + [ rdf:type sp:Select ;
160 + rdfs:comment "arg1 is the block ID"^^xsd:string ;
161 + sp:resultVariables ([ sp:varName "uri"^^xsd:string
162 + ]) ;
163 + sp:where ([ rdf:type sp:Bind ;
164 + sp:expression
165 + [ rdf:type ep-spin-lib:buildURI ;
166 + sp:arg1 "https://www.reportinghub.no/ep/data/block/" ;
167 + sp:arg2 spin:_arg1
168 + ] ;
169 + sp:variable
170 + [ sp:varName "uri"^^xsd:string
171 + ]
172 + ])
173 + ] .
174 +
155 ep-dpr-spin-lib:buildCountryURI 175 ep-dpr-spin-lib:buildCountryURI
156 rdf:type spin:Function ; 176 rdf:type spin:Function ;
157 rdfs:label "build Country URI"^^xsd:string ; 177 rdfs:label "build Country URI"^^xsd:string ;
...@@ -5470,6 +5490,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5470,6 +5490,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5470 rdfs:subClassOf ep-dpr-spin-lib:Function ; 5490 rdfs:subClassOf ep-dpr-spin-lib:Function ;
5471 spin:body 5491 spin:body
5472 [ rdf:type sp:Select ; 5492 [ rdf:type sp:Select ;
5493 + sp:resultVariables (_:b29) ;
5494 + sp:where ([ rdf:type sp:Bind ;
5495 + sp:expression
5496 + [ rdf:type sp:if ;
5497 + sp:arg1 [ rdf:type sp:eq ;
5498 + sp:arg1 spin:_arg1 ;
5499 + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5500 + ] ;
5501 + sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5502 + sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5503 + ] ;
5504 + sp:variable _:b29
5505 + ])
5506 + ] ;
5507 + spin:body
5508 + [ rdf:type sp:Select ;
5473 sp:resultVariables ([ sp:varName "myVar"^^xsd:string 5509 sp:resultVariables ([ sp:varName "myVar"^^xsd:string
5474 ]) ; 5510 ]) ;
5475 sp:where ([ rdf:type sp:Bind ; 5511 sp:where ([ rdf:type sp:Bind ;
...@@ -5549,22 +5585,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION ...@@ -5549,22 +5585,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION
5549 [ sp:varName "myVar"^^xsd:string 5585 [ sp:varName "myVar"^^xsd:string
5550 ] 5586 ]
5551 ]) 5587 ])
5552 - ] ;
5553 - spin:body
5554 - [ rdf:type sp:Select ;
5555 - sp:resultVariables (_:b29) ;
5556 - sp:where ([ rdf:type sp:Bind ;
5557 - sp:expression
5558 - [ rdf:type sp:if ;
5559 - sp:arg1 [ rdf:type sp:eq ;
5560 - sp:arg1 spin:_arg1 ;
5561 - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3>
5562 - ] ;
5563 - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ;
5564 - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
5565 - ] ;
5566 - sp:variable _:b29
5567 - ])
5568 ] . 5588 ] .
5569 5589
5570 ep-dpr-spin-lib:selectTemperatureScale 5590 ep-dpr-spin-lib:selectTemperatureScale
...@@ -7093,89 +7113,89 @@ ep-dpr-spin-lib:selectWorkScale ...@@ -7093,89 +7113,89 @@ ep-dpr-spin-lib:selectWorkScale
7093 ]) 7113 ])
7094 ] . 7114 ] .
7095 7115
7096 -_:b32 7116 +_:b1 sp:varName "uri"^^xsd:string .
7097 - sp:varName "volumeFlowRateAtStdType"^^xsd:string .
7098 -
7099 -_:b31
7100 - sp:varName "volumeAtStdType"^^xsd:string .
7101 -
7102 -_:b30
7103 - sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
7104 -
7105 -_:b29
7106 - sp:varName "specificVolumeScale"^^xsd:string .
7107 7117
7108 -_:b28 7118 +_:b2 sp:varName "uri"^^xsd:string .
7109 - sp:varName "safetyActivityType"^^xsd:string .
7110 7119
7111 -_:b27 7120 +_:b3 sp:varName "UUID"^^xsd:string .
7112 - sp:varName "relationshipToMeasure"^^xsd:string .
7113 7121
7114 -_:b26 7122 +_:b4 sp:varName "uri"^^xsd:string .
7115 - sp:varName "productionFlowPurposeType"^^xsd:string .
7116 7123
7117 -_:b25 7124 +_:b5 sp:varName "uri"^^xsd:string .
7118 - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7119 7125
7120 -_:b24 7126 +_:b6 sp:varName "uri"^^xsd:string .
7121 - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7122 7127
7123 -_:b23 7128 +_:b7 sp:varName "uri"^^xsd:string .
7124 - sp:varName "productionFlowDefinitionType"^^xsd:string .
7125 7129
7126 -_:b22 7130 +_:b8 sp:varName "uri"^^xsd:string .
7127 - sp:varName "productionFacilityType"^^xsd:string .
7128 7131
7129 -_:b21 7132 +_:b9 sp:varName "uri"^^xsd:string .
7130 - sp:varName "productType"^^xsd:string .
7131 7133
7132 -_:b20 7134 +_:b10
7133 - sp:varName "densityScale"^^xsd:string . 7135 + sp:varName "uri"^^xsd:string .
7134 7136
7135 -_:b19 7137 +_:b11
7136 sp:varName "uri"^^xsd:string . 7138 sp:varName "uri"^^xsd:string .
7137 7139
7138 -_:b18 7140 +_:b12
7139 sp:varName "uri"^^xsd:string . 7141 sp:varName "uri"^^xsd:string .
7140 7142
7141 -_:b17 7143 +_:b13
7142 sp:varName "uri"^^xsd:string . 7144 sp:varName "uri"^^xsd:string .
7143 7145
7144 -_:b16 7146 +_:b14
7145 sp:varName "uri"^^xsd:string . 7147 sp:varName "uri"^^xsd:string .
7146 7148
7147 _:b15 7149 _:b15
7148 sp:varName "uri"^^xsd:string . 7150 sp:varName "uri"^^xsd:string .
7149 7151
7150 -_:b14 7152 +_:b16
7151 sp:varName "uri"^^xsd:string . 7153 sp:varName "uri"^^xsd:string .
7152 7154
7153 -_:b13 7155 +_:b17
7154 sp:varName "uri"^^xsd:string . 7156 sp:varName "uri"^^xsd:string .
7155 7157
7156 -_:b12 7158 +_:b18
7157 sp:varName "uri"^^xsd:string . 7159 sp:varName "uri"^^xsd:string .
7158 7160
7159 -_:b11 7161 +_:b19
7160 sp:varName "uri"^^xsd:string . 7162 sp:varName "uri"^^xsd:string .
7161 7163
7162 -_:b10 7164 +_:b20
7163 - sp:varName "uri"^^xsd:string . 7165 + sp:varName "densityScale"^^xsd:string .
7164 7166
7165 -_:b9 sp:varName "uri"^^xsd:string . 7167 +_:b21
7168 + sp:varName "productType"^^xsd:string .
7166 7169
7167 -_:b8 sp:varName "uri"^^xsd:string . 7170 +_:b22
7171 + sp:varName "productionFacilityType"^^xsd:string .
7168 7172
7169 -_:b7 sp:varName "uri"^^xsd:string . 7173 +_:b23
7174 + sp:varName "productionFlowDefinitionType"^^xsd:string .
7170 7175
7171 -_:b6 sp:varName "uri"^^xsd:string . 7176 +_:b24
7177 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7172 7178
7173 -_:b5 sp:varName "uri"^^xsd:string . 7179 +_:b25
7180 + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string .
7174 7181
7175 -_:b4 sp:varName "uri"^^xsd:string . 7182 +_:b26
7183 + sp:varName "productionFlowPurposeType"^^xsd:string .
7176 7184
7177 -_:b3 sp:varName "UUID"^^xsd:string . 7185 +_:b27
7186 + sp:varName "relationshipToMeasure"^^xsd:string .
7178 7187
7179 -_:b2 sp:varName "uri"^^xsd:string . 7188 +_:b28
7189 + sp:varName "safetyActivityType"^^xsd:string .
7180 7190
7181 -_:b1 sp:varName "uri"^^xsd:string . 7191 +_:b29
7192 + sp:varName "specificVolumeScale"^^xsd:string .
7193 +
7194 +_:b30
7195 + sp:varName "temporalPartOfAFlowDurationType"^^xsd:string .
7196 +
7197 +_:b31
7198 + sp:varName "volumeAtStdType"^^xsd:string .
7199 +
7200 +_:b32
7201 + sp:varName "volumeFlowRateAtStdType"^^xsd:string .
......