public class ConsoleRDFWriter extends AbstractRDFWriter
namespaceTable| Constructor and Description |
|---|
ConsoleRDFWriter(ConsoleIO consoleIO,
int consoleWidth)
Constructor
|
| 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.
|
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.
|
getSupportedSettings, getWriterConfig, set, setWriterConfigpublic ConsoleRDFWriter(ConsoleIO consoleIO, int consoleWidth)
consoleIO - consoleWidth - console widthpublic void handleNamespace(String prefix, String uri) throws QueryResultHandlerException
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.QueryResultHandlerExceptionpublic RDFFormat getRDFFormat()
RDFWriterpublic void startRDF()
throws RDFHandlerException
RDFHandlerRDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void endRDF()
throws RDFHandlerException
RDFHandlerRDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void handleStatement(Statement st) throws RDFHandlerException
RDFHandlerst - The statement.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.public void handleComment(String comment) throws RDFHandlerException
RDFHandlercomment - The comment.RDFHandlerException - If the RDF handler has encountered an unrecoverable error.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.