fixes some graph variables in DAO SPARQL queries

This commit is contained in:
bjl23 2010-11-29 19:59:32 +00:00
parent 1f6d19fece
commit 0740e57749

View file

@ -101,9 +101,9 @@ public class IndividualDaoSDB extends IndividualDaoJena {
"} WHERE " +
"{ GRAPH ?g { \n" +
" ?ind a <" + theClass.getURI() + "> \n" +
"OPTIONAL { ?ind <" + RDFS.label.getURI() + "> ?ooo } \n" +
"OPTIONAL { ?ind <" + VitroVocabulary.MONIKER + "> ?moniker } \n" +
"} \n" +
"OPTIONAL { GRAPH ?h { ?ind <" + RDFS.label.getURI() + "> ?ooo } }\n" +
"OPTIONAL { GRAPH ?i { ?ind <" + VitroVocabulary.MONIKER + "> ?moniker } } \n" +
"}";
model = QueryExecutionFactory.create(QueryFactory.create(query), dataset).execConstruct();
} finally {