minor improvement to getAllOfThisType() inspired by NIHVIVO-1779

This commit is contained in:
bjl23 2011-01-18 15:43:29 +00:00
parent 9e0d4fb4a0
commit 0f57e77993

View file

@ -307,11 +307,10 @@ public class IndividualDaoSDB extends IndividualDaoJena {
final List<String> list =
new LinkedList<String>();
String query = "SELECT ?ind WHERE { \n" +
String query = "SELECT DISTINCT ?ind WHERE { \n" +
" GRAPH ?g { ?ind <" + RDFS.label.getURI() + "> ?label } \n" +
"}";
Query q = QueryFactory.create(query);
DatasetWrapper w = getDatasetWrapper();
Dataset dataset = w.getDataset();