public class SPARQLResultsXMLWriter extends AbstractQueryResultWriter implements TupleQueryResultWriter
TupleQueryResultWriter that writes tuple query results in the
SPARQL Query Results XML Format.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
documentOpen |
protected boolean |
headerComplete |
protected boolean |
headerOpen |
protected boolean |
tupleVariablesFound |
protected XMLWriter |
xmlWriter
XMLWriter to write XML to.
|
| Constructor and Description |
|---|
SPARQLResultsXMLWriter(OutputStream out) |
SPARQLResultsXMLWriter(Writer writer) |
SPARQLResultsXMLWriter(XMLWriter xmlWriter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
endDocument() |
void |
endHeader() |
void |
endQueryResult() |
TupleQueryResultFormat |
getQueryResultFormat() |
Collection<org.eclipse.rdf4j.rio.RioSetting<?>> |
getSupportedSettings() |
TupleQueryResultFormat |
getTupleQueryResultFormat() |
Writer |
getWriter() |
void |
handleBoolean(boolean value) |
void |
handleLinks(List<String> linkUrls) |
void |
handleNamespace(String prefix,
String uri) |
protected void |
handleSolutionImpl(BindingSet bindingSet) |
void |
handleStylesheet(String url) |
void |
setPrettyPrint(boolean prettyPrint)
Deprecated.
Use
AbstractQueryResultWriter.getWriterConfig() .set(BasicWriterSettings.PRETTY_PRINT, prettyPrint) instead. |
void |
startDocument() |
void |
startHeader() |
void |
startQueryResult(List<String> bindingNames) |
getFileFormat, getWriterConfig, handleSolution, setWriterConfig, xsdStringToPlainLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendHeader, getSupportedSettings, getWriterConfig, handleNamespace, handleStylesheet, setWriterConfig, startDocument, startHeaderendQueryResult, handleBoolean, handleLinks, handleSolution, startQueryResultacceptsFileFormat, getFileFormatprotected XMLWriter xmlWriter
protected boolean documentOpen
protected boolean headerOpen
protected boolean headerComplete
protected boolean tupleVariablesFound
public SPARQLResultsXMLWriter(OutputStream out)
public SPARQLResultsXMLWriter(Writer writer)
public SPARQLResultsXMLWriter(XMLWriter xmlWriter)
public TupleQueryResultFormat getTupleQueryResultFormat()
getTupleQueryResultFormat in interface TupleQueryResultWriterpublic final TupleQueryResultFormat getQueryResultFormat()
getQueryResultFormat in interface QueryResultWriter@Deprecated public void setPrettyPrint(boolean prettyPrint)
AbstractQueryResultWriter.getWriterConfig() .set(BasicWriterSettings.PRETTY_PRINT, prettyPrint) instead.startDocument() is called).protected void endDocument()
throws IOException
IOExceptionpublic void handleBoolean(boolean value)
throws QueryResultHandlerException
handleBoolean in interface QueryResultHandlerQueryResultHandlerExceptionpublic void startDocument()
throws QueryResultHandlerException
startDocument in interface QueryResultWriterQueryResultHandlerExceptionpublic void handleStylesheet(String url) throws QueryResultHandlerException
handleStylesheet in interface QueryResultWriterQueryResultHandlerExceptionpublic void startHeader()
throws QueryResultHandlerException
startHeader in interface QueryResultWriterQueryResultHandlerExceptionpublic void handleLinks(List<String> linkUrls) throws QueryResultHandlerException
handleLinks in interface QueryResultHandlerQueryResultHandlerExceptionpublic void endHeader()
throws QueryResultHandlerException
endHeader in interface QueryResultWriterQueryResultHandlerExceptionpublic void startQueryResult(List<String> bindingNames) throws TupleQueryResultHandlerException
startQueryResult in interface QueryResultHandlerstartQueryResult in class AbstractQueryResultWriterTupleQueryResultHandlerExceptionpublic void endQueryResult()
throws TupleQueryResultHandlerException
endQueryResult in interface QueryResultHandlerTupleQueryResultHandlerExceptionprotected void handleSolutionImpl(BindingSet bindingSet) throws TupleQueryResultHandlerException
handleSolutionImpl in class AbstractQueryResultWriterTupleQueryResultHandlerExceptionpublic final Collection<org.eclipse.rdf4j.rio.RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface QueryResultWritergetSupportedSettings in class AbstractQueryResultWriterpublic void handleNamespace(String prefix, String uri) throws QueryResultHandlerException
handleNamespace in interface QueryResultWriterQueryResultHandlerExceptionCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.