Change the lookup just a bit.

- Use a dictionary.
- Also provide escaping for the quotes in the query.
Make use of the persistent setting

- For the sparql endpoint.
Look up term label from given ontology url.
Provide reverse lookup with the reverse mapping.

- Make it easier to convert the stored ontology url into the actual
  term.