Showing
1 changed file
with
154 additions
and
87 deletions
| ... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
| 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/np/schema/1.0/npd | 9 | # imports: http://www.reportinghub.no/np/schema/1.0/npd |
| 10 | 10 | ||
| 11 | +@prefix arg: <http://spinrdf.org/arg#> . | ||
| 11 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . | 12 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . |
| 12 | @prefix npdata: <http://www.reportinghub.no/np/data/> . | 13 | @prefix npdata: <http://www.reportinghub.no/np/data/> . |
| 13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 14 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| ... | @@ -20,57 +21,62 @@ | ... | @@ -20,57 +21,62 @@ |
| 20 | @prefix spl: <http://spinrdf.org/spl#> . | 21 | @prefix spl: <http://spinrdf.org/spl#> . |
| 21 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 22 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 22 | 23 | ||
| 23 | -<http://spinrdf.org/arg#company> | 24 | +arg:company |
| 24 | rdf:type rdf:Property ; | 25 | rdf:type rdf:Property ; |
| 25 | rdfs:label "company"^^xsd:string ; | 26 | rdfs:label "company"^^xsd:string ; |
| 26 | rdfs:subPropertyOf sp:arg . | 27 | rdfs:subPropertyOf sp:arg . |
| 27 | 28 | ||
| 28 | -<http://spinrdf.org/arg#companyName> | 29 | +arg:companyName |
| 29 | rdf:type rdf:Property ; | 30 | rdf:type rdf:Property ; |
| 30 | rdfs:label "company name"^^xsd:string ; | 31 | rdfs:label "company name"^^xsd:string ; |
| 31 | rdfs:subPropertyOf sp:arg . | 32 | rdfs:subPropertyOf sp:arg . |
| 32 | 33 | ||
| 33 | -<http://spinrdf.org/arg#ddr> | 34 | +arg:ddr |
| 34 | rdf:type rdf:Property ; | 35 | rdf:type rdf:Property ; |
| 35 | rdfs:label "ddr"^^xsd:string ; | 36 | rdfs:label "ddr"^^xsd:string ; |
| 36 | rdfs:subPropertyOf sp:arg . | 37 | rdfs:subPropertyOf sp:arg . |
| 37 | 38 | ||
| 38 | -<http://spinrdf.org/arg#id> | 39 | +arg:id |
| 39 | rdf:type rdf:Property ; | 40 | rdf:type rdf:Property ; |
| 40 | rdfs:label "id"^^xsd:string ; | 41 | rdfs:label "id"^^xsd:string ; |
| 41 | rdfs:subPropertyOf sp:arg . | 42 | rdfs:subPropertyOf sp:arg . |
| 42 | 43 | ||
| 43 | -<http://spinrdf.org/arg#name> | 44 | +arg:licence |
| 45 | + rdf:type rdf:Property ; | ||
| 46 | + rdfs:label "licence"^^xsd:string ; | ||
| 47 | + rdfs:subPropertyOf sp:arg . | ||
| 48 | + | ||
| 49 | +arg:name | ||
| 44 | rdf:type rdf:Property ; | 50 | rdf:type rdf:Property ; |
| 45 | rdfs:label "name"^^xsd:string ; | 51 | rdfs:label "name"^^xsd:string ; |
| 46 | rdfs:subPropertyOf sp:arg . | 52 | rdfs:subPropertyOf sp:arg . |
| 47 | 53 | ||
| 48 | -<http://spinrdf.org/arg#report> | 54 | +arg:report |
| 49 | rdf:type rdf:Property ; | 55 | rdf:type rdf:Property ; |
| 50 | rdfs:label "report"^^xsd:string ; | 56 | rdfs:label "report"^^xsd:string ; |
| 51 | rdfs:subPropertyOf sp:arg . | 57 | rdfs:subPropertyOf sp:arg . |
| 52 | 58 | ||
| 53 | -<http://spinrdf.org/arg#resource> | 59 | +arg:resource |
| 54 | rdf:type rdf:Property ; | 60 | rdf:type rdf:Property ; |
| 55 | rdfs:label "resource"^^xsd:string ; | 61 | rdfs:label "resource"^^xsd:string ; |
| 56 | rdfs:subPropertyOf sp:arg . | 62 | rdfs:subPropertyOf sp:arg . |
| 57 | 63 | ||
| 58 | -<http://spinrdf.org/arg#well> | 64 | +arg:well |
| 59 | rdf:type rdf:Property ; | 65 | rdf:type rdf:Property ; |
| 60 | rdfs:label "well"^^xsd:string ; | 66 | rdfs:label "well"^^xsd:string ; |
| 61 | rdfs:subPropertyOf sp:arg . | 67 | rdfs:subPropertyOf sp:arg . |
| 62 | 68 | ||
| 63 | -<http://spinrdf.org/arg#wellBore> | 69 | +arg:wellBore |
| 64 | rdf:type rdf:Property ; | 70 | rdf:type rdf:Property ; |
| 65 | rdfs:label "well bore"^^xsd:string ; | 71 | rdfs:label "well bore"^^xsd:string ; |
| 66 | rdfs:subPropertyOf sp:arg . | 72 | rdfs:subPropertyOf sp:arg . |
| 67 | 73 | ||
| 68 | -<http://spinrdf.org/arg#wellBoreName> | 74 | +arg:wellBoreName |
| 69 | rdf:type rdf:Property ; | 75 | rdf:type rdf:Property ; |
| 70 | rdfs:label "well bore name"^^xsd:string ; | 76 | rdfs:label "well bore name"^^xsd:string ; |
| 71 | rdfs:subPropertyOf sp:arg . | 77 | rdfs:subPropertyOf sp:arg . |
| 72 | 78 | ||
| 73 | -<http://spinrdf.org/arg#wellName> | 79 | +arg:wellName |
| 74 | rdf:type rdf:Property ; | 80 | rdf:type rdf:Property ; |
| 75 | rdfs:label "well name"^^xsd:string ; | 81 | rdfs:label "well name"^^xsd:string ; |
| 76 | rdfs:subPropertyOf sp:arg . | 82 | rdfs:subPropertyOf sp:arg . |
| ... | @@ -92,15 +98,15 @@ | ... | @@ -92,15 +98,15 @@ |
| 92 | ] ; | 98 | ] ; |
| 93 | spin:constraint | 99 | spin:constraint |
| 94 | [ rdf:type spl:Argument ; | 100 | [ rdf:type spl:Argument ; |
| 95 | - rdfs:comment "The value to match against."^^xsd:string ; | ||
| 96 | - spl:predicate sp:arg1 | ||
| 97 | - ] ; | ||
| 98 | - spin:constraint | ||
| 99 | - [ rdf:type spl:Argument ; | ||
| 100 | rdfs:comment "The property that must be used in the result resource."^^xsd:string ; | 101 | rdfs:comment "The property that must be used in the result resource."^^xsd:string ; |
| 101 | spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ; | 102 | spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ; |
| 102 | spl:valueType rdf:Property | 103 | spl:valueType rdf:Property |
| 103 | ] ; | 104 | ] ; |
| 105 | + spin:constraint | ||
| 106 | + [ rdf:type spl:Argument ; | ||
| 107 | + rdfs:comment "The value to match against."^^xsd:string ; | ||
| 108 | + spl:predicate sp:arg1 | ||
| 109 | + ] ; | ||
| 104 | spin:returnType rdfs:Resource . | 110 | spin:returnType rdfs:Resource . |
| 105 | 111 | ||
| 106 | npdata:npd | 112 | npdata:npd |
| ... | @@ -121,7 +127,7 @@ rhspin:DDRTableTemplates | ... | @@ -121,7 +127,7 @@ rhspin:DDRTableTemplates |
| 121 | spin:constraint | 127 | spin:constraint |
| 122 | [ rdf:type spl:Argument ; | 128 | [ rdf:type spl:Argument ; |
| 123 | rdfs:comment "The DDR that serves as root of the query."^^xsd:string ; | 129 | rdfs:comment "The DDR that serves as root of the query."^^xsd:string ; |
| 124 | - spl:predicate <http://spinrdf.org/arg#report> ; | 130 | + spl:predicate arg:report ; |
| 125 | spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> | 131 | spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> |
| 126 | ] . | 132 | ] . |
| 127 | 133 | ||
| ... | @@ -153,7 +159,7 @@ rhspin:GetWellBoresOfWell | ... | @@ -153,7 +159,7 @@ rhspin:GetWellBoresOfWell |
| 153 | spin:constraint | 159 | spin:constraint |
| 154 | [ rdf:type spl:Argument ; | 160 | [ rdf:type spl:Argument ; |
| 155 | rdfs:comment "The Well to get the bores of."^^xsd:string ; | 161 | rdfs:comment "The Well to get the bores of."^^xsd:string ; |
| 156 | - spl:predicate <http://spinrdf.org/arg#well> ; | 162 | + spl:predicate arg:well ; |
| 157 | spl:valueType <http://www.reportinghub.no/ep/schema/well#Well> | 163 | spl:valueType <http://www.reportinghub.no/ep/schema/well#Well> |
| 158 | ] . | 164 | ] . |
| 159 | 165 | ||
| ... | @@ -195,7 +201,7 @@ rhspin:GetWellsOfCompanyName | ... | @@ -195,7 +201,7 @@ rhspin:GetWellsOfCompanyName |
| 195 | spin:constraint | 201 | spin:constraint |
| 196 | [ rdf:type spl:Argument ; | 202 | [ rdf:type spl:Argument ; |
| 197 | rdfs:comment "The name of a company."^^xsd:string ; | 203 | rdfs:comment "The name of a company."^^xsd:string ; |
| 198 | - spl:predicate <http://spinrdf.org/arg#companyName> ; | 204 | + spl:predicate arg:companyName ; |
| 199 | spl:valueType xsd:string | 205 | spl:valueType xsd:string |
| 200 | ] . | 206 | ] . |
| 201 | 207 | ||
| ... | @@ -229,7 +235,7 @@ rhspin:baaById | ... | @@ -229,7 +235,7 @@ rhspin:baaById |
| 229 | spin:constraint | 235 | spin:constraint |
| 230 | [ rdf:type spl:Argument ; | 236 | [ rdf:type spl:Argument ; |
| 231 | rdfs:comment "The NPD id of the BAA."^^xsd:string ; | 237 | rdfs:comment "The NPD id of the BAA."^^xsd:string ; |
| 232 | - spl:predicate <http://spinrdf.org/arg#id> ; | 238 | + spl:predicate arg:id ; |
| 233 | spl:valueType xsd:string | 239 | spl:valueType xsd:string |
| 234 | ] . | 240 | ] . |
| 235 | 241 | ||
| ... | @@ -251,7 +257,7 @@ rhspin:companyById | ... | @@ -251,7 +257,7 @@ rhspin:companyById |
| 251 | spin:constraint | 257 | spin:constraint |
| 252 | [ rdf:type spl:Argument ; | 258 | [ rdf:type spl:Argument ; |
| 253 | rdfs:comment "The NPD id of the company."^^xsd:string ; | 259 | rdfs:comment "The NPD id of the company."^^xsd:string ; |
| 254 | - spl:predicate <http://spinrdf.org/arg#id> ; | 260 | + spl:predicate arg:id ; |
| 255 | spl:valueType xsd:string | 261 | spl:valueType xsd:string |
| 256 | ] . | 262 | ] . |
| 257 | 263 | ||
| ... | @@ -349,7 +355,7 @@ rhspin:companyWithName | ... | @@ -349,7 +355,7 @@ rhspin:companyWithName |
| 349 | spin:constraint | 355 | spin:constraint |
| 350 | [ rdf:type spl:Argument ; | 356 | [ rdf:type spl:Argument ; |
| 351 | rdfs:comment "The name of the Company to get."^^xsd:string ; | 357 | rdfs:comment "The name of the Company to get."^^xsd:string ; |
| 352 | - spl:predicate <http://spinrdf.org/arg#name> ; | 358 | + spl:predicate arg:name ; |
| 353 | spl:valueType xsd:string | 359 | spl:valueType xsd:string |
| 354 | ] ; | 360 | ] ; |
| 355 | spin:returnType <http://www.reportinghub.no/ep/schema/organization#Company> . | 361 | spin:returnType <http://www.reportinghub.no/ep/schema/organization#Company> . |
| ... | @@ -378,7 +384,7 @@ rhspin:ddrActivityStartDate | ... | @@ -378,7 +384,7 @@ rhspin:ddrActivityStartDate |
| 378 | spin:constraint | 384 | spin:constraint |
| 379 | [ rdf:type spl:Argument ; | 385 | [ rdf:type spl:Argument ; |
| 380 | rdfs:comment "The DailyDrillingReport to get the start date of."^^xsd:string ; | 386 | rdfs:comment "The DailyDrillingReport to get the start date of."^^xsd:string ; |
| 381 | - spl:predicate <http://spinrdf.org/arg#ddr> ; | 387 | + spl:predicate arg:ddr ; |
| 382 | spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> | 388 | spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> |
| 383 | ] ; | 389 | ] ; |
| 384 | spin:returnType xsd:date . | 390 | spin:returnType xsd:date . |
| ... | @@ -415,7 +421,7 @@ rhspin:ddrWellBoreId | ... | @@ -415,7 +421,7 @@ rhspin:ddrWellBoreId |
| 415 | spin:constraint | 421 | spin:constraint |
| 416 | [ rdf:type spl:Argument ; | 422 | [ rdf:type spl:Argument ; |
| 417 | rdfs:comment "The DailyDrillingReport to get the start date of."^^xsd:string ; | 423 | rdfs:comment "The DailyDrillingReport to get the start date of."^^xsd:string ; |
| 418 | - spl:predicate <http://spinrdf.org/arg#ddr> ; | 424 | + spl:predicate arg:ddr ; |
| 419 | spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> | 425 | spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> |
| 420 | ] ; | 426 | ] ; |
| 421 | spin:returnType xsd:string . | 427 | spin:returnType xsd:string . |
| ... | @@ -438,7 +444,7 @@ rhspin:discoveryById | ... | @@ -438,7 +444,7 @@ rhspin:discoveryById |
| 438 | spin:constraint | 444 | spin:constraint |
| 439 | [ rdf:type spl:Argument ; | 445 | [ rdf:type spl:Argument ; |
| 440 | rdfs:comment "The NPD id of the Discovery."^^xsd:string ; | 446 | rdfs:comment "The NPD id of the Discovery."^^xsd:string ; |
| 441 | - spl:predicate <http://spinrdf.org/arg#id> ; | 447 | + spl:predicate arg:id ; |
| 442 | spl:valueType xsd:string | 448 | spl:valueType xsd:string |
| 443 | ] . | 449 | ] . |
| 444 | 450 | ||
| ... | @@ -460,15 +466,15 @@ rhspin:dtypeValue | ... | @@ -460,15 +466,15 @@ rhspin:dtypeValue |
| 460 | ] ; | 466 | ] ; |
| 461 | spin:constraint | 467 | spin:constraint |
| 462 | [ rdf:type spl:Argument ; | 468 | [ rdf:type spl:Argument ; |
| 463 | - rdfs:comment "The predicate that points to the reified value."^^xsd:string ; | ||
| 464 | - spl:predicate sp:arg2 ; | ||
| 465 | - spl:valueType rdf:Property | ||
| 466 | - ] ; | ||
| 467 | - spin:constraint | ||
| 468 | - [ rdf:type spl:Argument ; | ||
| 469 | rdfs:comment "The subject of the value."^^xsd:string ; | 469 | rdfs:comment "The subject of the value."^^xsd:string ; |
| 470 | spl:predicate sp:arg1 ; | 470 | spl:predicate sp:arg1 ; |
| 471 | spl:valueType rdfs:Resource | 471 | spl:valueType rdfs:Resource |
| 472 | + ] ; | ||
| 473 | + spin:constraint | ||
| 474 | + [ rdf:type spl:Argument ; | ||
| 475 | + rdfs:comment "The predicate that points to the reified value."^^xsd:string ; | ||
| 476 | + spl:predicate sp:arg2 ; | ||
| 477 | + spl:valueType rdf:Property | ||
| 472 | ] . | 478 | ] . |
| 473 | 479 | ||
| 474 | rhspin:facilityById | 480 | rhspin:facilityById |
| ... | @@ -489,7 +495,7 @@ rhspin:facilityById | ... | @@ -489,7 +495,7 @@ rhspin:facilityById |
| 489 | spin:constraint | 495 | spin:constraint |
| 490 | [ rdf:type spl:Argument ; | 496 | [ rdf:type spl:Argument ; |
| 491 | rdfs:comment "The NPD id of the facility."^^xsd:string ; | 497 | rdfs:comment "The NPD id of the facility."^^xsd:string ; |
| 492 | - spl:predicate <http://spinrdf.org/arg#id> ; | 498 | + spl:predicate arg:id ; |
| 493 | spl:valueType xsd:string | 499 | spl:valueType xsd:string |
| 494 | ] . | 500 | ] . |
| 495 | 501 | ||
| ... | @@ -511,10 +517,59 @@ rhspin:fieldById | ... | @@ -511,10 +517,59 @@ rhspin:fieldById |
| 511 | spin:constraint | 517 | spin:constraint |
| 512 | [ rdf:type spl:Argument ; | 518 | [ rdf:type spl:Argument ; |
| 513 | rdfs:comment "The NPD id of the field."^^xsd:string ; | 519 | rdfs:comment "The NPD id of the field."^^xsd:string ; |
| 514 | - spl:predicate <http://spinrdf.org/arg#id> ; | 520 | + spl:predicate arg:id ; |
| 515 | spl:valueType xsd:string | 521 | spl:valueType xsd:string |
| 516 | ] . | 522 | ] . |
| 517 | 523 | ||
| 524 | +rhspin:graphForDDR | ||
| 525 | + rdf:type spin:Function ; | ||
| 526 | + rdfs:comment "Gets the URI resource of the named graph that holds the reports for a given DDR."^^xsd:string ; | ||
| 527 | + rdfs:label "graph for DDR"^^xsd:string ; | ||
| 528 | + rdfs:subClassOf spin:Functions ; | ||
| 529 | + spin:body | ||
| 530 | + [ rdf:type sp:Select ; | ||
| 531 | + sp:resultVariables ([ rdf:type sp:iri ; | ||
| 532 | + sp:arg1 _:b20 | ||
| 533 | + ]) ; | ||
| 534 | + sp:where ([ rdf:type sp:TriplePath ; | ||
| 535 | + sp:object _:b21 ; | ||
| 536 | + sp:path [ rdf:type sp:SeqPath ; | ||
| 537 | + sp:path1 | ||
| 538 | + [ rdf:type sp:SeqPath ; | ||
| 539 | + sp:path1 <http://www.reportinghub.no/ep/schema/activity#reportOn> ; | ||
| 540 | + sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore> | ||
| 541 | + ] ; | ||
| 542 | + sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf> | ||
| 543 | + ] ; | ||
| 544 | + sp:subject | ||
| 545 | + [ sp:varName "ddr"^^xsd:string | ||
| 546 | + ] | ||
| 547 | + ] [ rdf:type sp:NamedGraph ; | ||
| 548 | + sp:elements ([ sp:object _:b22 ; | ||
| 549 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ; | ||
| 550 | + sp:subject _:b21 | ||
| 551 | + ] [ sp:object _:b23 ; | ||
| 552 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 553 | + sp:subject _:b22 | ||
| 554 | + ]) ; | ||
| 555 | + sp:graphNameNode npdata:npd | ||
| 556 | + ] [ rdf:type sp:Bind ; | ||
| 557 | + sp:expression | ||
| 558 | + [ rdf:type fn:concat ; | ||
| 559 | + sp:arg1 "https://www.reportinghub.no/ep/graph/licence-" ; | ||
| 560 | + sp:arg2 _:b23 | ||
| 561 | + ] ; | ||
| 562 | + sp:variable _:b20 | ||
| 563 | + ]) | ||
| 564 | + ] ; | ||
| 565 | + spin:constraint | ||
| 566 | + [ rdf:type spl:Argument ; | ||
| 567 | + rdfs:comment "The DDR to get the graph for."^^xsd:string ; | ||
| 568 | + spl:predicate arg:ddr ; | ||
| 569 | + spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> | ||
| 570 | + ] ; | ||
| 571 | + spin:returnType rdfs:Resource . | ||
| 572 | + | ||
| 518 | rhspin:licenceById | 573 | rhspin:licenceById |
| 519 | rdf:type spin:Function ; | 574 | rdf:type spin:Function ; |
| 520 | rdfs:label "license by id"^^xsd:string ; | 575 | rdfs:label "license by id"^^xsd:string ; |
| ... | @@ -533,7 +588,7 @@ rhspin:licenceById | ... | @@ -533,7 +588,7 @@ rhspin:licenceById |
| 533 | spin:constraint | 588 | spin:constraint |
| 534 | [ rdf:type spl:Argument ; | 589 | [ rdf:type spl:Argument ; |
| 535 | rdfs:comment "The id of the license."^^xsd:string ; | 590 | rdfs:comment "The id of the license."^^xsd:string ; |
| 536 | - spl:predicate <http://spinrdf.org/arg#id> ; | 591 | + spl:predicate arg:id ; |
| 537 | spl:valueType xsd:string | 592 | spl:valueType xsd:string |
| 538 | ] ; | 593 | ] ; |
| 539 | spin:returnType <http://www.reportinghub.no/np/schema/npd#Licence> . | 594 | spin:returnType <http://www.reportinghub.no/np/schema/npd#Licence> . |
| ... | @@ -545,9 +600,9 @@ rhspin:licenceForWellBore | ... | @@ -545,9 +600,9 @@ rhspin:licenceForWellBore |
| 545 | rdfs:subClassOf spin:Functions ; | 600 | rdfs:subClassOf spin:Functions ; |
| 546 | spin:body | 601 | spin:body |
| 547 | [ rdf:type sp:Select ; | 602 | [ rdf:type sp:Select ; |
| 548 | - sp:resultVariables (_:b20) ; | 603 | + sp:resultVariables (_:b24) ; |
| 549 | sp:where ([ rdf:type sp:NamedGraph ; | 604 | sp:where ([ rdf:type sp:NamedGraph ; |
| 550 | - sp:elements ([ sp:object _:b20 ; | 605 | + sp:elements ([ sp:object _:b24 ; |
| 551 | sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ; | 606 | sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ; |
| 552 | sp:subject | 607 | sp:subject |
| 553 | [ sp:varName "wellBore"^^xsd:string | 608 | [ sp:varName "wellBore"^^xsd:string |
| ... | @@ -559,7 +614,7 @@ rhspin:licenceForWellBore | ... | @@ -559,7 +614,7 @@ rhspin:licenceForWellBore |
| 559 | spin:constraint | 614 | spin:constraint |
| 560 | [ rdf:type spl:Argument ; | 615 | [ rdf:type spl:Argument ; |
| 561 | rdfs:comment "The WellBore to get the licence of."^^xsd:string ; | 616 | rdfs:comment "The WellBore to get the licence of."^^xsd:string ; |
| 562 | - spl:predicate <http://spinrdf.org/arg#wellBore> ; | 617 | + spl:predicate arg:wellBore ; |
| 563 | spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> | 618 | spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> |
| 564 | ] ; | 619 | ] ; |
| 565 | spin:returnType <http://www.reportinghub.no/np/schema/npd#Licence> . | 620 | spin:returnType <http://www.reportinghub.no/np/schema/npd#Licence> . |
| ... | @@ -571,7 +626,7 @@ rhspin:normalizeString | ... | @@ -571,7 +626,7 @@ rhspin:normalizeString |
| 571 | rdfs:subClassOf spl:StringFunctions ; | 626 | rdfs:subClassOf spl:StringFunctions ; |
| 572 | spin:body | 627 | spin:body |
| 573 | [ rdf:type sp:Select ; | 628 | [ rdf:type sp:Select ; |
| 574 | - sp:resultVariables (_:b21) ; | 629 | + sp:resultVariables (_:b25) ; |
| 575 | sp:where ([ rdf:type sp:Bind ; | 630 | sp:where ([ rdf:type sp:Bind ; |
| 576 | sp:expression | 631 | sp:expression |
| 577 | [ rdf:type spif:regex ; | 632 | [ rdf:type spif:regex ; |
| ... | @@ -579,67 +634,67 @@ rhspin:normalizeString | ... | @@ -579,67 +634,67 @@ rhspin:normalizeString |
| 579 | sp:arg2 "\\((.*)\\)" ; | 634 | sp:arg2 "\\((.*)\\)" ; |
| 580 | sp:arg3 "" | 635 | sp:arg3 "" |
| 581 | ] ; | 636 | ] ; |
| 582 | - sp:variable _:b22 | 637 | + sp:variable _:b26 |
| 583 | ] [ rdf:type sp:Bind ; | 638 | ] [ rdf:type sp:Bind ; |
| 584 | sp:expression | 639 | sp:expression |
| 585 | [ rdf:type spif:trim ; | 640 | [ rdf:type spif:trim ; |
| 586 | - sp:arg1 _:b22 | 641 | + sp:arg1 _:b26 |
| 587 | ] ; | 642 | ] ; |
| 588 | - sp:variable _:b23 | 643 | + sp:variable _:b27 |
| 589 | ] [ rdf:type sp:Bind ; | 644 | ] [ rdf:type sp:Bind ; |
| 590 | sp:expression | 645 | sp:expression |
| 591 | [ rdf:type spif:encodeURL ; | 646 | [ rdf:type spif:encodeURL ; |
| 592 | - sp:arg1 _:b23 | 647 | + sp:arg1 _:b27 |
| 593 | ] ; | 648 | ] ; |
| 594 | - sp:variable _:b24 | 649 | + sp:variable _:b28 |
| 595 | ] [ rdf:type sp:Bind ; | 650 | ] [ rdf:type sp:Bind ; |
| 596 | sp:expression | 651 | sp:expression |
| 597 | [ rdf:type spif:regex ; | 652 | [ rdf:type spif:regex ; |
| 598 | - sp:arg1 _:b24 ; | 653 | + sp:arg1 _:b28 ; |
| 599 | sp:arg2 "%2F" ; | 654 | sp:arg2 "%2F" ; |
| 600 | sp:arg3 "_" | 655 | sp:arg3 "_" |
| 601 | ] ; | 656 | ] ; |
| 602 | - sp:variable _:b25 | 657 | + sp:variable _:b29 |
| 603 | ] [ rdf:type sp:Bind ; | 658 | ] [ rdf:type sp:Bind ; |
| 604 | sp:expression | 659 | sp:expression |
| 605 | [ rdf:type spif:regex ; | 660 | [ rdf:type spif:regex ; |
| 606 | - sp:arg1 _:b25 ; | 661 | + sp:arg1 _:b29 ; |
| 607 | sp:arg2 "%[0-9A-F][0-9A-F]" ; | 662 | sp:arg2 "%[0-9A-F][0-9A-F]" ; |
| 608 | sp:arg3 "" | 663 | sp:arg3 "" |
| 609 | ] ; | 664 | ] ; |
| 610 | - sp:variable _:b26 | 665 | + sp:variable _:b30 |
| 611 | ] [ rdf:type sp:Bind ; | 666 | ] [ rdf:type sp:Bind ; |
| 612 | sp:expression | 667 | sp:expression |
| 613 | [ rdf:type spif:regex ; | 668 | [ rdf:type spif:regex ; |
| 614 | - sp:arg1 _:b26 ; | 669 | + sp:arg1 _:b30 ; |
| 615 | sp:arg2 "\\+" ; | 670 | sp:arg2 "\\+" ; |
| 616 | sp:arg3 "_" | 671 | sp:arg3 "_" |
| 617 | ] ; | 672 | ] ; |
| 618 | - sp:variable _:b27 | 673 | + sp:variable _:b31 |
| 619 | ] [ rdf:type sp:Bind ; | 674 | ] [ rdf:type sp:Bind ; |
| 620 | sp:expression | 675 | sp:expression |
| 621 | [ rdf:type spif:regex ; | 676 | [ rdf:type spif:regex ; |
| 622 | - sp:arg1 _:b27 ; | 677 | + sp:arg1 _:b31 ; |
| 623 | sp:arg2 "_+" ; | 678 | sp:arg2 "_+" ; |
| 624 | sp:arg3 "_" | 679 | sp:arg3 "_" |
| 625 | ] ; | 680 | ] ; |
| 626 | - sp:variable _:b28 | 681 | + sp:variable _:b32 |
| 627 | ] [ rdf:type sp:Bind ; | 682 | ] [ rdf:type sp:Bind ; |
| 628 | sp:expression | 683 | sp:expression |
| 629 | [ rdf:type spif:regex ; | 684 | [ rdf:type spif:regex ; |
| 630 | - sp:arg1 _:b28 ; | 685 | + sp:arg1 _:b32 ; |
| 631 | sp:arg2 "\\*" ; | 686 | sp:arg2 "\\*" ; |
| 632 | sp:arg3 "" | 687 | sp:arg3 "" |
| 633 | ] ; | 688 | ] ; |
| 634 | - sp:variable _:b29 | 689 | + sp:variable _:b33 |
| 635 | ] [ rdf:type sp:Bind ; | 690 | ] [ rdf:type sp:Bind ; |
| 636 | sp:expression | 691 | sp:expression |
| 637 | [ rdf:type xsd:string ; | 692 | [ rdf:type xsd:string ; |
| 638 | sp:arg1 [ rdf:type spif:upperCase ; | 693 | sp:arg1 [ rdf:type spif:upperCase ; |
| 639 | - sp:arg1 _:b29 | 694 | + sp:arg1 _:b33 |
| 640 | ] | 695 | ] |
| 641 | ] ; | 696 | ] ; |
| 642 | - sp:variable _:b21 | 697 | + sp:variable _:b25 |
| 643 | ]) | 698 | ]) |
| 644 | ] ; | 699 | ] ; |
| 645 | spin:constraint | 700 | spin:constraint |
| ... | @@ -656,9 +711,9 @@ rhspin:npdId | ... | @@ -656,9 +711,9 @@ rhspin:npdId |
| 656 | rdfs:subClassOf spl:StringFunctions ; | 711 | rdfs:subClassOf spl:StringFunctions ; |
| 657 | spin:body | 712 | spin:body |
| 658 | [ rdf:type sp:Select ; | 713 | [ rdf:type sp:Select ; |
| 659 | - sp:resultVariables (_:b30) ; | 714 | + sp:resultVariables (_:b34) ; |
| 660 | sp:where ([ rdf:type sp:NamedGraph ; | 715 | sp:where ([ rdf:type sp:NamedGraph ; |
| 661 | - sp:elements ([ sp:object _:b30 ; | 716 | + sp:elements ([ sp:object _:b34 ; |
| 662 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 717 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
| 663 | sp:subject | 718 | sp:subject |
| 664 | [ sp:varName "resource"^^xsd:string | 719 | [ sp:varName "resource"^^xsd:string |
| ... | @@ -670,7 +725,7 @@ rhspin:npdId | ... | @@ -670,7 +725,7 @@ rhspin:npdId |
| 670 | spin:constraint | 725 | spin:constraint |
| 671 | [ rdf:type spl:Argument ; | 726 | [ rdf:type spl:Argument ; |
| 672 | rdfs:comment "The resource to get the npd:id of."^^xsd:string ; | 727 | rdfs:comment "The resource to get the npd:id of."^^xsd:string ; |
| 673 | - spl:predicate <http://spinrdf.org/arg#resource> ; | 728 | + spl:predicate arg:resource ; |
| 674 | spl:valueType <http://www.reportinghub.no/np/schema/npd#NPDIndividual> | 729 | spl:valueType <http://www.reportinghub.no/np/schema/npd#NPDIndividual> |
| 675 | ] . | 730 | ] . |
| 676 | 731 | ||
| ... | @@ -681,9 +736,9 @@ rhspin:npdName | ... | @@ -681,9 +736,9 @@ rhspin:npdName |
| 681 | rdfs:subClassOf spl:StringFunctions ; | 736 | rdfs:subClassOf spl:StringFunctions ; |
| 682 | spin:body | 737 | spin:body |
| 683 | [ rdf:type sp:Select ; | 738 | [ rdf:type sp:Select ; |
| 684 | - sp:resultVariables (_:b31) ; | 739 | + sp:resultVariables (_:b35) ; |
| 685 | sp:where ([ rdf:type sp:NamedGraph ; | 740 | sp:where ([ rdf:type sp:NamedGraph ; |
| 686 | - sp:elements ([ sp:object _:b31 ; | 741 | + sp:elements ([ sp:object _:b35 ; |
| 687 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 742 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 688 | sp:subject | 743 | sp:subject |
| 689 | [ sp:varName "resource"^^xsd:string | 744 | [ sp:varName "resource"^^xsd:string |
| ... | @@ -695,7 +750,7 @@ rhspin:npdName | ... | @@ -695,7 +750,7 @@ rhspin:npdName |
| 695 | spin:constraint | 750 | spin:constraint |
| 696 | [ rdf:type spl:Argument ; | 751 | [ rdf:type spl:Argument ; |
| 697 | rdfs:comment "The NPD resource to get the name of."^^xsd:string ; | 752 | rdfs:comment "The NPD resource to get the name of."^^xsd:string ; |
| 698 | - spl:predicate <http://spinrdf.org/arg#resource> ; | 753 | + spl:predicate arg:resource ; |
| 699 | spl:valueType <http://www.reportinghub.no/np/schema/npd#NPDIndividual> | 754 | spl:valueType <http://www.reportinghub.no/np/schema/npd#NPDIndividual> |
| 700 | ] ; | 755 | ] ; |
| 701 | spin:returnType xsd:string . | 756 | spin:returnType xsd:string . |
| ... | @@ -717,8 +772,9 @@ rhspin:npdTripleExists | ... | @@ -717,8 +772,9 @@ rhspin:npdTripleExists |
| 717 | ] ; | 772 | ] ; |
| 718 | spin:constraint | 773 | spin:constraint |
| 719 | [ rdf:type spl:Argument ; | 774 | [ rdf:type spl:Argument ; |
| 720 | - rdfs:comment "The object to match."^^xsd:string ; | 775 | + rdfs:comment "The subject to find"^^xsd:string ; |
| 721 | - spl:predicate sp:arg3 | 776 | + spl:predicate sp:arg1 ; |
| 777 | + spl:valueType rdfs:Resource | ||
| 722 | ] ; | 778 | ] ; |
| 723 | spin:constraint | 779 | spin:constraint |
| 724 | [ rdf:type spl:Argument ; | 780 | [ rdf:type spl:Argument ; |
| ... | @@ -728,9 +784,8 @@ rhspin:npdTripleExists | ... | @@ -728,9 +784,8 @@ rhspin:npdTripleExists |
| 728 | ] ; | 784 | ] ; |
| 729 | spin:constraint | 785 | spin:constraint |
| 730 | [ rdf:type spl:Argument ; | 786 | [ rdf:type spl:Argument ; |
| 731 | - rdfs:comment "The subject to find"^^xsd:string ; | 787 | + rdfs:comment "The object to match."^^xsd:string ; |
| 732 | - spl:predicate sp:arg1 ; | 788 | + spl:predicate sp:arg3 |
| 733 | - spl:valueType rdfs:Resource | ||
| 734 | ] ; | 789 | ] ; |
| 735 | spin:returnType xsd:boolean . | 790 | spin:returnType xsd:boolean . |
| 736 | 791 | ||
| ... | @@ -755,7 +810,7 @@ rhspin:parentCompanyByName | ... | @@ -755,7 +810,7 @@ rhspin:parentCompanyByName |
| 755 | spin:constraint | 810 | spin:constraint |
| 756 | [ rdf:type spl:Argument ; | 811 | [ rdf:type spl:Argument ; |
| 757 | rdfs:comment "The NPD name of the parent company to get the URI of."^^xsd:string ; | 812 | rdfs:comment "The NPD name of the parent company to get the URI of."^^xsd:string ; |
| 758 | - spl:predicate <http://spinrdf.org/arg#name> ; | 813 | + spl:predicate arg:name ; |
| 759 | spl:valueType xsd:string | 814 | spl:valueType xsd:string |
| 760 | ] ; | 815 | ] ; |
| 761 | spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . | 816 | spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . |
| ... | @@ -785,7 +840,7 @@ rhspin:tufById | ... | @@ -785,7 +840,7 @@ rhspin:tufById |
| 785 | spin:constraint | 840 | spin:constraint |
| 786 | [ rdf:type spl:Argument ; | 841 | [ rdf:type spl:Argument ; |
| 787 | rdfs:comment "The NPD id of the TUF."^^xsd:string ; | 842 | rdfs:comment "The NPD id of the TUF."^^xsd:string ; |
| 788 | - spl:predicate <http://spinrdf.org/arg#id> ; | 843 | + spl:predicate arg:id ; |
| 789 | spl:valueType xsd:string | 844 | spl:valueType xsd:string |
| 790 | ] . | 845 | ] . |
| 791 | 846 | ||
| ... | @@ -817,7 +872,7 @@ rhspin:wellBoreById | ... | @@ -817,7 +872,7 @@ rhspin:wellBoreById |
| 817 | spin:constraint | 872 | spin:constraint |
| 818 | [ rdf:type spl:Argument ; | 873 | [ rdf:type spl:Argument ; |
| 819 | rdfs:comment "The id of the well bore."^^xsd:string ; | 874 | rdfs:comment "The id of the well bore."^^xsd:string ; |
| 820 | - spl:predicate <http://spinrdf.org/arg#id> ; | 875 | + spl:predicate arg:id ; |
| 821 | spl:valueType xsd:string | 876 | spl:valueType xsd:string |
| 822 | ] ; | 877 | ] ; |
| 823 | spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . | 878 | spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . |
| ... | @@ -829,16 +884,16 @@ rhspin:wellBoreByName | ... | @@ -829,16 +884,16 @@ rhspin:wellBoreByName |
| 829 | rdfs:subClassOf spl:URIFunctions ; | 884 | rdfs:subClassOf spl:URIFunctions ; |
| 830 | spin:body | 885 | spin:body |
| 831 | [ rdf:type sp:Select ; | 886 | [ rdf:type sp:Select ; |
| 832 | - sp:resultVariables (_:b32) ; | 887 | + sp:resultVariables (_:b36) ; |
| 833 | sp:where ([ rdf:type sp:NamedGraph ; | 888 | sp:where ([ rdf:type sp:NamedGraph ; |
| 834 | sp:elements ([ sp:object | 889 | sp:elements ([ sp:object |
| 835 | [ sp:varName "wellBoreName"^^xsd:string | 890 | [ sp:varName "wellBoreName"^^xsd:string |
| 836 | ] ; | 891 | ] ; |
| 837 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 892 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
| 838 | - sp:subject _:b32 | 893 | + sp:subject _:b36 |
| 839 | ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | 894 | ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
| 840 | sp:predicate rdf:type ; | 895 | sp:predicate rdf:type ; |
| 841 | - sp:subject _:b32 | 896 | + sp:subject _:b36 |
| 842 | ]) ; | 897 | ]) ; |
| 843 | sp:graphNameNode npdata:npd | 898 | sp:graphNameNode npdata:npd |
| 844 | ]) | 899 | ]) |
| ... | @@ -846,7 +901,7 @@ rhspin:wellBoreByName | ... | @@ -846,7 +901,7 @@ rhspin:wellBoreByName |
| 846 | spin:constraint | 901 | spin:constraint |
| 847 | [ rdf:type spl:Argument ; | 902 | [ rdf:type spl:Argument ; |
| 848 | rdfs:comment "The name of the well bore."^^xsd:string ; | 903 | rdfs:comment "The name of the well bore."^^xsd:string ; |
| 849 | - spl:predicate <http://spinrdf.org/arg#wellBoreName> ; | 904 | + spl:predicate arg:wellBoreName ; |
| 850 | spl:valueType xsd:string | 905 | spl:valueType xsd:string |
| 851 | ] ; | 906 | ] ; |
| 852 | spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . | 907 | spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . |
| ... | @@ -872,48 +927,60 @@ rhspin:wellByName | ... | @@ -872,48 +927,60 @@ rhspin:wellByName |
| 872 | spin:constraint | 927 | spin:constraint |
| 873 | [ rdf:type spl:Argument ; | 928 | [ rdf:type spl:Argument ; |
| 874 | rdfs:comment "The NPD name of the well to get the URI of."^^xsd:string ; | 929 | rdfs:comment "The NPD name of the well to get the URI of."^^xsd:string ; |
| 875 | - spl:predicate <http://spinrdf.org/arg#wellName> ; | 930 | + spl:predicate arg:wellName ; |
| 876 | spl:valueType xsd:string | 931 | spl:valueType xsd:string |
| 877 | ] ; | 932 | ] ; |
| 878 | spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . | 933 | spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . |
| 879 | 934 | ||
| 880 | -_:b32 | 935 | +_:b20 |
| 936 | + sp:varName "uri"^^xsd:string . | ||
| 937 | + | ||
| 938 | +_:b23 | ||
| 939 | + sp:varName "id"^^xsd:string . | ||
| 940 | + | ||
| 941 | +_:b22 | ||
| 942 | + sp:varName "licence"^^xsd:string . | ||
| 943 | + | ||
| 944 | +_:b21 | ||
| 881 | sp:varName "wellBore"^^xsd:string . | 945 | sp:varName "wellBore"^^xsd:string . |
| 882 | 946 | ||
| 883 | -_:b31 | 947 | +_:b36 |
| 948 | + sp:varName "wellBore"^^xsd:string . | ||
| 949 | + | ||
| 950 | +_:b35 | ||
| 884 | sp:varName "name"^^xsd:string . | 951 | sp:varName "name"^^xsd:string . |
| 885 | 952 | ||
| 886 | -_:b30 | 953 | +_:b34 |
| 887 | sp:varName "id"^^xsd:string . | 954 | sp:varName "id"^^xsd:string . |
| 888 | 955 | ||
| 889 | -_:b29 | 956 | +_:b33 |
| 890 | sp:varName "t4"^^xsd:string . | 957 | sp:varName "t4"^^xsd:string . |
| 891 | 958 | ||
| 892 | -_:b28 | 959 | +_:b32 |
| 893 | sp:varName "t3"^^xsd:string . | 960 | sp:varName "t3"^^xsd:string . |
| 894 | 961 | ||
| 895 | -_:b27 | 962 | +_:b31 |
| 896 | sp:varName "t2"^^xsd:string . | 963 | sp:varName "t2"^^xsd:string . |
| 897 | 964 | ||
| 898 | -_:b26 | 965 | +_:b30 |
| 899 | sp:varName "t1"^^xsd:string . | 966 | sp:varName "t1"^^xsd:string . |
| 900 | 967 | ||
| 901 | -_:b25 | 968 | +_:b29 |
| 902 | sp:varName "t0b"^^xsd:string . | 969 | sp:varName "t0b"^^xsd:string . |
| 903 | 970 | ||
| 904 | -_:b24 | 971 | +_:b28 |
| 905 | sp:varName "t0a"^^xsd:string . | 972 | sp:varName "t0a"^^xsd:string . |
| 906 | 973 | ||
| 907 | -_:b23 | 974 | +_:b27 |
| 908 | sp:varName "s2"^^xsd:string . | 975 | sp:varName "s2"^^xsd:string . |
| 909 | 976 | ||
| 910 | -_:b22 | 977 | +_:b26 |
| 911 | sp:varName "s1"^^xsd:string . | 978 | sp:varName "s1"^^xsd:string . |
| 912 | 979 | ||
| 913 | -_:b21 | 980 | +_:b25 |
| 914 | sp:varName "normalizedStr"^^xsd:string . | 981 | sp:varName "normalizedStr"^^xsd:string . |
| 915 | 982 | ||
| 916 | -_:b20 | 983 | +_:b24 |
| 917 | sp:varName "licence"^^xsd:string . | 984 | sp:varName "licence"^^xsd:string . |
| 918 | 985 | ||
| 919 | _:b19 | 986 | _:b19 | ... | ... |
-
Please register or login to post a comment