Home | Trees | Indices | Help |
|
---|
|
object --+ | Bindings
Class encapsulating one query result, based on the JSON return format. It decodes the return values to make it a bit more usable for a standard usage. The class consumes the return value and instantiates a number of attributes that can be consulted directly. See the list of variables.
The Serializing SPARQL Query Results in JSON explains the details of the JSON return structures. Very succintly: the return data has "bindings", which means a list of dictionaries. Each dictionary is a possible binding of the SELECT variables to Value instances. This structure is made a bit more usable by this class.
|
|||
|
|||
|
|||
Boolean |
|
||
array of variable -> Value dictionaries |
|
||
|
|||
Inherited from |
|
|||
Boolean |
askResult by default, set to False; in case of an ASK query, the result of the query |
||
bindings The final bindings: array of dictionaries, mapping variables to Value instances. |
|||
fullResult The original dictionary of the results, stored for an easier reference |
|||
head Header part of the return, see the JSON return format document for details |
|||
variables List of unbounds (variables) of the original query. |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
A shorthand for the retrieval of all bindings for a single key. It is
equivalent to "
|
Emulation of the " If
|
Emulation of the
In all cases complete bindings are returned, ie, the values for other variables, not present among the keys in the call, may or may not be present depending on the query results.
|
This is just a convenience method, returns Although |
|
bindingsThe final bindings: array of dictionaries, mapping variables to Value instances. (If unbound, then no value is set in the dictionary; that can be easily checked withvar in res.bindings[..] , for
example.)
|
variablesList of unbounds (variables) of the original query. It is an array of strings. None in the case of an ASK query |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Apr 18 09:55:02 2019 | http://epydoc.sourceforge.net |