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
David Price
2012-03-23 12:10:22 +0000
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
f905d75724bf4ec90594d5515881bfcd3f616e32
f905d757
2 parents
79d59132
c409933b
Merge branch 'master' of
https://github.com/TopQuadrant/EPIM-Ontologies
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
17 deletions
www.reportinghub.no/ep/spin/SPIN_MPR-proxy-constraints.spin.ttl
www.reportinghub.no/swp/DDRTable.uispin.html
www.reportinghub.no/ep/spin/SPIN_MPR-proxy-constraints.spin.ttl
View file @
f905d75
...
...
@@ -89,11 +89,6 @@ arg:kindRef
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckId
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_field>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Field>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckId
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_platform>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Platform>
]
;
...
...
@@ -109,6 +104,11 @@ arg:kindRef
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckName
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_field>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Field>
]
;
spin:
constraint
[
rdf:
type
mpr-proxy-constraints:
CheckName
;
arg:
kindRef
<http://www.epim.no/schemas/mprml/1#RF_platform>
;
arg:
type
<http://www.reportinghub.no/ep/schema/facility#Platform>
]
;
...
...
@@ -324,7 +324,7 @@ mpr-proxy-constraints:CheckIdAndNameMatch
]
]
[
rdf:
type
sp:
Filter
;
sp:
expression
[
rdf:
type
sp:
or
;
[
rdf:
type
sp:
and
;
sp:
arg1
[
rdf:
type
sp:
or
;
sp:
arg1
[
rdf:
type
sp:
bound
;
sp:
arg1
[
sp:
varName
"byId"
^^
xsd:
string
...
...
www.reportinghub.no/swp/DDRTable.uispin.html
View file @
f905d75
...
...
@@ -5,25 +5,27 @@
<ui:setContext
ui:queryGraph=
"<http://www.reportinghub.no/ep/spin/ddr-tables>"
>
<h2>
{= ui:label(?template) }
</h2>
</ui:setContext>
<table
class=
"ddrTable"
>
<ui:setContext
ui:queryGraph=
"<http://www.reportinghub.no/ep/spin/ddr-tables>"
>
<tr
class=
"ddrTR"
>
<ui:forEach
ui:resultSet=
"{#
SELECT ?header
<table
class=
"ddrTable"
letrs:hrs=
"{#
SELECT ?header ?left
WHERE {
GRAPH <http://www.reportinghub.no/ep/spin/ddr-tables> {
?template rhspin:tableHeaders ?list .
?list <http://jena.hpl.hp.com/ARQ/list#member> ?header .
?list <http://jena.hpl.hp.com/ARQ/list#member> ?str .
BIND (fn:starts-with(?str, '*') AS ?left) .
BIND (IF(?left, fn:substring(?str, 2), ?str) AS ?header) .
}
}
}"
>
<th
class=
"ddrTH"
style=
"{= IF(fn:starts-with(?header, '*'), 'text-align: left', ?none) }"
let:h=
"{= IF(fn:starts-with(?header, '*'), fn:substring(?header, 2), ?header) }"
><ui:parse
ui:str=
"{= html:encodeBRs(spif:replaceAll(?h, ' ', ' ')) }"
/></th>
<tr
class=
"ddrTR"
>
<ui:forEach
ui:resultSet=
"{= ?hrs }"
>
<th
class=
"ddrTH"
style=
"text-align: {= IF(?left, 'left', 'center') }"
><ui:parse
ui:str=
"{= html:encodeBRs(spif:replaceAll(?header, ' ', ' ')) }"
/></th>
</ui:forEach>
</tr>
</ui:setContext>
<ui:forEach
ui:resultSet=
"{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }"
>
<tr
class=
"ddrTR"
>
<ui:forEach
ui:resultSet=
"{# SELECT ?cell
WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?cel
lIndex) } }"
>
<td
class=
"ddrTD"
>
{= ?cell }
</td>
<ui:forEach
ui:resultSet=
"{# SELECT ?cell
?colIndex WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?co
lIndex) } }"
>
<td
class=
"ddrTD"
style=
"text-align: {= IF(spr:cell(?hrs, ?colIndex, 1), 'left', 'center') }"
>
{= ?cell }
</td>
</ui:forEach>
</tr>
</ui:forEach>
...
...
Please
register
or
login
to post a comment