updates for sparql data getter and updates to data getter utils

This commit is contained in:
hjkhjk54 2012-02-29 19:18:07 +00:00
parent eb1ff58879
commit 558985d542
5 changed files with 274 additions and 7 deletions

View file

@ -0,0 +1,32 @@
<#--Save to variable is sparqlResults -->
<#assign resultsExist = false/>
<#if sparqlResults?has_content>
<#assign resultsExist = true/>
</#if>
<h3>Sparql Query Results</h3>
<#if resultsExist>
<#assign numberRows = sparqlResults?size/>
<#assign firstRow = false/>
<#list sparqlResults as resultRow>
<#assign resultKeys = resultRow?keys />
<#if firstRow = false>
<div class="resultHeading resultRow">
<#list resultKeys as resultKey>
<div class="resultCell">${resultKey}</div>
</#list>
</div>
<#assign firstRow = true/>
</#if>
<div class="resultRow">
<#list resultKeys as resultKey>
<div class="resultCell">${resultRow[resultKey]}</div>
</#list>
</div>
</#list>
<#else>
No results were returned.
</#if>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/menupage/sparqlresults.css" />')}