public class ConsoleRDFWriter extends AbstractRDFWriter
namespaceTable, statementConsumer
Constructor and Description |
---|
ConsoleRDFWriter(ConsoleIO consoleIO,
int consoleWidth)
Constructor
|
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.
|
void |
handleComment(String comment)
Handles a comment.
|
void |
handleNamespace(String prefix,
String uri)
Handles a namespace declaration/definition.
|
checkWritingStarted, getFileFormat, getSupportedSettings, getWriterConfig, handleStatement, isWritingStarted, set, setWriterConfig, startRDF
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptsFileFormat
public ConsoleRDFWriter(ConsoleIO consoleIO, int consoleWidth)
consoleIO
- consoleWidth
- console widthpublic void handleNamespace(String prefix, String uri) throws QueryResultHandlerException
RDFHandler
handleNamespace
in interface RDFHandler
handleNamespace
in class AbstractRDFWriter
prefix
- The prefix for the namespace, or an empty string in case of a default namespace.uri
- The URI that the prefix maps to.QueryResultHandlerException
public RDFFormat getRDFFormat()
RDFWriter
public void endRDF() throws RDFHandlerException
RDFHandler
RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.public void consumeStatement(Statement st) throws RDFHandlerException
AbstractRDFWriter
AbstractRDFWriter.handleStatement(Statement)
in order to
benefit from automatic handling of RDF-star conversion or encoding.consumeStatement
in class AbstractRDFWriter
st
- the statement to consume.RDFHandlerException
public void handleComment(String comment) throws RDFHandlerException
RDFHandler
comment
- The comment.RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.