NIHVIVO-3186 updated the generator to use mostSpecificType for the posn type, which was not working correctly in edit mode. Updated the template so that autocomplete only pulls in foaf persons. Updated button text

This commit is contained in:
tworrall 2011-11-28 16:50:18 +00:00
parent aff77519a4
commit 4882021d9e
3 changed files with 12 additions and 10 deletions

View file

@ -8,6 +8,7 @@ import javax.servlet.http.HttpSession;
import com.hp.hpl.jena.vocabulary.XSD;
import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest;
import edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary;
import edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary.Precision;
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.DateTimeIntervalValidationVTwo;
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.DateTimeWithPrecisionVTwo;
@ -30,8 +31,9 @@ public class OrganizationHasPositionHistoryGenerator extends VivoBaseGenerator
+ " ?position rdfs:label ?existingPositionTitle . }";
private static final String QUERY_EXISTING_POSITION_TYPE = ""
+ "PREFIX vitro: <" + VitroVocabulary.vitroURI + "> \n"
+ "SELECT ?existingPositionType WHERE { \n"
+ " ?position a ?existingPositionType . }";
+ " ?position vitro:mostSpecificType ?existingPositionType . }";
private static final String QUERY_EXISTING_PERSON = ""
+ "PREFIX core: <http://vivoweb.org/ontology/core#> \n"