Showing
3 changed files
with
410 additions
and
16 deletions
| 1 | # baseURI: http://www.reportinghub.no/ep/spin/mpr-tables | 1 | # baseURI: http://www.reportinghub.no/ep/spin/mpr-tables |
| 2 | # imports: http://spinrdf.org/spin | 2 | # imports: http://spinrdf.org/spin |
| 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production | ||
| 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-report | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-report |
| 4 | # imports: http://www.reportinghub.no/ep/spin/1.1/lib | 5 | # imports: http://www.reportinghub.no/ep/spin/1.1/lib |
| 5 | 6 | ||
| ... | @@ -7,6 +8,7 @@ | ... | @@ -7,6 +8,7 @@ |
| 7 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 8 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 8 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 9 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 9 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 10 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 11 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | ||
| 10 | @prefix sp: <http://spinrdf.org/sp#> . | 12 | @prefix sp: <http://spinrdf.org/sp#> . |
| 11 | @prefix spin: <http://spinrdf.org/spin#> . | 13 | @prefix spin: <http://spinrdf.org/spin#> . |
| 12 | @prefix spl: <http://spinrdf.org/spl#> . | 14 | @prefix spl: <http://spinrdf.org/spl#> . |
| ... | @@ -14,5 +16,386 @@ | ... | @@ -14,5 +16,386 @@ |
| 14 | 16 | ||
| 15 | <http://www.reportinghub.no/ep/spin/mpr-tables> | 17 | <http://www.reportinghub.no/ep/spin/mpr-tables> |
| 16 | rdf:type owl:Ontology ; | 18 | rdf:type owl:Ontology ; |
| 17 | - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; | 19 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://spinrdf.org/spin> ; |
| 18 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 20 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 21 | + | ||
| 22 | +mpr-tables:ProductionFlows | ||
| 23 | + rdf:type rhspin:TableTemplate ; | ||
| 24 | + rdfs:label "Production flows"^^xsd:string ; | ||
| 25 | + rdfs:subClassOf rhspin:MPRGTableTemplates ; | ||
| 26 | + spin:body | ||
| 27 | + [ rdf:type sp:Select ; | ||
| 28 | + sp:resultVariables ([ sp:varName "productionFlowFacilityName"^^xsd:string | ||
| 29 | + ] [ sp:varName "productionFlowName"^^xsd:string | ||
| 30 | + ] [ sp:varName "productionFlowDefinitionTypeName"^^xsd:string | ||
| 31 | + ] [ sp:varName "productionFlowDefinitionSubTypeName"^^xsd:string | ||
| 32 | + ] [ sp:varName "productionFlowPurposeTypeName"^^xsd:string | ||
| 33 | + ] [ sp:varName "productFlowName"^^xsd:string | ||
| 34 | + ] [ sp:varName "productFlowMaterialTypeName"^^xsd:string | ||
| 35 | + ] [ sp:varName "productFlowGrossOrNetTypeName"^^xsd:string | ||
| 36 | + ] [ sp:varName "productFlowInPeriodDurationTypeName"^^xsd:string | ||
| 37 | + ] [ sp:varName "massInKilograms"^^xsd:string | ||
| 38 | + ] [ sp:varName "pressureInAtmospheres"^^xsd:string | ||
| 39 | + ] [ sp:varName "temperatureInCelsius"^^xsd:string | ||
| 40 | + ] [ sp:varName "volumeInMetre3"^^xsd:string | ||
| 41 | + ] [ sp:varName "grossCalorificValueInMegaJouleMetre_3"^^xsd:string | ||
| 42 | + ]) ; | ||
| 43 | + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | ||
| 44 | + sp:predicate rdf:type ; | ||
| 45 | + sp:subject | ||
| 46 | + [ sp:varName "productionReport"^^xsd:string | ||
| 47 | + ] | ||
| 48 | + ] [ sp:object | ||
| 49 | + [ sp:varName "productionReport"^^xsd:string | ||
| 50 | + ] ; | ||
| 51 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
| 52 | + sp:subject | ||
| 53 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
| 54 | + ] | ||
| 55 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; | ||
| 56 | + sp:predicate rdf:type ; | ||
| 57 | + sp:subject | ||
| 58 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
| 59 | + ] | ||
| 60 | + ] [ sp:object | ||
| 61 | + [ sp:varName "productionFlowsInReportingPeriod"^^xsd:string | ||
| 62 | + ] ; | ||
| 63 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 64 | + sp:subject | ||
| 65 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
| 66 | + ] | ||
| 67 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | ||
| 68 | + sp:predicate rdf:type ; | ||
| 69 | + sp:subject | ||
| 70 | + [ sp:varName "productionFlowsInReportingPeriod"^^xsd:string | ||
| 71 | + ] | ||
| 72 | + ] [ sp:object | ||
| 73 | + [ sp:varName "productionFlowInReportingPeriod"^^xsd:string | ||
| 74 | + ] ; | ||
| 75 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ; | ||
| 76 | + sp:subject | ||
| 77 | + [ sp:varName "productionFlowsInReportingPeriod"^^xsd:string | ||
| 78 | + ] | ||
| 79 | + ] [ sp:object | ||
| 80 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 81 | + ] ; | ||
| 82 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 83 | + sp:subject | ||
| 84 | + [ sp:varName "productionFlowInReportingPeriod"^^xsd:string | ||
| 85 | + ] | ||
| 86 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ; | ||
| 87 | + sp:predicate rdf:type ; | ||
| 88 | + sp:subject | ||
| 89 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 90 | + ] | ||
| 91 | + ] [ sp:object | ||
| 92 | + [ sp:varName "productionFlowFacility"^^xsd:string | ||
| 93 | + ] ; | ||
| 94 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ; | ||
| 95 | + sp:subject | ||
| 96 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 97 | + ] | ||
| 98 | + ] [ sp:object | ||
| 99 | + [ sp:varName "productionFlowFacilityName"^^xsd:string | ||
| 100 | + ] ; | ||
| 101 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
| 102 | + sp:subject | ||
| 103 | + [ sp:varName "productionFlowFacility"^^xsd:string | ||
| 104 | + ] | ||
| 105 | + ] [ rdf:type sp:Optional ; | ||
| 106 | + sp:elements ([ sp:object | ||
| 107 | + [ sp:varName "productionFlowName"^^xsd:string | ||
| 108 | + ] ; | ||
| 109 | + sp:predicate rdfs:label ; | ||
| 110 | + sp:subject | ||
| 111 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 112 | + ] | ||
| 113 | + ]) | ||
| 114 | + ] [ rdf:type sp:Optional ; | ||
| 115 | + sp:elements ([ sp:object | ||
| 116 | + [ sp:varName "productionFlowDefinitionType"^^xsd:string | ||
| 117 | + ] ; | ||
| 118 | + sp:predicate rdf:type ; | ||
| 119 | + sp:subject | ||
| 120 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 121 | + ] | ||
| 122 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionType> ; | ||
| 123 | + sp:predicate rdf:type ; | ||
| 124 | + sp:subject | ||
| 125 | + [ sp:varName "productionFlowDefinitionType"^^xsd:string | ||
| 126 | + ] | ||
| 127 | + ] [ sp:object | ||
| 128 | + [ sp:varName "productionFlowDefinitionTypeName"^^xsd:string | ||
| 129 | + ] ; | ||
| 130 | + sp:predicate rdfs:label ; | ||
| 131 | + sp:subject | ||
| 132 | + [ sp:varName "productionFlowDefinitionType"^^xsd:string | ||
| 133 | + ] | ||
| 134 | + ]) | ||
| 135 | + ] [ rdf:type sp:Optional ; | ||
| 136 | + sp:elements ([ sp:object | ||
| 137 | + [ sp:varName "productionFlowDefinitionSubType"^^xsd:string | ||
| 138 | + ] ; | ||
| 139 | + sp:predicate rdf:type ; | ||
| 140 | + sp:subject | ||
| 141 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 142 | + ] | ||
| 143 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowDefinitionSubType> ; | ||
| 144 | + sp:predicate rdf:type ; | ||
| 145 | + sp:subject | ||
| 146 | + [ sp:varName "productionFlowDefinitionSubType"^^xsd:string | ||
| 147 | + ] | ||
| 148 | + ] [ sp:object | ||
| 149 | + [ sp:varName "productionFlowDefinitionSubTypeName"^^xsd:string | ||
| 150 | + ] ; | ||
| 151 | + sp:predicate rdfs:label ; | ||
| 152 | + sp:subject | ||
| 153 | + [ sp:varName "productionFlowDefinitionSubType"^^xsd:string | ||
| 154 | + ] | ||
| 155 | + ]) | ||
| 156 | + ] [ rdf:type sp:Optional ; | ||
| 157 | + sp:elements ([ sp:object | ||
| 158 | + [ sp:varName "productionFlowPurposeType"^^xsd:string | ||
| 159 | + ] ; | ||
| 160 | + sp:predicate rdf:type ; | ||
| 161 | + sp:subject | ||
| 162 | + [ sp:varName "productionFlow"^^xsd:string | ||
| 163 | + ] | ||
| 164 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowPurposeType> ; | ||
| 165 | + sp:predicate rdf:type ; | ||
| 166 | + sp:subject | ||
| 167 | + [ sp:varName "productionFlowPurposeType"^^xsd:string | ||
| 168 | + ] | ||
| 169 | + ] [ sp:object | ||
| 170 | + [ sp:varName "productionFlowPurposeTypeName"^^xsd:string | ||
| 171 | + ] ; | ||
| 172 | + sp:predicate rdfs:label ; | ||
| 173 | + sp:subject | ||
| 174 | + [ sp:varName "productionFlowPurposeType"^^xsd:string | ||
| 175 | + ] | ||
| 176 | + ]) | ||
| 177 | + ] [ rdf:type sp:Optional ; | ||
| 178 | + sp:elements ([ sp:object | ||
| 179 | + [ sp:varName "productFlowInReportingPeriod"^^xsd:string | ||
| 180 | + ] ; | ||
| 181 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ; | ||
| 182 | + sp:subject | ||
| 183 | + [ sp:varName "productionFlowInReportingPeriod"^^xsd:string | ||
| 184 | + ] | ||
| 185 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ; | ||
| 186 | + sp:predicate rdf:type ; | ||
| 187 | + sp:subject | ||
| 188 | + [ sp:varName "productFlowInReportingPeriod"^^xsd:string | ||
| 189 | + ] | ||
| 190 | + ] [ rdf:type sp:Optional ; | ||
| 191 | + sp:elements ([ sp:object | ||
| 192 | + [ sp:varName "productFlow"^^xsd:string | ||
| 193 | + ] ; | ||
| 194 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 195 | + sp:subject | ||
| 196 | + [ sp:varName "productFlowInReportingPeriod"^^xsd:string | ||
| 197 | + ] | ||
| 198 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductFlow> ; | ||
| 199 | + sp:predicate rdf:type ; | ||
| 200 | + sp:subject | ||
| 201 | + [ sp:varName "productFlow"^^xsd:string | ||
| 202 | + ] | ||
| 203 | + ] [ rdf:type sp:Optional ; | ||
| 204 | + sp:elements ([ sp:object | ||
| 205 | + [ sp:varName "productFlowName"^^xsd:string | ||
| 206 | + ] ; | ||
| 207 | + sp:predicate rdfs:label ; | ||
| 208 | + sp:subject | ||
| 209 | + [ sp:varName "productFlow"^^xsd:string | ||
| 210 | + ] | ||
| 211 | + ]) | ||
| 212 | + ] [ rdf:type sp:Optional ; | ||
| 213 | + sp:elements ([ sp:object | ||
| 214 | + [ sp:varName "productFlowMaterialType"^^xsd:string | ||
| 215 | + ] ; | ||
| 216 | + sp:predicate rdf:type ; | ||
| 217 | + sp:subject | ||
| 218 | + [ sp:varName "productFlow"^^xsd:string | ||
| 219 | + ] | ||
| 220 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductMaterialType> ; | ||
| 221 | + sp:predicate rdf:type ; | ||
| 222 | + sp:subject | ||
| 223 | + [ sp:varName "productFlowMaterialType"^^xsd:string | ||
| 224 | + ] | ||
| 225 | + ] [ sp:object | ||
| 226 | + [ sp:varName "productFlowMaterialTypeName"^^xsd:string | ||
| 227 | + ] ; | ||
| 228 | + sp:predicate rdfs:label ; | ||
| 229 | + sp:subject | ||
| 230 | + [ sp:varName "productFlowMaterialType"^^xsd:string | ||
| 231 | + ] | ||
| 232 | + ]) | ||
| 233 | + ] [ rdf:type sp:Optional ; | ||
| 234 | + sp:elements ([ sp:object | ||
| 235 | + [ sp:varName "productFlowGrossOrNetType"^^xsd:string | ||
| 236 | + ] ; | ||
| 237 | + sp:predicate rdf:type ; | ||
| 238 | + sp:subject | ||
| 239 | + [ sp:varName "productFlow"^^xsd:string | ||
| 240 | + ] | ||
| 241 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlowGrossOrNetType> ; | ||
| 242 | + sp:predicate rdf:type ; | ||
| 243 | + sp:subject | ||
| 244 | + [ sp:varName "productFlowGrossOrNetType"^^xsd:string | ||
| 245 | + ] | ||
| 246 | + ] [ sp:object | ||
| 247 | + [ sp:varName "productFlowGrossOrNetTypeName"^^xsd:string | ||
| 248 | + ] ; | ||
| 249 | + sp:predicate rdfs:label ; | ||
| 250 | + sp:subject | ||
| 251 | + [ sp:varName "productFlowGrossOrNetType"^^xsd:string | ||
| 252 | + ] | ||
| 253 | + ]) | ||
| 254 | + ] [ rdf:type sp:Optional ; | ||
| 255 | + sp:elements ([ sp:object | ||
| 256 | + [ sp:varName "productFlowInReportingPeriod"^^xsd:string | ||
| 257 | + ] ; | ||
| 258 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 259 | + sp:subject | ||
| 260 | + [ sp:varName "productFlowInPeriod"^^xsd:string | ||
| 261 | + ] | ||
| 262 | + ] [ rdf:type sp:Optional ; | ||
| 263 | + sp:elements ([ sp:object | ||
| 264 | + [ sp:varName "productFlowInPeriodDurationType"^^xsd:string | ||
| 265 | + ] ; | ||
| 266 | + sp:predicate rdf:type ; | ||
| 267 | + sp:subject | ||
| 268 | + [ sp:varName "productFlowInPeriod"^^xsd:string | ||
| 269 | + ] | ||
| 270 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#TemporalPartOfAFlowDurationType> ; | ||
| 271 | + sp:predicate rdf:type ; | ||
| 272 | + sp:subject | ||
| 273 | + [ sp:varName "productFlowInPeriodDurationType"^^xsd:string | ||
| 274 | + ] | ||
| 275 | + ] [ sp:object | ||
| 276 | + [ sp:varName "productFlowInPeriodDurationTypeName"^^xsd:string | ||
| 277 | + ] ; | ||
| 278 | + sp:predicate rdfs:label ; | ||
| 279 | + sp:subject | ||
| 280 | + [ sp:varName "productFlowInPeriodDurationType"^^xsd:string | ||
| 281 | + ] | ||
| 282 | + ]) | ||
| 283 | + ] [ sp:object | ||
| 284 | + [ sp:varName "materialThatFlowsInPeriod"^^xsd:string | ||
| 285 | + ] ; | ||
| 286 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; | ||
| 287 | + sp:subject | ||
| 288 | + [ sp:varName "productFlowInPeriod"^^xsd:string | ||
| 289 | + ] | ||
| 290 | + ] [ rdf:type sp:Optional ; | ||
| 291 | + sp:elements ([ sp:object | ||
| 292 | + [ sp:varName "mass"^^xsd:string | ||
| 293 | + ] ; | ||
| 294 | + sp:predicate rdf:type ; | ||
| 295 | + sp:subject | ||
| 296 | + [ sp:varName "materialThatFlowsInPeriod"^^xsd:string | ||
| 297 | + ] | ||
| 298 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; | ||
| 299 | + sp:predicate rdf:type ; | ||
| 300 | + sp:subject | ||
| 301 | + [ sp:varName "mass"^^xsd:string | ||
| 302 | + ] | ||
| 303 | + ] [ sp:object | ||
| 304 | + [ sp:varName "massInKilograms"^^xsd:string | ||
| 305 | + ] ; | ||
| 306 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#kilogram> ; | ||
| 307 | + sp:subject | ||
| 308 | + [ sp:varName "mass"^^xsd:string | ||
| 309 | + ] | ||
| 310 | + ]) | ||
| 311 | + ] [ sp:object | ||
| 312 | + [ sp:varName "materialThatFlowsInPeriod"^^xsd:string | ||
| 313 | + ] ; | ||
| 314 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 315 | + sp:subject | ||
| 316 | + [ sp:varName "stateOfMaterialThatFlowsInPeriod"^^xsd:string | ||
| 317 | + ] | ||
| 318 | + ] [ rdf:type sp:Optional ; | ||
| 319 | + sp:elements ([ sp:object | ||
| 320 | + [ sp:varName "pressure"^^xsd:string | ||
| 321 | + ] ; | ||
| 322 | + sp:predicate rdf:type ; | ||
| 323 | + sp:subject | ||
| 324 | + [ sp:varName "stateOfMaterialThatFlowsInPeriod"^^xsd:string | ||
| 325 | + ] | ||
| 326 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Pressure> ; | ||
| 327 | + sp:predicate rdf:type ; | ||
| 328 | + sp:subject | ||
| 329 | + [ sp:varName "pressure"^^xsd:string | ||
| 330 | + ] | ||
| 331 | + ] [ sp:object | ||
| 332 | + [ sp:varName "pressureInAtmospheres"^^xsd:string | ||
| 333 | + ] ; | ||
| 334 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#atmosphere> ; | ||
| 335 | + sp:subject | ||
| 336 | + [ sp:varName "pressure"^^xsd:string | ||
| 337 | + ] | ||
| 338 | + ]) | ||
| 339 | + ] [ rdf:type sp:Optional ; | ||
| 340 | + sp:elements ([ sp:object | ||
| 341 | + [ sp:varName "temperature"^^xsd:string | ||
| 342 | + ] ; | ||
| 343 | + sp:predicate rdf:type ; | ||
| 344 | + sp:subject | ||
| 345 | + [ sp:varName "stateOfMaterialThatFlowsInPeriod"^^xsd:string | ||
| 346 | + ] | ||
| 347 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Temperature> ; | ||
| 348 | + sp:predicate rdf:type ; | ||
| 349 | + sp:subject | ||
| 350 | + [ sp:varName "temperature"^^xsd:string | ||
| 351 | + ] | ||
| 352 | + ] [ sp:object | ||
| 353 | + [ sp:varName "temperatureInCelsius"^^xsd:string | ||
| 354 | + ] ; | ||
| 355 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#celsius> ; | ||
| 356 | + sp:subject | ||
| 357 | + [ sp:varName "temperature"^^xsd:string | ||
| 358 | + ] | ||
| 359 | + ]) | ||
| 360 | + ] [ sp:object | ||
| 361 | + [ sp:varName "volume"^^xsd:string | ||
| 362 | + ] ; | ||
| 363 | + sp:predicate rdf:type ; | ||
| 364 | + sp:subject | ||
| 365 | + [ sp:varName "stateOfMaterialThatFlowsInPeriod"^^xsd:string | ||
| 366 | + ] | ||
| 367 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
| 368 | + sp:predicate rdf:type ; | ||
| 369 | + sp:subject | ||
| 370 | + [ sp:varName "volume"^^xsd:string | ||
| 371 | + ] | ||
| 372 | + ] [ sp:object | ||
| 373 | + [ sp:varName "volumeInMetre3"^^xsd:string | ||
| 374 | + ] ; | ||
| 375 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3> ; | ||
| 376 | + sp:subject | ||
| 377 | + [ sp:varName "volume"^^xsd:string | ||
| 378 | + ] | ||
| 379 | + ] [ rdf:type sp:Optional ; | ||
| 380 | + sp:elements ([ sp:object | ||
| 381 | + [ sp:varName "calorificValue"^^xsd:string | ||
| 382 | + ] ; | ||
| 383 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#grossCalorificValue> ; | ||
| 384 | + sp:subject | ||
| 385 | + [ sp:varName "stateOfMaterialThatFlowsInPeriod"^^xsd:string | ||
| 386 | + ] | ||
| 387 | + ] [ sp:object | ||
| 388 | + [ sp:varName "grossCalorificValueInMegaJouleMetre_3"^^xsd:string | ||
| 389 | + ] ; | ||
| 390 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#megajoule_m-3> ; | ||
| 391 | + sp:subject | ||
| 392 | + [ sp:varName "calorificValue"^^xsd:string | ||
| 393 | + ] | ||
| 394 | + ]) | ||
| 395 | + ]) | ||
| 396 | + ]) | ||
| 397 | + ]) | ||
| 398 | + ]) | ||
| 399 | + ] ; | ||
| 400 | + rhspin:tableHeaders ("""flag1 | ||
| 401 | +productionFlowFacilityName"""^^xsd:string "productionFlowName"^^xsd:string "productionFlowDefinitionTypeName"^^xsd:string "productionFlowDefinitionSubTypeName"^^xsd:string "productionFlowPurposeTypeName"^^xsd:string "productFlowName"^^xsd:string "productFlowMaterialTypeName"^^xsd:string "productFlowGrossOrNetTypeName"^^xsd:string "productFlowInPeriodDurationTypeName"^^xsd:string "massInKilograms"^^xsd:string "pressureInAtmospheres"^^xsd:string "temperatureInCelsius"^^xsd:string "volumeInMetre3"^^xsd:string) . | ... | ... |
| 1 | -<ui:group let:facilityName="{# SELECT DISTINCT | 1 | +<ui:group |
| 2 | -?productionFlowFacilityName WHERE { ?productionFlow a ep-flow:WholeLifeProductionFlow ; ep-flow:flowIntoOrOutOf ?productionFlowFacility . ?productionFlowFacility npd:name ?productionFlowFacilityName . } }"> | 2 | +let:report="{# SELECT ?report WHERE { ?report a ep-prodreport:ProductionReport . } }" |
| 3 | -<h1></h1> | 3 | +> |
| 4 | + | ||
| 5 | +<!-- | ||
| 6 | + | ||
| 7 | +let:facilityName="{# SELECT DISTINCT | ||
| 8 | +?productionFlowFacilityName WHERE { ?productionFlow a ep-flow:WholeLifeProductionFlow ; ep-flow:flowIntoOrOutOf ?productionFlowFacility . ?productionFlowFacility npd:name ?productionFlowFacilityName . } }" | ||
| 9 | + | ||
| 10 | +--> | ||
| 11 | + | ||
| 4 | <h1>{= ?facilityName } Field</h1> | 12 | <h1>{= ?facilityName } Field</h1> |
| 5 | 13 | ||
| 6 | - <ui:forEach ui:resultSet="{# | 14 | +<!-- <ui:forEach ui:resultSet="{# |
| 7 | SELECT | 15 | SELECT |
| 8 | ?productionFlowFacilityName | 16 | ?productionFlowFacilityName |
| 9 | ?productionFlowName | 17 | ?productionFlowName |
| ... | @@ -115,8 +123,7 @@ OPTIONAL { | ... | @@ -115,8 +123,7 @@ OPTIONAL { |
| 115 | } | 123 | } |
| 116 | } | 124 | } |
| 117 | 125 | ||
| 118 | -}"><!-- next: define a view of the productionFlow based on the table above --> | 126 | +}"> |
| 119 | - <!-- ui:resourceView ui:resource="{= ?productionFlow }"/--> | ||
| 120 | <h3>{= ?productionFlowName }</h3> | 127 | <h3>{= ?productionFlowName }</h3> |
| 121 | <table> | 128 | <table> |
| 122 | 129 | ||
| ... | @@ -136,8 +143,12 @@ OPTIONAL { | ... | @@ -136,8 +143,12 @@ OPTIONAL { |
| 136 | 143 | ||
| 137 | 144 | ||
| 138 | </table> | 145 | </table> |
| 139 | - </ui:forEach> | 146 | + |
| 147 | + </ui:forEach> --> | ||
| 140 | 148 | ||
| 149 | + <p>template test start</p> | ||
| 150 | + <ddrswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlows" /> | ||
| 151 | + <p>template test end</p> | ||
| 141 | 152 | ||
| 142 | </ui:group> | 153 | </ui:group> |
| 143 | 154 | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | # baseURI: http://www.reportinghub.no/swp/mprg | 1 | # baseURI: http://www.reportinghub.no/swp/mprg |
| 2 | # imports: http://uispin.org/tui | 2 | # imports: http://uispin.org/tui |
| 3 | -# imports: http://www.reportinghub.no/ep/schema/1.0/production | ||
| 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-report | 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-report |
| 5 | # imports: http://www.reportinghub.no/ep/spin/ddr-tables | 4 | # imports: http://www.reportinghub.no/ep/spin/ddr-tables |
| 5 | +# imports: http://www.reportinghub.no/ep/spin/mpr-tables | ||
| 6 | # imports: http://www.reportinghub.no/spin/rh | 6 | # imports: http://www.reportinghub.no/spin/rh |
| 7 | 7 | ||
| 8 | @prefix arg: <http://spinrdf.org/arg#> . | 8 | @prefix arg: <http://spinrdf.org/arg#> . |
| ... | @@ -51,7 +51,7 @@ arg:template | ... | @@ -51,7 +51,7 @@ arg:template |
| 51 | 51 | ||
| 52 | <http://www.reportinghub.no/swp/mprg> | 52 | <http://www.reportinghub.no/swp/mprg> |
| 53 | rdf:type owl:Ontology ; | 53 | rdf:type owl:Ontology ; |
| 54 | - owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://www.reportinghub.no/ep/spin/ddr-tables> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/production> ; | 54 | + owl:imports <http://www.reportinghub.no/ep/spin/mpr-tables> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/ddr-tables> , <http://www.reportinghub.no/ep/schema/1.0/production-report> , <http://uispin.org/tui> ; |
| 55 | owl:versionInfo "0.1.0"^^xsd:string . | 55 | owl:versionInfo "0.1.0"^^xsd:string . |
| 56 | 56 | ||
| 57 | mprgswp:MPRGView | 57 | mprgswp:MPRGView |
| ... | @@ -65,12 +65,6 @@ mprgswp:MPRGView | ... | @@ -65,12 +65,6 @@ mprgswp:MPRGView |
| 65 | spl:valueType <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> | 65 | spl:valueType <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> |
| 66 | ] ; | 66 | ] ; |
| 67 | ui:headIncludes | 67 | ui:headIncludes |
| 68 | - [ rdf:type html:Link ; | ||
| 69 | - html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ; | ||
| 70 | - html:rel "stylesheet"^^xsd:string ; | ||
| 71 | - html:type "text/css"^^xsd:string | ||
| 72 | - ] ; | ||
| 73 | - ui:headIncludes | ||
| 74 | [ rdf:type html:Title ; | 68 | [ rdf:type html:Title ; |
| 75 | ui:child | 69 | ui:child |
| 76 | [ rdf:type ui:TextNode ; | 70 | [ rdf:type ui:TextNode ; |
| ... | @@ -78,4 +72,10 @@ mprgswp:MPRGView | ... | @@ -78,4 +72,10 @@ mprgswp:MPRGView |
| 78 | ui:text "Monthly Production Report (government)"^^xsd:string | 72 | ui:text "Monthly Production Report (government)"^^xsd:string |
| 79 | ] | 73 | ] |
| 80 | ] ; | 74 | ] ; |
| 75 | + ui:headIncludes | ||
| 76 | + [ rdf:type html:Link ; | ||
| 77 | + html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ; | ||
| 78 | + html:rel "stylesheet"^^xsd:string ; | ||
| 79 | + html:type "text/css"^^xsd:string | ||
| 80 | + ] ; | ||
| 81 | ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> . | 81 | ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> . | ... | ... |
-
Please register or login to post a comment