Holger Knublauch

Mapping spreadsheets to NPD

1 -# Saved by TopBraid on Thu Jul 28 15:55:54 BST 2011
2 -# baseURI: http://www.reportinghub.no/1.1/schema/npd
3 -# imports: http://topbraid.org/spin/spinmapl
4 -# imports: http://spinrdf.org/spin
5 -
6 -@prefix npd: <http://www.reportinghub.no/schema/npd#> .
7 -@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10 -@prefix sp: <http://spinrdf.org/sp#> .
11 -@prefix spin: <http://spinrdf.org/spin#> .
12 -@prefix spl: <http://spinrdf.org/spl#> .
13 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
14 -
15 -<http://www.reportinghub.no/1.1/schema/npd>
16 - rdf:type owl:Ontology ;
17 - owl:imports <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> ;
18 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
19 -
20 -npd:Company
21 - rdf:type owl:Class ;
22 - rdfs:subClassOf npd:npdIndividual .
23 -
24 -npd:CompanyLicense
25 - rdf:type owl:Class ;
26 - rdfs:comment "A class that relates a Company to a License it has been granted."^^xsd:string ;
27 - rdfs:subClassOf npd:Individual .
28 -
29 -npd:Facility
30 - rdf:type owl:Class ;
31 - rdfs:subClassOf npd:npdIndividual .
32 -
33 -npd:Field
34 - rdf:type owl:Class ;
35 - rdfs:subClassOf npd:npdIndividual .
36 -
37 -npd:FixedFacility
38 - rdf:type owl:Class ;
39 - rdfs:subClassOf npd:Facility .
40 -
41 -npd:Individual
42 - rdf:type owl:Class ;
43 - rdfs:subClassOf owl:Thing .
44 -
45 -npd:License
46 - rdf:type owl:Class ;
47 - rdfs:subClassOf npd:npdIndividual .
48 -
49 -npd:MoveableFacility
50 - rdf:type owl:Class ;
51 - rdfs:subClassOf npd:Facility .
52 -
53 -npd:OperatingCompany
54 - rdf:type owl:Class ;
55 - rdfs:subClassOf npd:Company .
56 -
57 -npd:ParentCompany
58 - rdf:type owl:Class ;
59 - rdfs:subClassOf npd:Company .
60 -
61 -npd:SubSurfaceFixedFacility
62 - rdf:type owl:Class ;
63 - rdfs:subClassOf npd:FixedFacility .
64 -
65 -npd:SurfaceFixedFacility
66 - rdf:type owl:Class ;
67 - rdfs:subClassOf npd:FixedFacility .
68 -
69 -npd:Well
70 - rdf:type owl:Class ;
71 - rdfs:subClassOf npd:Individual .
72 -
73 -npd:WellBore
74 - rdf:type owl:Class ;
75 - rdfs:subClassOf npd:npdIndividual .
76 -
77 -npd:awardedTo
78 - rdf:type owl:ObjectProperty ;
79 - rdfs:domain npd:CompanyLicense ;
80 - rdfs:range npd:Company .
81 -
82 -npd:belongsTo
83 - rdf:type owl:ObjectProperty ;
84 - rdfs:domain npd:Facility ;
85 - rdfs:range npd:Field .
86 -
87 -npd:currentActivityStatus
88 - rdf:type owl:DatatypeProperty ;
89 - rdfs:domain npd:Field ;
90 - rdfs:range xsd:string .
91 -
92 -npd:currentOperator
93 - rdf:type owl:ObjectProperty ;
94 - rdfs:comment "Corresponds to Current Operator field in fixed facility tables"^^xsd:string ;
95 - rdfs:domain npd:FixedFacility ;
96 - rdfs:range npd:Company .
97 -
98 -npd:currentlyResponsibleCompany
99 - rdf:type owl:ObjectProperty ;
100 - rdfs:comment "Corresponds to Currently Reponsible Company field in moveable facility tables"^^xsd:string ;
101 - rdfs:domain npd:MoveableFacility ;
102 - rdfs:range npd:Company .
103 -
104 -npd:discoverWellBore
105 - rdf:type owl:ObjectProperty ;
106 - rdfs:domain npd:Field ;
107 - rdfs:range npd:WellBore .
108 -
109 -npd:endDate
110 - rdf:type owl:DatatypeProperty ;
111 - rdfs:domain npd:Individual ;
112 - rdfs:range xsd:date .
113 -
114 -npd:facilityKind
115 - rdf:type owl:DatatypeProperty ;
116 - rdfs:comment "corresponds to Kind field in both the fixed and moveable facility tables"^^xsd:string ;
117 - rdfs:domain npd:Facility ;
118 - rdfs:range xsd:string .
119 -
120 -npd:fieldOperator
121 - rdf:type owl:ObjectProperty ;
122 - rdfs:domain npd:Field ;
123 - rdfs:range npd:Company .
124 -
125 -npd:fixedFacilityPhase
126 - rdf:type owl:DatatypeProperty ;
127 - rdfs:comment "corresponds to Phase field in fixed facility tables"^^xsd:string ;
128 - rdfs:domain npd:FixedFacility ;
129 - rdfs:range xsd:string .
130 -
131 -npd:id
132 - rdf:type owl:DatatypeProperty ;
133 - rdfs:domain npd:npdIndividual ;
134 - rdfs:range xsd:string .
135 -
136 -npd:licenseAwarded
137 - rdf:type owl:ObjectProperty ;
138 - rdfs:domain npd:CompanyLicense ;
139 - rdfs:range npd:Company .
140 -
141 -npd:name
142 - rdf:type owl:DatatypeProperty ;
143 - rdfs:domain npd:Individual ;
144 - rdfs:range xsd:string .
145 -
146 -npd:npdIndividual
147 - rdf:type owl:Class ;
148 - rdfs:comment "An npd:Individual that has an npd:id"^^xsd:string ;
149 - rdfs:subClassOf npd:Individual .
150 -
151 -npd:parentCo
152 - rdf:type owl:ObjectProperty ;
153 - rdfs:domain npd:OperatingCompany ;
154 - rdfs:range npd:ParentCompany .
155 -
156 -npd:partOfWell
157 - rdf:type owl:ObjectProperty ;
158 - rdfs:domain npd:WellBore ;
159 - rdfs:range npd:Well .
160 -
161 -npd:percentageInterest
162 - rdf:type owl:DatatypeProperty ;
163 - rdfs:domain npd:CompanyLicense ;
164 - rdfs:range xsd:float .
165 -
166 -npd:startDate
167 - rdf:type owl:DatatypeProperty ;
168 - rdfs:domain npd:Individual ;
169 - rdfs:range xsd:date .
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 +# baseURI: file:///www.reportinghub.no/transform/wellbore-npdid-overview
2 +# imports: http://topbraid.org/tables
3 +
4 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
5 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
6 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
7 +@prefix tables: <http://topbraid.org/tables#> .
8 +@prefix wbid: <file:///www.reportinghub.no/transform/wellbore-npdid-overview#> .
9 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
10 +
11 +<file:///www.reportinghub.no/transform/wellbore-npdid-overview>
12 + rdf:type owl:Ontology ;
13 + owl:imports <http://topbraid.org/tables> .
14 +
15 +wbid:WBID
16 + rdf:type owl:Class ;
17 + rdfs:label "wellbore-npdid-overview"^^xsd:string ;
18 + tables:sheetIndex "0"^^xsd:int .
19 +
20 +wbid:datesyncNPD
21 + rdf:type owl:DatatypeProperty ;
22 + rdfs:domain wbid:WBID ;
23 + rdfs:label "datesyncNPD" ;
24 + rdfs:range xsd:string ;
25 + tables:columnIndex "4"^^xsd:int .
26 +
27 +wbid:wlbNpdidWellbore
28 + rdf:type owl:DatatypeProperty ;
29 + rdfs:domain wbid:WBID ;
30 + rdfs:label "wlbNpdidWellbore" ;
31 + rdfs:range xsd:string ;
32 + tables:columnIndex "1"^^xsd:int .
33 +
34 +wbid:wlbWell
35 + rdf:type owl:DatatypeProperty ;
36 + rdfs:domain wbid:WBID ;
37 + rdfs:label "wlbWell" ;
38 + rdfs:range xsd:string ;
39 + tables:columnIndex "2"^^xsd:int .
40 +
41 +wbid:wlbWellType
42 + rdf:type owl:DatatypeProperty ;
43 + rdfs:domain wbid:WBID ;
44 + rdfs:label "wlbWellType" ;
45 + rdfs:range xsd:string ;
46 + tables:columnIndex "3"^^xsd:int .
47 +
48 +wbid:wlbWellboreName
49 + rdf:type owl:DatatypeProperty ;
50 + rdfs:domain wbid:WBID ;
51 + rdfs:label "ÔªøwlbWellboreName" ;
52 + rdfs:range xsd:string ;
53 + tables:columnIndex "0"^^xsd:int .
1 +# Saved by TopBraid on Fri Jul 29 17:18:40 BST 2011
2 +# baseURI: http://www.reportinghub.no/1.1/schema/npd
3 +
4 +@prefix npd: <http://www.reportinghub.no/schema/npd#> .
5 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
6 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
7 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
8 +@prefix sp: <http://spinrdf.org/sp#> .
9 +@prefix spin: <http://spinrdf.org/spin#> .
10 +@prefix spl: <http://spinrdf.org/spl#> .
11 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
12 +
13 +<http://www.reportinghub.no/1.1/schema/npd>
14 + rdf:type owl:Ontology ;
15 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
16 +
17 +npd:BusinessArrangementArea
18 + rdf:type owl:Class ;
19 + rdfs:comment "A business arrangement area in this context is an area which is a result of unitisations, sliding scale rules or other business arrangements which have altered the terms of the original production licence."^^xsd:string ;
20 + rdfs:subClassOf npd:Owner , npd:NpdIndividual , npd:TemporalIndividual .
21 +
22 +npd:Company
23 + rdf:type owl:Class ;
24 + rdfs:subClassOf npd:NpdIndividual .
25 +
26 +npd:Discovery
27 + rdf:type owl:Class ;
28 + rdfs:comment "A discovery is a petroleum deposit or several petroleum deposits collectively, which have been discovered in the same well, in which through testing, sampling or logging there has been established a probability of the existence of mobile petroleum (includes both commercial and technical discovery)."^^xsd:string ;
29 + rdfs:subClassOf npd:NpdIndividual .
30 +
31 +npd:Facility
32 + rdf:type owl:Class ;
33 + rdfs:subClassOf npd:NpdIndividual , npd:TemporalIndividual .
34 +
35 +npd:Field
36 + rdf:type owl:Class ;
37 + rdfs:comment "A field is a discovery or several discoveries combined which the licensees have decided to develop, and for which the authorities have approved a plan for development and operation (PDO) or granted a PDO exemption."^^xsd:string ;
38 + rdfs:subClassOf npd:NpdIndividual .
39 +
40 +npd:FixedFacility
41 + rdf:type owl:Class ;
42 + rdfs:comment "'Permanently placed facility' is a generic term for all facilities that are placed on a field permanently. Floating production facilities, which in principle are mobile, come under this definition as they are meant to be permanently placed on the field."^^xsd:string ;
43 + rdfs:subClassOf npd:Facility .
44 +
45 +npd:Individual
46 + rdf:type owl:Class ;
47 + rdfs:subClassOf owl:Thing .
48 +
49 +npd:License
50 + rdf:type owl:Class ;
51 + rdfs:comment "Production licences are granted by the Ministry of Petroleum and Energy. Transfer of a production licence or participating interest in a production licence must be approved by the ministry."^^xsd:string ;
52 + rdfs:subClassOf npd:Owner , npd:NpdIndividual , npd:TemporalIndividual .
53 +
54 +npd:MoveableFacility
55 + rdf:type owl:Class ;
56 + rdfs:comment "Mobile facilities are facilities not meant to be permanently placed on the field during the lifetime of the field, for example mobile drilling units."^^xsd:string ;
57 + rdfs:subClassOf npd:Facility .
58 +
59 +npd:NpdIndividual
60 + rdf:type owl:Class ;
61 + rdfs:subClassOf npd:Individual .
62 +
63 +npd:OperatingCompany
64 + rdf:type owl:Class ;
65 + rdfs:subClassOf npd:Company .
66 +
67 +npd:Owner
68 + rdf:type owl:Class ;
69 + rdfs:comment "Supertype of BAA and License - i.e. anything that can own a Field"^^xsd:string ;
70 + rdfs:subClassOf npd:Individual .
71 +
72 +npd:ParcellBAA
73 + rdf:type owl:Class ;
74 + rdfs:subClassOf npd:BusinessArrangementArea .
75 +
76 +npd:ParentCompany
77 + rdf:type owl:Class ;
78 + rdfs:subClassOf npd:Company .
79 +
80 +npd:SeismicAreaBAA
81 + rdf:type owl:Class ;
82 + rdfs:subClassOf npd:BusinessArrangementArea .
83 +
84 +npd:Share
85 + rdf:type owl:Class ;
86 + rdfs:comment "A company's share in something - e.g. a BAA or a License"^^xsd:string ;
87 + rdfs:subClassOf npd:TemporalIndividual .
88 +
89 +npd:ShareOfBAA
90 + rdf:type owl:Class ;
91 + rdfs:subClassOf npd:Share .
92 +
93 +npd:ShareOfLicense
94 + rdf:type owl:Class ;
95 + rdfs:comment "A class that relates a Company to a License it has been granted."^^xsd:string ;
96 + rdfs:subClassOf npd:Share .
97 +
98 +npd:SlidingScaleBAA
99 + rdf:type owl:Class ;
100 + rdfs:subClassOf npd:BusinessArrangementArea .
101 +
102 +npd:SubSurfaceFixedFacility
103 + rdf:type owl:Class ;
104 + rdfs:subClassOf npd:FixedFacility .
105 +
106 +npd:SurfaceFixedFacility
107 + rdf:type owl:Class ;
108 + rdfs:subClassOf npd:FixedFacility .
109 +
110 +npd:TemporalIndividual
111 + rdf:type owl:Class ;
112 + rdfs:comment "An individual (cringe) that has temporal extent. If Matthew and Chris ever found out about this, they'd string me up."^^xsd:string ;
113 + rdfs:subClassOf npd:Individual .
114 +
115 +npd:UnitizedBAA
116 + rdf:type owl:Class ;
117 + rdfs:subClassOf npd:BusinessArrangementArea .
118 +
119 +npd:Well
120 + rdf:type owl:Class ;
121 + rdfs:subClassOf npd:Individual .
122 +
123 +npd:WellBore
124 + rdf:type owl:Class ;
125 + rdfs:subClassOf npd:NpdIndividual , npd:TemporalIndividual .
126 +
127 +npd:baaShared
128 + rdf:type owl:ObjectProperty ;
129 + rdfs:domain npd:ShareOfBAA ;
130 + rdfs:range npd:BusinessArrangementArea .
131 +
132 +npd:belongsTo
133 + rdf:type owl:ObjectProperty ;
134 + rdfs:domain npd:Facility ;
135 + rdfs:range npd:Field .
136 +
137 +npd:companyShortName
138 + rdf:type owl:DatatypeProperty ;
139 + rdfs:domain npd:Company ;
140 + rdfs:range xsd:string ;
141 + rdfs:subPropertyOf rdfs:label .
142 +
143 +npd:currentActivityStatus
144 + rdf:type owl:DatatypeProperty ;
145 + rdfs:domain npd:Field ;
146 + rdfs:range xsd:string .
147 +
148 +npd:currentOperator
149 + rdf:type owl:ObjectProperty ;
150 + rdfs:comment "Corresponds to Current Operator field in fixed facility tables"^^xsd:string ;
151 + rdfs:domain npd:FixedFacility ;
152 + rdfs:range npd:Company .
153 +
154 +npd:currentlyResponsibleCompany
155 + rdf:type owl:ObjectProperty ;
156 + rdfs:comment "Corresponds to Currently Reponsible Company field in moveable facility tables"^^xsd:string ;
157 + rdfs:domain npd:MoveableFacility ;
158 + rdfs:range npd:Company .
159 +
160 +npd:discoveryCurrentActivityStatus
161 + rdf:type owl:DatatypeProperty ;
162 + rdfs:domain npd:Discovery ;
163 + rdfs:range xsd:string .
164 +
165 +npd:discoveryField
166 + rdf:type owl:ObjectProperty ;
167 + rdfs:comment "Corresponds to Field NPDID field in NPD Discovery table (overview)"^^xsd:string ;
168 + rdfs:domain npd:Discovery ;
169 + rdfs:range npd:WellBore .
170 +
171 +npd:discoveryHCType
172 + rdf:type owl:DatatypeProperty ;
173 + rdfs:domain npd:Discovery ;
174 + rdfs:range xsd:string .
175 +
176 +npd:discoveryMainNcsArea
177 + rdf:type owl:DatatypeProperty ;
178 + rdfs:domain npd:Discovery ;
179 + rdfs:range xsd:string .
180 +
181 +npd:discoveryOperator
182 + rdf:type owl:ObjectProperty ;
183 + rdfs:comment "Corresponds to Operator field in NPD Discovery table (overview)"^^xsd:string ;
184 + rdfs:domain npd:Discovery ;
185 + rdfs:range npd:Company .
186 +
187 +npd:discoveryOwner
188 + rdf:type owl:ObjectProperty ;
189 + rdfs:comment "Corresponds to Owner field in NPD Discovery table (see also Owner Kind)"^^xsd:string ;
190 + rdfs:domain npd:Discovery ;
191 + rdfs:range npd:Owner .
192 +
193 +npd:discoveryWellBore
194 + rdf:type owl:ObjectProperty ;
195 + rdfs:comment "Corresponds to Discovery Wellbore NPDID in the Discovery table (overview)"^^xsd:string ;
196 + rdfs:domain npd:Discovery ;
197 + rdfs:range npd:WellBore .
198 +
199 +npd:discoveryYear
200 + rdf:type owl:DatatypeProperty ;
201 + rdfs:domain npd:Discovery ;
202 + rdfs:range xsd:date .
203 +
204 +npd:drilledInProductionLicense
205 + rdf:type owl:ObjectProperty ;
206 + rdfs:comment "Corresponds to Drilled in Production License field in WellBore tables"^^xsd:string ;
207 + rdfs:domain npd:WellBore ;
208 + rdfs:range npd:License .
209 +
210 +npd:drillingFacility
211 + rdf:type owl:ObjectProperty ;
212 + rdfs:comment "Corresponds to Drilled in Production License field in WellBore tables"^^xsd:string ;
213 + rdfs:domain npd:WellBore ;
214 + rdfs:range npd:Facility .
215 +
216 +npd:drillingOperator
217 + rdf:type owl:ObjectProperty ;
218 + rdfs:comment "Corresponds to Drilling Operator field in WellBore tables"^^xsd:string ;
219 + rdfs:domain npd:WellBore ;
220 + rdfs:range npd:Company .
221 +
222 +npd:endDate
223 + rdf:type owl:DatatypeProperty ;
224 + rdfs:comment "The date at which an individual ceases to exist"^^xsd:string ;
225 + rdfs:domain npd:TemporalIndividual ;
226 + rdfs:range xsd:date .
227 +
228 +npd:facilityKind
229 + rdf:type owl:DatatypeProperty ;
230 + rdfs:comment "corresponds to Kind field in both the fixed and moveable facility tables"^^xsd:string ;
231 + rdfs:domain npd:Facility ;
232 + rdfs:range xsd:string .
233 +
234 +npd:fieldDiscoveryWellBore
235 + rdf:type owl:ObjectProperty ;
236 + rdfs:comment "Corresponds to Discovery Wellbore NPDID in the Field table "^^xsd:string ;
237 + rdfs:domain npd:Field ;
238 + rdfs:range npd:WellBore .
239 +
240 +npd:fieldOperator
241 + rdf:type owl:ObjectProperty ;
242 + rdfs:domain npd:Field ;
243 + rdfs:range npd:Company .
244 +
245 +npd:fieldOwner
246 + rdf:type owl:ObjectProperty ;
247 + rdfs:comment "The owner column in the NPD Field table may correspond to a BAA or a License, as indicated by the Owner Kind column"^^xsd:string ;
248 + rdfs:domain npd:Field ;
249 + rdfs:range npd:Owner .
250 +
251 +npd:fixedFacilityPhase
252 + rdf:type owl:DatatypeProperty ;
253 + rdfs:comment "corresponds to Phase field in fixed facility tables"^^xsd:string ;
254 + rdfs:domain npd:FixedFacility ;
255 + rdfs:range xsd:string .
256 +
257 +npd:hasParentCompany
258 + rdf:type owl:ObjectProperty ;
259 + rdfs:domain npd:OperatingCompany ;
260 + rdfs:range npd:ParentCompany .
261 +
262 +npd:id
263 + rdf:type owl:DatatypeProperty ;
264 + rdfs:domain npd:NpdIndividual ;
265 + rdfs:range xsd:string .
266 +
267 +npd:licenseShared
268 + rdf:type owl:ObjectProperty ;
269 + rdfs:domain npd:ShareOfLicense ;
270 + rdfs:range npd:License .
271 +
272 +npd:licenseStatus
273 + rdf:type owl:DatatypeProperty ;
274 + rdfs:comment "corresponds to the Status field in the License table"^^xsd:string ;
275 + rdfs:domain npd:License ;
276 + rdfs:range xsd:string .
277 +
278 +npd:licensingActivity
279 + rdf:type owl:DatatypeProperty ;
280 + rdfs:comment "corresponds to the licensing activity field in the License table"^^xsd:string ;
281 + rdfs:domain npd:License ;
282 + rdfs:range xsd:string .
283 +
284 +npd:name
285 + rdf:type owl:DatatypeProperty ;
286 + rdfs:domain npd:Individual ;
287 + rdfs:range xsd:string ;
288 + rdfs:subPropertyOf rdfs:label .
289 +
290 +npd:partOfWell
291 + rdf:type owl:ObjectProperty ;
292 + rdfs:domain npd:WellBore ;
293 + rdfs:range npd:Well .
294 +
295 +npd:percentageOfShare
296 + rdf:type owl:DatatypeProperty ;
297 + rdfs:domain npd:Share ;
298 + rdfs:range xsd:float .
299 +
300 +npd:productionFacility
301 + rdf:type owl:ObjectProperty ;
302 + rdfs:comment "Corresponds to Production Facility field in WellBore tables"^^xsd:string ;
303 + rdfs:domain npd:WellBore ;
304 + rdfs:range npd:Facility .
305 +
306 +npd:shareHolder
307 + rdf:type owl:ObjectProperty ;
308 + rdfs:comment "Equivalent to AwardedTo field in License table"^^xsd:string ;
309 + rdfs:domain npd:Share ;
310 + rdfs:range npd:Company .
311 +
312 +npd:startDate
313 + rdf:type owl:DatatypeProperty ;
314 + rdfs:comment "The date at which an individual comes into existance"^^xsd:string ;
315 + rdfs:domain npd:TemporalIndividual ;
316 + rdfs:range xsd:date .
317 +
318 +npd:wellBoreCompletionDate
319 + rdf:type owl:DatatypeProperty ;
320 + rdfs:comment "Corresponds to Completion Date field in WellBore tables"^^xsd:string ;
321 + rdfs:domain npd:WellBore ;
322 + rdfs:range xsd:date .
323 +
324 +npd:wellBoreContent
325 + rdf:type owl:DatatypeProperty ;
326 + rdfs:comment "Corresponds to Content field in WellBore tables"^^xsd:string ;
327 + rdfs:domain npd:WellBore ;
328 + rdfs:range xsd:string .
329 +
330 +npd:wellBoreDrillPermit
331 + rdf:type owl:DatatypeProperty ;
332 + rdfs:comment "Corresponds to Drill Permit field in WellBore tables"^^xsd:string ;
333 + rdfs:domain npd:WellBore ;
334 + rdfs:range xsd:string .
335 +
336 +npd:wellBorePurpose
337 + rdf:type owl:DatatypeProperty ;
338 + rdfs:comment "Corresponds to Purpose field in WellBore tables"^^xsd:string ;
339 + rdfs:domain npd:WellBore ;
340 + rdfs:range xsd:string .
341 +
342 +npd:wellBoreType
343 + rdf:type owl:DatatypeProperty ;
344 + rdfs:comment "Corresponds to Type field in WellBore tables"^^xsd:string ;
345 + rdfs:domain npd:WellBore ;
346 + rdfs:range xsd:string .
347 +
348 +npd:wellboreOwner
349 + rdf:type owl:ObjectProperty ;
350 + rdfs:comment "Corresponds to Owner field in WellBore tables - see also Owner Kind"^^xsd:string ;
351 + rdfs:domain npd:WellBore ;
352 + rdfs:range npd:Owner .
1 # baseURI: http://www.reportinghub.no/spin/rh 1 # baseURI: http://www.reportinghub.no/spin/rh
2 +# imports: http://topbraid.org/spin/spinmapl
2 # imports: http://www.reportinghub.no/1.1,1/schema/ddr 3 # imports: http://www.reportinghub.no/1.1,1/schema/ddr
3 -# imports: http://spinrdf.org/spin
4 # imports: http://www.reportinghub.no/1.1/schema/npd 4 # imports: http://www.reportinghub.no/1.1/schema/npd
5 +# imports: http://spinrdf.org/spin
5 6
7 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
6 @prefix owl: <http://www.w3.org/2002/07/owl#> . 8 @prefix owl: <http://www.w3.org/2002/07/owl#> .
7 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 9 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 10 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 @prefix rhspin: <http://www.reportinghub.no/spin/rh#> . 11 @prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
10 @prefix sp: <http://spinrdf.org/sp#> . 12 @prefix sp: <http://spinrdf.org/sp#> .
13 +@prefix spif: <http://spinrdf.org/spif#> .
11 @prefix spin: <http://spinrdf.org/spin#> . 14 @prefix spin: <http://spinrdf.org/spin#> .
12 @prefix spl: <http://spinrdf.org/spl#> . 15 @prefix spl: <http://spinrdf.org/spl#> .
13 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 16 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
...@@ -16,10 +19,18 @@ ...@@ -16,10 +19,18 @@
16 rdf:type rdf:Property ; 19 rdf:type rdf:Property ;
17 rdfs:label "well"^^xsd:string . 20 rdfs:label "well"^^xsd:string .
18 21
22 +<http://spinrdf.org/arg#wellBoreName>
23 + rdf:type rdf:Property ;
24 + rdfs:label "well bore name"^^xsd:string .
25 +
26 +<http://spinrdf.org/arg#wellName>
27 + rdf:type rdf:Property ;
28 + rdfs:label "well name"^^xsd:string .
29 +
19 <http://www.reportinghub.no/spin/rh> 30 <http://www.reportinghub.no/spin/rh>
20 rdf:type owl:Ontology ; 31 rdf:type owl:Ontology ;
21 rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ; 32 rdfs:comment "A collection of SPIN functions and templates to support working with the ReportingHub schemas."^^xsd:string ;
22 - owl:imports <http://www.reportinghub.no/1.1/schema/npd> , <http://www.reportinghub.no/1.1,1/schema/ddr> , <http://spinrdf.org/spin> ; 33 + owl:imports <http://topbraid.org/spin/spinmapl> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/1.1,1/schema/ddr> , <http://www.reportinghub.no/1.1/schema/npd> ;
23 owl:versionInfo "0.1.0"^^xsd:string . 34 owl:versionInfo "0.1.0"^^xsd:string .
24 35
25 rhspin:GetWellBoresOfWell 36 rhspin:GetWellBoresOfWell
...@@ -58,6 +69,66 @@ rhspin:userName ...@@ -58,6 +69,66 @@ rhspin:userName
58 rdfs:subClassOf spin:Functions ; 69 rdfs:subClassOf spin:Functions ;
59 spin:returnType xsd:string . 70 spin:returnType xsd:string .
60 71
72 +rhspin:wellBoreByName
73 + rdf:type spin:Function ;
74 + rdfs:comment "Gets the URI resource of a well bore based on its NPD name."^^xsd:string ;
75 + rdfs:label "well bore by name"^^xsd:string ;
76 + rdfs:subClassOf spl:URIFunctions ;
77 + spin:body
78 + [ rdf:type sp:Select ;
79 + sp:resultVariables ([ rdf:type sp:iri ;
80 + sp:arg1 [ rdf:type fn:concat ;
81 + sp:arg1 "https://www.reportinghub.no/data/npd/WellBore-" ;
82 + sp:arg2 [ rdf:type spif:replaceAll ;
83 + sp:arg1 [ rdf:type spif:replaceAll ;
84 + sp:arg1 [ sp:varName "wellBoreName"^^xsd:string
85 + ] ;
86 + sp:arg2 " " ;
87 + sp:arg3 "_"
88 + ] ;
89 + sp:arg2 "/" ;
90 + sp:arg3 "__"
91 + ]
92 + ]
93 + ]) ;
94 + sp:where ()
95 + ] ;
96 + spin:constraint
97 + [ rdf:type spl:Argument ;
98 + rdfs:comment "The NPD ID of the well bore to get the URI of."^^xsd:string ;
99 + spl:predicate <http://spinrdf.org/arg#wellBoreName> ;
100 + spl:valueType xsd:string
101 + ] ;
102 + spin:returnType <http://www.reportinghub.no/schema/npd#WellBore> .
103 +
104 +rhspin:wellByName
105 + rdf:type spin:Function ;
106 + rdfs:comment "Gets the URI resource of a well based on its NPD name."^^xsd:string ;
107 + rdfs:label "well by name"^^xsd:string ;
108 + rdfs:subClassOf spl:URIFunctions ;
109 + spin:body
110 + [ rdf:type sp:Select ;
111 + sp:resultVariables ([ rdf:type sp:iri ;
112 + sp:arg1 [ rdf:type fn:concat ;
113 + sp:arg1 "https://www.reportinghub.no/data/npd/Well-" ;
114 + sp:arg2 [ rdf:type spif:replaceAll ;
115 + sp:arg1 [ sp:varName "wellName"^^xsd:string
116 + ] ;
117 + sp:arg2 "/" ;
118 + sp:arg3 "__"
119 + ]
120 + ]
121 + ]) ;
122 + sp:where ()
123 + ] ;
124 + spin:constraint
125 + [ rdf:type spl:Argument ;
126 + rdfs:comment "The NPD name of the well to get the URI of."^^xsd:string ;
127 + spl:predicate <http://spinrdf.org/arg#wellName> ;
128 + spl:valueType xsd:string
129 + ] ;
130 + spin:returnType <http://www.reportinghub.no/schema/npd#WellBore> .
131 +
61 _:b2 sp:varName "wellBore"^^xsd:string . 132 _:b2 sp:varName "wellBore"^^xsd:string .
62 133
63 _:b1 sp:varName "wellBoreName"^^xsd:string . 134 _:b1 sp:varName "wellBoreName"^^xsd:string .
......
1 +# baseURI: http://www.reportinghub.no/transform/spreadsheets2npd
2 +# imports: http://topbraid.org/spin/spinmapl
3 +# imports: file:///www.reportinghub.no/transform/wellbore-npdid-overview-2011-07-30
4 +# imports: file:///www.reportinghub.no/transform/wellbore-npdid-overview
5 +# imports: http://www.reportinghub.no/1.1/schema/npd
6 +# imports: http://spinrdf.org/spin
7 +# imports: http://www.reportinghub.no/spin/rh
8 +
9 +@prefix : <http://www.reportinghub.no/transform/spreadsheets2npd#> .
10 +@prefix arg: <http://spinrdf.org/arg#> .
11 +@prefix npdi: <https://www.reportinghub.no/data/npd/> .
12 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
13 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
14 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
15 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
16 +@prefix sp: <http://spinrdf.org/sp#> .
17 +@prefix spin: <http://spinrdf.org/spin#> .
18 +@prefix spinmap: <http://spinrdf.org/spinmap#> .
19 +@prefix spl: <http://spinrdf.org/spl#> .
20 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
21 +
22 +<file:///www.reportinghub.no/transform/wellbore-npdid-overview#WBID>
23 + spinmap:rule
24 + [ rdf:type spinmap:Mapping-1-1 ;
25 + spinmap:context :WBID-WellBore ;
26 + spinmap:expression
27 + [ rdf:type rhspin:wellByName ;
28 + arg:wellName spin:_arg1
29 + ] ;
30 + spinmap:sourcePredicate1
31 + <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ;
32 + spinmap:targetPredicate1
33 + <http://www.reportinghub.no/schema/npd#partOfWell>
34 + ] ;
35 + spinmap:rule
36 + [ rdf:type spinmap:Mapping-1-1 ;
37 + spinmap:context :WBID-Well ;
38 + spinmap:expression spin:_arg1 ;
39 + spinmap:sourcePredicate1
40 + <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ;
41 + spinmap:targetPredicate1
42 + <http://www.reportinghub.no/schema/npd#name>
43 + ] ;
44 + spinmap:rule
45 + [ rdf:type spinmap:Mapping-0-1 ;
46 + spinmap:context :WBID-Well ;
47 + spinmap:expression <http://www.reportinghub.no/schema/npd#Well> ;
48 + spinmap:targetPredicate1
49 + rdf:type
50 + ] ;
51 + spinmap:rule
52 + [ rdf:type spinmap:Mapping-1-1 ;
53 + spinmap:context :WBID-WellBore ;
54 + spinmap:expression spin:_arg1 ;
55 + spinmap:sourcePredicate1
56 + <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellboreName> ;
57 + spinmap:targetPredicate1
58 + <http://www.reportinghub.no/schema/npd#name>
59 + ] ;
60 + spinmap:rule
61 + [ rdf:type spinmap:Mapping-1-1 ;
62 + spinmap:context :WBID-WellBore ;
63 + spinmap:expression spin:_arg1 ;
64 + spinmap:sourcePredicate1
65 + <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellType> ;
66 + spinmap:targetPredicate1
67 + <http://www.reportinghub.no/schema/npd#wellBoreType>
68 + ] ;
69 + spinmap:rule
70 + [ rdf:type spinmap:Mapping-1-1 ;
71 + spinmap:context :WBID-WellBore ;
72 + spinmap:expression spin:_arg1 ;
73 + spinmap:sourcePredicate1
74 + <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbNpdidWellbore> ;
75 + spinmap:targetPredicate1
76 + <http://www.reportinghub.no/schema/npd#id>
77 + ] ;
78 + spinmap:rule
79 + [ rdf:type spinmap:Mapping-0-1 ;
80 + spinmap:context :WBID-WellBore ;
81 + spinmap:expression <http://www.reportinghub.no/schema/npd#WellBore> ;
82 + spinmap:targetPredicate1
83 + rdf:type
84 + ] .
85 +
86 +arg:well
87 + rdfs:subPropertyOf sp:arg .
88 +
89 +arg:wellBoreName
90 + rdfs:subPropertyOf sp:arg .
91 +
92 +arg:wellName
93 + rdfs:subPropertyOf sp:arg .
94 +
95 +<http://www.reportinghub.no/transform/spreadsheets2npd>
96 + rdf:type owl:Ontology ;
97 + rdfs:comment "Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."^^xsd:string ;
98 + owl:imports <http://www.reportinghub.no/spin/rh> , <file:///www.reportinghub.no/transform/wellbore-npdid-overview> , <file:///www.reportinghub.no/transform/wellbore-npdid-overview-2011-07-30> , <http://spinrdf.org/spin> , <http://topbraid.org/spin/spinmapl> , <http://www.reportinghub.no/1.1/schema/npd> ;
99 + owl:versionInfo "0.1.0"^^xsd:string .
100 +
101 +:WBID-Well
102 + rdf:type spinmap:Context ;
103 + spinmap:sourceClass <file:///www.reportinghub.no/transform/wellbore-npdid-overview#WBID> ;
104 + spinmap:target
105 + [ rdf:type :buildWellURI ;
106 + spinmap:source spinmap:_source
107 + ] ;
108 + spinmap:targetClass <http://www.reportinghub.no/schema/npd#Well> .
109 +
110 +:WBID-WellBore
111 + rdf:type spinmap:Context ;
112 + spinmap:sourceClass <file:///www.reportinghub.no/transform/wellbore-npdid-overview#WBID> ;
113 + spinmap:target
114 + [ rdf:type :buildWellBoreURI ;
115 + spinmap:source spinmap:_source
116 + ] ;
117 + spinmap:targetClass <http://www.reportinghub.no/schema/npd#WellBore> .
118 +
119 +:buildWellBoreURI
120 + rdf:type spinmap:TargetFunction ;
121 + rdfs:label "build well bore URI"^^xsd:string ;
122 + rdfs:subClassOf spinmap:TargetFunctions ;
123 + spin:body
124 + [ rdf:type sp:Select ;
125 + sp:resultVariables ([ rdf:type rhspin:wellBoreByName ;
126 + arg:wellBoreName _:b1
127 + ]) ;
128 + sp:where ([ sp:object _:b1 ;
129 + sp:predicate <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWellboreName> ;
130 + sp:subject
131 + [ sp:varName "source"^^xsd:string
132 + ]
133 + ])
134 + ] ;
135 + spin:returnType rdfs:Resource .
136 +
137 +:buildWellURI
138 + rdf:type spinmap:TargetFunction ;
139 + rdfs:label "build well URI"^^xsd:string ;
140 + rdfs:subClassOf spinmap:TargetFunctions ;
141 + spin:body
142 + [ rdf:type sp:Select ;
143 + sp:resultVariables ([ rdf:type rhspin:wellByName ;
144 + arg:wellName _:b2
145 + ]) ;
146 + sp:where ([ sp:object _:b2 ;
147 + sp:predicate <file:///www.reportinghub.no/transform/wellbore-npdid-overview#wlbWell> ;
148 + sp:subject
149 + [ sp:varName "source"^^xsd:string
150 + ]
151 + ])
152 + ] .
153 +
154 +_:b1 sp:varName "wellBoreId"^^xsd:string .
155 +
156 +_:b2 sp:varName "wellName"^^xsd:string .
1 +# baseURI: null
2 +
3 +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix visual: <http://topbraid.org/visual#> .
10 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 +
12 +[] rdf:type inference:Configuration ;
13 + composite:child
14 + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
15 + composite:index "0"^^xsd:int
16 + ] .