|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.TripleIterator
public abstract class TripleIterator
An iterator over a series of Triple
objects.
Field Summary | |
---|---|
static RDFFormat[] |
INPUT_FORMATS
Formats supported for reading. |
static RDFFormat[] |
OUTPUT_FORMATS
Formats supported for writing. |
Constructor Summary | |
---|---|
TripleIterator()
|
Method Summary | |
---|---|
void |
addToGraph(org.jrdf.graph.Graph graph)
Add all triples in the iterator to the given Graph ,
then close the iterator. |
abstract void |
close()
Release resources held by this iterator. |
int |
count()
Get the number of triples in the iterator, then close it. |
void |
deleteFromGraph(org.jrdf.graph.Graph graph)
Delete all triples in the iterator from the given Graph ,
then close the iterator. |
static TripleIterator |
fromStream(java.io.InputStream in,
RDFFormat format)
Get an iterator over the triples in the given stream. |
static TripleIterator |
fromStream(java.io.InputStream in,
java.lang.String baseURI,
RDFFormat format)
Get an iterator over the triples in the given stream. |
abstract boolean |
hasNext()
Return true if there are any more triples. |
abstract org.jrdf.graph.Triple |
next()
Return the next triple. |
void |
setAliasMap(java.util.Map aliases)
|
int |
toStream(java.io.OutputStream out,
RDFFormat format)
Serialize to the given stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RDFFormat[] INPUT_FORMATS
fromStream(InputStream, String, RDFFormat)
public static final RDFFormat[] OUTPUT_FORMATS
toStream(OutputStream, RDFFormat)
Constructor Detail |
---|
public TripleIterator()
Method Detail |
---|
public abstract boolean hasNext() throws TrippiException
TrippiException
public abstract org.jrdf.graph.Triple next() throws TrippiException
TrippiException
public abstract void close() throws TrippiException
TrippiException
public void setAliasMap(java.util.Map aliases)
public int count() throws TrippiException
TrippiException
public int toStream(java.io.OutputStream out, RDFFormat format) throws TrippiException
TrippiException
public static TripleIterator fromStream(java.io.InputStream in, java.lang.String baseURI, RDFFormat format) throws TrippiException
TrippiException
public static TripleIterator fromStream(java.io.InputStream in, RDFFormat format) throws TrippiException
TrippiException
public void addToGraph(org.jrdf.graph.Graph graph) throws TrippiException
Graph
,
then close the iterator.
TrippiException
public void deleteFromGraph(org.jrdf.graph.Graph graph) throws TrippiException
Graph
,
then close the iterator.
TrippiException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |