public class TriGWriter extends TurtleWriter
TurtleWriter that writes RDF documents in TriG format
by adding graph scopes to the Turtle document.lastWrittenPredicate, lastWrittenSubject, statementClosed, writer, writingStartednamespaceTable| Constructor and Description |
|---|
TriGWriter(OutputStream out)
Creates a new TriGWriter that will write to the supplied OutputStream.
|
TriGWriter(Writer writer)
Creates a new TriGWriter that will write to the supplied Writer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeActiveContext() |
void |
endRDF() |
RDFFormat |
getRDFFormat() |
void |
handleStatement(Statement st) |
void |
startRDF() |
protected void |
writeCommentLine(String line) |
protected void |
writeNamespace(String prefix,
String name) |
closePreviousStatement, handleComment, handleNamespace, writeBNode, writeLiteral, writePredicate, writeResource, writeURI, writeValuegetSupportedSettings, getWriterConfig, setWriterConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedSettings, getWriterConfig, setWriterConfigpublic TriGWriter(OutputStream out)
out - The OutputStream to write the TriG document to.public TriGWriter(Writer writer)
writer - The Writer to write the TriG document to.public RDFFormat getRDFFormat()
getRDFFormat in interface RDFWritergetRDFFormat in class TurtleWriterpublic void startRDF()
throws RDFHandlerException
startRDF in interface RDFHandlerstartRDF in class TurtleWriterRDFHandlerExceptionpublic void endRDF()
throws RDFHandlerException
endRDF in interface RDFHandlerendRDF in class TurtleWriterRDFHandlerExceptionpublic void handleStatement(Statement st) throws RDFHandlerException
handleStatement in interface RDFHandlerhandleStatement in class TurtleWriterRDFHandlerExceptionprotected void writeCommentLine(String line) throws IOException
writeCommentLine in class TurtleWriterIOExceptionprotected void writeNamespace(String prefix, String name) throws IOException
writeNamespace in class TurtleWriterIOExceptionprotected void closeActiveContext()
throws IOException
IOExceptionCopyright © 2001-2014 Aduna. All Rights Reserved.