consumer.iterateResourceTriples(new ResourceTripleIterator() {
@Override
public void handleResourceTriple(IRI subject, IRI predicate,
IRI object) {
remainingTriples.add(new RDFTriple(subject, consumer
.isAnonymousNode(subject), predicate, object,
consumer.isAnonymousNode(object)));
}
});
consumer.iterateLiteralTriples(new LiteralTripleIterator() {
@Override
public void handleLiteralTriple(@Nonnull IRI subject,
@Nonnull IRI predicate, @Nonnull OWLLiteral object) {
remainingTriples.add(new RDFTriple(subject, consumer
.isAnonymousNode(subject), predicate, object));
}
});
return remainingTriples;
}