Showing
4 changed files
with
117 additions
and
0 deletions
This diff is collapsed. Click to expand it.
www.reportinghub.no/swp/DPRTable.uispin.html
0 → 100644
1 | +<div> | ||
2 | + <hr /> | ||
3 | + <ui:setContext ui:queryGraph="<http://www.reportinghub.no/ep/spin/dpr-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/dpr-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:report="{= ?report }"> | ||
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 |
www.reportinghub.no/swp/SWP_dpr.ui.ttl
0 → 100644
1 | +# baseURI: http://www.reportinghub.no/swp/dpr | ||
2 | +# imports: http://uispin.org/tui | ||
3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production | ||
4 | +# imports: http://www.reportinghub.no/ep/spin/dpr-tables | ||
5 | +# imports: http://www.reportinghub.no/spin/rh | ||
6 | + | ||
7 | +@prefix arg: <http://spinrdf.org/arg#> . | ||
8 | +@prefix dprswp: <http://www.reportinghub.no/swp/dpr#> . | ||
9 | +@prefix html: <http://uispin.org/html#> . | ||
10 | +@prefix let: <http://uispin.org/let#> . | ||
11 | +@prefix letrs: <http://uispin.org/letrs#> . | ||
12 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
13 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
14 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
15 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
16 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
17 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
18 | +@prefix ui: <http://uispin.org/ui#> . | ||
19 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
20 | + | ||
21 | +arg:report | ||
22 | + rdf:type rdf:Property ; | ||
23 | + rdfs:label "report"^^xsd:string ; | ||
24 | + rdfs:subPropertyOf sp:arg . | ||
25 | + | ||
26 | +arg:template | ||
27 | + rdf:type rdf:Property ; | ||
28 | + rdfs:label "template"^^xsd:string ; | ||
29 | + rdfs:subPropertyOf sp:arg . | ||
30 | + | ||
31 | +<http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> | ||
32 | + ui:instanceView | ||
33 | + [ rdf:type dprswp:DailyProductionReportView ; | ||
34 | + arg:report spin:_this | ||
35 | + ] . | ||
36 | + | ||
37 | +<http://www.reportinghub.no/swp/dpr> | ||
38 | + rdf:type owl:Ontology ; | ||
39 | + owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/dpr-tables> , <http://www.reportinghub.no/spin/rh> ; | ||
40 | + owl:versionInfo "0.1.0"^^xsd:string . | ||
41 | + | ||
42 | +dprswp:DailyProductionReportView | ||
43 | + rdf:type ui:NodeClass ; | ||
44 | + rdfs:label "Daily production report view"^^xsd:string ; | ||
45 | + rdfs:subClassOf ui:Element ; | ||
46 | + spin:constraint | ||
47 | + [ rdf:type spl:Argument ; | ||
48 | + rdfs:comment "The report to display."^^xsd:string ; | ||
49 | + spl:predicate arg:report ; | ||
50 | + spl:valueType <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> | ||
51 | + ] ; | ||
52 | + ui:headIncludes | ||
53 | + [ rdf:type html:Link ; | ||
54 | + html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ; | ||
55 | + html:rel "stylesheet"^^xsd:string ; | ||
56 | + html:type "text/css"^^xsd:string | ||
57 | + ] ; | ||
58 | + ui:prototype <http://www.reportinghub.no/swp/DailyProductionReport.uispin.html> . | ||
59 | + | ||
60 | +dprswp:Table | ||
61 | + rdf:type ui:NodeClass ; | ||
62 | + rdfs:comment "An HTML table displaying the results of a given SPIN template for a given DPR. The template should also provide rhspin:tableHeaders."^^xsd:string ; | ||
63 | + rdfs:label "Table"^^xsd:string ; | ||
64 | + rdfs:subClassOf ui:Element ; | ||
65 | + spin:constraint | ||
66 | + [ rdf:type spl:Argument ; | ||
67 | + rdfs:comment "The report that serves as root of the template."^^xsd:string ; | ||
68 | + spl:optional "true"^^xsd:boolean ; | ||
69 | + spl:predicate arg:report ; | ||
70 | + spl:valueType <http://www.reportinghub.no/ep/schema/production-report#DailyProductionReport> | ||
71 | + ] ; | ||
72 | + spin:constraint | ||
73 | + [ rdf:type spl:Argument ; | ||
74 | + rdfs:comment "The SPIN Template to execute."^^xsd:string ; | ||
75 | + spl:predicate arg:template ; | ||
76 | + spl:valueType spin:Template | ||
77 | + ] ; | ||
78 | + ui:prototype <http://www.reportinghub.no/swp/DPRTable.uispin.html> . |
-
Please register or login to post a comment