Updating person has position history to try vitro:mostSpecificType to get type of position instead of regular rdf:type to check if returns the correct type (instead of owl:Thing)

This commit is contained in:
hjkhjk54 2011-11-18 21:44:31 +00:00
parent b4c942b24b
commit 5b4f819ad5

View file

@ -236,9 +236,11 @@ public class PersonHasPositionHistoryGenerator extends VivoBaseGenerator impleme
" ?existingOrgType rdfs:subClassOf <" + orgClass + "> " +
"} ";
//Huda: changed this from rdf:type to vitro:mostSpecificType since returning thing
final static String positionTypeQuery =
"PREFIX vitro: <" + VitroVocabulary.vitroURI + "> \n" +
"SELECT ?existingPositionType WHERE { \n" +
" ?position a ?existingPositionType . }";
" ?position vitro:mostSpecificType ?existingPositionType . }";
final static String existingIntervalNodeQuery =
"SELECT ?existingIntervalNode WHERE { \n" +