Skip to content

Commit

Permalink
Added more robustness for blank nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Miel Vander Sande committed Dec 23, 2016
1 parent 074efc5 commit 3b382fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/views/fragment.ftl.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ <h3>Matches in ${datasource.getTitle()} for <em class="pattern">${ (query.getPat
<#assign object = triple.getObject().asNode().toString()>
<li>
<a href="?subject=${subject?url}">
<abbr title="${ subject }">${subject?keep_after_last("/")}</abbr>
<abbr title="${ subject }"><#if (subject?last_index_of("/") > -1)>${ subject?keep_after_last("/") }<#else>${ subject }</#if></abbr>
</a>
<a href="?predicate=${predicate?url}">
<abbr title="${ predicate }">${predicate?keep_after_last("/")}</abbr>
</a>
<#if !triple.getObject().isLiteral()>
<a href="?object=${object?url}" resource="${ subject}">
<abbr title="${ object }" property="${ predicate }" resource="${ object }">${object?keep_after_last("/")}</abbr>
<abbr title="${ object }" property="${ predicate }" resource="${ object }"><#if (object?last_index_of("/") > -1)>${ object?keep_after_last("/") }<#else>${ object }</#if></abbr>
</a>.
<#else>
<a href="?object=${object?url}" resource="${ subject}">${object}</a>.
Expand Down

0 comments on commit 3b382fd

Please sign in to comment.