diff options
Diffstat (limited to 'rdflib/query.py')
-rw-r--r-- | rdflib/query.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rdflib/query.py b/rdflib/query.py index 929fa338..1b1803dc 100644 --- a/rdflib/query.py +++ b/rdflib/query.py @@ -18,8 +18,6 @@ __all__ = ['Processor', 'Result', 'ResultParser', 'ResultSerializer', 'ResultException'] - - class Processor(object): """ Query plugin interface. @@ -36,6 +34,7 @@ class Processor(object): def query(self, strOrQuery, initBindings={}, initNs={}, DEBUG=False): pass + class UpdateProcessor(object): """ Update plugin interface. @@ -51,9 +50,11 @@ class UpdateProcessor(object): def __init__(self, graph): pass + def update(self, strOrQuery, initBindings={}, initNs={}): pass + class ResultException(Exception): pass @@ -166,6 +167,7 @@ class Result(object): len(result) also works. """ + def __init__(self, type_): if type_ not in ('CONSTRUCT', 'DESCRIBE', 'SELECT', 'ASK'): @@ -249,7 +251,7 @@ class Result(object): if self.type == 'ASK': return self.askAnswer else: - return len(self)>0 + return len(self) > 0 if PY2: __nonzero__ = __bool__ |