public class TriGWriter extends TurtleWriter
Need a TriGWriter that extends OUR TurtleWriter instead of Rio's for the same reason we needed our own TurtleWriter in the first place All methods in here are copy/pasted from Rio's. All that changes is the superclass
| 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() |
org.openrdf.rio.RDFFormat |
getRDFFormat() |
void |
handleStatement(org.openrdf.model.Statement st) |
void |
startRDF() |
protected void |
writeCommentLine(String line) |
protected void |
writeNamespace(String prefix,
String name) |
writeLiteralclosePreviousStatement, handleComment, handleNamespace, writeBNode, writePredicate, writeResource, writeURI, writeValuegetSupportedSettings, getWriterConfig, set, 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 org.openrdf.rio.RDFFormat getRDFFormat()
getRDFFormat in interface org.openrdf.rio.RDFWritergetRDFFormat in class org.openrdf.rio.turtle.TurtleWriterpublic void startRDF()
throws org.openrdf.rio.RDFHandlerException
startRDF in interface org.openrdf.rio.RDFHandlerstartRDF in class org.openrdf.rio.turtle.TurtleWriterorg.openrdf.rio.RDFHandlerExceptionpublic void endRDF()
throws org.openrdf.rio.RDFHandlerException
endRDF in interface org.openrdf.rio.RDFHandlerendRDF in class org.openrdf.rio.turtle.TurtleWriterorg.openrdf.rio.RDFHandlerExceptionpublic void handleStatement(org.openrdf.model.Statement st)
throws org.openrdf.rio.RDFHandlerException
handleStatement in interface org.openrdf.rio.RDFHandlerhandleStatement in class org.openrdf.rio.turtle.TurtleWriterorg.openrdf.rio.RDFHandlerExceptionprotected void writeCommentLine(String line) throws IOException
writeCommentLine in class org.openrdf.rio.turtle.TurtleWriterIOExceptionprotected void writeNamespace(String prefix, String name) throws IOException
writeNamespace in class org.openrdf.rio.turtle.TurtleWriterIOExceptionprotected void closeActiveContext()
throws IOException
IOExceptionCopyright © 2010-2016 Stardog Union. All Rights Reserved.