Class LPTopGoalIterator

All Implemented Interfaces:
Iterator<Triple>, org.apache.jena.atlas.iterator.IteratorCloseable<Triple>, org.apache.jena.atlas.lib.Closeable, LPInterpreterContext, LPInterpreterState, ClosableIterator<Triple>

public class LPTopGoalIterator extends Object implements ClosableIterator<Triple>, LPInterpreterContext
Wraps up the results an LP rule engine instance into a conventional iterator. Ensures that the engine is closed and detached from the inference graph if the iterator hits the end of the result set.