public class BigdataSPARQLResultsJSONWriter
extends org.openrdf.query.resultio.QueryResultWriterBase
implements org.openrdf.query.resultio.TupleQueryResultWriter
Modifier and Type | Field and Description |
---|---|
protected boolean |
documentOpen |
protected boolean |
firstTupleWritten |
protected boolean |
headerComplete |
protected boolean |
headerOpen |
protected com.fasterxml.jackson.core.JsonGenerator |
jg |
protected boolean |
linksFound |
protected boolean |
tupleVariablesFound |
Constructor and Description |
---|
BigdataSPARQLResultsJSONWriter(OutputStream out) |
BigdataSPARQLResultsJSONWriter(Writer writer) |
Modifier and Type | Method and Description |
---|---|
void |
endDocument() |
void |
endHeader() |
void |
endQueryResult() |
org.openrdf.query.resultio.TupleQueryResultFormat |
getQueryResultFormat() |
Collection<org.openrdf.rio.RioSetting<?>> |
getSupportedSettings() |
org.openrdf.query.resultio.TupleQueryResultFormat |
getTupleQueryResultFormat() |
void |
handleBoolean(boolean value) |
void |
handleLinks(List<String> linkUrls) |
void |
handleNamespace(String prefix,
String uri) |
void |
handleSolution(org.openrdf.query.BindingSet bindingSet) |
void |
handleStylesheet(String stylesheetUrl) |
void |
startDocument() |
void |
startHeader() |
void |
startQueryResult(List<String> columnHeaders) |
protected void |
writeSid(BigdataBNode sid) |
protected void |
writeValue(org.openrdf.model.Value value) |
getWriterConfig, setWriterConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected boolean firstTupleWritten
protected boolean documentOpen
protected boolean headerOpen
protected boolean headerComplete
protected boolean tupleVariablesFound
protected boolean linksFound
protected final com.fasterxml.jackson.core.JsonGenerator jg
public BigdataSPARQLResultsJSONWriter(Writer writer)
public BigdataSPARQLResultsJSONWriter(OutputStream out)
public final org.openrdf.query.resultio.TupleQueryResultFormat getTupleQueryResultFormat()
getTupleQueryResultFormat
in interface org.openrdf.query.resultio.TupleQueryResultWriter
public org.openrdf.query.resultio.TupleQueryResultFormat getQueryResultFormat()
getQueryResultFormat
in interface org.openrdf.query.resultio.QueryResultWriter
protected void writeValue(org.openrdf.model.Value value) throws IOException, org.openrdf.query.QueryResultHandlerException
IOException
org.openrdf.query.QueryResultHandlerException
protected void writeSid(BigdataBNode sid) throws IOException, org.openrdf.query.QueryResultHandlerException
IOException
org.openrdf.query.QueryResultHandlerException
public void endHeader() throws org.openrdf.query.QueryResultHandlerException
endHeader
in interface org.openrdf.query.resultio.QueryResultWriter
org.openrdf.query.QueryResultHandlerException
public void startQueryResult(List<String> columnHeaders) throws org.openrdf.query.TupleQueryResultHandlerException
startQueryResult
in interface org.openrdf.query.QueryResultHandler
org.openrdf.query.TupleQueryResultHandlerException
public void handleSolution(org.openrdf.query.BindingSet bindingSet) throws org.openrdf.query.TupleQueryResultHandlerException
handleSolution
in interface org.openrdf.query.QueryResultHandler
org.openrdf.query.TupleQueryResultHandlerException
public void endQueryResult() throws org.openrdf.query.TupleQueryResultHandlerException
endQueryResult
in interface org.openrdf.query.QueryResultHandler
org.openrdf.query.TupleQueryResultHandlerException
public void startDocument() throws org.openrdf.query.QueryResultHandlerException
startDocument
in interface org.openrdf.query.resultio.QueryResultWriter
org.openrdf.query.QueryResultHandlerException
public void handleStylesheet(String stylesheetUrl) throws org.openrdf.query.QueryResultHandlerException
handleStylesheet
in interface org.openrdf.query.resultio.QueryResultWriter
org.openrdf.query.QueryResultHandlerException
public void startHeader() throws org.openrdf.query.QueryResultHandlerException
startHeader
in interface org.openrdf.query.resultio.QueryResultWriter
org.openrdf.query.QueryResultHandlerException
public void handleLinks(List<String> linkUrls) throws org.openrdf.query.QueryResultHandlerException
handleLinks
in interface org.openrdf.query.QueryResultHandler
org.openrdf.query.QueryResultHandlerException
public void handleBoolean(boolean value) throws org.openrdf.query.QueryResultHandlerException
handleBoolean
in interface org.openrdf.query.QueryResultHandler
org.openrdf.query.QueryResultHandlerException
public final Collection<org.openrdf.rio.RioSetting<?>> getSupportedSettings()
getSupportedSettings
in interface org.openrdf.query.resultio.QueryResultWriter
getSupportedSettings
in class org.openrdf.query.resultio.QueryResultWriterBase
public void handleNamespace(String prefix, String uri) throws org.openrdf.query.QueryResultHandlerException
handleNamespace
in interface org.openrdf.query.resultio.QueryResultWriter
org.openrdf.query.QueryResultHandlerException
public void endDocument() throws IOException
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.