Showing
1 changed file
with
98 additions
and
28 deletions
| ... | @@ -105,15 +105,15 @@ arg:wellName | ... | @@ -105,15 +105,15 @@ arg:wellName |
| 105 | ] ; | 105 | ] ; |
| 106 | spin:constraint | 106 | spin:constraint |
| 107 | [ rdf:type spl:Argument ; | 107 | [ rdf:type spl:Argument ; |
| 108 | - rdfs:comment "The value to match against."^^xsd:string ; | ||
| 109 | - spl:predicate sp:arg1 | ||
| 110 | - ] ; | ||
| 111 | - spin:constraint | ||
| 112 | - [ rdf:type spl:Argument ; | ||
| 113 | rdfs:comment "The property that must be used in the result resource."^^xsd:string ; | 108 | rdfs:comment "The property that must be used in the result resource."^^xsd:string ; |
| 114 | spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ; | 109 | spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ; |
| 115 | spl:valueType rdf:Property | 110 | spl:valueType rdf:Property |
| 116 | ] ; | 111 | ] ; |
| 112 | + spin:constraint | ||
| 113 | + [ rdf:type spl:Argument ; | ||
| 114 | + rdfs:comment "The value to match against."^^xsd:string ; | ||
| 115 | + spl:predicate sp:arg1 | ||
| 116 | + ] ; | ||
| 117 | spin:returnType rdfs:Resource . | 117 | spin:returnType rdfs:Resource . |
| 118 | 118 | ||
| 119 | npdata:npd | 119 | npdata:npd |
| ... | @@ -138,6 +138,76 @@ rhspin:DDRTableTemplates | ... | @@ -138,6 +138,76 @@ rhspin:DDRTableTemplates |
| 138 | spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> | 138 | spl:valueType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> |
| 139 | ] . | 139 | ] . |
| 140 | 140 | ||
| 141 | +rhspin:GetLicenceInfo | ||
| 142 | + rdf:type spin:SelectTemplate ; | ||
| 143 | + rdfs:comment "Gets the NPD id and a type identifier (\"PL\" or \"BA\") for a licence specified by a name."^^xsd:string ; | ||
| 144 | + rdfs:label "Get licence info"^^xsd:string ; | ||
| 145 | + rdfs:subClassOf spin:SelectTemplates ; | ||
| 146 | + spin:body | ||
| 147 | + [ rdf:type sp:Select ; | ||
| 148 | + sp:resultVariables ([ sp:varName "id"^^xsd:string | ||
| 149 | + ] [ sp:varName "typeName"^^xsd:string | ||
| 150 | + ]) ; | ||
| 151 | + sp:where ([ rdf:type sp:NamedGraph ; | ||
| 152 | + sp:elements ([ sp:object | ||
| 153 | + [ sp:varName "name"^^xsd:string | ||
| 154 | + ] ; | ||
| 155 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 156 | + sp:subject | ||
| 157 | + [ sp:varName "owner"^^xsd:string | ||
| 158 | + ] | ||
| 159 | + ] [ sp:object | ||
| 160 | + [ sp:varName "type"^^xsd:string | ||
| 161 | + ] ; | ||
| 162 | + sp:predicate rdf:type ; | ||
| 163 | + sp:subject | ||
| 164 | + [ sp:varName "owner"^^xsd:string | ||
| 165 | + ] | ||
| 166 | + ] [ sp:object | ||
| 167 | + [ sp:varName "id"^^xsd:string | ||
| 168 | + ] ; | ||
| 169 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | ||
| 170 | + sp:subject | ||
| 171 | + [ sp:varName "owner"^^xsd:string | ||
| 172 | + ] | ||
| 173 | + ]) ; | ||
| 174 | + sp:graphNameNode npdata:npd | ||
| 175 | + ] [ rdf:type sp:NamedGraph ; | ||
| 176 | + sp:elements ([ rdf:type sp:TriplePath ; | ||
| 177 | + sp:object <http://www.reportinghub.no/np/schema/npd#Owner> ; | ||
| 178 | + sp:path [ rdf:type sp:ModPath ; | ||
| 179 | + sp:modMax -2 ; | ||
| 180 | + sp:modMin 0 ; | ||
| 181 | + sp:subPath rdfs:subClassOf | ||
| 182 | + ] ; | ||
| 183 | + sp:subject | ||
| 184 | + [ sp:varName "type"^^xsd:string | ||
| 185 | + ] | ||
| 186 | + ]) ; | ||
| 187 | + sp:graphNameNode <http://www.reportinghub.no/np/schema/1.0/npd> | ||
| 188 | + ] [ rdf:type sp:Bind ; | ||
| 189 | + sp:expression | ||
| 190 | + [ rdf:type sp:if ; | ||
| 191 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 192 | + sp:arg1 [ sp:varName "type"^^xsd:string | ||
| 193 | + ] ; | ||
| 194 | + sp:arg2 <http://www.reportinghub.no/np/schema/npd#Licence> | ||
| 195 | + ] ; | ||
| 196 | + sp:arg2 "PL" ; | ||
| 197 | + sp:arg3 "BA" | ||
| 198 | + ] ; | ||
| 199 | + sp:variable | ||
| 200 | + [ sp:varName "typeName"^^xsd:string | ||
| 201 | + ] | ||
| 202 | + ]) | ||
| 203 | + ] ; | ||
| 204 | + spin:constraint | ||
| 205 | + [ rdf:type spl:Argument ; | ||
| 206 | + rdfs:comment "The name of the licence."^^xsd:string ; | ||
| 207 | + spl:predicate arg:name ; | ||
| 208 | + spl:valueType xsd:string | ||
| 209 | + ] . | ||
| 210 | + | ||
| 141 | rhspin:GetWellBoresOfWell | 211 | rhspin:GetWellBoresOfWell |
| 142 | rdf:type spin:SelectTemplate ; | 212 | rdf:type spin:SelectTemplate ; |
| 143 | rdfs:comment "Gets an ordered list of well bores that belong to a given Well. Result variables are ?wellBoreId and ?wellBoreName."^^xsd:string ; | 213 | rdfs:comment "Gets an ordered list of well bores that belong to a given Well. Result variables are ?wellBoreId and ?wellBoreName."^^xsd:string ; |
| ... | @@ -267,15 +337,15 @@ rhspin:WDRTableTemplates | ... | @@ -267,15 +337,15 @@ rhspin:WDRTableTemplates |
| 267 | spin:abstract "true"^^xsd:boolean ; | 337 | spin:abstract "true"^^xsd:boolean ; |
| 268 | spin:constraint | 338 | spin:constraint |
| 269 | [ rdf:type spl:Argument ; | 339 | [ rdf:type spl:Argument ; |
| 270 | - rdfs:comment "The start date of the reporting week."^^xsd:string ; | ||
| 271 | - spl:predicate arg:startDate ; | ||
| 272 | - spl:valueType xsd:date | ||
| 273 | - ] ; | ||
| 274 | - spin:constraint | ||
| 275 | - [ rdf:type spl:Argument ; | ||
| 276 | rdfs:comment "The DDR that serves as root of the query."^^xsd:string ; | 340 | rdfs:comment "The DDR that serves as root of the query."^^xsd:string ; |
| 277 | spl:predicate arg:wellBore ; | 341 | spl:predicate arg:wellBore ; |
| 278 | spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> | 342 | spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> |
| 343 | + ] ; | ||
| 344 | + spin:constraint | ||
| 345 | + [ rdf:type spl:Argument ; | ||
| 346 | + rdfs:comment "The start date of the reporting week."^^xsd:string ; | ||
| 347 | + spl:predicate arg:startDate ; | ||
| 348 | + spl:valueType xsd:date | ||
| 279 | ] . | 349 | ] . |
| 280 | 350 | ||
| 281 | rhspin:baaById | 351 | rhspin:baaById |
| ... | @@ -640,16 +710,16 @@ rhspin:ddrOfWeek | ... | @@ -640,16 +710,16 @@ rhspin:ddrOfWeek |
| 640 | ] ; | 710 | ] ; |
| 641 | spin:constraint | 711 | spin:constraint |
| 642 | [ rdf:type spl:Argument ; | 712 | [ rdf:type spl:Argument ; |
| 643 | - rdfs:comment "The first day of the week."^^xsd:string ; | ||
| 644 | - spl:predicate sp:arg1 ; | ||
| 645 | - spl:valueType xsd:date | ||
| 646 | - ] ; | ||
| 647 | - spin:constraint | ||
| 648 | - [ rdf:type spl:Argument ; | ||
| 649 | rdfs:comment "The well bore that the DDR must be about."^^xsd:string ; | 713 | rdfs:comment "The well bore that the DDR must be about."^^xsd:string ; |
| 650 | spl:predicate sp:arg2 ; | 714 | spl:predicate sp:arg2 ; |
| 651 | spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> | 715 | spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> |
| 652 | ] ; | 716 | ] ; |
| 717 | + spin:constraint | ||
| 718 | + [ rdf:type spl:Argument ; | ||
| 719 | + rdfs:comment "The first day of the week."^^xsd:string ; | ||
| 720 | + spl:predicate sp:arg1 ; | ||
| 721 | + spl:valueType xsd:date | ||
| 722 | + ] ; | ||
| 653 | spin:returnType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> . | 723 | spin:returnType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> . |
| 654 | 724 | ||
| 655 | rhspin:ddrWellBoreId | 725 | rhspin:ddrWellBoreId |
| ... | @@ -736,15 +806,15 @@ rhspin:dtypeValue | ... | @@ -736,15 +806,15 @@ rhspin:dtypeValue |
| 736 | ] ; | 806 | ] ; |
| 737 | spin:constraint | 807 | spin:constraint |
| 738 | [ rdf:type spl:Argument ; | 808 | [ rdf:type spl:Argument ; |
| 739 | - rdfs:comment "The predicate that points to the reified value."^^xsd:string ; | ||
| 740 | - spl:predicate sp:arg2 ; | ||
| 741 | - spl:valueType rdf:Property | ||
| 742 | - ] ; | ||
| 743 | - spin:constraint | ||
| 744 | - [ rdf:type spl:Argument ; | ||
| 745 | rdfs:comment "The subject of the value."^^xsd:string ; | 809 | rdfs:comment "The subject of the value."^^xsd:string ; |
| 746 | spl:predicate sp:arg1 ; | 810 | spl:predicate sp:arg1 ; |
| 747 | spl:valueType rdfs:Resource | 811 | spl:valueType rdfs:Resource |
| 812 | + ] ; | ||
| 813 | + spin:constraint | ||
| 814 | + [ rdf:type spl:Argument ; | ||
| 815 | + rdfs:comment "The predicate that points to the reified value."^^xsd:string ; | ||
| 816 | + spl:predicate sp:arg2 ; | ||
| 817 | + spl:valueType rdf:Property | ||
| 748 | ] . | 818 | ] . |
| 749 | 819 | ||
| 750 | rhspin:facilityById | 820 | rhspin:facilityById |
| ... | @@ -1324,8 +1394,9 @@ rhspin:npdTripleExists | ... | @@ -1324,8 +1394,9 @@ rhspin:npdTripleExists |
| 1324 | ] ; | 1394 | ] ; |
| 1325 | spin:constraint | 1395 | spin:constraint |
| 1326 | [ rdf:type spl:Argument ; | 1396 | [ rdf:type spl:Argument ; |
| 1327 | - rdfs:comment "The object to match."^^xsd:string ; | 1397 | + rdfs:comment "The subject to find"^^xsd:string ; |
| 1328 | - spl:predicate sp:arg3 | 1398 | + spl:predicate sp:arg1 ; |
| 1399 | + spl:valueType rdfs:Resource | ||
| 1329 | ] ; | 1400 | ] ; |
| 1330 | spin:constraint | 1401 | spin:constraint |
| 1331 | [ rdf:type spl:Argument ; | 1402 | [ rdf:type spl:Argument ; |
| ... | @@ -1335,9 +1406,8 @@ rhspin:npdTripleExists | ... | @@ -1335,9 +1406,8 @@ rhspin:npdTripleExists |
| 1335 | ] ; | 1406 | ] ; |
| 1336 | spin:constraint | 1407 | spin:constraint |
| 1337 | [ rdf:type spl:Argument ; | 1408 | [ rdf:type spl:Argument ; |
| 1338 | - rdfs:comment "The subject to find"^^xsd:string ; | 1409 | + rdfs:comment "The object to match."^^xsd:string ; |
| 1339 | - spl:predicate sp:arg1 ; | 1410 | + spl:predicate sp:arg3 |
| 1340 | - spl:valueType rdfs:Resource | ||
| 1341 | ] ; | 1411 | ] ; |
| 1342 | spin:returnType xsd:boolean . | 1412 | spin:returnType xsd:boolean . |
| 1343 | 1413 | ... | ... |
-
Please register or login to post a comment