VALUES is a common pattern for specifying multiple bindings (values) to a single variable. The SPARQLQueryFramer class works off of a sparql string attribute, which makes it challenging to define VALUES in a pythonic way.
This ticket scopes in the inclusion of a metaclass capability to capture a dictionary of values that are converted into a formatted sparql query at runtime. Due to its relative complexity, this ticket should also include sufficient documentation and examples of how to use the metaclasses to perform queries with VALUES.
VALUES
is a common pattern for specifying multiple bindings (values) to a single variable. The SPARQLQueryFramer class works off of asparql
string attribute, which makes it challenging to defineVALUES
in a pythonic way.This ticket scopes in the inclusion of a metaclass capability to capture a dictionary of values that are converted into a formatted sparql query at runtime. Due to its relative complexity, this ticket should also include sufficient documentation and examples of how to use the metaclasses to perform queries with
VALUES
.