Load data inside the rdflib SPARQL processor
Context
The entry point is at rdflib.graph.Graph.query.
- It can accept a parsed/compiled
Queryobject- Seems that it ca be prepared by
rdflib.plugins.sparql.processor.prepareQuery
- Seems that it ca be prepared by
- It can delegate execution to the
store, as peruse_store_providedargument - It delegates processing to
Processorclass
Decision
Load data directly after parsing the SPARQL query in an rdflib SPARQL processor class.
Consequences
Pro:
- Easy to write.
Contra:
- Will not work for an IRI that is not specified explicitly in the query but retrieved from the graph as a variable. This defies a stand-alone Cyberspace querying command, but is enough for the
iolantabrowser, where most queries explicitly specify the variables.