diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/JenaModelUtils.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/JenaModelUtils.java index e7dfee1b1..119189954 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/JenaModelUtils.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/JenaModelUtils.java @@ -188,7 +188,7 @@ public class JenaModelUtils { StringBuffer buff = new StringBuffer(); buff.append("PREFIX afn: \n") .append("CONSTRUCT { \n") - .append(" ?res <" + property.getURI() + "> ?o WHERE { \n"); + .append(" ?res <" + property.getURI() + "> ?o } WHERE { \n"); if (graphURI != null) { buff.append(" GRAPH " + graphURI + " { \n"); } @@ -197,6 +197,7 @@ public class JenaModelUtils { if (graphURI != null) { buff.append(" } \n"); } + buff.append("}"); Query constructProp = QueryFactory.create(buff.toString()); QueryExecution qe = QueryExecutionFactory.create(constructProp, dataset); try {