prepared_query
SPARQL Queries be prepared (i.e parsed and translated to SPARQL algebra)
by the prepareQuery method.
initNs can be used instead of PREFIX values.
When executing, variables can be bound with the
initBindings keyword parameter.
Attributes:
-
EXAMPLES_DIR– -
g– -
q– -
tim–
q
module-attribute
q = prepareQuery('SELECT ?name WHERE { ?person foaf:knows/foaf:name ?name . }', initNs={'foaf': FOAF})