Home | Trees | Index | Help |
---|
Package rdflib :: Package sparql :: Module sparql :: Class Query |
|
queryObject
method.
Method Summary | |
---|---|
| |
This may be useful when several queries are performed and one wants the 'union' of those. | |
Boolean |
Whether a specific pattern has a solution or not. |
Cluster: a combination of Query.clusterBackward and Query.clusterForward . | |
myTripleStore
|
Backward clustering, using all the results of the query as seeds (when appropriate). |
myTripleStore
|
Forward clustering, using all the results of the query as seeds (when appropriate). |
myTripleStore
|
Expand the subgraph based on the pattern or, if None, the internal bindings. |
The DESCRIBE Form in the SPARQL draft is still in state of flux, so this is just a temporary method, in fact. | |
list of tuples |
Run a selection on the query. |
Method Details |
---|
__init__(self,
sparqlnode,
triples,
parent1=None,
parent2=None)
|
__add__(self,
other)
This may be useful when several queries are performed and one wants
the 'union' of those. Caveat: the triple store must be the same for
each argument. This method is used internally only anyway... Efficiency
trick (I hope it works): the various additions on subgraphs are not
done here; the results are calculated only if really necessary, ie, in
a lazy evaluation manner. This is achieved by storing self and the
'other' in the new object
|
ask(self)Whether a specific pattern has a solution or not.
|
cluster(self, selection)Cluster: a combination ofQuery.clusterBackward and Query.clusterForward .
|
clusterBackward(self, selection)Backward clustering, using all the results of the query as seeds (when appropriate). It is based on the usage of thecluster
backward method for triple store.
|
clusterForward(self, selection)Forward clustering, using all the results of the query as seeds (when appropriate). It is based on the usage of thecluster
forward method for triple store.
|
construct(self, pattern=None)Expand the subgraph based on the pattern or, if None, the internal bindings. In the former case the binding is used to instantiate the triplets in the patterns; in the latter, the original statements are used as patterns. The result is a separate triple store containing the subgraph.
|
describe(self, selection, forward=True, backward=True)The DESCRIBE Form in the SPARQL draft is still in state of flux, so this is just a temporary method, in fact. It may not correspond to what the final version of describe will be (if it stays in the draft at all, that is). At present, it is simply a wrapper aroundcluster .
|
select(self, selection, distinct=True, limit=None)Run a selection on the query.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jun 29 09:50:16 2005 | http://epydoc.sf.net |