Package com.stardog.stark.query.io.xml
Class SPARQLXMLSelectResultWriter
- java.lang.Object
-
- com.stardog.stark.query.io.xml.AbstractSPARQLXMLWriter<BindingSet>
-
- com.stardog.stark.query.io.xml.SPARQLXMLSelectResultWriter
-
- All Implemented Interfaces:
QueryResultWriter<BindingSet>
,SelectQueryResultWriter
,QueryResultHandler<BindingSet>
,SelectQueryResultHandler
public final class SPARQLXMLSelectResultWriter extends AbstractSPARQLXMLWriter<BindingSet> implements SelectQueryResultWriter
Writer
forSelectQueryResult
which will serialize results in SPARQL/XML format.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SPARQLXMLSelectResultWriter.SPARQLXMLSelectResultWriterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BINDING_NAME_ATT
static java.lang.String
BINDING_TAG
static java.lang.String
BNODE_TAG
static java.lang.String
BOOLEAN_FALSE
static java.lang.String
BOOLEAN_TAG
static java.lang.String
BOOLEAN_TRUE
static java.lang.String
CONTEXT_TAG
static java.lang.String
HEAD_TAG
static java.lang.String
HREF_ATT
static java.lang.String
LINK_TAG
static java.lang.String
LITERAL_DATATYPE_ATT
static java.lang.String
LITERAL_LANG_ATT
static java.lang.String
LITERAL_TAG
static java.lang.String
NAMESPACE
static java.lang.String
OBJECT_TAG
static java.lang.String
PREDICATE_TAG
static java.lang.String
QNAME
static java.lang.String
RESULT_SET_TAG
static java.lang.String
RESULT_TAG
static java.lang.String
ROOT_TAG
static java.lang.String
STATEMENT_TAG
static java.lang.String
SUBJECT_TAG
static java.lang.String
UNBOUND_TAG
static java.lang.String
URI_TAG
static java.lang.String
VAR_NAME_ATT
static java.lang.String
VAR_TAG
-
Fields inherited from class com.stardog.stark.query.io.xml.AbstractSPARQLXMLWriter
documentOpen, headerComplete, headerOpen, mNamespaces, mOptions, mWriter, tupleVariablesFound
-
-
Constructor Summary
Constructors Constructor Description SPARQLXMLSelectResultWriter(java.io.OutputStream theOutputStream, Options theOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryResultFormat
format()
Theformat
this writer will serialize output invoid
handle(BindingSet theBindings)
Handle a result to a queryvoid
variables(java.util.List<java.lang.String> theVars)
The variables in the projection of the query-
Methods inherited from class com.stardog.stark.query.io.xml.AbstractSPARQLXMLWriter
end, links, namespace, start
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.stardog.stark.query.io.QueryResultWriter
end, links, namespace, start
-
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
ROOT_TAG
public static final java.lang.String ROOT_TAG
- See Also:
- Constant Field Values
-
HEAD_TAG
public static final java.lang.String HEAD_TAG
- See Also:
- Constant Field Values
-
LINK_TAG
public static final java.lang.String LINK_TAG
- See Also:
- Constant Field Values
-
VAR_TAG
public static final java.lang.String VAR_TAG
- See Also:
- Constant Field Values
-
VAR_NAME_ATT
public static final java.lang.String VAR_NAME_ATT
- See Also:
- Constant Field Values
-
HREF_ATT
public static final java.lang.String HREF_ATT
- See Also:
- Constant Field Values
-
BOOLEAN_TAG
public static final java.lang.String BOOLEAN_TAG
- See Also:
- Constant Field Values
-
BOOLEAN_TRUE
public static final java.lang.String BOOLEAN_TRUE
- See Also:
- Constant Field Values
-
BOOLEAN_FALSE
public static final java.lang.String BOOLEAN_FALSE
- See Also:
- Constant Field Values
-
RESULT_SET_TAG
public static final java.lang.String RESULT_SET_TAG
- See Also:
- Constant Field Values
-
RESULT_TAG
public static final java.lang.String RESULT_TAG
- See Also:
- Constant Field Values
-
BINDING_TAG
public static final java.lang.String BINDING_TAG
- See Also:
- Constant Field Values
-
BINDING_NAME_ATT
public static final java.lang.String BINDING_NAME_ATT
- See Also:
- Constant Field Values
-
URI_TAG
public static final java.lang.String URI_TAG
- See Also:
- Constant Field Values
-
BNODE_TAG
public static final java.lang.String BNODE_TAG
- See Also:
- Constant Field Values
-
LITERAL_TAG
public static final java.lang.String LITERAL_TAG
- See Also:
- Constant Field Values
-
LITERAL_LANG_ATT
public static final java.lang.String LITERAL_LANG_ATT
- See Also:
- Constant Field Values
-
LITERAL_DATATYPE_ATT
public static final java.lang.String LITERAL_DATATYPE_ATT
- See Also:
- Constant Field Values
-
UNBOUND_TAG
public static final java.lang.String UNBOUND_TAG
- See Also:
- Constant Field Values
-
QNAME
public static final java.lang.String QNAME
- See Also:
- Constant Field Values
-
STATEMENT_TAG
public static final java.lang.String STATEMENT_TAG
- See Also:
- Constant Field Values
-
SUBJECT_TAG
public static final java.lang.String SUBJECT_TAG
- See Also:
- Constant Field Values
-
PREDICATE_TAG
public static final java.lang.String PREDICATE_TAG
- See Also:
- Constant Field Values
-
OBJECT_TAG
public static final java.lang.String OBJECT_TAG
- See Also:
- Constant Field Values
-
CONTEXT_TAG
public static final java.lang.String CONTEXT_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SPARQLXMLSelectResultWriter
public SPARQLXMLSelectResultWriter(@Nonnull java.io.OutputStream theOutputStream, @Nonnull Options theOptions)
-
-
Method Detail
-
variables
public void variables(@Nonnull java.util.List<java.lang.String> theVars)
The variables in the projection of the query- Specified by:
variables
in interfaceSelectQueryResultHandler
- Parameters:
theVars
- the variables- See Also:
SelectQueryResult.variables()
-
handle
public void handle(@Nonnull BindingSet theBindings) throws ResultWritingFailed
Handle a result to a query- Specified by:
handle
in interfaceQueryResultHandler<BindingSet>
- Specified by:
handle
in interfaceQueryResultWriter<BindingSet>
- Parameters:
theBindings
- the result- Throws:
ResultWritingFailed
-
format
@Nonnull public QueryResultFormat format()
Theformat
this writer will serialize output in- Specified by:
format
in interfaceQueryResultWriter<BindingSet>
- Returns:
- the format
-
-