net.fortytwo.flow.rdf
Class SesameInputAdapter

java.lang.Object
  extended by net.fortytwo.flow.rdf.SesameInputAdapter
All Implemented Interfaces:
org.openrdf.rio.RDFHandler

public class SesameInputAdapter
extends Object
implements org.openrdf.rio.RDFHandler

An RDFHandler which passes its input into an RdfSink.

Author:
Joshua Shinavier (http://fortytwo.net)

Constructor Summary
SesameInputAdapter(RDFSink sink)
           
 
Method Summary
 void endRDF()
          Signals the end of the RDF data.
 void handleComment(String comment)
          Handles a comment.
 void handleNamespace(String prefix, String uri)
          Handles a namespace declaration/definition.
 void handleStatement(org.openrdf.model.Statement st)
          Handles a statement.
static org.openrdf.rio.RDFFormat parse(InputStream is, RDFSink sink, String baseUri, org.openrdf.rio.RDFFormat format)
           
 void startRDF()
          Signals the start of the RDF data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SesameInputAdapter

public SesameInputAdapter(RDFSink sink)
Method Detail

handleComment

public void handleComment(String comment)
Handles a comment.

Specified by:
handleComment in interface org.openrdf.rio.RDFHandler

handleNamespace

public void handleNamespace(String prefix,
                            String uri)
Handles a namespace declaration/definition.

Specified by:
handleNamespace in interface org.openrdf.rio.RDFHandler

handleStatement

public void handleStatement(org.openrdf.model.Statement st)
Handles a statement.

Specified by:
handleStatement in interface org.openrdf.rio.RDFHandler

startRDF

public void startRDF()
Signals the start of the RDF data.

Specified by:
startRDF in interface org.openrdf.rio.RDFHandler

endRDF

public void endRDF()
Signals the end of the RDF data.

Specified by:
endRDF in interface org.openrdf.rio.RDFHandler

parse

public static org.openrdf.rio.RDFFormat parse(InputStream is,
                                              RDFSink sink,
                                              String baseUri,
                                              org.openrdf.rio.RDFFormat format)
                                       throws RippleException
Throws:
RippleException


Copyright © 2007-2014. All Rights Reserved.