public class JSONLDWriter extends AbstractRDFWriter implements RDFWriter
JSONLDInternalRDFParser.namespaceTable, statementConsumer| Constructor and Description |
|---|
JSONLDWriter(OutputStream outputStream)
Create a SesameJSONLDWriter using a
OutputStream |
JSONLDWriter(OutputStream outputStream,
String baseURI)
Create a JSONLDWriter using a
OutputStream |
JSONLDWriter(Writer writer)
Create a SesameJSONLDWriter using a
Writer |
JSONLDWriter(Writer writer,
String baseURI)
Create a SesameJSONLDWriter using a
Writer |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeStatement(Statement st)
Consume a statement.
|
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 |
startRDF()
Signals the start of the RDF data.
|
checkWritingStarted, getOutputStream, getWriterConfig, handleStatement, isWritingStarted, set, setWriterConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputStream, getWriterConfig, set, setWriterConfighandleStatementpublic JSONLDWriter(OutputStream outputStream)
OutputStreamoutputStream - The OutputStream to write to.public JSONLDWriter(OutputStream outputStream, String baseURI)
OutputStreamoutputStream - The OutputStream to write to.baseURI - base URIpublic JSONLDWriter(Writer writer)
Writerwriter - The Writer to write to.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 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 consumeStatement(Statement st) throws RDFHandlerException
AbstractRDFWriterAbstractRDFWriter.handleStatement(Statement) in order to
benefit from automatic handling of RDF* conversion or encoding.consumeStatement in class AbstractRDFWriterst - the statement to consume.RDFHandlerExceptionpublic 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-2020 Eclipse Foundation. All Rights Reserved.