-
Notifications
You must be signed in to change notification settings - Fork 25
Setting custom headers in YASGUI tabs
p-Heinze edited this page Dec 13, 2020
·
1 revision
The simple test frontend of the Qanary reference implementation offers a YASGUI Web interface (c.f., YASGUI project) for writing and executing SPARQL queries.
Typically all triplestores require specific HTTP headers to be accessed properly.
- If Stardog is used as Qanary triplestore, then in order to query the Qanary triplestore endpoint you need to define two specific request headers.
- Observations: Executing a query on the triplestore endpoint without these headers returns
Unauthorized(#401)
.- By default this applies to the tabs
find computed query
andfind all created annotations
in the simple Qanary frontend (locally available at http://localhost:8080/startquestionansweringwithtextquestion).
- By default this applies to the tabs
- Because they are not set automatically you will have to add them by yourself with the following steps:
- Click on settings (gear icon) next to the endpoint.
- Under Header Arguments set:
-
Accept
in the first input field andapplication/sparql-results+json
in the second. - Use the two new blank input fields to set
Authorization
toBasic YWRtaW46YWRtaW4=
the same way.
-
- You will have to set these headers for every tab that is used to query the Stardog triplestore.
- Changing a tab's endpoint might require you to set different headers as well.
Please let us know if you can provides specific configurations for other triplestores.
-
How to establish a Docker-based Qanary Question Answering system
-
How to implement a new Qanary component
... using Java?
... using Python (Qanary Helpers)?
... using Python (plain Flask service)?