public class N3Writer extends Object implements RDFWriter, org.eclipse.rdf4j.common.io.CharSink
TurtleWriter and writes documents in Turtle format, which is a subset of N3.| Constructor and Description |
|---|
N3Writer(OutputStream out)
Creates a new N3Writer that will write to the supplied OutputStream.
|
N3Writer(OutputStream out,
org.eclipse.rdf4j.common.net.ParsedIRI baseIRI)
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.
|
N3Writer(Writer writer,
org.eclipse.rdf4j.common.net.ParsedIRI baseIRI)
Creates a new N3Writer that will write to the supplied Writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endRDF() |
org.eclipse.rdf4j.common.lang.FileFormat |
getFileFormat() |
RDFFormat |
getRDFFormat() |
Collection<RioSetting<?>> |
getSupportedSettings() |
Writer |
getWriter() |
WriterConfig |
getWriterConfig() |
void |
handleComment(String comment) |
void |
handleNamespace(String prefix,
String name) |
void |
handleStatement(org.eclipse.rdf4j.model.Statement st) |
<T> RDFWriter |
set(RioSetting<T> setting,
T value) |
RDFWriter |
setWriterConfig(WriterConfig config) |
void |
startRDF() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptsFileFormatpublic N3Writer(OutputStream out)
out - The OutputStream to write the N3 document to.public N3Writer(OutputStream out, org.eclipse.rdf4j.common.net.ParsedIRI baseIRI)
out - The OutputStream to write the N3 document to.baseIRI - used to relativize IRIs to relative IRIs.public N3Writer(Writer writer)
writer - The Writer to write the N3 document to.public N3Writer(Writer writer, org.eclipse.rdf4j.common.net.ParsedIRI baseIRI)
writer - The Writer to write the N3 document to.baseIRI - used to relativize IRIs to relative IRIs.public Writer getWriter()
getWriter in interface org.eclipse.rdf4j.common.io.CharSinkpublic RDFFormat getRDFFormat()
getRDFFormat in interface RDFWriterpublic RDFWriter setWriterConfig(WriterConfig config)
setWriterConfig in interface RDFWriterpublic WriterConfig getWriterConfig()
getWriterConfig in interface RDFWriterpublic Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface RDFWriterpublic <T> RDFWriter set(RioSetting<T> setting, T value)
public 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 RDFHandlerRDFHandlerExceptionpublic void handleStatement(org.eclipse.rdf4j.model.Statement st) throws RDFHandlerException
handleStatement in interface RDFHandlerRDFHandlerExceptionpublic void handleComment(String comment) throws RDFHandlerException
handleComment in interface RDFHandlerRDFHandlerExceptionpublic org.eclipse.rdf4j.common.lang.FileFormat getFileFormat()
getFileFormat in interface org.eclipse.rdf4j.common.io.SinkCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.