|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.TripleIterator org.trippi.io.RIOTripleIterator
public class RIOTripleIterator
An iterator over triples parsed by a RIO rdf parser.
Field Summary |
---|
Fields inherited from class org.trippi.TripleIterator |
---|
INPUT_FORMATS, OUTPUT_FORMATS |
Constructor Summary | |
---|---|
RIOTripleIterator(java.io.InputStream in,
org.openrdf.rio.Parser parser,
java.lang.String baseURI)
Initialize the iterator by starting the parsing thread. |
Method Summary | |
---|---|
void |
close()
Release resources held by this iterator. |
void |
handleStatement(org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object)
Handle a statement from the parser. |
boolean |
hasNext()
Return true if there are any more triples. |
static void |
main(java.lang.String[] args)
|
org.jrdf.graph.Triple |
next()
Return the next triple. |
void |
run()
The main method of the background thread. |
Methods inherited from class org.trippi.TripleIterator |
---|
addToGraph, count, deleteFromGraph, fromStream, fromStream, setAliasMap, toStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RIOTripleIterator(java.io.InputStream in, org.openrdf.rio.Parser parser, java.lang.String baseURI) throws TrippiException
TrippiException
Method Detail |
---|
public boolean hasNext() throws TrippiException
TripleIterator
hasNext
in class TripleIterator
TrippiException
public org.jrdf.graph.Triple next() throws TrippiException
TripleIterator
next
in class TripleIterator
TrippiException
public void close() throws TrippiException
TripleIterator
close
in class TripleIterator
TrippiException
public void run()
run
in interface java.lang.Runnable
public void handleStatement(org.openrdf.model.Resource subject, org.openrdf.model.URI predicate, org.openrdf.model.Value object) throws org.openrdf.rio.StatementHandlerException
handleStatement
in interface org.openrdf.rio.StatementHandler
org.openrdf.rio.StatementHandlerException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |