org.openrdf.rio.helpers
Class OrganizedRDFWriter

java.lang.Object
  extended by org.openrdf.rio.helpers.OrganizedRDFWriter
All Implemented Interfaces:
RDFHandler, RDFWriter
Direct Known Subclasses:
OntologyWriter, OrganizedRDFXMLWriter, RssWriter

public class OrganizedRDFWriter
extends Object
implements RDFWriter

Writes RDF statements grouped by subject.

Author:
James Leigh

Constructor Summary
OrganizedRDFWriter(RDFWriter writer)
           
 
Method Summary
 void close()
           
 void endRDF()
           
 RDFFormat getRDFFormat()
           
 void handleComment(String comment)
           
 void handleNamespace(String prefix, String uri)
           
 void handleStatement(Statement st)
           
 void print()
           
 void print(QueryLanguage ql, String queryString, String binding)
           
 void print(Resource subj)
           
 void print(Statement st)
           
 void print(URI pred, Value obj)
           
 void printReferenced()
           
 void setConnection(RepositoryConnection con)
           
 void startRDF()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrganizedRDFWriter

public OrganizedRDFWriter(RDFWriter writer)
Method Detail

setConnection

public void setConnection(RepositoryConnection con)

startRDF

public void startRDF()
              throws RDFHandlerException
Specified by:
startRDF in interface RDFHandler
Throws:
RDFHandlerException

endRDF

public void endRDF()
            throws RDFHandlerException
Specified by:
endRDF in interface RDFHandler
Throws:
RDFHandlerException

close

public void close()
           throws IOException
Throws:
IOException

getRDFFormat

public RDFFormat getRDFFormat()
Specified by:
getRDFFormat in interface RDFWriter

handleComment

public void handleComment(String comment)
                   throws RDFHandlerException
Specified by:
handleComment in interface RDFHandler
Throws:
RDFHandlerException

handleNamespace

public void handleNamespace(String prefix,
                            String uri)
                     throws RDFHandlerException
Specified by:
handleNamespace in interface RDFHandler
Throws:
RDFHandlerException

handleStatement

public void handleStatement(Statement st)
                     throws RDFHandlerException
Specified by:
handleStatement in interface RDFHandler
Throws:
RDFHandlerException

print

public void print()
           throws RDFHandlerException
Throws:
RDFHandlerException

print

public void print(QueryLanguage ql,
                  String queryString,
                  String binding)
           throws RDFHandlerException
Throws:
RDFHandlerException

print

public void print(URI pred,
                  Value obj)
           throws RDFHandlerException
Throws:
RDFHandlerException

print

public void print(Resource subj)
           throws RDFHandlerException
Throws:
RDFHandlerException

print

public void print(Statement st)
           throws RDFHandlerException
Throws:
RDFHandlerException

printReferenced

public void printReferenced()
                     throws RDFHandlerException
Throws:
RDFHandlerException


Copyright © 2004-2008 Aduna. All Rights Reserved.