Holger Knublauch

NPD Import of Discoveries

This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -190,7 +190,7 @@ npd:discoveryField ...@@ -190,7 +190,7 @@ npd:discoveryField
190 rdf:type owl:ObjectProperty ; 190 rdf:type owl:ObjectProperty ;
191 rdfs:comment "Corresponds to Field NPDID field in NPD Discovery table (overview)"^^xsd:string ; 191 rdfs:comment "Corresponds to Field NPDID field in NPD Discovery table (overview)"^^xsd:string ;
192 rdfs:domain npd:Discovery ; 192 rdfs:domain npd:Discovery ;
193 - rdfs:range npd:WellBore . 193 + rdfs:range npd:Field .
194 194
195 npd:discoveryHCType 195 npd:discoveryHCType
196 rdf:type owl:DatatypeProperty ; 196 rdf:type owl:DatatypeProperty ;
...@@ -223,7 +223,7 @@ npd:discoveryWellBore ...@@ -223,7 +223,7 @@ npd:discoveryWellBore
223 npd:discoveryYear 223 npd:discoveryYear
224 rdf:type owl:DatatypeProperty ; 224 rdf:type owl:DatatypeProperty ;
225 rdfs:domain npd:Discovery ; 225 rdfs:domain npd:Discovery ;
226 - rdfs:range xsd:date . 226 + rdfs:range xsd:integer .
227 227
228 npd:drilledInProductionLicence 228 npd:drilledInProductionLicence
229 rdf:type owl:ObjectProperty ; 229 rdf:type owl:ObjectProperty ;
......
...@@ -114,6 +114,28 @@ rhspin:companyById ...@@ -114,6 +114,28 @@ rhspin:companyById
114 spl:valueType xsd:string 114 spl:valueType xsd:string
115 ] . 115 ] .
116 116
117 +rhspin:discoveryById
118 + rdf:type spin:Function ;
119 + rdfs:label "discovery by id"^^xsd:string ;
120 + rdfs:subClassOf spl:URIFunctions ;
121 + spin:body
122 + [ rdf:type sp:Select ;
123 + sp:resultVariables ([ rdf:type sp:iri ;
124 + sp:arg1 [ rdf:type fn:concat ;
125 + sp:arg1 "https://www.reportinghub.no/data/npd/Discovery-" ;
126 + sp:arg2 [ sp:varName "id"^^xsd:string
127 + ]
128 + ]
129 + ]) ;
130 + sp:where ()
131 + ] ;
132 + spin:constraint
133 + [ rdf:type spl:Argument ;
134 + rdfs:comment "The NPD id of the Discovery."^^xsd:string ;
135 + spl:predicate <http://spinrdf.org/arg#id> ;
136 + spl:valueType xsd:string
137 + ] .
138 +
117 rhspin:facilityById 139 rhspin:facilityById
118 rdf:type spin:Function ; 140 rdf:type spin:Function ;
119 rdfs:label "facility by id"^^xsd:string ; 141 rdfs:label "facility by id"^^xsd:string ;
......
1 # baseURI: http://www.reportinghub.no/transform/spreadsheets2npd 1 # baseURI: http://www.reportinghub.no/transform/spreadsheets2npd
2 +# imports: file:///www.reportinghub.no/transform/npd/discovery-2011-07-30
2 # imports: http://topbraid.org/spin/spinmapl 3 # imports: http://topbraid.org/spin/spinmapl
3 # imports: file:///www.reportinghub.no/transform/npd/company 4 # imports: file:///www.reportinghub.no/transform/npd/company
4 # imports: http://www.reportinghub.no/examples/transform/npd/company-2011-07-30 5 # imports: http://www.reportinghub.no/examples/transform/npd/company-2011-07-30
...@@ -13,6 +14,7 @@ ...@@ -13,6 +14,7 @@
13 # imports: file:///www.reportinghub.no/transform/npd/license-2011-07-30 14 # imports: file:///www.reportinghub.no/transform/npd/license-2011-07-30
14 # imports: file:///www.reportinghub.no/transform/npd/facilityfixed 15 # imports: file:///www.reportinghub.no/transform/npd/facilityfixed
15 # imports: file:///www.reportinghub.no/transform/npd/baa 16 # imports: file:///www.reportinghub.no/transform/npd/baa
17 +# imports: file:///www.reportinghub.no/transform/npd/discovery
16 # imports: file:///www.reportinghub.no/transform/npd/licence 18 # imports: file:///www.reportinghub.no/transform/npd/licence
17 # imports: file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30 19 # imports: file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30
18 # imports: http://spinrdf.org/spin 20 # imports: http://spinrdf.org/spin
...@@ -21,6 +23,7 @@ ...@@ -21,6 +23,7 @@
21 @prefix arg: <http://spinrdf.org/arg#> . 23 @prefix arg: <http://spinrdf.org/arg#> .
22 @prefix baa-2011-07-30: <file:///www.reportinghub.no/transform/npd/baa-2011-07-30#> . 24 @prefix baa-2011-07-30: <file:///www.reportinghub.no/transform/npd/baa-2011-07-30#> .
23 @prefix company-2011-07-30: <http://www.reportinghub.no/examples/transform/npd/company-2011-07-30#> . 25 @prefix company-2011-07-30: <http://www.reportinghub.no/examples/transform/npd/company-2011-07-30#> .
26 +@prefix discovery-2011-07-30: <file:///www.reportinghub.no/transform/npd/discovery-2011-07-30#> .
24 @prefix facilityfixed-2011-07-30: <file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30#> . 27 @prefix facilityfixed-2011-07-30: <file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30#> .
25 @prefix facilitymoveable-2011-07-30: <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30#> . 28 @prefix facilitymoveable-2011-07-30: <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30#> .
26 @prefix field-2011-07-30: <http://www.reportinghub.no/transform/npd/field-2011-07-30#> . 29 @prefix field-2011-07-30: <http://www.reportinghub.no/transform/npd/field-2011-07-30#> .
...@@ -206,6 +209,124 @@ ...@@ -206,6 +209,124 @@
206 <http://www.reportinghub.no/schema/npd#id> 209 <http://www.reportinghub.no/schema/npd#id>
207 ] . 210 ] .
208 211
212 +<file:///www.reportinghub.no/transform/npd/discovery#Discovery>
213 + spinmap:rule
214 + [ rdf:type spinmap:Mapping-1-1 ;
215 + spinmap:context :Discovery-Discovery ;
216 + spinmap:expression
217 + [ rdf:type rhspin:wellBoreByName ;
218 + arg:wellBoreName spin:_arg1
219 + ] ;
220 + spinmap:sourcePredicate1
221 + <file:///www.reportinghub.no/transform/npd/discovery#wlbName> ;
222 + spinmap:targetPredicate1
223 + <http://www.reportinghub.no/schema/npd#discoveryWellBore>
224 + ] ;
225 + spinmap:rule
226 + [ rdf:type spinmap:Mapping-1-1 ;
227 + spinmap:context :Discovery-Discovery ;
228 + spinmap:expression spin:_arg1 ;
229 + spinmap:sourcePredicate1
230 + <file:///www.reportinghub.no/transform/npd/discovery#dscNpdidDiscovery> ;
231 + spinmap:targetPredicate1
232 + <http://www.reportinghub.no/schema/npd#id>
233 + ] ;
234 + spinmap:rule
235 + [ rdf:type spinmap:Mapping-1-1 ;
236 + spinmap:context :Discovery-Discovery ;
237 + spinmap:expression
238 + [ rdf:type spinmapl:resourceWithValue ;
239 + sp:arg1 spin:_arg1 ;
240 + spinmapl:predicate <http://www.reportinghub.no/schema/npd#name> ;
241 + spinmapl:type <http://www.reportinghub.no/schema/npd#Company>
242 + ] ;
243 + spinmap:sourcePredicate1
244 + <file:///www.reportinghub.no/transform/npd/discovery#cmpLongName2> ;
245 + spinmap:targetPredicate1
246 + <http://www.reportinghub.no/schema/npd#discoveryOperator>
247 + ] ;
248 + spinmap:rule
249 + [ rdf:type spinmap:Mapping-1-1 ;
250 + spinmap:context :Discovery-Discovery ;
251 + spinmap:expression spin:_arg1 ;
252 + spinmap:sourcePredicate1
253 + <file:///www.reportinghub.no/transform/npd/discovery#dscCurrentActivityStatus> ;
254 + spinmap:targetPredicate1
255 + <http://www.reportinghub.no/schema/npd#discoveryCurrentActivityStatus>
256 + ] ;
257 + spinmap:rule
258 + [ rdf:type spinmap:Mapping-0-1 ;
259 + spinmap:context :Discovery-Discovery ;
260 + spinmap:expression <http://www.reportinghub.no/schema/npd#Discovery> ;
261 + spinmap:targetPredicate1
262 + rdf:type
263 + ] ;
264 + spinmap:rule
265 + [ rdf:type spinmap:Mapping-1-1 ;
266 + spinmap:context :Discovery-Discovery ;
267 + spinmap:expression
268 + [ rdf:type xsd:integer ;
269 + sp:arg1 spin:_arg1
270 + ] ;
271 + spinmap:sourcePredicate1
272 + <file:///www.reportinghub.no/transform/npd/discovery#dscDiscoveryYear> ;
273 + spinmap:targetPredicate1
274 + <http://www.reportinghub.no/schema/npd#discoveryYear>
275 + ] ;
276 + spinmap:rule
277 + [ rdf:type spinmap:Mapping-1-1 ;
278 + spinmap:context :Discovery-Discovery ;
279 + spinmap:expression spin:_arg1 ;
280 + spinmap:sourcePredicate1
281 + <file:///www.reportinghub.no/transform/npd/discovery#dscHcType> ;
282 + spinmap:targetPredicate1
283 + <http://www.reportinghub.no/schema/npd#discoveryHCType>
284 + ] ;
285 + spinmap:rule
286 + [ rdf:type spinmap:Mapping-1-1 ;
287 + spinmap:context :Discovery-Discovery ;
288 + spinmap:expression
289 + [ rdf:type rhspin:fieldById ;
290 + arg:id spin:_arg1
291 + ] ;
292 + spinmap:sourcePredicate1
293 + <file:///www.reportinghub.no/transform/npd/discovery#fldNpdidField> ;
294 + spinmap:targetPredicate1
295 + <http://www.reportinghub.no/schema/npd#discoveryField>
296 + ] ;
297 + spinmap:rule
298 + [ rdf:type spinmap:Mapping-1-1 ;
299 + spinmap:context :Discovery-Discovery ;
300 + spinmap:expression
301 + [ rdf:type spinmapl:resourceWithValue ;
302 + sp:arg1 spin:_arg1 ;
303 + spinmapl:predicate <http://www.reportinghub.no/schema/npd#name> ;
304 + spinmapl:type <http://www.reportinghub.no/schema/npd#Owner>
305 + ] ;
306 + spinmap:sourcePredicate1
307 + <file:///www.reportinghub.no/transform/npd/discovery#dscOwnerName> ;
308 + spinmap:targetPredicate1
309 + <http://www.reportinghub.no/schema/npd#discoveryOwner>
310 + ] ;
311 + spinmap:rule
312 + [ rdf:type spinmap:Mapping-1-1 ;
313 + spinmap:context :Discovery-Discovery ;
314 + spinmap:expression spin:_arg1 ;
315 + spinmap:sourcePredicate1
316 + <file:///www.reportinghub.no/transform/npd/discovery#dscName> ;
317 + spinmap:targetPredicate1
318 + <http://www.reportinghub.no/schema/npd#name>
319 + ] ;
320 + spinmap:rule
321 + [ rdf:type spinmap:Mapping-1-1 ;
322 + spinmap:context :Discovery-Discovery ;
323 + spinmap:expression spin:_arg1 ;
324 + spinmap:sourcePredicate1
325 + <file:///www.reportinghub.no/transform/npd/discovery#nmaName> ;
326 + spinmap:targetPredicate1
327 + <http://www.reportinghub.no/schema/npd#discoveryMainNcsArea>
328 + ] .
329 +
209 <file:///www.reportinghub.no/transform/npd/facilityfixed#FacilityFixed> 330 <file:///www.reportinghub.no/transform/npd/facilityfixed#FacilityFixed>
210 spinmap:rule 331 spinmap:rule
211 [ rdf:type spinmap:Mapping-1-1 ; 332 [ rdf:type spinmap:Mapping-1-1 ;
...@@ -514,7 +635,7 @@ arg:wellName ...@@ -514,7 +635,7 @@ arg:wellName
514 <http://www.reportinghub.no/transform/spreadsheets2npd> 635 <http://www.reportinghub.no/transform/spreadsheets2npd>
515 rdf:type owl:Ontology ; 636 rdf:type owl:Ontology ;
516 rdfs:comment "Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."^^xsd:string ; 637 rdfs:comment "Takes spreadsheets imported from the NPD fact pages and maps them into the NPD ontology."^^xsd:string ;
517 - owl:imports <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30> , <http://www.reportinghub.no/transform/npd/field-2011-07-30> , <http://www.reportinghub.no/1.1/schema/npd> , <file:///www.reportinghub.no/transform/npd/field> , <http://topbraid.org/spin/spinmapl> , <file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30> , <file:///www.reportinghub.no/transform/npd/licence> , <file:///www.reportinghub.no/transform/npd/facilityfixed> , <http://www.reportinghub.no/spin/rh> , <file:///www.reportinghub.no/transform/npd/baa> , <http://www.reportinghub.no/examples/transform/npd/company-2011-07-30> , <file:///www.reportinghub.no/transform/npd/facilitymoveable> , <file:///www.reportinghub.no/transform/npd/license-2011-07-30> , <file:///www.reportinghub.no/transform/wellbore-npdid-overview> , <file:///www.reportinghub.no/transform/npd/company> , <http://spinrdf.org/spin> , <file:///www.reportinghub.no/transform/npd/baa-2011-07-30> ; 638 + owl:imports <file:///www.reportinghub.no/transform/npd/facilitymoveable-2011-07-30> , <http://www.reportinghub.no/transform/npd/field-2011-07-30> , <file:///www.reportinghub.no/transform/npd/discovery> , <http://www.reportinghub.no/1.1/schema/npd> , <file:///www.reportinghub.no/transform/npd/field> , <file:///www.reportinghub.no/transform/npd/discovery-2011-07-30> , <http://topbraid.org/spin/spinmapl> , <file:///www.reportinghub.no/transform/npd/facilityfixed-2011-07-30> , <file:///www.reportinghub.no/transform/npd/licence> , <file:///www.reportinghub.no/transform/npd/facilityfixed> , <http://www.reportinghub.no/spin/rh> , <file:///www.reportinghub.no/transform/npd/baa> , <http://www.reportinghub.no/examples/transform/npd/company-2011-07-30> , <file:///www.reportinghub.no/transform/npd/facilitymoveable> , <file:///www.reportinghub.no/transform/npd/license-2011-07-30> , <file:///www.reportinghub.no/transform/wellbore-npdid-overview> , <file:///www.reportinghub.no/transform/npd/company> , <http://spinrdf.org/spin> , <file:///www.reportinghub.no/transform/npd/baa-2011-07-30> ;
518 owl:versionInfo "0.1.0"^^xsd:string . 639 owl:versionInfo "0.1.0"^^xsd:string .
519 640
520 :BAA-BusinessArrangementArea 641 :BAA-BusinessArrangementArea
...@@ -535,6 +656,15 @@ arg:wellName ...@@ -535,6 +656,15 @@ arg:wellName
535 ] ; 656 ] ;
536 spinmap:targetClass <http://www.reportinghub.no/schema/npd#Company> . 657 spinmap:targetClass <http://www.reportinghub.no/schema/npd#Company> .
537 658
659 +:Discovery-Discovery
660 + rdf:type spinmap:Context ;
661 + spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/discovery#Discovery> ;
662 + spinmap:target
663 + [ rdf:type :buildDiscoveryURI ;
664 + spinmap:source spinmap:_source
665 + ] ;
666 + spinmap:targetClass <http://www.reportinghub.no/schema/npd#Discovery> .
667 +
538 :FacilityFixed-FixedFacility 668 :FacilityFixed-FixedFacility
539 rdf:type spinmap:Context ; 669 rdf:type spinmap:Context ;
540 spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/facilityfixed#FacilityFixed> ; 670 spinmap:sourceClass <file:///www.reportinghub.no/transform/npd/facilityfixed#FacilityFixed> ;
...@@ -627,6 +757,22 @@ arg:wellName ...@@ -627,6 +757,22 @@ arg:wellName
627 sp:where () 757 sp:where ()
628 ] . 758 ] .
629 759
760 +:buildDiscoveryURI
761 + rdf:type spinmap:TargetFunction ;
762 + rdfs:label "build Discovery URI"^^xsd:string ;
763 + rdfs:subClassOf spinmap:TargetFunctions ;
764 + spin:body
765 + [ rdf:type sp:Select ;
766 + sp:resultVariables ([ rdf:type rhspin:discoveryById ;
767 + arg:id [ rdf:type spl:object ;
768 + sp:arg1 [ sp:varName "source"^^xsd:string
769 + ] ;
770 + sp:arg2 <file:///www.reportinghub.no/transform/npd/discovery#dscNpdidDiscovery>
771 + ]
772 + ]) ;
773 + sp:where ()
774 + ] .
775 +
630 :buildFacilityURI 776 :buildFacilityURI
631 rdf:type spinmap:TargetFunction ; 777 rdf:type spinmap:TargetFunction ;
632 rdfs:label "build facility URI"^^xsd:string ; 778 rdfs:label "build facility URI"^^xsd:string ;
......
1 +# baseURI: file:///www.reportinghub.no/transform/npd/discovery
2 +# imports: http://topbraid.org/tables
3 +
4 +@prefix discovery: <file:///www.reportinghub.no/transform/npd/discovery#> .
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 tables: <http://topbraid.org/tables#> .
9 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
10 +
11 +<file:///www.reportinghub.no/transform/npd/discovery>
12 + rdf:type owl:Ontology ;
13 + owl:imports <http://topbraid.org/tables> .
14 +
15 +discovery:Discovery
16 + rdf:type owl:Class ;
17 + rdfs:label "discovery"^^xsd:string ;
18 + tables:sheetIndex "0"^^xsd:int .
19 +
20 +discovery:cmpLongName2
21 + rdf:type owl:DatatypeProperty ;
22 + rdfs:domain discovery:Discovery ;
23 + rdfs:label "cmpLongName2" ;
24 + rdfs:range xsd:string ;
25 + tables:columnIndex "1"^^xsd:int .
26 +
27 +discovery:datesyncNPD
28 + rdf:type owl:DatatypeProperty ;
29 + rdfs:domain discovery:Discovery ;
30 + rdfs:label "DatesyncNPD" ;
31 + rdfs:range xsd:string ;
32 + tables:columnIndex "17"^^xsd:int .
33 +
34 +discovery:dscCurrentActivityStatus
35 + rdf:type owl:DatatypeProperty ;
36 + rdfs:domain discovery:Discovery ;
37 + rdfs:label "dscCurrentActivityStatus" ;
38 + rdfs:range xsd:string ;
39 + tables:columnIndex "2"^^xsd:int .
40 +
41 +discovery:dscDateFromInclInField
42 + rdf:type owl:DatatypeProperty ;
43 + rdfs:domain discovery:Discovery ;
44 + rdfs:label "dscDateFromInclInField" ;
45 + rdfs:range xsd:string ;
46 + tables:columnIndex "7"^^xsd:int .
47 +
48 +discovery:dscDiscoveryYear
49 + rdf:type owl:DatatypeProperty ;
50 + rdfs:domain discovery:Discovery ;
51 + rdfs:label "dscDiscoveryYear" ;
52 + rdfs:range xsd:string ;
53 + tables:columnIndex "8"^^xsd:int .
54 +
55 +discovery:dscFactMapUrl
56 + rdf:type owl:DatatypeProperty ;
57 + rdfs:domain discovery:Discovery ;
58 + rdfs:label "dscFactMapUrl" ;
59 + rdfs:range xsd:string ;
60 + tables:columnIndex "16"^^xsd:int .
61 +
62 +discovery:dscFactPageUrl
63 + rdf:type owl:DatatypeProperty ;
64 + rdfs:domain discovery:Discovery ;
65 + rdfs:label "dscFactPageUrl" ;
66 + rdfs:range xsd:string ;
67 + tables:columnIndex "15"^^xsd:int .
68 +
69 +discovery:dscHcType
70 + rdf:type owl:DatatypeProperty ;
71 + rdfs:domain discovery:Discovery ;
72 + rdfs:label "dscHcType" ;
73 + rdfs:range xsd:string ;
74 + tables:columnIndex "3"^^xsd:int .
75 +
76 +discovery:dscName
77 + rdf:type owl:DatatypeProperty ;
78 + rdfs:domain discovery:Discovery ;
79 + rdfs:label "dscName"^^xsd:string ;
80 + rdfs:range xsd:string ;
81 + tables:columnIndex "0"^^xsd:int .
82 +
83 +discovery:dscNpdidDiscovery
84 + rdf:type owl:DatatypeProperty ;
85 + rdfs:domain discovery:Discovery ;
86 + rdfs:label "dscNpdidDiscovery" ;
87 + rdfs:range xsd:string ;
88 + tables:columnIndex "12"^^xsd:int .
89 +
90 +discovery:dscOwnerKind
91 + rdf:type owl:DatatypeProperty ;
92 + rdfs:domain discovery:Discovery ;
93 + rdfs:label "dscOwnerKind" ;
94 + rdfs:range xsd:string ;
95 + tables:columnIndex "10"^^xsd:int .
96 +
97 +discovery:dscOwnerName
98 + rdf:type owl:DatatypeProperty ;
99 + rdfs:domain discovery:Discovery ;
100 + rdfs:label "dscOwnerName" ;
101 + rdfs:range xsd:string ;
102 + tables:columnIndex "11"^^xsd:int .
103 +
104 +discovery:dscResInclInDiscoveryName
105 + rdf:type owl:DatatypeProperty ;
106 + rdfs:domain discovery:Discovery ;
107 + rdfs:label "dscResInclInDiscoveryName" ;
108 + rdfs:range xsd:string ;
109 + tables:columnIndex "9"^^xsd:int .
110 +
111 +discovery:fldName
112 + rdf:type owl:DatatypeProperty ;
113 + rdfs:domain discovery:Discovery ;
114 + rdfs:label "fldName" ;
115 + rdfs:range xsd:string ;
116 + tables:columnIndex "6"^^xsd:int .
117 +
118 +discovery:fldNpdidField
119 + rdf:type owl:DatatypeProperty ;
120 + rdfs:domain discovery:Discovery ;
121 + rdfs:label "fldNpdidField" ;
122 + rdfs:range xsd:string ;
123 + tables:columnIndex "13"^^xsd:int .
124 +
125 +discovery:nmaName
126 + rdf:type owl:DatatypeProperty ;
127 + rdfs:domain discovery:Discovery ;
128 + rdfs:label "nmaName" ;
129 + rdfs:range xsd:string ;
130 + tables:columnIndex "5"^^xsd:int .
131 +
132 +discovery:wlbName
133 + rdf:type owl:DatatypeProperty ;
134 + rdfs:domain discovery:Discovery ;
135 + rdfs:label "wlbName" ;
136 + rdfs:range xsd:string ;
137 + tables:columnIndex "4"^^xsd:int .
138 +
139 +discovery:wlbNpdidWellbore
140 + rdf:type owl:DatatypeProperty ;
141 + rdfs:domain discovery:Discovery ;
142 + rdfs:label "wlbNpdidWellbore" ;
143 + rdfs:range xsd:string ;
144 + tables:columnIndex "14"^^xsd:int .