public class N3Writer extends RDFWriterBase implements RDFWriter
TurtleWriter
and writes documents in Turtle format, which is a subset of N3.namespaceTable| Constructor and Description |
|---|
N3Writer(OutputStream out)
Creates a new N3Writer that will write to the supplied OutputStream.
|
N3Writer(Writer writer)
Creates a new N3Writer that will write to the supplied Writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endRDF() |
RDFFormat |
getRDFFormat() |
void |
handleComment(String comment) |
void |
handleNamespace(String prefix,
String name) |
void |
handleStatement(Statement st) |
void |
startRDF() |
getSupportedSettings, getWriterConfig, setWriterConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedSettings, getWriterConfig, setWriterConfigpublic N3Writer(OutputStream out)
out - The OutputStream to write the N3 document to.public N3Writer(Writer writer)
writer - The Writer to write the N3 document to.public RDFFormat getRDFFormat()
getRDFFormat in interface RDFWriterpublic void startRDF()
throws RDFHandlerException
startRDF in interface RDFHandlerRDFHandlerExceptionpublic void endRDF()
throws RDFHandlerException
endRDF in interface RDFHandlerRDFHandlerExceptionpublic void handleNamespace(String prefix, String name) throws RDFHandlerException
handleNamespace in interface RDFHandlerhandleNamespace in class RDFWriterBaseRDFHandlerExceptionpublic void handleStatement(Statement st) throws RDFHandlerException
handleStatement in interface RDFHandlerRDFHandlerExceptionpublic void handleComment(String comment) throws RDFHandlerException
handleComment in interface RDFHandlerRDFHandlerExceptionCopyright © 2001-2014 Aduna. All Rights Reserved.