de-GRAPHing some remaining DAO queries
This commit is contained in:
parent
7b18bbe8d6
commit
4e18504ca0
3 changed files with 18 additions and 15 deletions
|
@ -112,13 +112,16 @@ public class IndividualDaoSDB extends IndividualDaoJena {
|
|||
String query =
|
||||
"SELECT DISTINCT ?ind ?label ?moniker " +
|
||||
"WHERE " +
|
||||
"{ GRAPH ?g { \n" +
|
||||
" ?ind a <" + theClass.getURI() + "> \n" +
|
||||
"} \n" +
|
||||
"OPTIONAL { GRAPH ?h { ?ind <" + RDFS.label.getURI() + "> ?label } }\n" +
|
||||
"OPTIONAL { GRAPH ?i { ?ind <" + VitroVocabulary.MONIKER + "> ?moniker } } \n" +
|
||||
WebappDaoFactorySDB.getFilterBlock(graphVars, datasetMode) +
|
||||
"} ORDER BY ?label";
|
||||
"{ \n" +
|
||||
"{ \n" +
|
||||
" ?ind a <" + theClass.getURI() + "> . \n" +
|
||||
" ?ind <" + RDFS.label.getURI() + "> ?label \n" +
|
||||
"} \n" +
|
||||
"UNION { \n" +
|
||||
" ?ind a <" + theClass.getURI() + "> . \n" +
|
||||
" ?ind <" + VitroVocabulary.MONIKER + "> ?moniker \n" +
|
||||
"} \n" +
|
||||
"} ORDER BY ?ind ?label";
|
||||
ResultSet rs =QueryExecutionFactory.create(
|
||||
QueryFactory.create(query), dataset)
|
||||
.execSelect();
|
||||
|
|
|
@ -190,7 +190,7 @@ public class IndividualSDB extends IndividualImpl implements Individual {
|
|||
}
|
||||
}
|
||||
|
||||
private static final boolean SKIP_INITIALIZATION = true;
|
||||
static final boolean SKIP_INITIALIZATION = true;
|
||||
|
||||
public IndividualSDB(String individualURI,
|
||||
DatasetWrapperFactory datasetWrapperFactory,
|
||||
|
|
|
@ -53,15 +53,15 @@ public class ObjectPropertyStatementDaoSDB extends
|
|||
String query = "CONSTRUCT { \n" +
|
||||
" <" + entity.getURI() + "> ?p ?o . \n" +
|
||||
// " ?o a ?oType . \n" +
|
||||
" ?o <" + RDFS.label.getURI() + "> ?oLabel . \n" +
|
||||
" ?o <" + VitroVocabulary.MONIKER + "> ?oMoniker \n" +
|
||||
// " ?o <" + RDFS.label.getURI() + "> ?oLabel . \n" +
|
||||
// " ?o <" + VitroVocabulary.MONIKER + "> ?oMoniker \n" +
|
||||
"} WHERE { \n" +
|
||||
" { <" + entity.getURI() + "> ?p ?o } \n" +
|
||||
// " UNION { <" + entity.getURI() + "> ?p ?o . ?o a ?oType } \n" +
|
||||
" UNION { <" + entity.getURI() + "> ?p ?o . \n" +
|
||||
" ?o <" + RDFS.label.getURI() + "> ?oLabel } \n" +
|
||||
" UNION { <" + entity.getURI() + "> ?p ?o . \n " +
|
||||
" ?o <" + VitroVocabulary.MONIKER + "> ?oMoniker } \n" +
|
||||
// " UNION { <" + entity.getURI() + "> ?p ?o . \n" +
|
||||
// " ?o <" + RDFS.label.getURI() + "> ?oLabel } \n" +
|
||||
// " UNION { <" + entity.getURI() + "> ?p ?o . \n " +
|
||||
// " ?o <" + VitroVocabulary.MONIKER + "> ?oMoniker } \n" +
|
||||
"}";
|
||||
long startTime = System.currentTimeMillis();
|
||||
Model m = null;
|
||||
|
@ -127,7 +127,7 @@ public class ObjectPropertyStatementDaoSDB extends
|
|||
this.dwf,
|
||||
datasetMode,
|
||||
getWebappDaoFactory(),
|
||||
m);
|
||||
IndividualSDB.SKIP_INITIALIZATION);
|
||||
objPropertyStmt.setObject(objInd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue