org.apache.jena.riot.other
Class BatchedStreamRDF

java.lang.Object
  extended by org.apache.jena.riot.other.BatchedStreamRDF
All Implemented Interfaces:
StreamRDF

public class BatchedStreamRDF
extends Object
implements StreamRDF

Batch a stream into triples and/or quads. Triples are batched on subject Quads are batched on (graph, subject).


Constructor Summary
BatchedStreamRDF(StreamRDFBatchHandler batchProc)
           
 
Method Summary
 void base(String base)
          base declaration seen
 void finish()
          Finish parsing
 void prefix(String prefix, String iri)
          prefix declaration seen
 void quad(Quad quad)
          Quad emitted
 void start()
          Start parsing
 void triple(Triple triple)
          Triple emitted
 void tuple(Tuple<Node> tuple)
          Generalized emitted
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchedStreamRDF

public BatchedStreamRDF(StreamRDFBatchHandler batchProc)
Method Detail

start

public final void start()
Description copied from interface: StreamRDF
Start parsing

Specified by:
start in interface StreamRDF

triple

public void triple(Triple triple)
Description copied from interface: StreamRDF
Triple emitted

Specified by:
triple in interface StreamRDF

quad

public void quad(Quad quad)
Description copied from interface: StreamRDF
Quad emitted

Specified by:
quad in interface StreamRDF

finish

public final void finish()
Description copied from interface: StreamRDF
Finish parsing

Specified by:
finish in interface StreamRDF

tuple

public void tuple(Tuple<Node> tuple)
Description copied from interface: StreamRDF
Generalized emitted

Specified by:
tuple in interface StreamRDF

base

public void base(String base)
Description copied from interface: StreamRDF
base declaration seen

Specified by:
base in interface StreamRDF

prefix

public void prefix(String prefix,
                   String iri)
Description copied from interface: StreamRDF
prefix declaration seen

Specified by:
prefix in interface StreamRDF


Licenced under the Apache License, Version 2.0