NIHVIVO-2825 SPARQL bug in JenaModelUtils
This commit is contained in:
parent
0c3de1e104
commit
5f043d02ea
1 changed files with 2 additions and 1 deletions
|
@ -188,7 +188,7 @@ public class JenaModelUtils {
|
||||||
StringBuffer buff = new StringBuffer();
|
StringBuffer buff = new StringBuffer();
|
||||||
buff.append("PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> \n")
|
buff.append("PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> \n")
|
||||||
.append("CONSTRUCT { \n")
|
.append("CONSTRUCT { \n")
|
||||||
.append(" ?res <" + property.getURI() + "> ?o WHERE { \n");
|
.append(" ?res <" + property.getURI() + "> ?o } WHERE { \n");
|
||||||
if (graphURI != null) {
|
if (graphURI != null) {
|
||||||
buff.append(" GRAPH " + graphURI + " { \n");
|
buff.append(" GRAPH " + graphURI + " { \n");
|
||||||
}
|
}
|
||||||
|
@ -197,6 +197,7 @@ public class JenaModelUtils {
|
||||||
if (graphURI != null) {
|
if (graphURI != null) {
|
||||||
buff.append(" } \n");
|
buff.append(" } \n");
|
||||||
}
|
}
|
||||||
|
buff.append("}");
|
||||||
Query constructProp = QueryFactory.create(buff.toString());
|
Query constructProp = QueryFactory.create(buff.toString());
|
||||||
QueryExecution qe = QueryExecutionFactory.create(constructProp, dataset);
|
QueryExecution qe = QueryExecutionFactory.create(constructProp, dataset);
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue