Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
Bob DuCharme
2012-03-27 17:15:45 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
29bd9594116c83dae8c2a3152e6e666490b29eee
29bd9594
1 parent
d72632c6
trying to output MPRG using rhspin:MPRGTableTemplates
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
15 deletions
www.reportinghub.no/ep/spin/SPIN_EP-MPR-tables-v1.0.spin.ttl
www.reportinghub.no/swp/MPRG.uispin.html
www.reportinghub.no/swp/SWP_mprg.ui.ttl
www.reportinghub.no/ep/spin/SPIN_EP-MPR-tables-v1.0.spin.ttl
View file @
29bd959
This diff is collapsed. Click to expand it.
www.reportinghub.no/swp/MPRG.uispin.html
View file @
29bd959
<ui:group
let:facilityName=
"{# SELECT DISTINCT
?productionFlowFacilityName WHERE { ?productionFlow a ep-flow:WholeLifeProductionFlow ; ep-flow:flowIntoOrOutOf ?productionFlowFacility . ?productionFlowFacility npd:name ?productionFlowFacilityName . } }"
>
<h1></h1>
<ui:group
let:report=
"{# SELECT ?report WHERE { ?report a ep-prodreport:ProductionReport . } }"
>
<!--
let:facilityName="{# SELECT DISTINCT
?productionFlowFacilityName WHERE { ?productionFlow a ep-flow:WholeLifeProductionFlow ; ep-flow:flowIntoOrOutOf ?productionFlowFacility . ?productionFlowFacility npd:name ?productionFlowFacilityName . } }"
-->
<h1>
{= ?facilityName } Field
</h1>
<ui:forEach
ui:resultSet=
"{#
<!--
<ui:forEach ui:resultSet="{#
SELECT
?productionFlowFacilityName
?productionFlowName
...
...
@@ -115,8 +123,7 @@ OPTIONAL {
}
}
}"
>
<!-- next: define a view of the productionFlow based on the table above -->
<!-- ui:resourceView ui:resource="{= ?productionFlow }"/-->
}">
<h3>{= ?productionFlowName }</h3>
<table>
...
...
@@ -136,8 +143,12 @@ OPTIONAL {
</table>
</ui:forEach>
</ui:forEach> -->
<p>
template test start
</p>
<ddrswp:Table
arg:report=
"{= ?report }"
arg:template=
"mpr-tables:ProductionFlows"
/>
<p>
template test end
</p>
</ui:group>
\ No newline at end of file
...
...
www.reportinghub.no/swp/SWP_mprg.ui.ttl
View file @
29bd959
# baseURI: http://www.reportinghub.no/swp/mprg
# imports: http://uispin.org/tui
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/ep/schema/1.0/production-report
# 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#>
.
...
...
@@ -51,7 +51,7 @@ arg:template
<http://www.reportinghub.no/swp/mprg>
rdf:
type
owl:
Ontology
;
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
>
;
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
>
;
owl:
versionInfo
"0.1.0"
^^
xsd:
string
.
mprgswp:
MPRGView
...
...
@@ -65,12 +65,6 @@ mprgswp:MPRGView
spl:
valueType
<http://www.reportinghub.no/ep/schema/production-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
;
...
...
@@ -78,4 +72,10 @@ mprgswp:MPRGView
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>
.
...
...
Please
register
or
login
to post a comment