David Price

Fixed MPRP html and initial setup of SWP for mprp done

...@@ -28,27 +28,8 @@ WHERE { ...@@ -28,27 +28,8 @@ WHERE {
28 28
29 } }</h2> 29 } }</h2>
30 30
31 - <h3>{= ?productionFlowName }</h3> 31 +
32 - <table> 32 +
33 -
34 - <tr><td class="nameValueName">type:</td><td class="nameValueValue">{= ?productionFlowDefinitionTypeName
35 - }</td></tr>
36 -<tr><td class="nameValueName">subtype:</td><td class="nameValueValue">{= ?productionFlowDefinitionSubTypeName }</td></tr>
37 -<tr><td class="nameValueName">purpose:</td><td class="nameValueValue">{= ?productionFlowPurposeTypeName }</td></tr>
38 -<tr><td class="nameValueName">product:</td><td class="nameValueValue">{= ?productFlowName }</td></tr>
39 -<tr><td class="nameValueName">material type:</td><td class="nameValueValue">{= ?productFlowMaterialTypeName }</td></tr>
40 -<tr><td class="nameValueName">gross or net:</td><td class="nameValueValue">{= ?productFlowGrossOrNetTypeName }</td></tr>
41 -<tr><td class="nameValueName">duration type:</td><td class="nameValueValue">{= ?productFlowInPeriodDurationTypeName }</td></tr>
42 -<tr><td class="nameValueName">mass (kg):</td><td class="nameValueValue">{= ?massInKilograms }</td></tr>
43 -<tr><td class="nameValueName">pressure (atm):</td><td class="nameValueValue">{= ?pressureInAtmospheres }</td></tr>
44 -<tr><td class="nameValueName">temperature (C&#176;):</td><td class="nameValueValue">{= ?temperatureInCelsius }</td></tr>
45 -<tr><td class="nameValueName">volume (m<sup>3</sup>):</td><td class="nameValueValue">{= ?volumeInMetre3 }</td></tr>
46 -<tr><td class="nameValueName">gross calorific value (MJ/m<sup>3</sup>):</td><td class="nameValueValue">{= ?grossCalorificValueInMegaJouleMetre_3 }</td></tr>
47 -
48 -
49 - </table>
50 -
51 - </ui:forEach> -->
52 33
53 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:GasSales" /> 34 <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:GasSales" />
54 35
......
1 +# baseURI: http://www.reportinghub.no/swp/mprp
2 +# imports: http://uispin.org/tui
3 +# imports: http://www.reportinghub.no/ep/spin/ddr-tables
4 +# imports: http://www.reportinghub.no/ep/spin/mpr-tables
5 +# imports: http://www.reportinghub.no/spin/rh
6 +
7 +@prefix arg: <http://spinrdf.org/arg#> .
8 +@prefix html: <http://uispin.org/html#> .
9 +@prefix let: <http://uispin.org/let#> .
10 +@prefix letrs: <http://uispin.org/letrs#> .
11 +@prefix mprpswp: <http://www.reportinghub.no/swp/mprp#> .
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/flow#WholeLifeProductionFlow>
32 + ui:instanceView
33 + [ rdf:type html:P ;
34 + ui:child
35 + [ rdf:type html:B ;
36 + ui:child
37 + [ rdf:type ui:TextNode ;
38 + ui:childIndex 0 ;
39 + ui:text "this is another test"^^xsd:string
40 + ] ;
41 + ui:childIndex 0
42 + ]
43 + ] .
44 +
45 +<http://www.reportinghub.no/ep/schema/report#MonthlyProductionReportPartner>
46 + ui:instanceView
47 + [ rdf:type mprpswp:MPRPView ;
48 + arg:report spin:_this
49 + ] .
50 +
51 +<http://www.reportinghub.no/swp/mprp>
52 + rdf:type owl:Ontology ;
53 + owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/mpr-tables> ;
54 + owl:versionInfo "0.1.0"^^xsd:string .
55 +
56 +mprpswp:MPRPView
57 + rdf:type ui:NodeClass ;
58 + rdfs:label "MPRP view"^^xsd:string ;
59 + rdfs:subClassOf ui:Element ;
60 + spin:constraint
61 + [ rdf:type spl:Argument ;
62 + rdfs:comment "The report to display."^^xsd:string ;
63 + spl:predicate arg:report ;
64 + spl:valueType <http://www.reportinghub.no/ep/schema/report#MonthlyProductionReportPartner>
65 + ] ;
66 + ui:headIncludes
67 + [ rdf:type html:Link ;
68 + html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
69 + html:rel "stylesheet"^^xsd:string ;
70 + html:type "text/css"^^xsd:string
71 + ] ;
72 + ui:headIncludes
73 + [ rdf:type html:Title ;
74 + ui:child
75 + [ rdf:type ui:TextNode ;
76 + ui:childIndex 0 ;
77 + ui:text "Monthly Production Report (Partner)"^^xsd:string
78 + ]
79 + ] ;
80 + ui:prototype <http://www.reportinghub.no/swp/MPRP.uispin.html> .
81 +
82 +mprpswp:Table
83 + rdf:type ui:NodeClass ;
84 + rdfs:comment "An HTML table displaying the results of a given SPIN template for a given MPRP. The template should also provide rhspin:tableHeaders."^^xsd:string ;
85 + rdfs:label "Table"^^xsd:string ;
86 + rdfs:subClassOf ui:Element ;
87 + spin:constraint
88 + [ rdf:type spl:Argument ;
89 + rdfs:comment "The SPIN Template to execute."^^xsd:string ;
90 + spl:predicate arg:template ;
91 + spl:valueType spin:Template
92 + ] ;
93 + spin:constraint
94 + [ rdf:type spl:Argument ;
95 + rdfs:comment "The report that serves as root of the template."^^xsd:string ;
96 + spl:optional "true"^^xsd:boolean ;
97 + spl:predicate arg:report ;
98 + spl:valueType <http://www.reportinghub.no/ep/schema/report#MonthlyProductionReportPartner>
99 + ] ;
100 + ui:prototype <http://www.reportinghub.no/swp/MPRPTable.uispin.html> .