Showing
1 changed file
with
171 additions
and
107 deletions
... | @@ -50,6 +50,11 @@ | ... | @@ -50,6 +50,11 @@ |
50 | rdfs:label "well"^^xsd:string ; | 50 | rdfs:label "well"^^xsd:string ; |
51 | rdfs:subPropertyOf sp:arg . | 51 | rdfs:subPropertyOf sp:arg . |
52 | 52 | ||
53 | +<http://spinrdf.org/arg#wellBore> | ||
54 | + rdf:type rdf:Property ; | ||
55 | + rdfs:label "well bore"^^xsd:string ; | ||
56 | + rdfs:subPropertyOf sp:arg . | ||
57 | + | ||
53 | <http://spinrdf.org/arg#wellBoreName> | 58 | <http://spinrdf.org/arg#wellBoreName> |
54 | rdf:type rdf:Property ; | 59 | rdf:type rdf:Property ; |
55 | rdfs:label "well bore name"^^xsd:string ; | 60 | rdfs:label "well bore name"^^xsd:string ; |
... | @@ -77,14 +82,14 @@ | ... | @@ -77,14 +82,14 @@ |
77 | ] ; | 82 | ] ; |
78 | spin:constraint | 83 | spin:constraint |
79 | [ rdf:type spl:Argument ; | 84 | [ rdf:type spl:Argument ; |
80 | - rdfs:comment "The property that must be used in the result resource."^^xsd:string ; | 85 | + rdfs:comment "The value to match against."^^xsd:string ; |
81 | - spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ; | 86 | + spl:predicate sp:arg1 |
82 | - spl:valueType rdf:Property | ||
83 | ] ; | 87 | ] ; |
84 | spin:constraint | 88 | spin:constraint |
85 | [ rdf:type spl:Argument ; | 89 | [ rdf:type spl:Argument ; |
86 | - rdfs:comment "The value to match against."^^xsd:string ; | 90 | + rdfs:comment "The property that must be used in the result resource."^^xsd:string ; |
87 | - spl:predicate sp:arg1 | 91 | + spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ; |
92 | + spl:valueType rdf:Property | ||
88 | ] ; | 93 | ] ; |
89 | spin:returnType rdfs:Resource . | 94 | spin:returnType rdfs:Resource . |
90 | 95 | ||
... | @@ -198,6 +203,34 @@ rhspin:companyById | ... | @@ -198,6 +203,34 @@ rhspin:companyById |
198 | spl:valueType xsd:string | 203 | spl:valueType xsd:string |
199 | ] . | 204 | ] . |
200 | 205 | ||
206 | +rhspin:companyHasLicence | ||
207 | + rdf:type spin:MagicProperty ; | ||
208 | + rdfs:comment "A magic property that defines a relationship between companies (left side) and licenses (right side). It matches those licenses that the company currently holds. The query is optimized for the direction when the company is given and the licenses variable."^^xsd:string ; | ||
209 | + rdfs:label "company has licence"^^xsd:string ; | ||
210 | + rdfs:subClassOf spin:MagicProperties ; | ||
211 | + spin:body | ||
212 | + [ rdf:type sp:Select ; | ||
213 | + sp:distinct "true"^^xsd:boolean ; | ||
214 | + sp:resultVariables (_:b5) ; | ||
215 | + sp:where ([ rdf:type sp:NamedGraph ; | ||
216 | + sp:elements ([ sp:object spin:_arg1 ; | ||
217 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#shareHolder> ; | ||
218 | + sp:subject _:b6 | ||
219 | + ] [ sp:object _:b5 ; | ||
220 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceShared> ; | ||
221 | + sp:subject _:b6 | ||
222 | + ]) ; | ||
223 | + sp:graphNameNode npdata:npd | ||
224 | + ]) | ||
225 | + ] ; | ||
226 | + spin:constraint | ||
227 | + [ rdf:type spl:Argument ; | ||
228 | + rdfs:comment "The Company to match."^^xsd:string ; | ||
229 | + spl:predicate sp:arg1 ; | ||
230 | + spl:valueType <http://www.reportinghub.no/ep/schema/organization#Company> | ||
231 | + ] ; | ||
232 | + spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . | ||
233 | + | ||
201 | rhspin:companyHasLicenceForWellBore | 234 | rhspin:companyHasLicenceForWellBore |
202 | rdf:type spin:MagicProperty ; | 235 | rdf:type spin:MagicProperty ; |
203 | rdfs:comment "A magic property that defines a relationship between companies (left side) and well bores (right side). It matches those well bores that the company currently holds a licence for. The query is optimized for the direction when the company is given and the well bores variable."^^xsd:string ; | 236 | rdfs:comment "A magic property that defines a relationship between companies (left side) and well bores (right side). It matches those well bores that the company currently holds a licence for. The query is optimized for the direction when the company is given and the well bores variable."^^xsd:string ; |
... | @@ -206,50 +239,22 @@ rhspin:companyHasLicenceForWellBore | ... | @@ -206,50 +239,22 @@ rhspin:companyHasLicenceForWellBore |
206 | spin:body | 239 | spin:body |
207 | [ rdf:type sp:Select ; | 240 | [ rdf:type sp:Select ; |
208 | sp:distinct "true"^^xsd:boolean ; | 241 | sp:distinct "true"^^xsd:boolean ; |
209 | - sp:resultVariables (_:b5) ; | 242 | + sp:resultVariables (_:b7) ; |
210 | - sp:where ([ rdf:type sp:Bind ; | 243 | + sp:where ([ rdf:type sp:NamedGraph ; |
211 | - sp:expression | 244 | + sp:elements ([ sp:object spin:_arg1 ; |
212 | - [ rdf:type xsd:date ; | 245 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#shareHolder> ; |
213 | - sp:arg1 [ rdf:type fn:substring ; | 246 | + sp:subject _:b8 |
214 | - sp:arg1 [ rdf:type xsd:string ; | 247 | + ] [ sp:object _:b9 ; |
215 | - sp:arg1 [ rdf:type sp:now | 248 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceShared> ; |
216 | - ] | 249 | + sp:subject _:b8 |
217 | - ] ; | 250 | + ] [ sp:object <http://www.reportinghub.no/np/schema/npd#LS_Active> ; |
218 | - sp:arg2 1 ; | 251 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceStatus> ; |
219 | - sp:arg3 10 | 252 | + sp:subject _:b9 |
220 | - ] | 253 | + ] [ sp:object _:b9 ; |
221 | - ] ; | 254 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ; |
222 | - sp:variable _:b6 | 255 | + sp:subject _:b7 |
223 | - ] [ sp:object spin:_arg1 ; | 256 | + ]) ; |
224 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#shareHolder> ; | 257 | + sp:graphNameNode npdata:npd |
225 | - sp:subject _:b7 | ||
226 | - ] [ sp:object _:b8 ; | ||
227 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceShared> ; | ||
228 | - sp:subject _:b7 | ||
229 | - ] [ sp:object <http://www.reportinghub.no/np/schema/npd#LS_Active> ; | ||
230 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#licenceStatus> ; | ||
231 | - sp:subject _:b8 | ||
232 | - ] [ sp:object _:b9 ; | ||
233 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#startDate> ; | ||
234 | - sp:subject _:b8 | ||
235 | - ] [ rdf:type sp:Filter ; | ||
236 | - sp:expression | ||
237 | - [ rdf:type sp:le ; | ||
238 | - sp:arg1 _:b9 ; | ||
239 | - sp:arg2 _:b6 | ||
240 | - ] | ||
241 | - ] [ sp:object _:b10 ; | ||
242 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#endDate> ; | ||
243 | - sp:subject _:b8 | ||
244 | - ] [ rdf:type sp:Filter ; | ||
245 | - sp:expression | ||
246 | - [ rdf:type sp:gt ; | ||
247 | - sp:arg1 _:b10 ; | ||
248 | - sp:arg2 _:b6 | ||
249 | - ] | ||
250 | - ] [ sp:object _:b8 ; | ||
251 | - sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ; | ||
252 | - sp:subject _:b5 | ||
253 | ]) | 258 | ]) |
254 | ] ; | 259 | ] ; |
255 | spin:constraint | 260 | spin:constraint |
... | @@ -258,7 +263,8 @@ rhspin:companyHasLicenceForWellBore | ... | @@ -258,7 +263,8 @@ rhspin:companyHasLicenceForWellBore |
258 | spl:predicate sp:arg1 ; | 263 | spl:predicate sp:arg1 ; |
259 | spl:valueType <http://www.reportinghub.no/ep/schema/organization#Company> | 264 | spl:valueType <http://www.reportinghub.no/ep/schema/organization#Company> |
260 | ] ; | 265 | ] ; |
261 | - spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . | 266 | + spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
267 | + owl:versionInfo "Note: the algorithm isn't clear - it could be that the date checks are not needed."^^xsd:string . | ||
262 | 268 | ||
263 | rhspin:companyName | 269 | rhspin:companyName |
264 | rdf:type spin:Function ; | 270 | rdf:type spin:Function ; |
... | @@ -267,6 +273,35 @@ rhspin:companyName | ... | @@ -267,6 +273,35 @@ rhspin:companyName |
267 | rdfs:subClassOf spin:Functions ; | 273 | rdfs:subClassOf spin:Functions ; |
268 | spin:returnType xsd:string . | 274 | spin:returnType xsd:string . |
269 | 275 | ||
276 | +rhspin:companyWithName | ||
277 | + rdf:type spin:Function ; | ||
278 | + rdfs:comment "Gets a Company with a given name from the NPD graph."^^xsd:string ; | ||
279 | + rdfs:label "company with name"^^xsd:string ; | ||
280 | + rdfs:subClassOf spin:Functions ; | ||
281 | + spin:body | ||
282 | + [ rdf:type sp:Select ; | ||
283 | + sp:resultVariables (_:b10) ; | ||
284 | + sp:where ([ rdf:type sp:NamedGraph ; | ||
285 | + sp:elements ([ sp:object | ||
286 | + [ sp:varName "name"^^xsd:string | ||
287 | + ] ; | ||
288 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
289 | + sp:subject _:b10 | ||
290 | + ] [ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
291 | + sp:predicate rdf:type ; | ||
292 | + sp:subject _:b10 | ||
293 | + ]) ; | ||
294 | + sp:graphNameNode npdata:npd | ||
295 | + ]) | ||
296 | + ] ; | ||
297 | + spin:constraint | ||
298 | + [ rdf:type spl:Argument ; | ||
299 | + rdfs:comment "The name of the Company to get."^^xsd:string ; | ||
300 | + spl:predicate <http://spinrdf.org/arg#name> ; | ||
301 | + spl:valueType xsd:string | ||
302 | + ] ; | ||
303 | + spin:returnType <http://www.reportinghub.no/ep/schema/organization#Company> . | ||
304 | + | ||
270 | rhspin:discoveryById | 305 | rhspin:discoveryById |
271 | rdf:type spin:Function ; | 306 | rdf:type spin:Function ; |
272 | rdfs:label "discovery by id"^^xsd:string ; | 307 | rdfs:label "discovery by id"^^xsd:string ; |
... | @@ -307,15 +342,15 @@ rhspin:dtypeValue | ... | @@ -307,15 +342,15 @@ rhspin:dtypeValue |
307 | ] ; | 342 | ] ; |
308 | spin:constraint | 343 | spin:constraint |
309 | [ rdf:type spl:Argument ; | 344 | [ rdf:type spl:Argument ; |
310 | - rdfs:comment "The subject of the value."^^xsd:string ; | ||
311 | - spl:predicate sp:arg1 ; | ||
312 | - spl:valueType rdfs:Resource | ||
313 | - ] ; | ||
314 | - spin:constraint | ||
315 | - [ rdf:type spl:Argument ; | ||
316 | rdfs:comment "The predicate that points to the reified value."^^xsd:string ; | 345 | rdfs:comment "The predicate that points to the reified value."^^xsd:string ; |
317 | spl:predicate sp:arg2 ; | 346 | spl:predicate sp:arg2 ; |
318 | spl:valueType rdf:Property | 347 | spl:valueType rdf:Property |
348 | + ] ; | ||
349 | + spin:constraint | ||
350 | + [ rdf:type spl:Argument ; | ||
351 | + rdfs:comment "The subject of the value."^^xsd:string ; | ||
352 | + spl:predicate sp:arg1 ; | ||
353 | + spl:valueType rdfs:Resource | ||
319 | ] . | 354 | ] . |
320 | 355 | ||
321 | rhspin:facilityById | 356 | rhspin:facilityById |
... | @@ -385,6 +420,32 @@ rhspin:licenceById | ... | @@ -385,6 +420,32 @@ rhspin:licenceById |
385 | ] ; | 420 | ] ; |
386 | spin:returnType <http://www.reportinghub.no/np/schema/npd#Licence> . | 421 | spin:returnType <http://www.reportinghub.no/np/schema/npd#Licence> . |
387 | 422 | ||
423 | +rhspin:licenceForWellBore | ||
424 | + rdf:type spin:Function ; | ||
425 | + rdfs:comment "Gets the licence associated with a given well bore."^^xsd:string ; | ||
426 | + rdfs:label "licence for well bore"^^xsd:string ; | ||
427 | + rdfs:subClassOf spin:Functions ; | ||
428 | + spin:body | ||
429 | + [ rdf:type sp:Select ; | ||
430 | + sp:resultVariables (_:b13) ; | ||
431 | + sp:where ([ rdf:type sp:NamedGraph ; | ||
432 | + sp:elements ([ sp:object _:b13 ; | ||
433 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ; | ||
434 | + sp:subject | ||
435 | + [ sp:varName "wellBore"^^xsd:string | ||
436 | + ] | ||
437 | + ]) ; | ||
438 | + sp:graphNameNode npdata:npd | ||
439 | + ]) | ||
440 | + ] ; | ||
441 | + spin:constraint | ||
442 | + [ rdf:type spl:Argument ; | ||
443 | + rdfs:comment "The WellBore to get the licence of."^^xsd:string ; | ||
444 | + spl:predicate <http://spinrdf.org/arg#wellBore> ; | ||
445 | + spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> | ||
446 | + ] ; | ||
447 | + spin:returnType <http://www.reportinghub.no/np/schema/npd#Licence> . | ||
448 | + | ||
388 | rhspin:normalizeString | 449 | rhspin:normalizeString |
389 | rdf:type spin:Function ; | 450 | rdf:type spin:Function ; |
390 | rdfs:comment "Takes a raw string and \"normalizes\" it, replacing special characters so that they can be used in URIs."^^xsd:string ; | 451 | rdfs:comment "Takes a raw string and \"normalizes\" it, replacing special characters so that they can be used in URIs."^^xsd:string ; |
... | @@ -392,7 +453,7 @@ rhspin:normalizeString | ... | @@ -392,7 +453,7 @@ rhspin:normalizeString |
392 | rdfs:subClassOf spl:StringFunctions ; | 453 | rdfs:subClassOf spl:StringFunctions ; |
393 | spin:body | 454 | spin:body |
394 | [ rdf:type sp:Select ; | 455 | [ rdf:type sp:Select ; |
395 | - sp:resultVariables (_:b13) ; | 456 | + sp:resultVariables (_:b14) ; |
396 | sp:where ([ rdf:type sp:Bind ; | 457 | sp:where ([ rdf:type sp:Bind ; |
397 | sp:expression | 458 | sp:expression |
398 | [ rdf:type spif:regex ; | 459 | [ rdf:type spif:regex ; |
... | @@ -400,67 +461,67 @@ rhspin:normalizeString | ... | @@ -400,67 +461,67 @@ rhspin:normalizeString |
400 | sp:arg2 "\\((.*)\\)" ; | 461 | sp:arg2 "\\((.*)\\)" ; |
401 | sp:arg3 "" | 462 | sp:arg3 "" |
402 | ] ; | 463 | ] ; |
403 | - sp:variable _:b14 | 464 | + sp:variable _:b15 |
404 | ] [ rdf:type sp:Bind ; | 465 | ] [ rdf:type sp:Bind ; |
405 | sp:expression | 466 | sp:expression |
406 | [ rdf:type spif:trim ; | 467 | [ rdf:type spif:trim ; |
407 | - sp:arg1 _:b14 | 468 | + sp:arg1 _:b15 |
408 | ] ; | 469 | ] ; |
409 | - sp:variable _:b15 | 470 | + sp:variable _:b16 |
410 | ] [ rdf:type sp:Bind ; | 471 | ] [ rdf:type sp:Bind ; |
411 | sp:expression | 472 | sp:expression |
412 | [ rdf:type spif:encodeURL ; | 473 | [ rdf:type spif:encodeURL ; |
413 | - sp:arg1 _:b15 | 474 | + sp:arg1 _:b16 |
414 | ] ; | 475 | ] ; |
415 | - sp:variable _:b16 | 476 | + sp:variable _:b17 |
416 | ] [ rdf:type sp:Bind ; | 477 | ] [ rdf:type sp:Bind ; |
417 | sp:expression | 478 | sp:expression |
418 | [ rdf:type spif:regex ; | 479 | [ rdf:type spif:regex ; |
419 | - sp:arg1 _:b16 ; | 480 | + sp:arg1 _:b17 ; |
420 | sp:arg2 "%2F" ; | 481 | sp:arg2 "%2F" ; |
421 | sp:arg3 "_" | 482 | sp:arg3 "_" |
422 | ] ; | 483 | ] ; |
423 | - sp:variable _:b17 | 484 | + sp:variable _:b18 |
424 | ] [ rdf:type sp:Bind ; | 485 | ] [ rdf:type sp:Bind ; |
425 | sp:expression | 486 | sp:expression |
426 | [ rdf:type spif:regex ; | 487 | [ rdf:type spif:regex ; |
427 | - sp:arg1 _:b17 ; | 488 | + sp:arg1 _:b18 ; |
428 | sp:arg2 "%[0-9A-F][0-9A-F]" ; | 489 | sp:arg2 "%[0-9A-F][0-9A-F]" ; |
429 | sp:arg3 "" | 490 | sp:arg3 "" |
430 | ] ; | 491 | ] ; |
431 | - sp:variable _:b18 | 492 | + sp:variable _:b19 |
432 | ] [ rdf:type sp:Bind ; | 493 | ] [ rdf:type sp:Bind ; |
433 | sp:expression | 494 | sp:expression |
434 | [ rdf:type spif:regex ; | 495 | [ rdf:type spif:regex ; |
435 | - sp:arg1 _:b18 ; | 496 | + sp:arg1 _:b19 ; |
436 | sp:arg2 "\\+" ; | 497 | sp:arg2 "\\+" ; |
437 | sp:arg3 "_" | 498 | sp:arg3 "_" |
438 | ] ; | 499 | ] ; |
439 | - sp:variable _:b19 | 500 | + sp:variable _:b20 |
440 | ] [ rdf:type sp:Bind ; | 501 | ] [ rdf:type sp:Bind ; |
441 | sp:expression | 502 | sp:expression |
442 | [ rdf:type spif:regex ; | 503 | [ rdf:type spif:regex ; |
443 | - sp:arg1 _:b19 ; | 504 | + sp:arg1 _:b20 ; |
444 | sp:arg2 "_+" ; | 505 | sp:arg2 "_+" ; |
445 | sp:arg3 "_" | 506 | sp:arg3 "_" |
446 | ] ; | 507 | ] ; |
447 | - sp:variable _:b20 | 508 | + sp:variable _:b21 |
448 | ] [ rdf:type sp:Bind ; | 509 | ] [ rdf:type sp:Bind ; |
449 | sp:expression | 510 | sp:expression |
450 | [ rdf:type spif:regex ; | 511 | [ rdf:type spif:regex ; |
451 | - sp:arg1 _:b20 ; | 512 | + sp:arg1 _:b21 ; |
452 | sp:arg2 "\\*" ; | 513 | sp:arg2 "\\*" ; |
453 | sp:arg3 "" | 514 | sp:arg3 "" |
454 | ] ; | 515 | ] ; |
455 | - sp:variable _:b21 | 516 | + sp:variable _:b22 |
456 | ] [ rdf:type sp:Bind ; | 517 | ] [ rdf:type sp:Bind ; |
457 | sp:expression | 518 | sp:expression |
458 | [ rdf:type xsd:string ; | 519 | [ rdf:type xsd:string ; |
459 | sp:arg1 [ rdf:type spif:upperCase ; | 520 | sp:arg1 [ rdf:type spif:upperCase ; |
460 | - sp:arg1 _:b21 | 521 | + sp:arg1 _:b22 |
461 | ] | 522 | ] |
462 | ] ; | 523 | ] ; |
463 | - sp:variable _:b13 | 524 | + sp:variable _:b14 |
464 | ]) | 525 | ]) |
465 | ] ; | 526 | ] ; |
466 | spin:constraint | 527 | spin:constraint |
... | @@ -477,9 +538,9 @@ rhspin:npdId | ... | @@ -477,9 +538,9 @@ rhspin:npdId |
477 | rdfs:subClassOf spl:StringFunctions ; | 538 | rdfs:subClassOf spl:StringFunctions ; |
478 | spin:body | 539 | spin:body |
479 | [ rdf:type sp:Select ; | 540 | [ rdf:type sp:Select ; |
480 | - sp:resultVariables (_:b22) ; | 541 | + sp:resultVariables (_:b23) ; |
481 | sp:where ([ rdf:type sp:NamedGraph ; | 542 | sp:where ([ rdf:type sp:NamedGraph ; |
482 | - sp:elements ([ sp:object _:b22 ; | 543 | + sp:elements ([ sp:object _:b23 ; |
483 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 544 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
484 | sp:subject | 545 | sp:subject |
485 | [ sp:varName "resource"^^xsd:string | 546 | [ sp:varName "resource"^^xsd:string |
... | @@ -502,9 +563,9 @@ rhspin:npdName | ... | @@ -502,9 +563,9 @@ rhspin:npdName |
502 | rdfs:subClassOf spl:StringFunctions ; | 563 | rdfs:subClassOf spl:StringFunctions ; |
503 | spin:body | 564 | spin:body |
504 | [ rdf:type sp:Select ; | 565 | [ rdf:type sp:Select ; |
505 | - sp:resultVariables (_:b23) ; | 566 | + sp:resultVariables (_:b24) ; |
506 | sp:where ([ rdf:type sp:NamedGraph ; | 567 | sp:where ([ rdf:type sp:NamedGraph ; |
507 | - sp:elements ([ sp:object _:b23 ; | 568 | + sp:elements ([ sp:object _:b24 ; |
508 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 569 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
509 | sp:subject | 570 | sp:subject |
510 | [ sp:varName "resource"^^xsd:string | 571 | [ sp:varName "resource"^^xsd:string |
... | @@ -616,27 +677,27 @@ rhspin:wellBoreByName | ... | @@ -616,27 +677,27 @@ rhspin:wellBoreByName |
616 | rdfs:subClassOf spl:URIFunctions ; | 677 | rdfs:subClassOf spl:URIFunctions ; |
617 | spin:body | 678 | spin:body |
618 | [ rdf:type sp:Select ; | 679 | [ rdf:type sp:Select ; |
619 | - sp:resultVariables (_:b24) ; | 680 | + sp:resultVariables (_:b25) ; |
620 | sp:where ([ rdf:type sp:NamedGraph ; | 681 | sp:where ([ rdf:type sp:NamedGraph ; |
621 | sp:elements ([ rdf:type sp:Union ; | 682 | sp:elements ([ rdf:type sp:Union ; |
622 | - sp:elements (([ sp:object _:b25 ; | 683 | + sp:elements (([ sp:object _:b26 ; |
623 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 684 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
624 | - sp:subject _:b24 | 685 | + sp:subject _:b25 |
625 | ]) ([ rdf:type sp:Bind ; | 686 | ]) ([ rdf:type sp:Bind ; |
626 | sp:expression | 687 | sp:expression |
627 | [ rdf:type spif:replaceAll ; | 688 | [ rdf:type spif:replaceAll ; |
628 | - sp:arg1 _:b25 ; | 689 | + sp:arg1 _:b26 ; |
629 | sp:arg2 "/0" ; | 690 | sp:arg2 "/0" ; |
630 | sp:arg3 "/" | 691 | sp:arg3 "/" |
631 | ] ; | 692 | ] ; |
632 | - sp:variable _:b26 | 693 | + sp:variable _:b27 |
633 | - ] [ sp:object _:b26 ; | 694 | + ] [ sp:object _:b27 ; |
634 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 695 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
635 | - sp:subject _:b24 | 696 | + sp:subject _:b25 |
636 | ])) | 697 | ])) |
637 | ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | 698 | ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
638 | sp:predicate rdf:type ; | 699 | sp:predicate rdf:type ; |
639 | - sp:subject _:b24 | 700 | + sp:subject _:b25 |
640 | ]) ; | 701 | ]) ; |
641 | sp:graphNameNode npdata:npd | 702 | sp:graphNameNode npdata:npd |
642 | ]) | 703 | ]) |
... | @@ -675,48 +736,49 @@ rhspin:wellByName | ... | @@ -675,48 +736,49 @@ rhspin:wellByName |
675 | ] ; | 736 | ] ; |
676 | spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . | 737 | spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . |
677 | 738 | ||
678 | -_:b1 sp:varName "subject"^^xsd:string . | 739 | +_:b13 |
740 | + sp:varName "licence"^^xsd:string . | ||
679 | 741 | ||
680 | -_:b26 | 742 | +_:b27 |
681 | sp:varName "str"^^xsd:string . | 743 | sp:varName "str"^^xsd:string . |
682 | 744 | ||
683 | -_:b25 | 745 | +_:b26 |
684 | sp:varName "wellBoreName"^^xsd:string . | 746 | sp:varName "wellBoreName"^^xsd:string . |
685 | 747 | ||
686 | -_:b24 | 748 | +_:b25 |
687 | sp:varName "wellBore"^^xsd:string . | 749 | sp:varName "wellBore"^^xsd:string . |
688 | 750 | ||
689 | -_:b23 | 751 | +_:b24 |
690 | sp:varName "name"^^xsd:string . | 752 | sp:varName "name"^^xsd:string . |
691 | 753 | ||
692 | -_:b22 | 754 | +_:b23 |
693 | sp:varName "id"^^xsd:string . | 755 | sp:varName "id"^^xsd:string . |
694 | 756 | ||
695 | -_:b21 | 757 | +_:b22 |
696 | sp:varName "t4"^^xsd:string . | 758 | sp:varName "t4"^^xsd:string . |
697 | 759 | ||
698 | -_:b20 | 760 | +_:b21 |
699 | sp:varName "t3"^^xsd:string . | 761 | sp:varName "t3"^^xsd:string . |
700 | 762 | ||
701 | -_:b19 | 763 | +_:b20 |
702 | sp:varName "t2"^^xsd:string . | 764 | sp:varName "t2"^^xsd:string . |
703 | 765 | ||
704 | -_:b18 | 766 | +_:b19 |
705 | sp:varName "t1"^^xsd:string . | 767 | sp:varName "t1"^^xsd:string . |
706 | 768 | ||
707 | -_:b17 | 769 | +_:b18 |
708 | sp:varName "t0b"^^xsd:string . | 770 | sp:varName "t0b"^^xsd:string . |
709 | 771 | ||
710 | -_:b16 | 772 | +_:b17 |
711 | sp:varName "t0a"^^xsd:string . | 773 | sp:varName "t0a"^^xsd:string . |
712 | 774 | ||
713 | -_:b15 | 775 | +_:b16 |
714 | sp:varName "s2"^^xsd:string . | 776 | sp:varName "s2"^^xsd:string . |
715 | 777 | ||
716 | -_:b14 | 778 | +_:b15 |
717 | sp:varName "s1"^^xsd:string . | 779 | sp:varName "s1"^^xsd:string . |
718 | 780 | ||
719 | -_:b13 | 781 | +_:b14 |
720 | sp:varName "normalizedStr"^^xsd:string . | 782 | sp:varName "normalizedStr"^^xsd:string . |
721 | 783 | ||
722 | _:b12 | 784 | _:b12 |
... | @@ -726,20 +788,22 @@ _:b11 | ... | @@ -726,20 +788,22 @@ _:b11 |
726 | sp:varName "value"^^xsd:string . | 788 | sp:varName "value"^^xsd:string . |
727 | 789 | ||
728 | _:b10 | 790 | _:b10 |
729 | - sp:varName "endDate"^^xsd:string . | 791 | + sp:varName "company"^^xsd:string . |
730 | 792 | ||
731 | -_:b9 sp:varName "startDate"^^xsd:string . | 793 | +_:b9 sp:varName "licence"^^xsd:string . |
732 | 794 | ||
733 | -_:b8 sp:varName "licence"^^xsd:string . | 795 | +_:b8 sp:varName "share"^^xsd:string . |
734 | 796 | ||
735 | -_:b7 sp:varName "share"^^xsd:string . | 797 | +_:b7 sp:varName "wellBore"^^xsd:string . |
736 | 798 | ||
737 | -_:b6 sp:varName "nowDate"^^xsd:string . | 799 | +_:b6 sp:varName "share"^^xsd:string . |
738 | 800 | ||
739 | -_:b5 sp:varName "wellBore"^^xsd:string . | 801 | +_:b5 sp:varName "licence"^^xsd:string . |
740 | 802 | ||
741 | _:b4 sp:varName "wellBore"^^xsd:string . | 803 | _:b4 sp:varName "wellBore"^^xsd:string . |
742 | 804 | ||
743 | _:b3 sp:varName "wellBoreId"^^xsd:string . | 805 | _:b3 sp:varName "wellBoreId"^^xsd:string . |
744 | 806 | ||
745 | _:b2 sp:varName "wellBoreName"^^xsd:string . | 807 | _:b2 sp:varName "wellBoreName"^^xsd:string . |
808 | + | ||
809 | +_:b1 sp:varName "subject"^^xsd:string . | ... | ... |
-
Please register or login to post a comment