ad-freiburg / qlever-ui

A user interface for QLever
Apache License 2.0
19 stars 12 forks source link

Refactor and improve warmup command #70

Closed hannahbast closed 6 months ago

hannahbast commented 6 months ago
  1. Add action "queries" to obtain a TSV with all warmup queries (one line each, description and SPARQL). This is used by the qlever script for action autocompletion-warmup. TODO: This requires a special access token, which is currently hard-coded in backend/views.py; instead, this should be taken from the backend configuration or some other safe mechanism.

  2. Clean up the code and add documentation. In the example command, remove trailing whitespace from the normalized query.

  3. For PubChem, add SELECT ?type (COUNT(?subject) AS ?count) { ?subject rdf:type ?type } GROUP BY ?type to warmup queries [experimental]