Showing
1 changed file
with
67 additions
and
12 deletions
| ... | @@ -103,6 +103,61 @@ reportspin:DDRsOverview | ... | @@ -103,6 +103,61 @@ reportspin:DDRsOverview |
| 103 | ]) | 103 | ]) |
| 104 | ] . | 104 | ] . |
| 105 | 105 | ||
| 106 | +reportspin:DPRsOverview | ||
| 107 | + rdf:type spin:SelectTemplate ; | ||
| 108 | + rdfs:label "DPRs overview"^^xsd:string ; | ||
| 109 | + rdfs:subClassOf spin:SelectTemplates ; | ||
| 110 | + spin:body | ||
| 111 | + [ rdf:type sp:Select ; | ||
| 112 | + sp:orderBy ([ sp:varName "ownerName"^^xsd:string | ||
| 113 | + ] [ sp:varName "date"^^xsd:string | ||
| 114 | + ] [ sp:varName "created"^^xsd:string | ||
| 115 | + ]) ; | ||
| 116 | + sp:resultVariables ([ sp:varName "ownerName"^^xsd:string | ||
| 117 | + ] [ sp:varName "date"^^xsd:string | ||
| 118 | + ] [ sp:varName "created"^^xsd:string | ||
| 119 | + ] [ sp:varName "id"^^xsd:string | ||
| 120 | + ]) ; | ||
| 121 | + sp:where ([ sp:object | ||
| 122 | + [ sp:varName "id"^^xsd:string | ||
| 123 | + ] ; | ||
| 124 | + sp:predicate <http://rdfs.org/sioc/ns#id> ; | ||
| 125 | + sp:subject | ||
| 126 | + [ sp:varName "dpr"^^xsd:string | ||
| 127 | + ] | ||
| 128 | + ] [ sp:object | ||
| 129 | + [ sp:varName "created"^^xsd:string | ||
| 130 | + ] ; | ||
| 131 | + sp:predicate <http://purl.org/dc/terms/created> ; | ||
| 132 | + sp:subject | ||
| 133 | + [ sp:varName "dpr"^^xsd:string | ||
| 134 | + ] | ||
| 135 | + ] [ sp:object | ||
| 136 | + [ sp:varName "date"^^xsd:string | ||
| 137 | + ] ; | ||
| 138 | + sp:predicate <http://purl.org/dc/terms/date> ; | ||
| 139 | + sp:subject | ||
| 140 | + [ sp:varName "dpr"^^xsd:string | ||
| 141 | + ] | ||
| 142 | + ] [ sp:object | ||
| 143 | + [ sp:varName "owner"^^xsd:string | ||
| 144 | + ] ; | ||
| 145 | + sp:predicate <http://www.reportinghub.no/system/schema/reporting#owner> ; | ||
| 146 | + sp:subject | ||
| 147 | + [ sp:varName "dpr"^^xsd:string | ||
| 148 | + ] | ||
| 149 | + ] [ rdf:type sp:Bind ; | ||
| 150 | + sp:expression | ||
| 151 | + [ rdf:type rhspin:npdName ; | ||
| 152 | + sp:arg1 [ sp:varName "owner"^^xsd:string | ||
| 153 | + ] | ||
| 154 | + ] ; | ||
| 155 | + sp:variable | ||
| 156 | + [ sp:varName "ownerName"^^xsd:string | ||
| 157 | + ] | ||
| 158 | + ]) | ||
| 159 | + ] . | ||
| 160 | + | ||
| 106 | reportspin:graphByDDRId | 161 | reportspin:graphByDDRId |
| 107 | rdf:type spin:Function ; | 162 | rdf:type spin:Function ; |
| 108 | rdfs:comment "Gets the URI of the named graph containing the triples submitted by a report:DDR (metadata) with a given id."^^xsd:string ; | 163 | rdfs:comment "Gets the URI of the named graph containing the triples submitted by a report:DDR (metadata) with a given id."^^xsd:string ; |
| ... | @@ -211,16 +266,16 @@ reportspin:idOfDDRByDateAndWellBoreId | ... | @@ -211,16 +266,16 @@ reportspin:idOfDDRByDateAndWellBoreId |
| 211 | ] ; | 266 | ] ; |
| 212 | spin:constraint | 267 | spin:constraint |
| 213 | [ rdf:type spl:Argument ; | 268 | [ rdf:type spl:Argument ; |
| 214 | - rdfs:comment "The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string ; | ||
| 215 | - spl:predicate <http://spinrdf.org/arg#date> ; | ||
| 216 | - spl:valueType xsd:date | ||
| 217 | - ] ; | ||
| 218 | - spin:constraint | ||
| 219 | - [ rdf:type spl:Argument ; | ||
| 220 | rdfs:comment "The id of the well bore."^^xsd:string ; | 269 | rdfs:comment "The id of the well bore."^^xsd:string ; |
| 221 | spl:predicate <http://spinrdf.org/arg#wellBoreId> ; | 270 | spl:predicate <http://spinrdf.org/arg#wellBoreId> ; |
| 222 | spl:valueType xsd:string | 271 | spl:valueType xsd:string |
| 223 | ] ; | 272 | ] ; |
| 273 | + spin:constraint | ||
| 274 | + [ rdf:type spl:Argument ; | ||
| 275 | + rdfs:comment "The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string ; | ||
| 276 | + spl:predicate <http://spinrdf.org/arg#date> ; | ||
| 277 | + spl:valueType xsd:date | ||
| 278 | + ] ; | ||
| 224 | spin:returnType xsd:string . | 279 | spin:returnType xsd:string . |
| 225 | 280 | ||
| 226 | reportspin:idOfDPRByDateAndOwner | 281 | reportspin:idOfDPRByDateAndOwner |
| ... | @@ -269,14 +324,14 @@ reportspin:idOfDPRByDateAndOwner | ... | @@ -269,14 +324,14 @@ reportspin:idOfDPRByDateAndOwner |
| 269 | ] ; | 324 | ] ; |
| 270 | spin:constraint | 325 | spin:constraint |
| 271 | [ rdf:type spl:Argument ; | 326 | [ rdf:type spl:Argument ; |
| 272 | - rdfs:comment "The Licence or BAA."^^xsd:string ; | ||
| 273 | - spl:predicate <http://spinrdf.org/arg#owner> ; | ||
| 274 | - spl:valueType <http://www.reportinghub.no/np/schema/npd#Owner> | ||
| 275 | - ] ; | ||
| 276 | - spin:constraint | ||
| 277 | - [ rdf:type spl:Argument ; | ||
| 278 | rdfs:comment "The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string ; | 327 | rdfs:comment "The date of the DDR (not the submission date, but the start date of the report)."^^xsd:string ; |
| 279 | spl:predicate <http://spinrdf.org/arg#date> ; | 328 | spl:predicate <http://spinrdf.org/arg#date> ; |
| 280 | spl:valueType xsd:date | 329 | spl:valueType xsd:date |
| 281 | ] ; | 330 | ] ; |
| 331 | + spin:constraint | ||
| 332 | + [ rdf:type spl:Argument ; | ||
| 333 | + rdfs:comment "The Licence or BAA."^^xsd:string ; | ||
| 334 | + spl:predicate <http://spinrdf.org/arg#owner> ; | ||
| 335 | + spl:valueType <http://www.reportinghub.no/np/schema/npd#Owner> | ||
| 336 | + ] ; | ||
| 282 | spin:returnType xsd:string . | 337 | spin:returnType xsd:string . | ... | ... |
-
Please register or login to post a comment