NIHVIVO-2825 SPARQL bug in JenaModelUtils

This commit is contained in:
brianjlowe 2011-07-06 21:06:09 +00:00
parent 0c3de1e104
commit 5f043d02ea

View file

@ -188,7 +188,7 @@ public class JenaModelUtils {
StringBuffer buff = new StringBuffer();
buff.append("PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> \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 {