This commit is contained in:
stellamit 2012-06-21 15:45:00 +00:00
parent c5538eeb9d
commit 78687ae19e
2 changed files with 5 additions and 3 deletions

View file

@ -109,11 +109,14 @@ public class IndividualRdfAssembler {
for (ObjectPropertyStatement os: ostates) {
Property prop = newModel.getProperty(os.getPropertyURI());
System.out.println("\nsjm: the object property is: " + os.getPropertyURI());
Resource obj = newModel.getResource(os.getObjectURI());
newModel.add(newModel.createStatement(subj, prop, obj));
if ( includeInLinkedData(obj, contextModel)) {
System.out.println("\tsjm: includeInLinkdedData is true");
newModel.add(getRDF(os.getObject(), contextModel, newModel, recurseDepth + 1, includes));
} else {
System.out.println("\tsjm: includeInLinkdedData is false");
contextModel.enterCriticalSection(Lock.READ);
try {
newModel.add(contextModel.listStatements(obj, RDFS.label, (RDFNode)null));

View file

@ -173,7 +173,6 @@ public class SimpleReasoner extends StatementListener {
} catch (Exception e) {
// don't stop the edit if there's an exception
log.error("Exception while retracting inferences: ", e);
e.printStackTrace();
}
}
@ -265,7 +264,7 @@ public class SimpleReasoner extends StatementListener {
}
} catch (Exception e) {
// don't stop the edit if there's an exception
log.error("Exception while adding inference(s): " + e.getMessage());
log.error("Exception while adding inference(s)",e);
}
}
@ -336,7 +335,7 @@ public class SimpleReasoner extends StatementListener {
}
} catch (Exception e) {
// don't stop the edit if there's an exception
log.error("Exception while removing inference(s): " + e.getMessage());
log.error("Exception while removing inference(s)",e);
}
}