public class NDJSONLDWriter extends AbstractRDFWriter implements RDFWriter
namespaceTable, statementConsumer| Constructor and Description |
|---|
NDJSONLDWriter(OutputStream outputStream)
Creates a new NDJSONLDWriter that will write to the supplied OutputStream.
|
NDJSONLDWriter(OutputStream out,
String baseURI) |
NDJSONLDWriter(Writer writer) |
NDJSONLDWriter(Writer writer,
String baseURI) |
| Modifier and Type | Method and Description |
|---|---|
void |
endRDF()
Signals the end of the RDF data.
|
RDFFormat |
getRDFFormat()
Gets the RDF format that this RDFWriter uses.
|
Collection<RioSetting<?>> |
getSupportedSettings() |
void |
handleComment(String comment)
Handles a comment.
|
void |
handleNamespace(String prefix,
String uri)
Handles a namespace declaration/definition.
|
void |
handleStatement(Statement st)
Handles a statement.
|
void |
startRDF()
Signals the start of the RDF data.
|
checkWritingStarted, consumeStatement, getFileFormat, getWriterConfig, isWritingStarted, set, setWriterConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWriterConfig, set, setWriterConfigacceptsFileFormatpublic NDJSONLDWriter(OutputStream outputStream)
outputStream - The OutputStream to write the NDJSONLD document to.public NDJSONLDWriter(Writer writer)
public NDJSONLDWriter(OutputStream out, String baseURI)
public void handleStatement(Statement st) throws RDFHandlerException
RDFHandlerhandleStatement in interface RDFHandlerhandleStatement in class AbstractRDFWriterst - The statement.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void startRDF()
throws RDFHandlerException
RDFHandlerstartRDF in interface RDFHandlerstartRDF in class AbstractRDFWriterRDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void endRDF()
throws RDFHandlerException
RDFHandlerendRDF in interface RDFHandlerRDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void handleNamespace(String prefix, String uri) throws RDFHandlerException
RDFHandlerhandleNamespace in interface RDFHandlerhandleNamespace in class AbstractRDFWriterprefix - The prefix for the namespace, or an empty string in case of a default namespace.uri - The URI that the prefix maps to.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void handleComment(String comment) throws RDFHandlerException
RDFHandlerhandleComment in interface RDFHandlercomment - The comment.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.public RDFFormat getRDFFormat()
RDFWritergetRDFFormat in interface RDFWriterpublic Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface RDFWritergetSupportedSettings in class AbstractRDFWriterRioSettings that are supported by this RDFWriter.Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.