org.openrdf.rio.helpers
Class OrganizedRDFWriter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrganizedRDFWriter
public OrganizedRDFWriter(RDFWriter writer)
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.