NIHVIVO-2924 Filter out mostSpecificTypes that don't belong to a classgroup
This commit is contained in:
parent
d34f951ef0
commit
e175cca388
1 changed files with 10 additions and 8 deletions
|
@ -385,13 +385,15 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static final String MOST_SPECIFIC_TYPE_QUERY =
|
protected static final String MOST_SPECIFIC_TYPE_QUERY = ""
|
||||||
"PREFIX rdfs: <" + VitroVocabulary.RDFS + "> \n" +
|
+ "PREFIX rdfs: <" + VitroVocabulary.RDFS + "> \n"
|
||||||
"PREFIX vitro: <" + VitroVocabulary.vitroURI + "> \n" +
|
+ "PREFIX vitro: <" + VitroVocabulary.vitroURI + "> \n"
|
||||||
"SELECT ?label ?type WHERE { \n" +
|
+ "SELECT ?label ?type WHERE { \n"
|
||||||
" ?subject vitro:mostSpecificType ?type . \n" +
|
+ " ?subject vitro:mostSpecificType ?type . \n"
|
||||||
" ?type rdfs:label ?label \n" +
|
+ " ?type rdfs:label ?label . \n"
|
||||||
"} ORDER BY ?label ";
|
+ " ?type vitro:inClassGroup ?classGroup . \n"
|
||||||
|
+ " ?classGroup a ?ClassGroup \n"
|
||||||
|
+ "} ORDER BY ?label ";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue