Fix issue with renamed prefix in SPARQL query for visualisations

This commit is contained in:
Graham Triggs 2016-06-20 18:55:10 +01:00
parent 7a2d415cfa
commit da9057ff9b

View file

@ -69,7 +69,7 @@ public class UtilitiesRequestHandler implements VisualizationRequestHandler {
.equalsIgnoreCase(visMode)) { .equalsIgnoreCase(visMode)) {
String filterRule = "?predicate = j.2:mainImage " String filterRule = "?predicate = public:mainImage "
+ " || ?predicate = rdfs:label " + " || ?predicate = rdfs:label "
+ " || ?predicate = <http://www.w3.org/2006/vcard/ns#title>"; + " || ?predicate = <http://www.w3.org/2006/vcard/ns#title>";
@ -100,9 +100,9 @@ public class UtilitiesRequestHandler implements VisualizationRequestHandler {
fieldLabelToOutputFieldLabel.put("fileName", QueryFieldLabels.THUMBNAIL_FILENAME); fieldLabelToOutputFieldLabel.put("fileName", QueryFieldLabels.THUMBNAIL_FILENAME);
String whereClause = "<" + individualURI String whereClause = "<" + individualURI
+ "> j.2:thumbnailImage ?thumbnailImage . " + "> public:thumbnailImage ?thumbnailImage . "
+ "?thumbnailImage j.2:downloadLocation " + "?thumbnailImage public:downloadLocation "
+ "?downloadLocation ; j.2:filename ?fileName ."; + "?downloadLocation ; public:filename ?fileName .";