From 3b382fda7714e05bfd2d1b908275c086f4aa2aa9 Mon Sep 17 00:00:00 2001 From: Miel Vander Sande Date: Fri, 23 Dec 2016 09:38:54 +0100 Subject: [PATCH] Added more robustness for blank nodes --- src/main/resources/views/fragment.ftl.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/views/fragment.ftl.html b/src/main/resources/views/fragment.ftl.html index fc3b009..55fb4b2 100644 --- a/src/main/resources/views/fragment.ftl.html +++ b/src/main/resources/views/fragment.ftl.html @@ -52,14 +52,14 @@

Matches in ${datasource.getTitle()} for ${ (query.getPat <#assign object = triple.getObject().asNode().toString()>
  • - ${subject?keep_after_last("/")} + <#if (subject?last_index_of("/") > -1)>${ subject?keep_after_last("/") }<#else>${ subject } ${predicate?keep_after_last("/")} <#if !triple.getObject().isLiteral()> - ${object?keep_after_last("/")} + <#if (object?last_index_of("/") > -1)>${ object?keep_after_last("/") }<#else>${ object } . <#else> ${object}.