<% /* @license MIT ©2013-2016 Ruben Verborgh, Ghent University - imec */ -%>

<%= capitalizeFirst(datasource.title) %>

Query <%= datasource.title %> by triple pattern
    <% ['subject', 'predicate', 'object'].forEach(function (component) { -%>
  • value="<%= query[component] || '' %>" />
  • <% }); -%>

<%- extensions.Before %>

Matches in <%= datasource.title %> for <%= query.patternString %>

<% var totalEstimate = metadata.totalCount, offset = query.offset || 0, limit = query.limit || triples.length, start = offset + 1, end = offset + triples.length, hasPrev = offset > 0, hasNext = totalEstimate > end, subject = query.subject, predicate = query.predicate, object = query.object; %>
<% if (triples.length) { %> Showing triples <%= formatNumber(start) %> to <%= formatNumber(end) %> of <%= totalEstimate === end ? '' : '±' %><%= formatNumber(totalEstimate) %> with <%= formatNumber(limit) %> triples per page. <% pageLinks(fragment); -%> <% } else { %>

<%= capitalizeFirst(datasource.title) %> contains no <% if (totalEstimate > 0) { %>more<% } %> triples that match this pattern.

<% } %>
<% pageLinks(fragment); -%> <% function capitalizeFirst(string) { return string && !/[A-Z]/.test(string) ? string[0].toUpperCase() + string.slice(1) : string; } function shorten(entity) { return entity.match(/([^\/#]*)[\/#]?$/)[1] || entity; } function formatNumber(number) { return number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } function pageLinks(fragment) { if (!hasPrev && !hasNext) return; -%> <% } -%> <%- extensions.After %> <% if (datasource.description || datasource.copyright || datasource.license || datasource.licenseUrl) { %> <% } %>