Skip to main content

Additional services

When uploading and indexing the data QAnswer also generated some additonal services. We describe them here briefly


One service that is set up is SparqlToUser, a service that converts a SPARQL query to a representation that is understandable by an end-user.

Concretely the service converts the SPARQL query:

SELECT DISTINCT ?s1 where { 
?s1 ?p1 <> .
?s1 ?p2 <> .
limit 1000

to the more user friendly representation:

type / Ingredients
/ is part of, is used by / Margarita

This service can be called using the following code snippets:

curl -X GET \
'{%20%0A%20%20%20%20?s1%20?p1%20%3C}%0Alimit%201000&lang=en' \
-H 'Accept: */*' \
-H 'Authorization: Bearer eyJhbGciOiJIUzUxMi....' \

the result is:

"sparql": "SELECT DISTINCT ?s1 where { \n ?s1 ?p1 <> .\n ?s1 ?p2 <> . \n}\nlimit 1000",
"lang": "en",
"kb": "cocktails",
"interpretation": "type / Ingredients\n / is part of, is used by / Margarita"