<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <#--Save to variable is sparqlResults --> <#assign resultsExist = false/> <#if variableName?has_content> <#assign resultsExist = true/> <#--This will retrieve the results stored in the variable name being returned from the sparql query. For example, if "results" was specified as the variable storing the sparql results, the value of "results" will not be assigned to "sparqlResults" below. --> <#assign sparqlResults = .globals[variableName]/>

${i18n().sparql_query_results}

<#if resultsExist> <#assign numberRows = sparqlResults?size/> <#assign firstRow = false/> <#list sparqlResults as resultRow> <#assign resultKeys = resultRow?keys /> <#if firstRow = false>
<#list resultKeys as resultKey>
${resultKey}
<#assign firstRow = true/>
<#list resultKeys as resultKey>
${resultRow[resultKey]}
<#else> ${i18n().no_results_returned} ${stylesheets.add('')}