Holger Knublauch

Adjusted some SPIN functions to align with NPD names

Added NPDI example file for all known well/bore IDs
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 13
14 <http://www.reportinghub.no/ep/schema/1.0/activity> 14 <http://www.reportinghub.no/ep/schema/1.0/activity>
15 rdf:type owl:Ontology ; 15 rdf:type owl:Ontology ;
16 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> ; 16 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.reportinghub.no/ep/schema/1.0/well> ;
17 owl:versionInfo "0.1.0"^^xsd:string . 17 owl:versionInfo "0.1.0"^^xsd:string .
18 18
19 ep-activity:Activity 19 ep-activity:Activity
...@@ -22,33 +22,33 @@ ep-activity:Activity ...@@ -22,33 +22,33 @@ ep-activity:Activity
22 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ; 22 rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
23 rdfs:subClassOf 23 rdfs:subClassOf
24 [ rdf:type owl:Restriction ; 24 [ rdf:type owl:Restriction ;
25 - owl:allValuesFrom ep-activity:Activity ; 25 + owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
26 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#during> 26 + owl:onProperty ep-activity:finishedAt
27 ] ; 27 ] ;
28 rdfs:subClassOf 28 rdfs:subClassOf
29 [ rdf:type owl:Restriction ; 29 [ rdf:type owl:Restriction ;
30 - owl:allValuesFrom ep-activity:Activity ; 30 + owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
31 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps> 31 + owl:onProperty ep-activity:startedAt
32 ] ; 32 ] ;
33 rdfs:subClassOf 33 rdfs:subClassOf
34 [ rdf:type owl:Restriction ; 34 [ rdf:type owl:Restriction ;
35 owl:allValuesFrom ep-activity:Activity ; 35 owl:allValuesFrom ep-activity:Activity ;
36 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#before> 36 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
37 ] ; 37 ] ;
38 rdfs:subClassOf 38 rdfs:subClassOf
39 [ rdf:type owl:Restriction ; 39 [ rdf:type owl:Restriction ;
40 owl:allValuesFrom ep-activity:Activity ; 40 owl:allValuesFrom ep-activity:Activity ;
41 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#after> 41 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
42 ] ; 42 ] ;
43 rdfs:subClassOf 43 rdfs:subClassOf
44 [ rdf:type owl:Restriction ; 44 [ rdf:type owl:Restriction ;
45 - owl:maxCardinality "1"^^xsd:nonNegativeInteger ; 45 + owl:allValuesFrom ep-activity:Activity ;
46 - owl:onProperty ep-activity:startedAt 46 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
47 ] ; 47 ] ;
48 rdfs:subClassOf 48 rdfs:subClassOf
49 [ rdf:type owl:Restriction ; 49 [ rdf:type owl:Restriction ;
50 - owl:maxCardinality "1"^^xsd:nonNegativeInteger ; 50 + owl:allValuesFrom ep-activity:Activity ;
51 - owl:onProperty ep-activity:finishedAt 51 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
52 ] . 52 ] .
53 53
54 ep-activity:DailyDrillingActivity 54 ep-activity:DailyDrillingActivity
...@@ -57,13 +57,13 @@ ep-activity:DailyDrillingActivity ...@@ -57,13 +57,13 @@ ep-activity:DailyDrillingActivity
57 rdfs:subClassOf ep-activity:DrillingActivity ; 57 rdfs:subClassOf ep-activity:DrillingActivity ;
58 rdfs:subClassOf 58 rdfs:subClassOf
59 [ rdf:type owl:Restriction ; 59 [ rdf:type owl:Restriction ;
60 - owl:allValuesFrom ep-activity:DrillingActivity ; 60 + owl:allValuesFrom ep-activity:Activity ;
61 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#last> 61 + owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart>
62 ] ; 62 ] ;
63 rdfs:subClassOf 63 rdfs:subClassOf
64 [ rdf:type owl:Restriction ; 64 [ rdf:type owl:Restriction ;
65 - owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore> ; 65 + owl:allValuesFrom ep-activity:DrillingActivity ;
66 - owl:onProperty ep-activity:onWellBore 66 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
67 ] ; 67 ] ;
68 rdfs:subClassOf 68 rdfs:subClassOf
69 [ rdf:type owl:Restriction ; 69 [ rdf:type owl:Restriction ;
...@@ -72,13 +72,13 @@ ep-activity:DailyDrillingActivity ...@@ -72,13 +72,13 @@ ep-activity:DailyDrillingActivity
72 ] ; 72 ] ;
73 rdfs:subClassOf 73 rdfs:subClassOf
74 [ rdf:type owl:Restriction ; 74 [ rdf:type owl:Restriction ;
75 - owl:allValuesFrom ep-activity:DrillingActivity ; 75 + owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore> ;
76 - owl:onProperty <http://www.linkedmodel.org/schema/ordered#first> 76 + owl:onProperty ep-activity:onWellBore
77 ] ; 77 ] ;
78 rdfs:subClassOf 78 rdfs:subClassOf
79 [ rdf:type owl:Restriction ; 79 [ rdf:type owl:Restriction ;
80 - owl:allValuesFrom ep-activity:Activity ; 80 + owl:allValuesFrom ep-activity:DrillingActivity ;
81 - owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart> 81 + owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
82 ] . 82 ] .
83 83
84 ep-activity:DailyDrillingReportFinalisationType 84 ep-activity:DailyDrillingReportFinalisationType
...@@ -132,13 +132,13 @@ ep-activity:DrillingActivity ...@@ -132,13 +132,13 @@ ep-activity:DrillingActivity
132 rdfs:subClassOf ep-activity:Activity . 132 rdfs:subClassOf ep-activity:Activity .
133 133
134 ep-activity:FormationIntegrityTest 134 ep-activity:FormationIntegrityTest
135 - rdf:type ep-activity:PressureTestType , owl:Class ; 135 + rdf:type owl:Class , ep-activity:PressureTestType ;
136 rdfs:label "formation integrity test"^^xsd:string ; 136 rdfs:label "formation integrity test"^^xsd:string ;
137 rdfs:subClassOf ep-activity:WellBorePressureTest ; 137 rdfs:subClassOf ep-activity:WellBorePressureTest ;
138 owl:disjointWith ep-activity:LeakOffTest . 138 owl:disjointWith ep-activity:LeakOffTest .
139 139
140 ep-activity:LeakOffTest 140 ep-activity:LeakOffTest
141 - rdf:type ep-activity:PressureTestType , owl:Class ; 141 + rdf:type owl:Class , ep-activity:PressureTestType ;
142 rdfs:label "leak-off test"^^xsd:string ; 142 rdfs:label "leak-off test"^^xsd:string ;
143 rdfs:subClassOf ep-activity:WellBorePressureTest ; 143 rdfs:subClassOf ep-activity:WellBorePressureTest ;
144 owl:disjointWith ep-activity:FormationIntegrityTest . 144 owl:disjointWith ep-activity:FormationIntegrityTest .
...@@ -174,7 +174,7 @@ ep-activity:OffshoreWellActivity ...@@ -174,7 +174,7 @@ ep-activity:OffshoreWellActivity
174 rdfs:subClassOf ep-activity:OffshoreActivity ; 174 rdfs:subClassOf ep-activity:OffshoreActivity ;
175 rdfs:subClassOf 175 rdfs:subClassOf
176 [ rdf:type owl:Restriction ; 176 [ rdf:type owl:Restriction ;
177 - owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ; 177 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
178 owl:onProperty ep-activity:onWell 178 owl:onProperty ep-activity:onWell
179 ] ; 179 ] ;
180 rdfs:subClassOf 180 rdfs:subClassOf
...@@ -184,7 +184,7 @@ ep-activity:OffshoreWellActivity ...@@ -184,7 +184,7 @@ ep-activity:OffshoreWellActivity
184 ] ; 184 ] ;
185 rdfs:subClassOf 185 rdfs:subClassOf
186 [ rdf:type owl:Restriction ; 186 [ rdf:type owl:Restriction ;
187 - owl:cardinality "1"^^xsd:nonNegativeInteger ; 187 + owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ;
188 owl:onProperty ep-activity:onWell 188 owl:onProperty ep-activity:onWell
189 ] . 189 ] .
190 190
...@@ -229,7 +229,7 @@ ep-activity:WellBorePressureTest ...@@ -229,7 +229,7 @@ ep-activity:WellBorePressureTest
229 rdfs:subClassOf ep-activity:Activity . 229 rdfs:subClassOf ep-activity:Activity .
230 230
231 ep-activity:createdAt 231 ep-activity:createdAt
232 - rdf:type owl:FunctionalProperty , owl:DatatypeProperty ; 232 + rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
233 rdfs:label "created at"^^xsd:string ; 233 rdfs:label "created at"^^xsd:string ;
234 rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> . 234 rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
235 235
...@@ -251,7 +251,7 @@ ep-activity:onWell ...@@ -251,7 +251,7 @@ ep-activity:onWell
251 rdfs:label "on well"^^xsd:string . 251 rdfs:label "on well"^^xsd:string .
252 252
253 ep-activity:onWellBore 253 ep-activity:onWellBore
254 - rdf:type owl:FunctionalProperty , owl:ObjectProperty ; 254 + rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
255 rdfs:label "on WellBore"^^xsd:string . 255 rdfs:label "on WellBore"^^xsd:string .
256 256
257 ep-activity:reportOn 257 ep-activity:reportOn
...@@ -264,17 +264,8 @@ ep-activity:startedAt ...@@ -264,17 +264,8 @@ ep-activity:startedAt
264 rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> . 264 rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
265 265
266 ep-activity:wellBoreDrillingType 266 ep-activity:wellBoreDrillingType
267 - rdf:type owl:FunctionalProperty , owl:ObjectProperty ; 267 + rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
268 rdfs:domain ep-activity:DrillingActivity ; 268 rdfs:domain ep-activity:DrillingActivity ;
269 rdfs:label "has sub activity"^^xsd:string ; 269 rdfs:label "has sub activity"^^xsd:string ;
270 rdfs:range ep-activity:WellBoreDrillingType ; 270 rdfs:range ep-activity:WellBoreDrillingType ;
271 rdfs:subPropertyOf rdf:type . 271 rdfs:subPropertyOf rdf:type .
272 -
273 -<http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
274 - rdf:type ep-activity:DailyDrillingReportFinalisationType .
275 -
276 -<http://www.reportinghub.no/ep/schema/report#NormalDailyDrillingReport>
277 - rdf:type ep-activity:DailyDrillingReportFinalisationType .
278 -
279 -<http://www.reportinghub.no/ep/schema/report#PreliminaryDailyDrillingReport>
280 - rdf:type ep-activity:DailyDrillingReportFinalisationType .
......
This diff could not be displayed because it is too large.
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
7 # imports: http://www.reportinghub.no/ep/schema/1.0/equipment 7 # imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 # imports: http://www.reportinghub.no/ep/schema/1.0/report 8 # imports: http://www.reportinghub.no/ep/schema/1.0/report
9 # imports: http://www.reportinghub.no/ep/schema/1.0/well 9 # imports: http://www.reportinghub.no/ep/schema/1.0/well
10 +# imports: http://www.reportinghub.no/spin/rh
10 11
11 @prefix activity-purpose: <http://www.reportinghub.no/ep/schema/1.0/activity-purpose#> . 12 @prefix activity-purpose: <http://www.reportinghub.no/ep/schema/1.0/activity-purpose#> .
12 @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 13 @prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
...@@ -23,7 +24,7 @@ ...@@ -23,7 +24,7 @@
23 24
24 <http://www.reportinghub.no/ep/spin/1.1/lib> 25 <http://www.reportinghub.no/ep/spin/1.1/lib>
25 rdf:type owl:Ontology ; 26 rdf:type owl:Ontology ;
26 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ; 27 + owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ;
27 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 28 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
28 29
29 ep-spin-lib:Function 30 ep-spin-lib:Function
...@@ -41,7 +42,7 @@ ep-spin-lib:buildDailyDrillingActivityPurposeTypeURI ...@@ -41,7 +42,7 @@ ep-spin-lib:buildDailyDrillingActivityPurposeTypeURI
41 sp:where ([ rdf:type sp:Bind ; 42 sp:where ([ rdf:type sp:Bind ;
42 sp:expression 43 sp:expression
43 [ rdf:type ep-spin-lib:buildURI ; 44 [ rdf:type ep-spin-lib:buildURI ;
44 - sp:arg1 "https://www.reportinghub.no/ep/schema/1.1/activity-purpose#" ; 45 + sp:arg1 "http://www.reportinghub.no/ep/schema/activity-purpose#" ;
45 sp:arg2 spin:_arg1 46 sp:arg2 spin:_arg1
46 ] ; 47 ] ;
47 sp:variable _:b1 48 sp:variable _:b1
...@@ -145,7 +146,7 @@ ep-spin-lib:buildURI ...@@ -145,7 +146,7 @@ ep-spin-lib:buildURI
145 sp:resultVariables (_:b6) ; 146 sp:resultVariables (_:b6) ;
146 sp:where ([ rdf:type sp:Bind ; 147 sp:where ([ rdf:type sp:Bind ;
147 sp:expression 148 sp:expression
148 - [ rdf:type smf:resource ; 149 + [ rdf:type sp:iri ;
149 sp:arg1 [ rdf:type fn:concat ; 150 sp:arg1 [ rdf:type fn:concat ;
150 sp:arg1 spin:_arg1 ; 151 sp:arg1 spin:_arg1 ;
151 sp:arg2 spin:_arg2 152 sp:arg2 spin:_arg2
...@@ -165,47 +166,13 @@ ep-spin-lib:buildURI ...@@ -165,47 +166,13 @@ ep-spin-lib:buildURI
165 spl:valueType xsd:string 166 spl:valueType xsd:string
166 ] . 167 ] .
167 168
168 -ep-spin-lib:buildWellBoreURI
169 - rdf:type spin:Function ;
170 - rdfs:label "build well bore URI"^^xsd:string ;
171 - rdfs:subClassOf ep-spin-lib:Function ;
172 - spin:body
173 - [ rdf:type sp:Select ;
174 - sp:resultVariables (_:b7) ;
175 - sp:where ([ rdf:type sp:Bind ;
176 - sp:expression
177 - [ rdf:type ep-spin-lib:buildURI ;
178 - sp:arg1 "https://www.reportinghub.no/ep/data/WellBore/" ;
179 - sp:arg2 spin:_arg1
180 - ] ;
181 - sp:variable _:b7
182 - ])
183 - ] .
184 -
185 -ep-spin-lib:buildWellURI
186 - rdf:type spin:Function ;
187 - rdfs:label "build well URI"^^xsd:string ;
188 - rdfs:subClassOf ep-spin-lib:Function ;
189 - spin:body
190 - [ rdf:type sp:Select ;
191 - sp:resultVariables (_:b8) ;
192 - sp:where ([ rdf:type sp:Bind ;
193 - sp:expression
194 - [ rdf:type ep-spin-lib:buildURI ;
195 - sp:arg1 "https://www.reportinghub.no/ep/data/Well#" ;
196 - sp:arg2 spin:_arg1
197 - ] ;
198 - sp:variable _:b8
199 - ])
200 - ] .
201 -
202 ep-spin-lib:normalizeString 169 ep-spin-lib:normalizeString
203 rdf:type spin:Function ; 170 rdf:type spin:Function ;
204 rdfs:label "normalize string"^^xsd:string ; 171 rdfs:label "normalize string"^^xsd:string ;
205 rdfs:subClassOf ep-spin-lib:Function ; 172 rdfs:subClassOf ep-spin-lib:Function ;
206 spin:body 173 spin:body
207 [ rdf:type sp:Select ; 174 [ rdf:type sp:Select ;
208 - sp:resultVariables (_:b9) ; 175 + sp:resultVariables (_:b7) ;
209 sp:where ([ rdf:type sp:Bind ; 176 sp:where ([ rdf:type sp:Bind ;
210 sp:expression 177 sp:expression
211 [ rdf:type smf:regex ; 178 [ rdf:type smf:regex ;
...@@ -213,67 +180,67 @@ ep-spin-lib:normalizeString ...@@ -213,67 +180,67 @@ ep-spin-lib:normalizeString
213 sp:arg2 "\\((.*)\\)" ; 180 sp:arg2 "\\((.*)\\)" ;
214 sp:arg3 "" 181 sp:arg3 ""
215 ] ; 182 ] ;
216 - sp:variable _:b10 183 + sp:variable _:b8
217 ] [ rdf:type sp:Bind ; 184 ] [ rdf:type sp:Bind ;
218 sp:expression 185 sp:expression
219 [ rdf:type smf:trim ; 186 [ rdf:type smf:trim ;
220 - sp:arg1 _:b10 187 + sp:arg1 _:b8
221 ] ; 188 ] ;
222 - sp:variable _:b11 189 + sp:variable _:b9
223 ] [ rdf:type sp:Bind ; 190 ] [ rdf:type sp:Bind ;
224 sp:expression 191 sp:expression
225 [ rdf:type smf:encodeURL ; 192 [ rdf:type smf:encodeURL ;
226 - sp:arg1 _:b11 193 + sp:arg1 _:b9
227 ] ; 194 ] ;
228 - sp:variable _:b12 195 + sp:variable _:b10
229 ] [ rdf:type sp:Bind ; 196 ] [ rdf:type sp:Bind ;
230 sp:expression 197 sp:expression
231 [ rdf:type smf:regex ; 198 [ rdf:type smf:regex ;
232 - sp:arg1 _:b12 ; 199 + sp:arg1 _:b10 ;
233 sp:arg2 "%2F" ; 200 sp:arg2 "%2F" ;
234 sp:arg3 "_" 201 sp:arg3 "_"
235 ] ; 202 ] ;
236 - sp:variable _:b13 203 + sp:variable _:b11
237 ] [ rdf:type sp:Bind ; 204 ] [ rdf:type sp:Bind ;
238 sp:expression 205 sp:expression
239 [ rdf:type smf:regex ; 206 [ rdf:type smf:regex ;
240 - sp:arg1 _:b13 ; 207 + sp:arg1 _:b11 ;
241 sp:arg2 "%[0-9A-F][0-9A-F]" ; 208 sp:arg2 "%[0-9A-F][0-9A-F]" ;
242 sp:arg3 "" 209 sp:arg3 ""
243 ] ; 210 ] ;
244 - sp:variable _:b14 211 + sp:variable _:b12
245 ] [ rdf:type sp:Bind ; 212 ] [ rdf:type sp:Bind ;
246 sp:expression 213 sp:expression
247 [ rdf:type smf:regex ; 214 [ rdf:type smf:regex ;
248 - sp:arg1 _:b14 ; 215 + sp:arg1 _:b12 ;
249 sp:arg2 "\\+" ; 216 sp:arg2 "\\+" ;
250 sp:arg3 "_" 217 sp:arg3 "_"
251 ] ; 218 ] ;
252 - sp:variable _:b15 219 + sp:variable _:b13
253 ] [ rdf:type sp:Bind ; 220 ] [ rdf:type sp:Bind ;
254 sp:expression 221 sp:expression
255 [ rdf:type smf:regex ; 222 [ rdf:type smf:regex ;
256 - sp:arg1 _:b15 ; 223 + sp:arg1 _:b13 ;
257 sp:arg2 "_+" ; 224 sp:arg2 "_+" ;
258 sp:arg3 "_" 225 sp:arg3 "_"
259 ] ; 226 ] ;
260 - sp:variable _:b16 227 + sp:variable _:b14
261 ] [ rdf:type sp:Bind ; 228 ] [ rdf:type sp:Bind ;
262 sp:expression 229 sp:expression
263 [ rdf:type smf:regex ; 230 [ rdf:type smf:regex ;
264 - sp:arg1 _:b16 ; 231 + sp:arg1 _:b14 ;
265 sp:arg2 "\\*" ; 232 sp:arg2 "\\*" ;
266 sp:arg3 "" 233 sp:arg3 ""
267 ] ; 234 ] ;
268 - sp:variable _:b17 235 + sp:variable _:b15
269 ] [ rdf:type sp:Bind ; 236 ] [ rdf:type sp:Bind ;
270 sp:expression 237 sp:expression
271 [ rdf:type xsd:string ; 238 [ rdf:type xsd:string ;
272 sp:arg1 [ rdf:type smf:upperCase ; 239 sp:arg1 [ rdf:type smf:upperCase ;
273 - sp:arg1 _:b17 240 + sp:arg1 _:b15
274 ] 241 ]
275 ] ; 242 ] ;
276 - sp:variable _:b9 243 + sp:variable _:b7
277 ]) 244 ])
278 ] ; 245 ] ;
279 spin:constraint 246 spin:constraint
...@@ -288,31 +255,25 @@ ep-spin-lib:selectDailyDrillingReportType ...@@ -288,31 +255,25 @@ ep-spin-lib:selectDailyDrillingReportType
288 rdfs:subClassOf ep-spin-lib:Function ; 255 rdfs:subClassOf ep-spin-lib:Function ;
289 spin:body 256 spin:body
290 [ rdf:type sp:Select ; 257 [ rdf:type sp:Select ;
291 - sp:resultVariables (_:b18) ; 258 + sp:resultVariables (_:b16) ;
292 sp:where ([ rdf:type sp:Bind ; 259 sp:where ([ rdf:type sp:Bind ;
293 sp:expression 260 sp:expression
294 - [ rdf:type smf:if ; 261 + [ rdf:type sp:if ;
295 sp:arg1 [ rdf:type sp:eq ; 262 sp:arg1 [ rdf:type sp:eq ;
296 sp:arg1 spin:_arg1 ; 263 sp:arg1 spin:_arg1 ;
297 sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_normal> 264 sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_normal>
298 ] ; 265 ] ;
299 sp:arg2 <http://www.reportinghub.no/ep/schema/report#NormalDailyDrillingReport> ; 266 sp:arg2 <http://www.reportinghub.no/ep/schema/report#NormalDailyDrillingReport> ;
300 - sp:arg3 [ rdf:type smf:if ; 267 + sp:arg3 [ rdf:type sp:if ;
301 sp:arg1 [ rdf:type sp:eq ; 268 sp:arg1 [ rdf:type sp:eq ;
302 sp:arg1 spin:_arg1 ; 269 sp:arg1 spin:_arg1 ;
303 sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_preliminary> 270 sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_preliminary>
304 ] ; 271 ] ;
305 sp:arg2 <http://www.reportinghub.no/ep/schema/report#PreliminaryDailyDrillingReport> ; 272 sp:arg2 <http://www.reportinghub.no/ep/schema/report#PreliminaryDailyDrillingReport> ;
306 - sp:arg3 [ rdf:type smf:if ; 273 + sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
307 - sp:arg1 [ rdf:type sp:eq ;
308 - sp:arg1 spin:_arg1 ;
309 - sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#ORV_final>
310 - ] ;
311 - sp:arg2 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
312 - ]
313 ] 274 ]
314 ] ; 275 ] ;
315 - sp:variable _:b18 276 + sp:variable _:b16
316 ]) 277 ])
317 ] . 278 ] .
318 279
...@@ -322,7 +283,7 @@ ep-spin-lib:selectDrillingActivityPurposeType ...@@ -322,7 +283,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
322 rdfs:subClassOf ep-spin-lib:Function ; 283 rdfs:subClassOf ep-spin-lib:Function ;
323 spin:body 284 spin:body
324 [ rdf:type sp:Select ; 285 [ rdf:type sp:Select ;
325 - sp:resultVariables (_:b19) ; 286 + sp:resultVariables (_:b17) ;
326 sp:where ([ rdf:type sp:Bind ; 287 sp:where ([ rdf:type sp:Bind ;
327 sp:expression 288 sp:expression
328 [ rdf:type smf:if ; 289 [ rdf:type smf:if ;
...@@ -906,7 +867,7 @@ ep-spin-lib:selectDrillingActivityPurposeType ...@@ -906,7 +867,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
906 ] 867 ]
907 ] 868 ]
908 ] ; 869 ] ;
909 - sp:variable _:b19 870 + sp:variable _:b17
910 ]) 871 ])
911 ] . 872 ] .
912 873
...@@ -916,7 +877,7 @@ ep-spin-lib:selectPressureTestType ...@@ -916,7 +877,7 @@ ep-spin-lib:selectPressureTestType
916 rdfs:subClassOf ep-spin-lib:Function ; 877 rdfs:subClassOf ep-spin-lib:Function ;
917 spin:body 878 spin:body
918 [ rdf:type sp:Select ; 879 [ rdf:type sp:Select ;
919 - sp:resultVariables (_:b20) ; 880 + sp:resultVariables (_:b18) ;
920 sp:where ([ rdf:type sp:Bind ; 881 sp:where ([ rdf:type sp:Bind ;
921 sp:expression 882 sp:expression
922 [ rdf:type smf:if ; 883 [ rdf:type smf:if ;
...@@ -933,7 +894,7 @@ ep-spin-lib:selectPressureTestType ...@@ -933,7 +894,7 @@ ep-spin-lib:selectPressureTestType
933 sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest> 894 sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#LeakOffTest>
934 ] 895 ]
935 ] ; 896 ] ;
936 - sp:variable _:b20 897 + sp:variable _:b18
937 ]) 898 ])
938 ] . 899 ] .
939 900
...@@ -943,105 +904,57 @@ ep-spin-lib:selectWellBoreDrillingType ...@@ -943,105 +904,57 @@ ep-spin-lib:selectWellBoreDrillingType
943 rdfs:subClassOf ep-spin-lib:Function ; 904 rdfs:subClassOf ep-spin-lib:Function ;
944 spin:body 905 spin:body
945 [ rdf:type sp:Select ; 906 [ rdf:type sp:Select ;
946 - sp:resultVariables (_:b21) ; 907 + sp:resultVariables (_:b19) ;
947 - sp:where ([ rdf:type sp:Bind ; 908 + sp:where ([ sp:object _:b19 ;
948 - sp:expression 909 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#mapsTo> ;
949 - [ rdf:type smf:if ; 910 + sp:subject spin:_arg1
950 - sp:arg1 [ rdf:type sp:eq ;
951 - sp:arg1 spin:_arg1 ;
952 - sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_bypass>
953 - ] ;
954 - sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-bypass> ;
955 - sp:arg3 [ rdf:type smf:if ;
956 - sp:arg1 [ rdf:type sp:eq ;
957 - sp:arg1 spin:_arg1 ;
958 - sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_initial>
959 - ] ;
960 - sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-initial> ;
961 - sp:arg3 [ rdf:type smf:if ;
962 - sp:arg1 [ rdf:type sp:eq ;
963 - sp:arg1 spin:_arg1 ;
964 - sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_redrill>
965 - ] ;
966 - sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-redrill> ;
967 - sp:arg3 [ rdf:type smf:if ;
968 - sp:arg1 [ rdf:type sp:eq ;
969 - sp:arg1 spin:_arg1 ;
970 - sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_reentry>
971 - ] ;
972 - sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-re-entry> ;
973 - sp:arg3 [ rdf:type smf:if ;
974 - sp:arg1 [ rdf:type sp:eq ;
975 - sp:arg1 spin:_arg1 ;
976 - sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_respud>
977 - ] ;
978 - sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-re-spud> ;
979 - sp:arg3 [ rdf:type smf:if ;
980 - sp:arg1 [ rdf:type sp:eq ;
981 - sp:arg1 spin:_arg1 ;
982 - sp:arg2 <http://www.reportinghub.no/ep/schema/ddr#W_sidetrack>
983 - ] ;
984 - sp:arg2 <http://www.reportinghub.no/ep/schema/1.0/activity#Drill-sidetrack>
985 - ]
986 - ]
987 - ]
988 - ]
989 - ]
990 - ] ;
991 - sp:variable _:b21
992 ]) 911 ])
993 ] . 912 ] .
994 913
995 -_:b1 sp:varName "uri"^^xsd:string . 914 +_:b19
996 - 915 + sp:varName "wellBoreDrillingType"^^xsd:string .
997 -_:b2 sp:varName "uri"^^xsd:string .
998 -
999 -_:b3 sp:varName "uri"^^xsd:string .
1000 -
1001 -_:b4 sp:varName "uri"^^xsd:string .
1002 916
1003 -_:b5 sp:varName "uri"^^xsd:string . 917 +_:b16
918 + sp:varName "dailyDrillingReportType"^^xsd:string .
1004 919
1005 _:b6 sp:varName "uri"^^xsd:string . 920 _:b6 sp:varName "uri"^^xsd:string .
1006 921
1007 -_:b7 sp:varName "uri"^^xsd:string . 922 +_:b1 sp:varName "uri"^^xsd:string .
1008 923
1009 -_:b8 sp:varName "uri"^^xsd:string . 924 +_:b18
925 + sp:varName "pressureTestType"^^xsd:string .
1010 926
1011 -_:b9 sp:varName "normalizedStr"^^xsd:string . 927 +_:b17
928 + sp:varName "drillingActivityPurposeType"^^xsd:string .
1012 929
1013 -_:b10 930 +_:b15
1014 - sp:varName "s1"^^xsd:string . 931 + sp:varName "t4"^^xsd:string .
1015 932
1016 -_:b11 933 +_:b14
1017 - sp:varName "s2"^^xsd:string . 934 + sp:varName "t3"^^xsd:string .
935 +
936 +_:b13
937 + sp:varName "t2"^^xsd:string .
1018 938
1019 _:b12 939 _:b12
1020 - sp:varName "t0a"^^xsd:string . 940 + sp:varName "t1"^^xsd:string .
1021 941
1022 -_:b13 942 +_:b11
1023 sp:varName "t0b"^^xsd:string . 943 sp:varName "t0b"^^xsd:string .
1024 944
1025 -_:b14 945 +_:b10
1026 - sp:varName "t1"^^xsd:string . 946 + sp:varName "t0a"^^xsd:string .
1027 947
1028 -_:b15 948 +_:b9 sp:varName "s2"^^xsd:string .
1029 - sp:varName "t2"^^xsd:string .
1030 949
1031 -_:b16 950 +_:b8 sp:varName "s1"^^xsd:string .
1032 - sp:varName "t3"^^xsd:string .
1033 951
1034 -_:b17 952 +_:b7 sp:varName "normalizedStr"^^xsd:string .
1035 - sp:varName "t4"^^xsd:string .
1036 953
1037 -_:b18 954 +_:b5 sp:varName "uri"^^xsd:string .
1038 - sp:varName "dailyDrillingReportType"^^xsd:string .
1039 955
1040 -_:b19 956 +_:b4 sp:varName "uri"^^xsd:string .
1041 - sp:varName "drillingActivityPurposeType"^^xsd:string .
1042 957
1043 -_:b20 958 +_:b3 sp:varName "uri"^^xsd:string .
1044 - sp:varName "pressureTestType"^^xsd:string .
1045 959
1046 -_:b21 960 +_:b2 sp:varName "uri"^^xsd:string .
1047 - sp:varName "wellBoreDrillingType"^^xsd:string .
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
11 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr 11 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr
12 12
13 @prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/activity#> . 13 @prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/activity#> .
14 +@prefix arg: <http://spinrdf.org/arg#> .
14 @prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> . 15 @prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
15 @prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> . 16 @prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
16 @prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> . 17 @prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
...@@ -20,6 +21,7 @@ ...@@ -20,6 +21,7 @@
20 @prefix owl: <http://www.w3.org/2002/07/owl#> . 21 @prefix owl: <http://www.w3.org/2002/07/owl#> .
21 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 22 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
22 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 23 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
24 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
23 @prefix sp: <http://spinrdf.org/sp#> . 25 @prefix sp: <http://spinrdf.org/sp#> .
24 @prefix spin: <http://spinrdf.org/spin#> . 26 @prefix spin: <http://spinrdf.org/spin#> .
25 @prefix spl: <http://spinrdf.org/spl#> . 27 @prefix spl: <http://spinrdf.org/spl#> .
...@@ -28,208 +30,208 @@ ...@@ -28,208 +30,208 @@
28 <http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport> 30 <http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
29 spin:rule 31 spin:rule
30 [ rdf:type sp:Construct ; 32 [ rdf:type sp:Construct ;
31 - rdfs:comment "STEP 130 Transfer proprietaryCode"^^xsd:string ; 33 + rdfs:comment "STEP 127 Create part activity and temporal part of WellBore"^^xsd:string ;
32 - sp:templates ([ sp:object _:b1 ; 34 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ;
33 sp:predicate rdf:type ; 35 sp:predicate rdf:type ;
36 + sp:subject _:b1
37 + ] [ sp:object _:b1 ;
38 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
34 sp:subject _:b2 39 sp:subject _:b2
40 + ] [ sp:object _:b3 ;
41 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
42 + sp:subject _:b1
43 + ] [ sp:object _:b4 ;
44 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
45 + sp:subject _:b1
46 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
47 + sp:predicate rdf:type ;
48 + sp:subject _:b5
49 + ] [ sp:object _:b6 ;
50 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
51 + sp:subject _:b5
52 + ] [ sp:object _:b5 ;
53 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
54 + sp:subject _:b1
35 ]) ; 55 ]) ;
36 - sp:where ([ sp:object _:b3 ; 56 + sp:where ([ sp:object _:b7 ;
37 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 57 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
38 sp:subject spin:_this 58 sp:subject spin:_this
39 - ] [ sp:object _:b4 ; 59 + ] [ sp:object _:b8 ;
60 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
61 + sp:subject spin:_this
62 + ] [ sp:object _:b9 ;
40 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ; 63 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
41 sp:subject spin:_this 64 sp:subject spin:_this
42 - ] [ sp:object _:b5 ; 65 + ] [ sp:object _:b10 ;
43 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ; 66 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
44 - sp:subject _:b4 67 + sp:subject _:b9
45 - ] [ sp:object _:b6 ; 68 + ] [ sp:object _:b3 ;
46 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 69 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
47 - sp:subject _:b4 70 + sp:subject _:b9
48 - ] [ sp:object _:b7 ; 71 + ] [ sp:object _:b4 ;
49 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumProprietaryCode> ; 72 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
50 - sp:subject _:b4 73 + sp:subject _:b9
51 ] [ rdf:type sp:Bind ; 74 ] [ rdf:type sp:Bind ;
52 sp:expression 75 sp:expression
53 [ rdf:type ep-spin-lib:normalizeString ; 76 [ rdf:type ep-spin-lib:normalizeString ;
54 - sp:arg1 _:b3 77 + sp:arg1 _:b7
55 ] ; 78 ] ;
56 - sp:variable _:b8 79 + sp:variable _:b11
57 ] [ rdf:type sp:Bind ; 80 ] [ rdf:type sp:Bind ;
58 sp:expression 81 sp:expression
59 [ rdf:type ep-spin-lib:buildPartActivityURI ; 82 [ rdf:type ep-spin-lib:buildPartActivityURI ;
60 - sp:arg1 _:b8 ; 83 + sp:arg1 _:b11 ;
61 - sp:arg2 _:b6 ; 84 + sp:arg2 _:b3 ;
62 - sp:arg3 _:b5 85 + sp:arg3 _:b10
86 + ] ;
87 + sp:variable _:b1
88 + ] [ rdf:type sp:Bind ;
89 + sp:expression
90 + [ rdf:type rhspin:wellBoreByName ;
91 + arg:wellBoreName _:b7
92 + ] ;
93 + sp:variable _:b6
94 + ] [ rdf:type sp:Bind ;
95 + sp:expression
96 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
97 + sp:arg1 _:b11 ;
98 + sp:arg2 _:b8
63 ] ; 99 ] ;
64 sp:variable _:b2 100 sp:variable _:b2
65 ] [ rdf:type sp:Bind ; 101 ] [ rdf:type sp:Bind ;
66 sp:expression 102 sp:expression
67 - [ rdf:type ep-spin-lib:selectDrillingActivityPurposeType ; 103 + [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
68 - sp:arg1 _:b7 104 + sp:arg1 _:b11 ;
105 + sp:arg2 _:b3 ;
106 + sp:arg3 _:b4
69 ] ; 107 ] ;
70 - sp:variable _:b1 108 + sp:variable _:b5
71 ]) 109 ])
72 ] ; 110 ] ;
73 spin:rule 111 spin:rule
74 [ rdf:type sp:Construct ; 112 [ rdf:type sp:Construct ;
75 - rdfs:comment "STEP 129 Transfer tvd"^^xsd:string ; 113 + rdfs:comment "STEP 128 Transfer md"^^xsd:string ;
76 - sp:templates ([ sp:object _:b9 ; 114 + sp:templates ([ sp:object _:b12 ;
77 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ; 115 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
78 - sp:subject _:b10 116 + sp:subject _:b13
79 ]) ; 117 ]) ;
80 - sp:where ([ sp:object _:b11 ; 118 + sp:where ([ sp:object _:b14 ;
81 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 119 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
82 sp:subject spin:_this 120 sp:subject spin:_this
83 - ] [ sp:object _:b12 ; 121 + ] [ sp:object _:b15 ;
84 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ; 122 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
85 sp:subject spin:_this 123 sp:subject spin:_this
86 - ] [ sp:object _:b13 ; 124 + ] [ sp:object _:b16 ;
87 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ; 125 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
88 - sp:subject _:b12 126 + sp:subject _:b15
89 - ] [ sp:object _:b14 ; 127 + ] [ sp:object _:b17 ;
90 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 128 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
91 - sp:subject _:b12
92 - ] [ sp:object _:b9 ;
93 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
94 - sp:subject _:b12
95 - ] [ sp:object _:b10 ;
96 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
97 sp:subject _:b15 129 sp:subject _:b15
130 + ] [ sp:object _:b12 ;
131 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
132 + sp:subject _:b15
133 + ] [ sp:object _:b13 ;
134 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
135 + sp:subject _:b18
98 ] [ rdf:type sp:Bind ; 136 ] [ rdf:type sp:Bind ;
99 sp:expression 137 sp:expression
100 [ rdf:type ep-spin-lib:normalizeString ; 138 [ rdf:type ep-spin-lib:normalizeString ;
101 - sp:arg1 _:b11 139 + sp:arg1 _:b14
102 ] ; 140 ] ;
103 - sp:variable _:b16 141 + sp:variable _:b19
104 ] [ rdf:type sp:Bind ; 142 ] [ rdf:type sp:Bind ;
105 sp:expression 143 sp:expression
106 [ rdf:type ep-spin-lib:buildPartActivityURI ; 144 [ rdf:type ep-spin-lib:buildPartActivityURI ;
107 - sp:arg1 _:b16 ; 145 + sp:arg1 _:b19 ;
108 - sp:arg2 _:b14 ; 146 + sp:arg2 _:b17 ;
109 - sp:arg3 _:b13 147 + sp:arg3 _:b16
110 ] ; 148 ] ;
111 - sp:variable _:b15 149 + sp:variable _:b18
112 ]) 150 ])
113 ] ; 151 ] ;
114 spin:rule 152 spin:rule
115 [ rdf:type sp:Construct ; 153 [ rdf:type sp:Construct ;
116 - rdfs:comment "STEP 128 Transfer md"^^xsd:string ; 154 + rdfs:comment "STEP 129 Transfer tvd"^^xsd:string ;
117 - sp:templates ([ sp:object _:b17 ; 155 + sp:templates ([ sp:object _:b20 ;
118 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ; 156 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
119 - sp:subject _:b18 157 + sp:subject _:b21
120 ]) ; 158 ]) ;
121 - sp:where ([ sp:object _:b19 ; 159 + sp:where ([ sp:object _:b22 ;
122 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 160 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
123 sp:subject spin:_this 161 sp:subject spin:_this
124 - ] [ sp:object _:b20 ; 162 + ] [ sp:object _:b23 ;
125 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ; 163 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
126 sp:subject spin:_this 164 sp:subject spin:_this
127 - ] [ sp:object _:b21 ; 165 + ] [ sp:object _:b24 ;
128 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ; 166 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
129 - sp:subject _:b20 167 + sp:subject _:b23
130 - ] [ sp:object _:b22 ; 168 + ] [ sp:object _:b25 ;
131 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 169 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
132 - sp:subject _:b20
133 - ] [ sp:object _:b17 ;
134 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#md> ;
135 - sp:subject _:b20
136 - ] [ sp:object _:b18 ;
137 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
138 sp:subject _:b23 170 sp:subject _:b23
171 + ] [ sp:object _:b20 ;
172 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#tvd> ;
173 + sp:subject _:b23
174 + ] [ sp:object _:b21 ;
175 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
176 + sp:subject _:b26
139 ] [ rdf:type sp:Bind ; 177 ] [ rdf:type sp:Bind ;
140 sp:expression 178 sp:expression
141 [ rdf:type ep-spin-lib:normalizeString ; 179 [ rdf:type ep-spin-lib:normalizeString ;
142 - sp:arg1 _:b19 180 + sp:arg1 _:b22
143 ] ; 181 ] ;
144 - sp:variable _:b24 182 + sp:variable _:b27
145 ] [ rdf:type sp:Bind ; 183 ] [ rdf:type sp:Bind ;
146 sp:expression 184 sp:expression
147 [ rdf:type ep-spin-lib:buildPartActivityURI ; 185 [ rdf:type ep-spin-lib:buildPartActivityURI ;
148 - sp:arg1 _:b24 ; 186 + sp:arg1 _:b27 ;
149 - sp:arg2 _:b22 ; 187 + sp:arg2 _:b25 ;
150 - sp:arg3 _:b21 188 + sp:arg3 _:b24
151 ] ; 189 ] ;
152 - sp:variable _:b23 190 + sp:variable _:b26
153 ]) 191 ])
154 ] ; 192 ] ;
155 spin:rule 193 spin:rule
156 [ rdf:type sp:Construct ; 194 [ rdf:type sp:Construct ;
157 - rdfs:comment "STEP 127 Create part activity and temporal part of WellBore"^^xsd:string ; 195 + rdfs:comment "STEP 130 Transfer proprietaryCode"^^xsd:string ;
158 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DrillingActivity> ; 196 + sp:templates ([ sp:object _:b28 ;
159 - sp:predicate rdf:type ;
160 - sp:subject _:b25
161 - ] [ sp:object _:b25 ;
162 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
163 - sp:subject _:b26
164 - ] [ sp:object _:b27 ;
165 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
166 - sp:subject _:b25
167 - ] [ sp:object _:b28 ;
168 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
169 - sp:subject _:b25
170 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
171 sp:predicate rdf:type ; 197 sp:predicate rdf:type ;
172 sp:subject _:b29 198 sp:subject _:b29
173 - ] [ sp:object _:b30 ;
174 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
175 - sp:subject _:b29
176 - ] [ sp:object _:b29 ;
177 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
178 - sp:subject _:b25
179 ]) ; 199 ]) ;
180 - sp:where ([ sp:object _:b31 ; 200 + sp:where ([ sp:object _:b30 ;
181 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 201 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
182 sp:subject spin:_this 202 sp:subject spin:_this
183 - ] [ sp:object _:b32 ; 203 + ] [ sp:object _:b31 ;
184 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
185 - sp:subject spin:_this
186 - ] [ sp:object _:b33 ;
187 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ; 204 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#activity> ;
188 sp:subject spin:_this 205 sp:subject spin:_this
189 - ] [ sp:object _:b34 ; 206 + ] [ sp:object _:b32 ;
190 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ; 207 sp:predicate <http://www.topbraid.org/2007/05/composite.owl#index> ;
191 - sp:subject _:b33 208 + sp:subject _:b31
192 - ] [ sp:object _:b27 ; 209 + ] [ sp:object _:b33 ;
193 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 210 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
194 - sp:subject _:b33 211 + sp:subject _:b31
195 - ] [ sp:object _:b28 ; 212 + ] [ sp:object _:b34 ;
196 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ; 213 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumProprietaryCode> ;
197 - sp:subject _:b33 214 + sp:subject _:b31
198 ] [ rdf:type sp:Bind ; 215 ] [ rdf:type sp:Bind ;
199 sp:expression 216 sp:expression
200 [ rdf:type ep-spin-lib:normalizeString ; 217 [ rdf:type ep-spin-lib:normalizeString ;
201 - sp:arg1 _:b31 218 + sp:arg1 _:b30
202 ] ; 219 ] ;
203 sp:variable _:b35 220 sp:variable _:b35
204 ] [ rdf:type sp:Bind ; 221 ] [ rdf:type sp:Bind ;
205 sp:expression 222 sp:expression
206 [ rdf:type ep-spin-lib:buildPartActivityURI ; 223 [ rdf:type ep-spin-lib:buildPartActivityURI ;
207 sp:arg1 _:b35 ; 224 sp:arg1 _:b35 ;
208 - sp:arg2 _:b27 ; 225 + sp:arg2 _:b33 ;
209 - sp:arg3 _:b34 226 + sp:arg3 _:b32
210 - ] ;
211 - sp:variable _:b25
212 - ] [ rdf:type sp:Bind ;
213 - sp:expression
214 - [ rdf:type ep-spin-lib:buildWellBoreURI ;
215 - sp:arg1 _:b35
216 ] ; 227 ] ;
217 - sp:variable _:b30 228 + sp:variable _:b29
218 - ] [ rdf:type sp:Bind ;
219 - sp:expression
220 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
221 - sp:arg1 _:b35 ;
222 - sp:arg2 _:b32
223 - ] ;
224 - sp:variable _:b26
225 ] [ rdf:type sp:Bind ; 229 ] [ rdf:type sp:Bind ;
226 sp:expression 230 sp:expression
227 - [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ; 231 + [ rdf:type ep-spin-lib:selectDrillingActivityPurposeType ;
228 - sp:arg1 _:b35 ; 232 + sp:arg1 _:b34
229 - sp:arg2 _:b27 ;
230 - sp:arg3 _:b28
231 ] ; 233 ] ;
232 - sp:variable _:b29 234 + sp:variable _:b28
233 ]) 235 ])
234 ] . 236 ] .
235 237
...@@ -238,98 +240,98 @@ ...@@ -238,98 +240,98 @@
238 owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> ; 240 owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> ;
239 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 241 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
240 242
241 -_:b25 243 +_:b5 sp:varName "temporalPartOfAWellBore"^^xsd:string .
242 - sp:varName "partActivity"^^xsd:string .
243 244
244 -_:b26 245 +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
245 - sp:varName "dailyDrillingActivity"^^xsd:string .
246 246
247 -_:b27 247 +_:b6 sp:varName "wellBore"^^xsd:string .
248 - sp:varName "dTimStartPart"^^xsd:string .
249 248
250 -_:b28 249 +_:b1 sp:varName "partActivity"^^xsd:string .
251 - sp:varName "dTimEndPart"^^xsd:string .
252 250
253 -_:b29 251 +_:b11
254 - sp:varName "temporalPartOfAWellBore"^^xsd:string . 252 + sp:varName "normalizedWellBoreName"^^xsd:string .
255 253
256 -_:b30 254 +_:b4 sp:varName "dTimEndPart"^^xsd:string .
257 - sp:varName "wellBore"^^xsd:string .
258 255
259 -_:b31 256 +_:b3 sp:varName "dTimStartPart"^^xsd:string .
260 - sp:varName "nameWellBore"^^xsd:string .
261 257
262 -_:b32 258 +_:b10
263 - sp:varName "dTimStart"^^xsd:string . 259 + sp:varName "index"^^xsd:string .
264 260
265 -_:b33 261 +_:b9 sp:varName "activity"^^xsd:string .
266 - sp:varName "activity"^^xsd:string .
267 262
268 -_:b34 263 +_:b8 sp:varName "dTimStart"^^xsd:string .
269 - sp:varName "index"^^xsd:string .
270 264
271 -_:b35 265 +_:b7 sp:varName "nameWellBore"^^xsd:string .
272 - sp:varName "normalizedWellBoreName"^^xsd:string .
273 266
274 -_:b17 267 +_:b19
275 - sp:varName "md"^^xsd:string . 268 + sp:varName "normalizedWellBoreName"^^xsd:string .
276 269
277 _:b18 270 _:b18
278 - sp:varName "temporalPartOfAWellBore"^^xsd:string . 271 + sp:varName "partActivity"^^xsd:string .
279 272
280 -_:b19 273 +_:b17
281 - sp:varName "nameWellBore"^^xsd:string . 274 + sp:varName "dTimStartPart"^^xsd:string .
282 275
283 -_:b20 276 +_:b16
277 + sp:varName "index"^^xsd:string .
278 +
279 +_:b15
284 sp:varName "activity"^^xsd:string . 280 sp:varName "activity"^^xsd:string .
285 281
286 -_:b21 282 +_:b14
287 - sp:varName "index"^^xsd:string . 283 + sp:varName "nameWellBore"^^xsd:string .
288 284
289 -_:b22 285 +_:b13
290 - sp:varName "dTimStartPart"^^xsd:string . 286 + sp:varName "temporalPartOfAWellBore"^^xsd:string .
291 287
292 -_:b23 288 +_:b12
293 - sp:varName "partActivity"^^xsd:string . 289 + sp:varName "md"^^xsd:string .
294 290
295 -_:b24 291 +_:b27
296 sp:varName "normalizedWellBoreName"^^xsd:string . 292 sp:varName "normalizedWellBoreName"^^xsd:string .
297 293
298 -_:b9 sp:varName "tvd"^^xsd:string . 294 +_:b26
295 + sp:varName "partActivity"^^xsd:string .
299 296
300 -_:b10 297 +_:b25
301 - sp:varName "temporalPartOfAWellBore"^^xsd:string . 298 + sp:varName "dTimStartPart"^^xsd:string .
302 299
303 -_:b11 300 +_:b24
304 - sp:varName "nameWellBore"^^xsd:string . 301 + sp:varName "index"^^xsd:string .
305 302
306 -_:b12 303 +_:b23
307 sp:varName "activity"^^xsd:string . 304 sp:varName "activity"^^xsd:string .
308 305
309 -_:b13 306 +_:b22
310 - sp:varName "index"^^xsd:string . 307 + sp:varName "nameWellBore"^^xsd:string .
311 308
312 -_:b14 309 +_:b21
313 - sp:varName "dTimStartPart"^^xsd:string . 310 + sp:varName "temporalPartOfAWellBore"^^xsd:string .
314 311
315 -_:b15 312 +_:b20
316 - sp:varName "partActivity"^^xsd:string . 313 + sp:varName "tvd"^^xsd:string .
317 314
318 -_:b16 315 +_:b35
319 sp:varName "normalizedWellBoreName"^^xsd:string . 316 sp:varName "normalizedWellBoreName"^^xsd:string .
320 317
321 -_:b1 sp:varName "drillingActivityPurposeType"^^xsd:string . 318 +_:b34
322 - 319 + sp:varName "proprietaryCode"^^xsd:string .
323 -_:b2 sp:varName "partActivity"^^xsd:string .
324 320
325 -_:b3 sp:varName "nameWellBore"^^xsd:string . 321 +_:b33
322 + sp:varName "dTimStartPart"^^xsd:string .
326 323
327 -_:b4 sp:varName "activity"^^xsd:string . 324 +_:b32
325 + sp:varName "index"^^xsd:string .
328 326
329 -_:b5 sp:varName "index"^^xsd:string . 327 +_:b31
328 + sp:varName "activity"^^xsd:string .
330 329
331 -_:b6 sp:varName "dTimStartPart"^^xsd:string . 330 +_:b30
331 + sp:varName "nameWellBore"^^xsd:string .
332 332
333 -_:b7 sp:varName "proprietaryCode"^^xsd:string . 333 +_:b29
334 + sp:varName "partActivity"^^xsd:string .
334 335
335 -_:b8 sp:varName "normalizedWellBoreName"^^xsd:string . 336 +_:b28
337 + sp:varName "drillingActivityPurposeType"^^xsd:string .
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
11 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr 11 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr
12 12
13 @prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> . 13 @prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
14 +@prefix arg: <http://spinrdf.org/arg#> .
14 @prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> . 15 @prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
15 @prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> . 16 @prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
16 @prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> . 17 @prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
...@@ -21,6 +22,7 @@ ...@@ -21,6 +22,7 @@
21 @prefix p1: <http://example.org/file1#> . 22 @prefix p1: <http://example.org/file1#> .
22 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 23 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
23 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 24 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
25 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
24 @prefix sp: <http://spinrdf.org/sp#> . 26 @prefix sp: <http://spinrdf.org/sp#> .
25 @prefix spin: <http://spinrdf.org/spin#> . 27 @prefix spin: <http://spinrdf.org/spin#> .
26 @prefix spl: <http://spinrdf.org/spl#> . 28 @prefix spl: <http://spinrdf.org/spl#> .
...@@ -104,38 +106,45 @@ Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; ...@@ -104,38 +106,45 @@ Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
104 sp:variable _:b5 106 sp:variable _:b5
105 ] [ rdf:type sp:Bind ; 107 ] [ rdf:type sp:Bind ;
106 sp:expression 108 sp:expression
107 - [ rdf:type ep-spin-lib:buildWellBoreURI ; 109 + [ rdf:type rhspin:wellBoreByName ;
108 - sp:arg1 _:b9 110 + arg:wellBoreName _:b7
109 ] ; 111 ] ;
110 sp:variable _:b6 112 sp:variable _:b6
111 ]) 113 ])
112 ] ; 114 ] ;
113 spin:rule 115 spin:rule
114 [ rdf:type sp:Construct ; 116 [ rdf:type sp:Construct ;
115 - rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ; 117 + rdfs:comment """STEP 103
118 +Classify a DailyDrillingReport"""^^xsd:string ;
116 sp:templates ([ sp:object _:b10 ; 119 sp:templates ([ sp:object _:b10 ;
117 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 120 + sp:predicate rdf:type ;
118 sp:subject _:b11 121 sp:subject _:b11
119 ]) ; 122 ]) ;
120 sp:where ([ sp:object _:b12 ; 123 sp:where ([ sp:object _:b12 ;
121 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 124 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
122 sp:subject spin:_this 125 sp:subject spin:_this
123 ] [ sp:object _:b13 ; 126 ] [ sp:object _:b13 ;
124 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ; 127 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
125 sp:subject spin:_this 128 sp:subject spin:_this
126 - ] [ sp:object _:b10 ; 129 + ] [ sp:object _:b14 ;
127 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ; 130 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumVersionKind> ;
128 sp:subject spin:_this 131 sp:subject spin:_this
129 ] [ rdf:type sp:Bind ; 132 ] [ rdf:type sp:Bind ;
130 sp:expression 133 sp:expression
134 + [ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
135 + sp:arg1 _:b14
136 + ] ;
137 + sp:variable _:b10
138 + ] [ rdf:type sp:Bind ;
139 + sp:expression
131 [ rdf:type ep-spin-lib:normalizeString ; 140 [ rdf:type ep-spin-lib:normalizeString ;
132 sp:arg1 _:b12 141 sp:arg1 _:b12
133 ] ; 142 ] ;
134 - sp:variable _:b14 143 + sp:variable _:b15
135 ] [ rdf:type sp:Bind ; 144 ] [ rdf:type sp:Bind ;
136 sp:expression 145 sp:expression
137 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 146 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
138 - sp:arg1 _:b14 ; 147 + sp:arg1 _:b15 ;
139 sp:arg2 _:b13 148 sp:arg2 _:b13
140 ] ; 149 ] ;
141 sp:variable _:b11 150 sp:variable _:b11
...@@ -145,70 +154,63 @@ Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; ...@@ -145,70 +154,63 @@ Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
145 [ rdf:type sp:Construct ; 154 [ rdf:type sp:Construct ;
146 rdfs:comment """STEP 101a Set name of DailyDrillingReport as label 155 rdfs:comment """STEP 101a Set name of DailyDrillingReport as label
147 Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; 156 Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
148 - sp:templates ([ sp:object _:b15 ; 157 + sp:templates ([ sp:object _:b16 ;
149 sp:predicate rdfs:label ; 158 sp:predicate rdfs:label ;
150 - sp:subject _:b16 159 + sp:subject _:b17
151 ]) ; 160 ]) ;
152 - sp:where ([ sp:object _:b17 ; 161 + sp:where ([ sp:object _:b18 ;
153 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 162 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
154 sp:subject spin:_this 163 sp:subject spin:_this
155 - ] [ sp:object _:b15 ; 164 + ] [ sp:object _:b16 ;
156 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ; 165 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#name> ;
157 sp:subject spin:_this 166 sp:subject spin:_this
158 - ] [ sp:object _:b18 ; 167 + ] [ sp:object _:b19 ;
159 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ; 168 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
160 sp:subject spin:_this 169 sp:subject spin:_this
161 ] [ rdf:type sp:Bind ; 170 ] [ rdf:type sp:Bind ;
162 sp:expression 171 sp:expression
163 [ rdf:type ep-spin-lib:normalizeString ; 172 [ rdf:type ep-spin-lib:normalizeString ;
164 - sp:arg1 _:b17 173 + sp:arg1 _:b18
165 ] ; 174 ] ;
166 - sp:variable _:b19 175 + sp:variable _:b20
167 ] [ rdf:type sp:Bind ; 176 ] [ rdf:type sp:Bind ;
168 sp:expression 177 sp:expression
169 [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 178 [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
170 - sp:arg1 _:b19 ; 179 + sp:arg1 _:b20 ;
171 - sp:arg2 _:b18 180 + sp:arg2 _:b19
172 ] ; 181 ] ;
173 - sp:variable _:b16 182 + sp:variable _:b17
174 ]) 183 ])
175 ] ; 184 ] ;
176 spin:rule 185 spin:rule
177 [ rdf:type sp:Construct ; 186 [ rdf:type sp:Construct ;
178 - rdfs:comment """STEP 103 187 + rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
179 -Classify a DailyDrillingReport"""^^xsd:string ; 188 + sp:templates ([ sp:object _:b21 ;
180 - sp:templates ([ sp:object _:b20 ; 189 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
181 - sp:predicate rdf:type ; 190 + sp:subject _:b22
182 - sp:subject _:b21
183 ]) ; 191 ]) ;
184 - sp:where ([ sp:object _:b22 ; 192 + sp:where ([ sp:object _:b23 ;
185 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ; 193 sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
186 sp:subject spin:_this 194 sp:subject spin:_this
187 - ] [ sp:object _:b23 ;
188 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
189 - sp:subject spin:_this
190 ] [ sp:object _:b24 ; 195 ] [ sp:object _:b24 ;
191 - sp:predicate <http://www.reportinghub.no/ep/schema/ddr#enumVersionKind> ; 196 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
197 + sp:subject spin:_this
198 + ] [ sp:object _:b21 ;
199 + sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
192 sp:subject spin:_this 200 sp:subject spin:_this
193 - ] [ rdf:type sp:Bind ;
194 - sp:expression
195 - [ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
196 - sp:arg1 _:b24
197 - ] ;
198 - sp:variable _:b20
199 ] [ rdf:type sp:Bind ; 201 ] [ rdf:type sp:Bind ;
200 sp:expression 202 sp:expression
201 [ rdf:type ep-spin-lib:normalizeString ; 203 [ rdf:type ep-spin-lib:normalizeString ;
202 - sp:arg1 _:b22 204 + sp:arg1 _:b23
203 ] ; 205 ] ;
204 sp:variable _:b25 206 sp:variable _:b25
205 ] [ rdf:type sp:Bind ; 207 ] [ rdf:type sp:Bind ;
206 sp:expression 208 sp:expression
207 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 209 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
208 sp:arg1 _:b25 ; 210 sp:arg1 _:b25 ;
209 - sp:arg2 _:b23 211 + sp:arg2 _:b24
210 ] ; 212 ] ;
211 - sp:variable _:b21 213 + sp:variable _:b22
212 ]) 214 ])
213 ] ; 215 ] ;
214 spin:rule 216 spin:rule
...@@ -260,7 +262,7 @@ Classify a DailyDrillingReport"""^^xsd:string ; ...@@ -260,7 +262,7 @@ Classify a DailyDrillingReport"""^^xsd:string ;
260 sp:variable _:b33 262 sp:variable _:b33
261 ] [ rdf:type sp:Bind ; 263 ] [ rdf:type sp:Bind ;
262 sp:expression 264 sp:expression
263 - [ rdf:type ep-spin-lib:buildWellURI ; 265 + [ rdf:type rhspin:wellByName ;
264 sp:arg1 _:b33 266 sp:arg1 _:b33
265 ] ; 267 ] ;
266 sp:variable _:b26 268 sp:variable _:b26
...@@ -269,95 +271,95 @@ Classify a DailyDrillingReport"""^^xsd:string ; ...@@ -269,95 +271,95 @@ Classify a DailyDrillingReport"""^^xsd:string ;
269 271
270 <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> 272 <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
271 rdf:type owl:Ontology ; 273 rdf:type owl:Ontology ;
272 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> ; 274 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/transform/1.1/ddr> ;
273 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 275 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
274 276
275 -_:b26 277 +_:b6 sp:varName "wellBore"^^xsd:string .
276 - sp:varName "well"^^xsd:string .
277 278
278 -_:b27 279 +_:b5 sp:varName "temporalPartOfAWellBore"^^xsd:string .
279 - sp:varName "nameWell"^^xsd:string .
280 280
281 -_:b28 281 +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
282 - sp:varName "dailyDrillingActivity"^^xsd:string .
283 282
284 -_:b29 283 +_:b1 sp:varName "dailyDrillingReport"^^xsd:string .
285 - sp:varName "wellBore"^^xsd:string .
286 284
287 -_:b30 285 +_:b9 sp:varName "normalizedWellBoreName"^^xsd:string .
288 - sp:varName "nameWellBore"^^xsd:string .
289 286
290 -_:b31 287 +_:b3 sp:varName "createDate"^^xsd:string .
291 - sp:varName "dTimStart"^^xsd:string .
292 288
293 -_:b32 289 +_:b8 sp:varName "dTimEnd"^^xsd:string .
294 - sp:varName "normalizedWellBoreName"^^xsd:string . 290 +
291 +_:b4 sp:varName "dTimStart"^^xsd:string .
292 +
293 +_:b7 sp:varName "nameWellBore"^^xsd:string .
295 294
296 _:b33 295 _:b33
297 sp:varName "normalizedWellName"^^xsd:string . 296 sp:varName "normalizedWellName"^^xsd:string .
298 297
299 -_:b20 298 +_:b32
300 - sp:varName "dailyDrillingReportType"^^xsd:string . 299 + sp:varName "normalizedWellBoreName"^^xsd:string .
301 300
302 -_:b21 301 +_:b31
303 - sp:varName "dailyDrillingReport"^^xsd:string . 302 + sp:varName "dTimStart"^^xsd:string .
304 303
305 -_:b22 304 +_:b30
306 sp:varName "nameWellBore"^^xsd:string . 305 sp:varName "nameWellBore"^^xsd:string .
307 306
308 -_:b23 307 +_:b29
309 - sp:varName "createDate"^^xsd:string . 308 + sp:varName "wellBore"^^xsd:string .
310 -
311 -_:b24
312 - sp:varName "versionKind"^^xsd:string .
313 -
314 -_:b25
315 - sp:varName "normalizedWellBoreName"^^xsd:string .
316 -
317 -_:b15
318 - sp:varName "nameDailyDrillingReport"^^xsd:string .
319 309
320 -_:b16 310 +_:b28
321 - sp:varName "dailyDrillingReport"^^xsd:string . 311 + sp:varName "dailyDrillingActivity"^^xsd:string .
322 312
323 -_:b17 313 +_:b27
324 - sp:varName "nameWellBore"^^xsd:string . 314 + sp:varName "nameWell"^^xsd:string .
325 315
326 -_:b18 316 +_:b26
327 - sp:varName "createDate"^^xsd:string . 317 + sp:varName "well"^^xsd:string .
328 318
329 -_:b19 319 +_:b15
330 sp:varName "normalizedWellBoreName"^^xsd:string . 320 sp:varName "normalizedWellBoreName"^^xsd:string .
331 321
332 -_:b10 322 +_:b14
333 - sp:varName "dTimEnd"^^xsd:string . 323 + sp:varName "versionKind"^^xsd:string .
334 324
335 -_:b11 325 +_:b13
336 - sp:varName "dailyDrillingActivity"^^xsd:string . 326 + sp:varName "createDate"^^xsd:string .
337 327
338 _:b12 328 _:b12
339 sp:varName "nameWellBore"^^xsd:string . 329 sp:varName "nameWellBore"^^xsd:string .
340 330
341 -_:b13 331 +_:b11
342 - sp:varName "dTimStart"^^xsd:string . 332 + sp:varName "dailyDrillingReport"^^xsd:string .
343 333
344 -_:b14 334 +_:b10
335 + sp:varName "dailyDrillingReportType"^^xsd:string .
336 +
337 +_:b20
345 sp:varName "normalizedWellBoreName"^^xsd:string . 338 sp:varName "normalizedWellBoreName"^^xsd:string .
346 339
347 -_:b1 sp:varName "dailyDrillingReport"^^xsd:string . 340 +_:b19
341 + sp:varName "createDate"^^xsd:string .
348 342
349 -_:b2 sp:varName "dailyDrillingActivity"^^xsd:string . 343 +_:b18
344 + sp:varName "nameWellBore"^^xsd:string .
350 345
351 -_:b3 sp:varName "createDate"^^xsd:string . 346 +_:b17
347 + sp:varName "dailyDrillingReport"^^xsd:string .
352 348
353 -_:b4 sp:varName "dTimStart"^^xsd:string . 349 +_:b16
350 + sp:varName "nameDailyDrillingReport"^^xsd:string .
354 351
355 -_:b5 sp:varName "temporalPartOfAWellBore"^^xsd:string . 352 +_:b25
353 + sp:varName "normalizedWellBoreName"^^xsd:string .
356 354
357 -_:b6 sp:varName "wellBore"^^xsd:string . 355 +_:b24
356 + sp:varName "dTimStart"^^xsd:string .
358 357
359 -_:b7 sp:varName "nameWellBore"^^xsd:string . 358 +_:b23
359 + sp:varName "nameWellBore"^^xsd:string .
360 360
361 -_:b8 sp:varName "dTimEnd"^^xsd:string . 361 +_:b22
362 + sp:varName "dailyDrillingActivity"^^xsd:string .
362 363
363 -_:b9 sp:varName "normalizedWellBoreName"^^xsd:string . 364 +_:b21
365 + sp:varName "dTimEnd"^^xsd:string .
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
12 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo 12 # imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
13 13
14 @prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> . 14 @prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> .
15 -@prefix activity: <http://www.reportinghub.no/ep/transform/1.1/ddr/activity#> .
16 @prefix fn: <http://www.w3.org/2005/xpath-functions#> . 15 @prefix fn: <http://www.w3.org/2005/xpath-functions#> .
17 @prefix owl: <http://www.w3.org/2002/07/owl#> . 16 @prefix owl: <http://www.w3.org/2002/07/owl#> .
18 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 17 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
...@@ -66,8 +65,8 @@ owl:Thing ...@@ -66,8 +65,8 @@ owl:Thing
66 ]) 65 ])
67 ] . 66 ] .
68 67
69 -_:b1 sp:varName "oldLabel"^^xsd:string . 68 +_:b3 sp:varName "newLabel"^^xsd:string .
70 69
71 _:b2 sp:varName "p"^^xsd:string . 70 _:b2 sp:varName "p"^^xsd:string .
72 71
73 -_:b3 sp:varName "newLabel"^^xsd:string . 72 +_:b1 sp:varName "oldLabel"^^xsd:string .
......
This diff could not be displayed because it is too large.
...@@ -444,6 +444,46 @@ rhspin:wellBoreById ...@@ -444,6 +444,46 @@ rhspin:wellBoreById
444 ] ; 444 ] ;
445 spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . 445 spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> .
446 446
447 +rhspin:wellBoreByName
448 + rdf:type spin:Function ;
449 + rdfs:comment "Gets a WellBore by a name. This name currently must match the NPD name known to the NPD named graph. Will return without result otherwise."^^xsd:string ;
450 + rdfs:label "well bore by name"^^xsd:string ;
451 + rdfs:subClassOf spl:URIFunctions ;
452 + spin:body
453 + [ rdf:type sp:Select ;
454 + sp:resultVariables (_:b18) ;
455 + sp:where ([ rdf:type sp:NamedGraph ;
456 + sp:elements ([ rdf:type sp:Union ;
457 + sp:elements (([ sp:object _:b19 ;
458 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
459 + sp:subject _:b18
460 + ]) ([ rdf:type sp:Bind ;
461 + sp:expression
462 + [ rdf:type spif:replaceAll ;
463 + sp:arg1 _:b19 ;
464 + sp:arg2 "/0" ;
465 + sp:arg3 "/"
466 + ] ;
467 + sp:variable _:b20
468 + ] [ sp:object _:b20 ;
469 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
470 + sp:subject _:b18
471 + ]))
472 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
473 + sp:predicate rdf:type ;
474 + sp:subject _:b18
475 + ]) ;
476 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
477 + ])
478 + ] ;
479 + spin:constraint
480 + [ rdf:type spl:Argument ;
481 + rdfs:comment "The name of the well bore."^^xsd:string ;
482 + spl:predicate <http://spinrdf.org/arg#wellBoreName> ;
483 + spl:valueType xsd:string
484 + ] ;
485 + spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> .
486 +
447 rhspin:wellByName 487 rhspin:wellByName
448 rdf:type spin:Function ; 488 rdf:type spin:Function ;
449 rdfs:comment "Gets the URI resource of a well based on its NPD name."^^xsd:string ; 489 rdfs:comment "Gets the URI resource of a well based on its NPD name."^^xsd:string ;
...@@ -470,43 +510,52 @@ rhspin:wellByName ...@@ -470,43 +510,52 @@ rhspin:wellByName
470 ] ; 510 ] ;
471 spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . 511 spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> .
472 512
473 -_:b3 sp:varName "wellBore"^^xsd:string . 513 +_:b20
514 + sp:varName "str"^^xsd:string .
474 515
475 -_:b4 sp:varName "nowDate"^^xsd:string . 516 +_:b19
517 + sp:varName "wellBoreName"^^xsd:string .
476 518
477 -_:b5 sp:varName "share"^^xsd:string . 519 +_:b18
520 + sp:varName "wellBore"^^xsd:string .
478 521
479 -_:b6 sp:varName "licence"^^xsd:string . 522 +_:b17
523 + sp:varName "t4"^^xsd:string .
480 524
481 -_:b7 sp:varName "startDate"^^xsd:string . 525 +_:b16
526 + sp:varName "t3"^^xsd:string .
482 527
483 -_:b8 sp:varName "endDate"^^xsd:string . 528 +_:b15
529 + sp:varName "t2"^^xsd:string .
484 530
485 -_:b9 sp:varName "normalizedStr"^^xsd:string . 531 +_:b14
532 + sp:varName "t1"^^xsd:string .
486 533
487 -_:b10 534 +_:b13
488 - sp:varName "s1"^^xsd:string . 535 + sp:varName "t0b"^^xsd:string .
536 +
537 +_:b12
538 + sp:varName "t0a"^^xsd:string .
489 539
490 _:b11 540 _:b11
491 sp:varName "s2"^^xsd:string . 541 sp:varName "s2"^^xsd:string .
492 542
493 -_:b12 543 +_:b10
494 - sp:varName "t0a"^^xsd:string . 544 + sp:varName "s1"^^xsd:string .
495 545
496 -_:b13 546 +_:b9 sp:varName "normalizedStr"^^xsd:string .
497 - sp:varName "t0b"^^xsd:string .
498 547
499 -_:b14 548 +_:b8 sp:varName "endDate"^^xsd:string .
500 - sp:varName "t1"^^xsd:string .
501 549
502 -_:b15 550 +_:b7 sp:varName "startDate"^^xsd:string .
503 - sp:varName "t2"^^xsd:string .
504 551
505 -_:b16 552 +_:b6 sp:varName "licence"^^xsd:string .
506 - sp:varName "t3"^^xsd:string .
507 553
508 -_:b17 554 +_:b5 sp:varName "share"^^xsd:string .
509 - sp:varName "t4"^^xsd:string . 555 +
556 +_:b4 sp:varName "nowDate"^^xsd:string .
557 +
558 +_:b3 sp:varName "wellBore"^^xsd:string .
510 559
511 _:b2 sp:varName "wellBore"^^xsd:string . 560 _:b2 sp:varName "wellBore"^^xsd:string .
512 561
......