tpf.fragment.ftl.html Maven / Gradle / Ivy
<#-- @license ©2015 Miel Vander Sande - Multimedia Lab / iMinds / Ghent University -->
<#setting url_escaping_charset='UTF-8'>
Matches in ${datasource.getTitle()} for ${ (query["pattern"]?html)!"" }
<#if (triples?size > 0)>
Showing triples ${ start } to ${ end } of
<#if totalEstimate != end>±
${ totalEstimate }
with ${
itemsPerPage
} triples per page.
<@pageLinks/>
<#else>
${datasource.getTitle()} contains
no <#if (totalEstimate > 0) >more
triples that match this pattern.
<#list triples as triple>
<#assign subject = triple.getSubject().asNode().toString()>
<#assign predicate = triple.getPredicate().asNode().toString()>
<#assign object = triple.getObject().asNode().toString()>
-
${subject?keep_after_last("/")}
${predicate?keep_after_last("/")}
<#if !triple.getObject().isLiteral()>
${object?keep_after_last("/")}
.
<#else>
${object}.
<@pageLinks/>
<#macro pageLinks>