GH/25 Refactor 'query to take value parameters

Instead of pre-baking the SPARQL, pass through the parameters required
for the backend to construct it.

Functions affected:
- query
- list-all-tags
- get-tag-by-name
- get-item-uuid-by-name