Showing
5 changed files
with
327 additions
and
52 deletions
| 1 | +# baseURI: http://www.reportinghub.no/ep/spin/wdr-tables | ||
| 2 | +# imports: http://spinrdf.org/spin | ||
| 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | ||
| 4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr | ||
| 5 | +# imports: http://www.reportinghub.no/spin/rh | ||
| 6 | + | ||
| 7 | +@prefix arg: <http://spinrdf.org/arg#> . | ||
| 8 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 9 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 10 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 11 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | ||
| 12 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 13 | +@prefix spif: <http://spinrdf.org/spif#> . | ||
| 14 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 15 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 16 | +@prefix wdr-tables: <http://www.reportinghub.no/ep/spin/wdr-tables#> . | ||
| 17 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 18 | + | ||
| 19 | +<http://www.reportinghub.no/ep/spin/wdr-tables> | ||
| 20 | + rdf:type owl:Ontology ; | ||
| 21 | + rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ; | ||
| 22 | + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> ; | ||
| 23 | + owl:versionInfo "0.1.0"^^xsd:string . | ||
| 24 | + | ||
| 25 | +wdr-tables:Test | ||
| 26 | + rdf:type rhspin:TableTemplate ; | ||
| 27 | + rdfs:label "Test Table"^^xsd:string ; | ||
| 28 | + rdfs:subClassOf rhspin:WDRTableTemplates ; | ||
| 29 | + spin:body | ||
| 30 | + [ rdf:type sp:Select ; | ||
| 31 | + sp:resultVariables ([ sp:varName "a"^^xsd:string | ||
| 32 | + ] [ sp:varName "b"^^xsd:string | ||
| 33 | + ] [ sp:varName "c"^^xsd:string | ||
| 34 | + ]) ; | ||
| 35 | + sp:where ([ rdf:type sp:Bind ; | ||
| 36 | + sp:expression 42 ; | ||
| 37 | + sp:variable | ||
| 38 | + [ sp:varName "a"^^xsd:string | ||
| 39 | + ] | ||
| 40 | + ] [ rdf:type sp:Bind ; | ||
| 41 | + sp:expression | ||
| 42 | + [ sp:varName "startDate"^^xsd:string | ||
| 43 | + ] ; | ||
| 44 | + sp:variable | ||
| 45 | + [ sp:varName "b"^^xsd:string | ||
| 46 | + ] | ||
| 47 | + ] [ rdf:type sp:Bind ; | ||
| 48 | + sp:expression | ||
| 49 | + [ sp:varName "wellBore"^^xsd:string | ||
| 50 | + ] ; | ||
| 51 | + sp:variable | ||
| 52 | + [ sp:varName "c"^^xsd:string | ||
| 53 | + ] | ||
| 54 | + ]) | ||
| 55 | + ] ; | ||
| 56 | + rhspin:tableHeaders ("Column 1"^^xsd:string "Column 2"^^xsd:string "Column 3"^^xsd:string) . |
| ... | @@ -62,6 +62,11 @@ arg:resource | ... | @@ -62,6 +62,11 @@ arg:resource |
| 62 | rdfs:label "resource"^^xsd:string ; | 62 | rdfs:label "resource"^^xsd:string ; |
| 63 | rdfs:subPropertyOf sp:arg . | 63 | rdfs:subPropertyOf sp:arg . |
| 64 | 64 | ||
| 65 | +arg:startDate | ||
| 66 | + rdf:type rdf:Property ; | ||
| 67 | + rdfs:label "start date"^^xsd:string ; | ||
| 68 | + rdfs:subPropertyOf sp:arg . | ||
| 69 | + | ||
| 65 | arg:well | 70 | arg:well |
| 66 | rdf:type rdf:Property ; | 71 | rdf:type rdf:Property ; |
| 67 | rdfs:label "well"^^xsd:string ; | 72 | rdfs:label "well"^^xsd:string ; |
| ... | @@ -122,7 +127,7 @@ npdata:npd | ... | @@ -122,7 +127,7 @@ npdata:npd |
| 122 | 127 | ||
| 123 | rhspin:DDRTableTemplates | 128 | rhspin:DDRTableTemplates |
| 124 | rdf:type rhspin:TableTemplate ; | 129 | rdf:type rhspin:TableTemplate ; |
| 125 | - rdfs:label "DDRTable templates"^^xsd:string ; | 130 | + rdfs:label "DDR table templates"^^xsd:string ; |
| 126 | rdfs:subClassOf rhspin:TableTemplates ; | 131 | rdfs:subClassOf rhspin:TableTemplates ; |
| 127 | spin:abstract "true"^^xsd:boolean ; | 132 | spin:abstract "true"^^xsd:boolean ; |
| 128 | spin:constraint | 133 | spin:constraint |
| ... | @@ -254,6 +259,24 @@ rhspin:Test-normalizeWellBoreName-4 | ... | @@ -254,6 +259,24 @@ rhspin:Test-normalizeWellBoreName-4 |
| 254 | ] ; | 259 | ] ; |
| 255 | spl:testResult "31/2-L12"^^xsd:string . | 260 | spl:testResult "31/2-L12"^^xsd:string . |
| 256 | 261 | ||
| 262 | +rhspin:WDRTableTemplates | ||
| 263 | + rdf:type rhspin:TableTemplate ; | ||
| 264 | + rdfs:label "WDR table templates"^^xsd:string ; | ||
| 265 | + rdfs:subClassOf rhspin:TableTemplates ; | ||
| 266 | + spin:abstract "true"^^xsd:boolean ; | ||
| 267 | + spin:constraint | ||
| 268 | + [ rdf:type spl:Argument ; | ||
| 269 | + rdfs:comment "The DDR that serves as root of the query."^^xsd:string ; | ||
| 270 | + spl:predicate arg:wellBore ; | ||
| 271 | + spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> | ||
| 272 | + ] ; | ||
| 273 | + spin:constraint | ||
| 274 | + [ rdf:type spl:Argument ; | ||
| 275 | + rdfs:comment "The start date of the reporting week."^^xsd:string ; | ||
| 276 | + spl:predicate arg:startDate ; | ||
| 277 | + spl:valueType xsd:date | ||
| 278 | + ] . | ||
| 279 | + | ||
| 257 | rhspin:baaById | 280 | rhspin:baaById |
| 258 | rdf:type spin:Function ; | 281 | rdf:type spin:Function ; |
| 259 | rdfs:label "baa by id"^^xsd:string ; | 282 | rdfs:label "baa by id"^^xsd:string ; |
| ... | @@ -1403,86 +1426,86 @@ rhspin:wellByName | ... | @@ -1403,86 +1426,86 @@ rhspin:wellByName |
| 1403 | ] ; | 1426 | ] ; |
| 1404 | spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . | 1427 | spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . |
| 1405 | 1428 | ||
| 1406 | -_:b31 | 1429 | +_:b1 sp:varName "subject"^^xsd:string . |
| 1407 | - sp:varName "name"^^xsd:string . | ||
| 1408 | - | ||
| 1409 | -_:b30 | ||
| 1410 | - sp:varName "id"^^xsd:string . | ||
| 1411 | - | ||
| 1412 | -_:b29 | ||
| 1413 | - sp:varName "t4"^^xsd:string . | ||
| 1414 | 1430 | ||
| 1415 | -_:b28 | 1431 | +_:b2 sp:varName "wellBoreName"^^xsd:string . |
| 1416 | - sp:varName "t3"^^xsd:string . | ||
| 1417 | 1432 | ||
| 1418 | -_:b27 | 1433 | +_:b3 sp:varName "wellBoreId"^^xsd:string . |
| 1419 | - sp:varName "t2"^^xsd:string . | ||
| 1420 | 1434 | ||
| 1421 | -_:b26 | 1435 | +_:b4 sp:varName "wellBore"^^xsd:string . |
| 1422 | - sp:varName "t1"^^xsd:string . | ||
| 1423 | 1436 | ||
| 1424 | -_:b25 | 1437 | +_:b5 sp:varName "wellName"^^xsd:string . |
| 1425 | - sp:varName "t0b"^^xsd:string . | ||
| 1426 | 1438 | ||
| 1427 | -_:b24 | 1439 | +_:b6 sp:varName "well"^^xsd:string . |
| 1428 | - sp:varName "t0a"^^xsd:string . | ||
| 1429 | 1440 | ||
| 1430 | -_:b23 | 1441 | +_:b7 sp:varName "company"^^xsd:string . |
| 1431 | - sp:varName "s2"^^xsd:string . | ||
| 1432 | 1442 | ||
| 1433 | -_:b22 | 1443 | +_:b8 sp:varName "wellBore"^^xsd:string . |
| 1434 | - sp:varName "s1"^^xsd:string . | ||
| 1435 | 1444 | ||
| 1436 | -_:b21 | 1445 | +_:b9 sp:varName "licence"^^xsd:string . |
| 1437 | - sp:varName "normalizedStr"^^xsd:string . | ||
| 1438 | 1446 | ||
| 1439 | -_:b20 | 1447 | +_:b10 |
| 1440 | - sp:varName "licence"^^xsd:string . | 1448 | + sp:varName "share"^^xsd:string . |
| 1441 | 1449 | ||
| 1442 | -_:b19 | 1450 | +_:b11 |
| 1443 | - sp:varName "reif"^^xsd:string . | 1451 | + sp:varName "wellBore"^^xsd:string . |
| 1444 | 1452 | ||
| 1445 | -_:b18 | 1453 | +_:b12 |
| 1446 | - sp:varName "value"^^xsd:string . | 1454 | + sp:varName "share"^^xsd:string . |
| 1447 | 1455 | ||
| 1448 | -_:b17 | 1456 | +_:b13 |
| 1449 | - sp:varName "wellBore"^^xsd:string . | 1457 | + sp:varName "licence"^^xsd:string . |
| 1450 | 1458 | ||
| 1451 | -_:b16 | 1459 | +_:b14 |
| 1452 | sp:varName "company"^^xsd:string . | 1460 | sp:varName "company"^^xsd:string . |
| 1453 | 1461 | ||
| 1454 | _:b15 | 1462 | _:b15 |
| 1455 | sp:varName "companyName"^^xsd:string . | 1463 | sp:varName "companyName"^^xsd:string . |
| 1456 | 1464 | ||
| 1457 | -_:b14 | 1465 | +_:b16 |
| 1458 | sp:varName "company"^^xsd:string . | 1466 | sp:varName "company"^^xsd:string . |
| 1459 | 1467 | ||
| 1460 | -_:b13 | 1468 | +_:b17 |
| 1461 | - sp:varName "licence"^^xsd:string . | 1469 | + sp:varName "wellBore"^^xsd:string . |
| 1462 | 1470 | ||
| 1463 | -_:b12 | 1471 | +_:b18 |
| 1464 | - sp:varName "share"^^xsd:string . | 1472 | + sp:varName "value"^^xsd:string . |
| 1465 | 1473 | ||
| 1466 | -_:b11 | 1474 | +_:b19 |
| 1467 | - sp:varName "wellBore"^^xsd:string . | 1475 | + sp:varName "reif"^^xsd:string . |
| 1468 | 1476 | ||
| 1469 | -_:b10 | 1477 | +_:b20 |
| 1470 | - sp:varName "share"^^xsd:string . | 1478 | + sp:varName "licence"^^xsd:string . |
| 1471 | 1479 | ||
| 1472 | -_:b9 sp:varName "licence"^^xsd:string . | 1480 | +_:b21 |
| 1481 | + sp:varName "normalizedStr"^^xsd:string . | ||
| 1473 | 1482 | ||
| 1474 | -_:b8 sp:varName "wellBore"^^xsd:string . | 1483 | +_:b22 |
| 1484 | + sp:varName "s1"^^xsd:string . | ||
| 1475 | 1485 | ||
| 1476 | -_:b7 sp:varName "company"^^xsd:string . | 1486 | +_:b23 |
| 1487 | + sp:varName "s2"^^xsd:string . | ||
| 1477 | 1488 | ||
| 1478 | -_:b6 sp:varName "well"^^xsd:string . | 1489 | +_:b24 |
| 1490 | + sp:varName "t0a"^^xsd:string . | ||
| 1479 | 1491 | ||
| 1480 | -_:b5 sp:varName "wellName"^^xsd:string . | 1492 | +_:b25 |
| 1493 | + sp:varName "t0b"^^xsd:string . | ||
| 1481 | 1494 | ||
| 1482 | -_:b4 sp:varName "wellBore"^^xsd:string . | 1495 | +_:b26 |
| 1496 | + sp:varName "t1"^^xsd:string . | ||
| 1483 | 1497 | ||
| 1484 | -_:b3 sp:varName "wellBoreId"^^xsd:string . | 1498 | +_:b27 |
| 1499 | + sp:varName "t2"^^xsd:string . | ||
| 1485 | 1500 | ||
| 1486 | -_:b2 sp:varName "wellBoreName"^^xsd:string . | 1501 | +_:b28 |
| 1502 | + sp:varName "t3"^^xsd:string . | ||
| 1487 | 1503 | ||
| 1488 | -_:b1 sp:varName "subject"^^xsd:string . | 1504 | +_:b29 |
| 1505 | + sp:varName "t4"^^xsd:string . | ||
| 1506 | + | ||
| 1507 | +_:b30 | ||
| 1508 | + sp:varName "id"^^xsd:string . | ||
| 1509 | + | ||
| 1510 | +_:b31 | ||
| 1511 | + sp:varName "name"^^xsd:string . | ... | ... |
www.reportinghub.no/swp/SWP_wdr.ui.ttl
0 → 100644
| 1 | +# baseURI: http://www.reportinghub.no/swp/wdr | ||
| 2 | +# imports: http://uispin.org/tui | ||
| 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity | ||
| 4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | ||
| 5 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core | ||
| 6 | +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr | ||
| 7 | +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment | ||
| 8 | +# imports: http://www.reportinghub.no/ep/schema/1.0/facility | ||
| 9 | +# imports: http://www.reportinghub.no/ep/schema/1.0/organization | ||
| 10 | +# imports: http://www.reportinghub.no/ep/schema/1.0/report | ||
| 11 | +# imports: http://www.reportinghub.no/ep/schema/1.0/well | ||
| 12 | +# imports: http://www.reportinghub.no/ep/spin/wdr-tables | ||
| 13 | +# imports: http://www.reportinghub.no/spin/rh | ||
| 14 | + | ||
| 15 | +@prefix arg: <http://spinrdf.org/arg#> . | ||
| 16 | +@prefix ep-well: <http://www.reportinghub.no/ep/schema/well#> . | ||
| 17 | +@prefix html: <http://uispin.org/html#> . | ||
| 18 | +@prefix let: <http://uispin.org/let#> . | ||
| 19 | +@prefix letrs: <http://uispin.org/letrs#> . | ||
| 20 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 21 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 22 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 23 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
| 24 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
| 25 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
| 26 | +@prefix ui: <http://uispin.org/ui#> . | ||
| 27 | +@prefix wdrswp: <http://www.reportinghub.no/swp/wdr#> . | ||
| 28 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 29 | + | ||
| 30 | +arg:startDate | ||
| 31 | + rdf:type rdf:Property ; | ||
| 32 | + rdfs:label "startDate"^^xsd:string ; | ||
| 33 | + rdfs:subPropertyOf sp:arg . | ||
| 34 | + | ||
| 35 | +arg:template | ||
| 36 | + rdf:type rdf:Property ; | ||
| 37 | + rdfs:label "template"^^xsd:string ; | ||
| 38 | + rdfs:subPropertyOf sp:arg . | ||
| 39 | + | ||
| 40 | +arg:wellBore | ||
| 41 | + rdf:type rdf:Property ; | ||
| 42 | + rdfs:label "well bore"^^xsd:string ; | ||
| 43 | + rdfs:subPropertyOf sp:arg . | ||
| 44 | + | ||
| 45 | +<http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> | ||
| 46 | + ui:instanceView | ||
| 47 | + [ rdf:type ui:group ; | ||
| 48 | + let:startDate | ||
| 49 | + [ rdf:type sp:Select ; | ||
| 50 | + sp:resultVariables ([ sp:varName "startDate"^^xsd:string | ||
| 51 | + ]) ; | ||
| 52 | + sp:where ([ rdf:type sp:TriplePath ; | ||
| 53 | + sp:object | ||
| 54 | + [ sp:varName "timeStamp"^^xsd:string | ||
| 55 | + ] ; | ||
| 56 | + sp:path [ rdf:type sp:SeqPath ; | ||
| 57 | + sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 58 | + sp:path2 <http://www.reportinghub.no/ep/schema/activity#startedAt> | ||
| 59 | + ] ; | ||
| 60 | + sp:subject spin:_this | ||
| 61 | + ] [ rdf:type sp:Bind ; | ||
| 62 | + sp:expression | ||
| 63 | + [ rdf:type xsd:date ; | ||
| 64 | + sp:arg1 [ sp:varName "timeStamp"^^xsd:string | ||
| 65 | + ] | ||
| 66 | + ] ; | ||
| 67 | + sp:variable | ||
| 68 | + [ sp:varName "startDate"^^xsd:string | ||
| 69 | + ] | ||
| 70 | + ]) | ||
| 71 | + ] ; | ||
| 72 | + let:wellBore | ||
| 73 | + [ rdf:type sp:Select ; | ||
| 74 | + sp:resultVariables ([ sp:varName "wellBore"^^xsd:string | ||
| 75 | + ]) ; | ||
| 76 | + sp:where ([ rdf:type sp:TriplePath ; | ||
| 77 | + sp:object | ||
| 78 | + [ sp:varName "wellBore"^^xsd:string | ||
| 79 | + ] ; | ||
| 80 | + sp:path [ rdf:type sp:SeqPath ; | ||
| 81 | + sp:path1 | ||
| 82 | + [ rdf:type sp:SeqPath ; | ||
| 83 | + sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
| 84 | + sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore> | ||
| 85 | + ] ; | ||
| 86 | + sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf> | ||
| 87 | + ] ; | ||
| 88 | + sp:subject spin:_this | ||
| 89 | + ]) | ||
| 90 | + ] ; | ||
| 91 | + ui:child | ||
| 92 | + [ rdf:type wdrswp:WeeklyDrillingReportView ; | ||
| 93 | + arg:startDate | ||
| 94 | + [ sp:varName "startDate"^^xsd:string | ||
| 95 | + ] ; | ||
| 96 | + arg:wellBore | ||
| 97 | + [ sp:varName "wellBore"^^xsd:string | ||
| 98 | + ] ; | ||
| 99 | + ui:childIndex 0 | ||
| 100 | + ] ; | ||
| 101 | + ui:priority -1 | ||
| 102 | + ] . | ||
| 103 | + | ||
| 104 | +<http://www.reportinghub.no/swp/wdr> | ||
| 105 | + rdf:type owl:Ontology ; | ||
| 106 | + owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/wdr-tables> , <http://www.reportinghub.no/spin/rh> ; | ||
| 107 | + owl:versionInfo "0.1.0"^^xsd:string . | ||
| 108 | + | ||
| 109 | +wdrswp:Table | ||
| 110 | + rdf:type ui:NodeClass ; | ||
| 111 | + rdfs:comment "An HTML table displaying the results of a given SPIN template for a given WDR. The template should also provide rhspin:tableHeaders."^^xsd:string ; | ||
| 112 | + rdfs:label "Table"^^xsd:string ; | ||
| 113 | + rdfs:subClassOf ui:Element ; | ||
| 114 | + spin:constraint | ||
| 115 | + [ rdf:type spl:Argument ; | ||
| 116 | + rdfs:comment "The start date of the report."^^xsd:string ; | ||
| 117 | + spl:predicate arg:startDate ; | ||
| 118 | + spl:valueType xsd:date | ||
| 119 | + ] ; | ||
| 120 | + spin:constraint | ||
| 121 | + [ rdf:type spl:Argument ; | ||
| 122 | + rdfs:comment "The well bore of the report."^^xsd:string ; | ||
| 123 | + spl:predicate arg:wellBore ; | ||
| 124 | + spl:valueType ep-well:WellBore | ||
| 125 | + ] ; | ||
| 126 | + spin:constraint | ||
| 127 | + [ rdf:type spl:Argument ; | ||
| 128 | + rdfs:comment "The SPIN Template to execute."^^xsd:string ; | ||
| 129 | + spl:predicate arg:template ; | ||
| 130 | + spl:valueType spin:Template | ||
| 131 | + ] ; | ||
| 132 | + ui:prototype <http://www.reportinghub.no/swp/WDRTable.uispin.html> . | ||
| 133 | + | ||
| 134 | +wdrswp:WeeklyDrillingReportView | ||
| 135 | + rdf:type ui:NodeClass ; | ||
| 136 | + rdfs:label "Weekly drilling report view"^^xsd:string ; | ||
| 137 | + rdfs:subClassOf ui:Element ; | ||
| 138 | + spin:constraint | ||
| 139 | + [ rdf:type spl:Argument ; | ||
| 140 | + rdfs:comment "The start date of the report to display."^^xsd:string ; | ||
| 141 | + spl:predicate arg:startDate ; | ||
| 142 | + spl:valueType xsd:date | ||
| 143 | + ] ; | ||
| 144 | + spin:constraint | ||
| 145 | + [ rdf:type spl:Argument ; | ||
| 146 | + rdfs:comment "The well bore."^^xsd:string ; | ||
| 147 | + spl:predicate arg:wellBore ; | ||
| 148 | + spl:valueType ep-well:WellBore | ||
| 149 | + ] ; | ||
| 150 | + ui:headIncludes | ||
| 151 | + [ rdf:type html:Link ; | ||
| 152 | + html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ; | ||
| 153 | + html:rel "stylesheet"^^xsd:string ; | ||
| 154 | + html:type "text/css"^^xsd:string | ||
| 155 | + ] ; | ||
| 156 | + ui:prototype <http://www.reportinghub.no/swp/WeeklyDrillingReport.uispin.html> . |
www.reportinghub.no/swp/WDRTable.uispin.html
0 → 100644
| 1 | +<div> | ||
| 2 | + <hr /> | ||
| 3 | + <ui:setContext ui:queryGraph="<http://www.reportinghub.no/ep/spin/wdr-tables>"> | ||
| 4 | + <h2>{= ui:label(?template) }</h2> | ||
| 5 | + </ui:setContext> | ||
| 6 | + <table class="ddrTable"> | ||
| 7 | + <ui:setContext ui:queryGraph="<http://www.reportinghub.no/ep/spin/wdr-tables>"> | ||
| 8 | + <tr class="ddrTR"> | ||
| 9 | + <ui:forEach ui:resultSet="{# | ||
| 10 | + SELECT ?header | ||
| 11 | + WHERE { | ||
| 12 | + ?template rhspin:tableHeaders ?list . | ||
| 13 | + ?list <http://jena.hpl.hp.com/ARQ/list#member> ?header . | ||
| 14 | + } | ||
| 15 | + }"> | ||
| 16 | + <th class="ddrTH">{= ?header }</th> | ||
| 17 | + </ui:forEach> | ||
| 18 | + </tr> | ||
| 19 | + </ui:setContext> | ||
| 20 | + <ui:call ui:template="{= ?template }" arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }"> | ||
| 21 | + <ui:forEach ui:resultSet="{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }"> | ||
| 22 | + <tr class="ddrTR"> | ||
| 23 | + <ui:forEach ui:resultSet="{# SELECT ?cell WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?cellIndex) } }"> | ||
| 24 | + <td class="ddrTD">{= ui:label(?cell) }</td> | ||
| 25 | + </ui:forEach> | ||
| 26 | + </tr> | ||
| 27 | + </ui:forEach> | ||
| 28 | + </ui:call> | ||
| 29 | + </table> | ||
| 30 | + <br /> | ||
| 31 | +</div> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<ui:group> | ||
| 2 | + <ui:group > | ||
| 3 | + <h1>Weekly Report for Well bore {= ?wellBore } starting at {= ?startDate }</h1> | ||
| 4 | + <hr /> | ||
| 5 | + | ||
| 6 | + <wdrswp:Table arg:startDate="{= ?startDate }" arg:wellBore="{= ?wellBore }" arg:template="wdr-tables:Test" /> | ||
| 7 | + | ||
| 8 | + </ui:group> | ||
| 9 | +</ui:group> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment