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:
parent
7ffba81972
commit
1d5f5e4edb
1 changed files with 3 additions and 2 deletions
|
@ -225,12 +225,13 @@ public class IndividualToSolrDocument {
|
||||||
Iterator<ObjectPropertyStatement> objectPropertyStmtIter = objectPropertyStatements.iterator();
|
Iterator<ObjectPropertyStatement> objectPropertyStmtIter = objectPropertyStatements.iterator();
|
||||||
while (objectPropertyStmtIter.hasNext()) {
|
while (objectPropertyStmtIter.hasNext()) {
|
||||||
ObjectPropertyStatement objectPropertyStmt = objectPropertyStmtIter.next();
|
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;
|
continue;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
objectNames.append(" ");
|
objectNames.append(" ");
|
||||||
String t=null;
|
String t=null;
|
||||||
objectNames.append(((t=objectPropertyStmt.getObject().getName()) == null)?"":t);
|
objectNames.append(((t=objectPropertyStmt.getObject().getRdfsLabel()) == null)?"":t);
|
||||||
addUri.append(" ");
|
addUri.append(" ");
|
||||||
addUri.append(((t=objectPropertyStmt.getObject().getURI()) == null)?"":t);
|
addUri.append(((t=objectPropertyStmt.getObject().getURI()) == null)?"":t);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue