David Price

Fixup after moving ProductionReport, etc. into schema/ep/report from schema/ep/production-report

This diff could not be displayed because it is too large.
<ui:group
let:report="{# SELECT ?report WHERE {?report a ep-prodreport:DailyProductionReport }}"
let:mainAct="{# SELECT ?mainAct WHERE {?report a ep-prodreport:DailyProductionReport . ?report ep-report:reportOn ?mainAct}}"
let:mainFac="{# SELECT ?mainFac WHERE {?report a ep-prodreport:DailyProductionReport . ?report ep-report:reportOn ?mainAct . ?mainAct ep-prodact:involvement ?epMainFacTempPart . ?mainFac ep-core:hasTemporalPart ?epMainFacTempPart}}"
let:report="{# SELECT ?report WHERE {?report a ep-report:DailyProductionReport }}"
let:mainAct="{# SELECT ?mainAct WHERE {?report a ep-report:DailyProductionReport . ?report ep-report:reportOn ?mainAct}}"
let:mainFac="{# SELECT ?mainFac WHERE {?report a ep-report:DailyProductionReport . ?report ep-report:reportOn ?mainAct . ?mainAct ep-prodact:involvement ?epMainFacTempPart . ?mainFac ep-core:hasTemporalPart ?epMainFacTempPart}}"
let:opCo="{# SELECT ?opCo WHERE {?report a ep-prodreport:DailyProductionReport . ?report ep-report:reportOn ?mainAct . ?mainFac ep-fac:facilityOperator ?opCo}}"
>
<center>
<h1>{# SELECT ?mfName WHERE {?mainFac rdfs:label ?mfName}}</h1>
<h2>{# SELECT ?ocName WHERE {?opCo rdfs:label ?ocName}}</h2>
<h2>{# SELECT ?docName WHERE {?report rdfs:label ?docName}}</h2>
<h2>Report date: {# SELECT ?docDate WHERE {?report ep-prodreport:dateCoveredByReport ?docDate}}</h2>
<h2>Report date: {# SELECT ?docDate WHERE {?report ep-report:dateCoveredByReport ?docDate}}</h2>
<h2>Issue date: {# SELECT ?createDate WHERE {?report ep-report:createdAt ?createDate}}</h2>
</center>
<hr />
......
<ui:group
let:report="{# SELECT ?report WHERE { ?report a ep-prodreport:ProductionReport . } }"
let:report="{# SELECT ?report WHERE { ?report a ep-report:ProductionReport . } }"
let:fieldName="{# SELECT ?fieldName
WHERE {
?report ep-report:reportOn ?fieldPart .
?fieldPart ep-core:temporalPartOf ?field .
?field npd:name ?fieldName .
}
}"
>
<!--
......@@ -9,7 +17,9 @@ let:facilityName="{# SELECT DISTINCT
-->
<h1>{= ?facilityName } Field</h1>
<h1>{= ?fieldName } Field</h1>
<!-- <ui:forEach ui:resultSet="{#
SELECT
......@@ -29,10 +39,10 @@ SELECT
?grossCalorificValueInMegaJouleMetre_3
WHERE
{
?productionReport a ep-prodreport:ProductionReport .
?productionReport a ep-report:ProductionReport .
?productVolumeReport ep-core:partOf ?productionReport ;
a ep-prodreport:ProductVolumeReport .
a ep-report:ProductVolumeReport .
?productVolumeReport ep-report:reportOn ?productionFlowsInReportingPeriod .
......
# baseURI: http://www.reportinghub.no/swp/mprg
# imports: http://uispin.org/tui
# imports: http://www.reportinghub.no/ep/spin/ddr-tables
# imports: http://www.reportinghub.no/ep/spin/mpr-tables
# imports: http://www.reportinghub.no/spin/rh
@prefix arg: <http://spinrdf.org/arg#> .
@prefix html: <http://uispin.org/html#> .
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@prefix mprgswp: <http://www.reportinghub.no/swp/mprg#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
arg:report
rdf:type rdf:Property ;
rdfs:label "report"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
arg:template
rdf:type rdf:Property ;
rdfs:label "template"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow>
ui:instanceView
[ rdf:type html:P ;
ui:child
[ rdf:type html:B ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text "this is another test"^^xsd:string
] ;
ui:childIndex 0
]
] .
<http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
ui:instanceView
[ rdf:type mprgswp:MPRGView ;
arg:report spin:_this
] .
<http://www.reportinghub.no/swp/mprg>
rdf:type owl:Ontology ;
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://uispin.org/tui> ;
owl:versionInfo "0.1.0"^^xsd:string .
mprgswp:MPRGView
rdf:type ui:NodeClass ;
rdfs:label "MPRG view"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The report to display."^^xsd:string ;
spl:predicate arg:report ;
spl:valueType <http://www.reportinghub.no/ep/schema/production-report#ProductionReport>
] ;
ui:headIncludes
[ rdf:type html:Title ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text "Monthly Production Report (government)"^^xsd:string
]
] ;
ui:headIncludes
[ rdf:type html:Link ;
html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
html:rel "stylesheet"^^xsd:string ;
html:type "text/css"^^xsd:string
] ;
ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> .
mprgswp:Table
rdf:type ui:NodeClass ;
rdfs:comment "An HTML table displaying the results of a given SPIN template for a given MPRG. The template should also provide rhspin:tableHeaders."^^xsd:string ;
rdfs:label "Table"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The report that serves as root of the template."^^xsd:string ;
spl:optional "true"^^xsd:boolean ;
spl:predicate arg:report ;
spl:valueType <http://www.reportinghub.no/ep/schema/production-report#MonthlyProductionReport>
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The SPIN Template to execute."^^xsd:string ;
spl:predicate arg:template ;
spl:valueType spin:Template
] ;
ui:prototype <http://www.reportinghub.no/swp/MPRGTable.uispin.html> .
# baseURI: http://www.reportinghub.no/swp/mprg
# imports: http://uispin.org/tui
# imports: http://www.reportinghub.no/ep/spin/ddr-tables
# imports: http://www.reportinghub.no/ep/spin/mpr-tables
# imports: http://www.reportinghub.no/spin/rh
@prefix arg: <http://spinrdf.org/arg#> .
@prefix html: <http://uispin.org/html#> .
@prefix let: <http://uispin.org/let#> .
@prefix letrs: <http://uispin.org/letrs#> .
@prefix mprgswp: <http://www.reportinghub.no/swp/mprg#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix ui: <http://uispin.org/ui#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
arg:report
rdf:type rdf:Property ;
rdfs:label "report"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
arg:template
rdf:type rdf:Property ;
rdfs:label "template"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow>
ui:instanceView
[ rdf:type html:P ;
ui:child
[ rdf:type html:B ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text "this is another test"^^xsd:string
] ;
ui:childIndex 0
]
] .
<http://www.reportinghub.no/ep/schema/report#ProductionReport>
ui:instanceView
[ rdf:type mprgswp:MPRGView ;
arg:report spin:_this
] .
<http://www.reportinghub.no/swp/mprg>
rdf:type owl:Ontology ;
owl:imports <http://uispin.org/tui> , <http://www.reportinghub.no/ep/spin/ddr-tables> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/mpr-tables> ;
owl:versionInfo "0.1.0"^^xsd:string .
mprgswp:MPRGView
rdf:type ui:NodeClass ;
rdfs:label "MPRG view"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The report to display."^^xsd:string ;
spl:predicate arg:report ;
spl:valueType <http://www.reportinghub.no/ep/schema/report#ProductionReport>
] ;
ui:headIncludes
[ rdf:type html:Link ;
html:href "http://spinrdf.org/rhlib/ddr.css"^^xsd:string ;
html:rel "stylesheet"^^xsd:string ;
html:type "text/css"^^xsd:string
] ;
ui:headIncludes
[ rdf:type html:Title ;
ui:child
[ rdf:type ui:TextNode ;
ui:childIndex 0 ;
ui:text "Monthly Production Report (government)"^^xsd:string
]
] ;
ui:prototype <http://www.reportinghub.no/swp/MPRG.uispin.html> .
mprgswp:Table
rdf:type ui:NodeClass ;
rdfs:comment "An HTML table displaying the results of a given SPIN template for a given MPRG. The template should also provide rhspin:tableHeaders."^^xsd:string ;
rdfs:label "Table"^^xsd:string ;
rdfs:subClassOf ui:Element ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The SPIN Template to execute."^^xsd:string ;
spl:predicate arg:template ;
spl:valueType spin:Template
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The report that serves as root of the template."^^xsd:string ;
spl:optional "true"^^xsd:boolean ;
spl:predicate arg:report ;
spl:valueType <http://www.reportinghub.no/ep/schema/report#ProductionReport>
] ;
ui:prototype <http://www.reportinghub.no/swp/MPRGTable.uispin.html> .
......