Package rdfalchemy :: Package sparql :: Module parsers :: Class _JSONSPARQLHandler
[hide private]
[frames] | no frames]

Class _JSONSPARQLHandler

source code

    object --+    
             |    
_SPARQLHandler --+
                 |
                _JSONSPARQLHandler

Parse the results of a sparql query returned as json.

Note: this uses simplejson.load which will consume the entire stream before returning any results. The XML handler uses a generator type return so it returns the first tuple as soon as it's available without having to comsume the entire stream

Instance Methods [hide private]
 
parse(self) source code

Inherited from _SPARQLHandler: __init__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  mimetype = 'application/sparql-results+json'
Properties [hide private]

Inherited from object: __class__