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:
parent
b4c942b24b
commit
5b4f819ad5
1 changed files with 3 additions and 1 deletions
|
@ -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" +
|
||||
|
|
Loading…
Add table
Reference in a new issue