Holger Knublauch

Facility mapping

This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
...@@ -92,6 +92,50 @@ rhspin:companyById ...@@ -92,6 +92,50 @@ rhspin:companyById
92 spl:valueType xsd:string 92 spl:valueType xsd:string
93 ] . 93 ] .
94 94
95 +rhspin:facilityById
96 + rdf:type spin:Function ;
97 + rdfs:label "facility by id"^^xsd:string ;
98 + rdfs:subClassOf spl:URIFunctions ;
99 + spin:body
100 + [ rdf:type sp:Select ;
101 + sp:resultVariables ([ rdf:type sp:iri ;
102 + sp:arg1 [ rdf:type fn:concat ;
103 + sp:arg1 "https://www.reportinghub.no/data/npd/Facility-" ;
104 + sp:arg2 [ sp:varName "id"^^xsd:string
105 + ]
106 + ]
107 + ]) ;
108 + sp:where ()
109 + ] ;
110 + spin:constraint
111 + [ rdf:type spl:Argument ;
112 + rdfs:comment "The NPD id of the facility."^^xsd:string ;
113 + spl:predicate <http://spinrdf.org/arg#id> ;
114 + spl:valueType xsd:string
115 + ] .
116 +
117 +rhspin:fieldById
118 + rdf:type spin:Function ;
119 + rdfs:label "field 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/Field-" ;
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 field."^^xsd:string ;
135 + spl:predicate <http://spinrdf.org/arg#id> ;
136 + spl:valueType xsd:string
137 + ] .
138 +
95 rhspin:licenceById 139 rhspin:licenceById
96 rdf:type spin:Function ; 140 rdf:type spin:Function ;
97 rdfs:label "license by id"^^xsd:string ; 141 rdfs:label "license by id"^^xsd:string ;
...@@ -113,7 +157,7 @@ rhspin:licenceById ...@@ -113,7 +157,7 @@ rhspin:licenceById
113 spl:predicate <http://spinrdf.org/arg#id> ; 157 spl:predicate <http://spinrdf.org/arg#id> ;
114 spl:valueType xsd:string 158 spl:valueType xsd:string
115 ] ; 159 ] ;
116 - spin:returnType <http://www.reportinghub.no/schema/npd#License> . 160 + spin:returnType <http://www.reportinghub.no/schema/npd#Licence> .
117 161
118 rhspin:userName 162 rhspin:userName
119 rdf:type spin:Function ; 163 rdf:type spin:Function ;
...@@ -182,6 +226,6 @@ rhspin:wellByName ...@@ -182,6 +226,6 @@ rhspin:wellByName
182 ] ; 226 ] ;
183 spin:returnType <http://www.reportinghub.no/schema/npd#Well> . 227 spin:returnType <http://www.reportinghub.no/schema/npd#Well> .
184 228
185 -_:b2 sp:varName "wellBore"^^xsd:string .
186 -
187 _:b1 sp:varName "wellBoreName"^^xsd:string . 229 _:b1 sp:varName "wellBoreName"^^xsd:string .
230 +
231 +_:b2 sp:varName "wellBore"^^xsd:string .
......
1 +# baseURI: file:///www.reportinghub.no/transform/npd/facilityfixed
2 +# imports: http://topbraid.org/tables
3 +
4 +@prefix facilityfixed: <file:///www.reportinghub.no/transform/npd/facilityfixed#> .
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/facilityfixed>
12 + rdf:type owl:Ontology ;
13 + owl:imports <http://topbraid.org/tables> .
14 +
15 +facilityfixed:FacilityFixed
16 + rdf:type owl:Class ;
17 + rdfs:label "FacilityFixed"^^xsd:string ;
18 + tables:sheetIndex "0"^^xsd:int .
19 +
20 +facilityfixed:datesyncNPD
21 + rdf:type owl:DatatypeProperty ;
22 + rdfs:domain facilityfixed:FacilityFixed ;
23 + rdfs:label "datesyncNPD" ;
24 + rdfs:range xsd:string ;
25 + tables:columnIndex "24"^^xsd:int .
26 +
27 +facilityfixed:fclBelongsToKind
28 + rdf:type owl:DatatypeProperty ;
29 + rdfs:domain facilityfixed:FacilityFixed ;
30 + rdfs:label "fclBelongsToKind" ;
31 + rdfs:range xsd:string ;
32 + tables:columnIndex "6"^^xsd:int .
33 +
34 +facilityfixed:fclBelongsToName
35 + rdf:type owl:DatatypeProperty ;
36 + rdfs:domain facilityfixed:FacilityFixed ;
37 + rdfs:label "fclBelongsToName" ;
38 + rdfs:range xsd:string ;
39 + tables:columnIndex "5"^^xsd:int .
40 +
41 +facilityfixed:fclBelongsToS
42 + rdf:type owl:DatatypeProperty ;
43 + rdfs:domain facilityfixed:FacilityFixed ;
44 + rdfs:label "fclBelongsToS" ;
45 + rdfs:range xsd:string ;
46 + tables:columnIndex "7"^^xsd:int .
47 +
48 +facilityfixed:fclCurrentOperatorName
49 + rdf:type owl:DatatypeProperty ;
50 + rdfs:domain facilityfixed:FacilityFixed ;
51 + rdfs:label "fclCurrentOperatorName" ;
52 + rdfs:range xsd:string ;
53 + tables:columnIndex "3"^^xsd:int .
54 +
55 +facilityfixed:fclDesignLifetime
56 + rdf:type owl:DatatypeProperty ;
57 + rdfs:domain facilityfixed:FacilityFixed ;
58 + rdfs:label "fclDesignLifetime" ;
59 + rdfs:range xsd:string ;
60 + tables:columnIndex "20"^^xsd:int .
61 +
62 +facilityfixed:fclEwCode
63 + rdf:type owl:DatatypeProperty ;
64 + rdfs:domain facilityfixed:FacilityFixed ;
65 + rdfs:label "fclEwCode" ;
66 + rdfs:range xsd:string ;
67 + tables:columnIndex "17"^^xsd:int .
68 +
69 +facilityfixed:fclEwDeg
70 + rdf:type owl:DatatypeProperty ;
71 + rdfs:domain facilityfixed:FacilityFixed ;
72 + rdfs:label "fclEwDeg" ;
73 + rdfs:range xsd:string ;
74 + tables:columnIndex "14"^^xsd:int .
75 +
76 +facilityfixed:fclEwMin
77 + rdf:type owl:DatatypeProperty ;
78 + rdfs:domain facilityfixed:FacilityFixed ;
79 + rdfs:label "fclEwMin" ;
80 + rdfs:range xsd:string ;
81 + tables:columnIndex "15"^^xsd:int .
82 +
83 +facilityfixed:fclEwSec
84 + rdf:type owl:DatatypeProperty ;
85 + rdfs:domain facilityfixed:FacilityFixed ;
86 + rdfs:label "fclEwSec" ;
87 + rdfs:range xsd:string ;
88 + tables:columnIndex "16"^^xsd:int .
89 +
90 +facilityfixed:fclFactMapUrl
91 + rdf:type owl:DatatypeProperty ;
92 + rdfs:domain facilityfixed:FacilityFixed ;
93 + rdfs:label "fclFactMapUrl" ;
94 + rdfs:range xsd:string ;
95 + tables:columnIndex "22"^^xsd:int .
96 +
97 +facilityfixed:fclFactPageUrl
98 + rdf:type owl:DatatypeProperty ;
99 + rdfs:domain facilityfixed:FacilityFixed ;
100 + rdfs:label "fclFactPageUrl" ;
101 + rdfs:range xsd:string ;
102 + tables:columnIndex "21"^^xsd:int .
103 +
104 +facilityfixed:fclFunctions
105 + rdf:type owl:DatatypeProperty ;
106 + rdfs:domain facilityfixed:FacilityFixed ;
107 + rdfs:label "fclFunctions" ;
108 + rdfs:range xsd:string ;
109 + tables:columnIndex "19"^^xsd:int .
110 +
111 +facilityfixed:fclGeodeticDatum
112 + rdf:type owl:DatatypeProperty ;
113 + rdfs:domain facilityfixed:FacilityFixed ;
114 + rdfs:label "fclGeodeticDatum" ;
115 + rdfs:range xsd:string ;
116 + tables:columnIndex "9"^^xsd:int .
117 +
118 +facilityfixed:fclKind
119 + rdf:type owl:DatatypeProperty ;
120 + rdfs:domain facilityfixed:FacilityFixed ;
121 + rdfs:label "fclKind" ;
122 + rdfs:range xsd:string ;
123 + tables:columnIndex "4"^^xsd:int .
124 +
125 +facilityfixed:fclName
126 + rdf:type owl:DatatypeProperty ;
127 + rdfs:domain facilityfixed:FacilityFixed ;
128 + rdfs:label "fclName"^^xsd:string ;
129 + rdfs:range xsd:string ;
130 + tables:columnIndex "0"^^xsd:int .
131 +
132 +facilityfixed:fclNpdidFacility
133 + rdf:type owl:DatatypeProperty ;
134 + rdfs:domain facilityfixed:FacilityFixed ;
135 + rdfs:label "fclNpdidFacility" ;
136 + rdfs:range xsd:string ;
137 + tables:columnIndex "23"^^xsd:int .
138 +
139 +facilityfixed:fclNsCode
140 + rdf:type owl:DatatypeProperty ;
141 + rdfs:domain facilityfixed:FacilityFixed ;
142 + rdfs:label "fclNsCode" ;
143 + rdfs:range xsd:string ;
144 + tables:columnIndex "13"^^xsd:int .
145 +
146 +facilityfixed:fclNsDeg
147 + rdf:type owl:DatatypeProperty ;
148 + rdfs:domain facilityfixed:FacilityFixed ;
149 + rdfs:label "fclNsDeg" ;
150 + rdfs:range xsd:string ;
151 + tables:columnIndex "10"^^xsd:int .
152 +
153 +facilityfixed:fclNsMin
154 + rdf:type owl:DatatypeProperty ;
155 + rdfs:domain facilityfixed:FacilityFixed ;
156 + rdfs:label "fclNsMin" ;
157 + rdfs:range xsd:string ;
158 + tables:columnIndex "11"^^xsd:int .
159 +
160 +facilityfixed:fclNsSec
161 + rdf:type owl:DatatypeProperty ;
162 + rdfs:domain facilityfixed:FacilityFixed ;
163 + rdfs:label "fclNsSec" ;
164 + rdfs:range xsd:string ;
165 + tables:columnIndex "12"^^xsd:int .
166 +
167 +facilityfixed:fclPhase
168 + rdf:type owl:DatatypeProperty ;
169 + rdfs:domain facilityfixed:FacilityFixed ;
170 + rdfs:label "fclPhase" ;
171 + rdfs:range xsd:string ;
172 + tables:columnIndex "1"^^xsd:int .
173 +
174 +facilityfixed:fclStartupDate
175 + rdf:type owl:DatatypeProperty ;
176 + rdfs:domain facilityfixed:FacilityFixed ;
177 + rdfs:label "fclStartupDate" ;
178 + rdfs:range xsd:string ;
179 + tables:columnIndex "8"^^xsd:int .
180 +
181 +facilityfixed:fclSurface
182 + rdf:type owl:DatatypeProperty ;
183 + rdfs:domain facilityfixed:FacilityFixed ;
184 + rdfs:label "fclSurface" ;
185 + rdfs:range xsd:string ;
186 + tables:columnIndex "2"^^xsd:int .
187 +
188 +facilityfixed:fclWaterDepth
189 + rdf:type owl:DatatypeProperty ;
190 + rdfs:domain facilityfixed:FacilityFixed ;
191 + rdfs:label "fclWaterDepth" ;
192 + rdfs:range xsd:string ;
193 + tables:columnIndex "18"^^xsd:int .
1 +# baseURI: file:///www.reportinghub.no/transform/npd/facilitymoveable
2 +# imports: http://topbraid.org/tables
3 +
4 +@prefix facilitymoveable: <file:///www.reportinghub.no/transform/npd/facilitymoveable#> .
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/facilitymoveable>
12 + rdf:type owl:Ontology ;
13 + owl:imports <http://topbraid.org/tables> .
14 +
15 +facilitymoveable:FacilityMoveable
16 + rdf:type owl:Class ;
17 + rdfs:label "FacilityMoveable"^^xsd:string ;
18 + tables:sheetIndex "0"^^xsd:int .
19 +
20 +facilitymoveable:datesyncNPD
21 + rdf:type owl:DatatypeProperty ;
22 + rdfs:domain facilitymoveable:FacilityMoveable ;
23 + rdfs:label "datesyncNPD" ;
24 + rdfs:range xsd:string ;
25 + tables:columnIndex "7"^^xsd:int .
26 +
27 +facilitymoveable:fclCurrentRespCompanyName
28 + rdf:type owl:DatatypeProperty ;
29 + rdfs:domain facilitymoveable:FacilityMoveable ;
30 + rdfs:label "fclCurrentRespCompanyName" ;
31 + rdfs:range xsd:string ;
32 + tables:columnIndex "1"^^xsd:int .
33 +
34 +facilitymoveable:fclFactPageUrl
35 + rdf:type owl:DatatypeProperty ;
36 + rdfs:domain facilitymoveable:FacilityMoveable ;
37 + rdfs:label "fclFactPageUrl" ;
38 + rdfs:range xsd:string ;
39 + tables:columnIndex "4"^^xsd:int .
40 +
41 +facilitymoveable:fclKind
42 + rdf:type owl:DatatypeProperty ;
43 + rdfs:domain facilitymoveable:FacilityMoveable ;
44 + rdfs:label "fclKind" ;
45 + rdfs:range xsd:string ;
46 + tables:columnIndex "2"^^xsd:int .
47 +
48 +facilitymoveable:fclName
49 + rdf:type owl:DatatypeProperty ;
50 + rdfs:domain facilitymoveable:FacilityMoveable ;
51 + rdfs:label "fclName"^^xsd:string ;
52 + rdfs:range xsd:string ;
53 + tables:columnIndex "0"^^xsd:int .
54 +
55 +facilitymoveable:fclNationName
56 + rdf:type owl:DatatypeProperty ;
57 + rdfs:domain facilitymoveable:FacilityMoveable ;
58 + rdfs:label "fclNationName" ;
59 + rdfs:range xsd:string ;
60 + tables:columnIndex "3"^^xsd:int .
61 +
62 +facilitymoveable:fclNpdidCurrentRespCompany
63 + rdf:type owl:DatatypeProperty ;
64 + rdfs:domain facilitymoveable:FacilityMoveable ;
65 + rdfs:label "fclNpdidCurrentRespCompany" ;
66 + rdfs:range xsd:string ;
67 + tables:columnIndex "6"^^xsd:int .
68 +
69 +facilitymoveable:fclNpdidFacility
70 + rdf:type owl:DatatypeProperty ;
71 + rdfs:domain facilitymoveable:FacilityMoveable ;
72 + rdfs:label "fclNpdidFacility" ;
73 + rdfs:range xsd:string ;
74 + tables:columnIndex "5"^^xsd:int .
1 +# baseURI: file:///www.reportinghub.no/transform/npd/field
2 +# imports: http://topbraid.org/tables
3 +
4 +@prefix field: <file:///www.reportinghub.no/transform/npd/field#> .
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/field>
12 + rdf:type owl:Ontology ;
13 + owl:imports <http://topbraid.org/tables> .
14 +
15 +field:Field
16 + rdf:type owl:Class ;
17 + rdfs:label "Field"^^xsd:string ;
18 + tables:sheetIndex "0"^^xsd:int .
19 +
20 +field:cmpLongName
21 + rdf:type owl:DatatypeProperty ;
22 + rdfs:domain field:Field ;
23 + rdfs:label "cmpLongName" ;
24 + rdfs:range xsd:string ;
25 + tables:columnIndex "1"^^xsd:int .
26 +
27 +field:cmpNpdidCompany
28 + rdf:type owl:DatatypeProperty ;
29 + rdfs:domain field:Field ;
30 + rdfs:label "cmpNpdidCompany" ;
31 + rdfs:range xsd:string ;
32 + tables:columnIndex "10"^^xsd:int .
33 +
34 +field:datesyncNPD
35 + rdf:type owl:DatatypeProperty ;
36 + rdfs:domain field:Field ;
37 + rdfs:label "DatesyncNPD" ;
38 + rdfs:range xsd:string ;
39 + tables:columnIndex "13"^^xsd:int .
40 +
41 +field:fldCurrentActivitySatus
42 + rdf:type owl:DatatypeProperty ;
43 + rdfs:domain field:Field ;
44 + rdfs:label "fldCurrentActivitySatus" ;
45 + rdfs:range xsd:string ;
46 + tables:columnIndex "2"^^xsd:int .
47 +
48 +field:fldFactMapUrl
49 + rdf:type owl:DatatypeProperty ;
50 + rdfs:domain field:Field ;
51 + rdfs:label "fldFactMapUrl" ;
52 + rdfs:range xsd:string ;
53 + tables:columnIndex "12"^^xsd:int .
54 +
55 +field:fldFactPageUrl
56 + rdf:type owl:DatatypeProperty ;
57 + rdfs:domain field:Field ;
58 + rdfs:label "fldFactPageUrl" ;
59 + rdfs:range xsd:string ;
60 + tables:columnIndex "11"^^xsd:int .
61 +
62 +field:fldName
63 + rdf:type owl:DatatypeProperty ;
64 + rdfs:domain field:Field ;
65 + rdfs:label "fldName"^^xsd:string ;
66 + rdfs:range xsd:string ;
67 + tables:columnIndex "0"^^xsd:int .
68 +
69 +field:fldNpdidField
70 + rdf:type owl:DatatypeProperty ;
71 + rdfs:domain field:Field ;
72 + rdfs:label "fldNpdidField" ;
73 + rdfs:range xsd:string ;
74 + tables:columnIndex "8"^^xsd:int .
75 +
76 +field:fldNpdidOwner
77 + rdf:type owl:DatatypeProperty ;
78 + rdfs:domain field:Field ;
79 + rdfs:label "fldNpdidOwner" ;
80 + rdfs:range xsd:string ;
81 + tables:columnIndex "7"^^xsd:int .
82 +
83 +field:fldOwnerKind
84 + rdf:type owl:DatatypeProperty ;
85 + rdfs:domain field:Field ;
86 + rdfs:label "fldOwnerKind" ;
87 + rdfs:range xsd:string ;
88 + tables:columnIndex "5"^^xsd:int .
89 +
90 +field:fldOwnerName
91 + rdf:type owl:DatatypeProperty ;
92 + rdfs:domain field:Field ;
93 + rdfs:label "fldOwnerName" ;
94 + rdfs:range xsd:string ;
95 + tables:columnIndex "6"^^xsd:int .
96 +
97 +field:wlbCompletionDate
98 + rdf:type owl:DatatypeProperty ;
99 + rdfs:domain field:Field ;
100 + rdfs:label "wlbCompletionDate" ;
101 + rdfs:range xsd:string ;
102 + tables:columnIndex "4"^^xsd:int .
103 +
104 +field:wlbName
105 + rdf:type owl:DatatypeProperty ;
106 + rdfs:domain field:Field ;
107 + rdfs:label "wlbName" ;
108 + rdfs:range xsd:string ;
109 + tables:columnIndex "3"^^xsd:int .
110 +
111 +field:wlbNpdidWellbore
112 + rdf:type owl:DatatypeProperty ;
113 + rdfs:domain field:Field ;
114 + rdfs:label "wlbNpdidWellbore" ;
115 + rdfs:range xsd:string ;
116 + tables:columnIndex "9"^^xsd:int .