minor improvement to getAllOfThisType() inspired by NIHVIVO-1779
This commit is contained in:
parent
9e0d4fb4a0
commit
0f57e77993
1 changed files with 2 additions and 3 deletions
|
@ -307,11 +307,10 @@ public class IndividualDaoSDB extends IndividualDaoJena {
|
||||||
final List<String> list =
|
final List<String> list =
|
||||||
new LinkedList<String>();
|
new LinkedList<String>();
|
||||||
|
|
||||||
String query = "SELECT ?ind WHERE { \n" +
|
String query = "SELECT DISTINCT ?ind WHERE { \n" +
|
||||||
" GRAPH ?g { ?ind <" + RDFS.label.getURI() + "> ?label } \n" +
|
" GRAPH ?g { ?ind <" + RDFS.label.getURI() + "> ?label } \n" +
|
||||||
"}";
|
"}";
|
||||||
|
|
||||||
|
|
||||||
Query q = QueryFactory.create(query);
|
Query q = QueryFactory.create(query);
|
||||||
DatasetWrapper w = getDatasetWrapper();
|
DatasetWrapper w = getDatasetWrapper();
|
||||||
Dataset dataset = w.getDataset();
|
Dataset dataset = w.getDataset();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue