Merged to trunk. Changed the way a new individual is created on the siteAdmin NIHVIVO-881

This commit is contained in:
bdc34 2010-07-22 15:19:15 +00:00
parent 4a6aa63393
commit 7911fa6490
4 changed files with 56 additions and 7 deletions

View file

@ -30,8 +30,12 @@
if( editConfig != null ){
String predicateUri = editConfig.getPredicateUri();
if( predicateUri != null ){
Property prop = ResourceFactory.createProperty(predicateUri);
predicateLocalName = prop.getLocalName();
try{
Property prop = ResourceFactory.createProperty(predicateUri);
predicateLocalName = prop.getLocalName();
}catch (com.hp.hpl.jena.shared.InvalidPropertyURIException e){
log.debug("could not convert predicateUri into a valid URI",e);
}
}
if( editConfig.getEntityToReturnTo() != null && editConfig.getEntityToReturnTo().startsWith("?") ){