NIHVIVO-2970 - 1) 1. Local names of context nodes appearing in snippet (result 1) -- should be resolved with this fix.

This commit is contained in:
deepakkoni 2011-07-18 21:09:56 +00:00
parent 7ffba81972
commit 1d5f5e4edb

View file

@ -225,12 +225,13 @@ public class IndividualToSolrDocument {
Iterator<ObjectPropertyStatement> objectPropertyStmtIter = objectPropertyStatements.iterator();
while (objectPropertyStmtIter.hasNext()) {
ObjectPropertyStatement objectPropertyStmt = objectPropertyStmtIter.next();
if( "http://www.w3.org/2002/07/owl#differentFrom".equals(objectPropertyStmt.getPropertyURI()) )
if( "http://www.w3.org/2002/07/owl#differentFrom".equals(objectPropertyStmt.getPropertyURI()) ){
continue;
}
try {
objectNames.append(" ");
String t=null;
objectNames.append(((t=objectPropertyStmt.getObject().getName()) == null)?"":t);
objectNames.append(((t=objectPropertyStmt.getObject().getRdfsLabel()) == null)?"":t);
addUri.append(" ");
addUri.append(((t=objectPropertyStmt.getObject().getURI()) == null)?"":t);
} catch (Exception e) {