This is the backend service for QLever-UI2. It provides a set of REST APIs that are consumed by the frontend. These include:
- wikidata identifier resolving and search
- Wikidata query extension suggestion
- sparql query execution.
- The backend is written in node.js, with
- We use koajs as web server.
- sparql queries are parsed using SPARQL.JS
- The backend consumes two external services:
The rest APIs are documented in qlever-ui2-documentation/_pages/backend/
yarn dev
- start in development modeyarn build
- transpile the code for your current node version. keep in mind, in order to run it for productionqlever-ui2-shared
needs to be build too.yarn production
- starts the backend in production mode.yarn test
- runs the testsyarn lint
- lint source codeyarn lint:fix
- lint source code and fix all fixable errors
Configuration is done using environment variables
environment variable | default value |
---|---|
WIKIDATA_FRONTEND_API | http://alicudi.informatik.privat:7001 |
QLEVER_API | http://qlever.informatik.uni-freiburg.de/api/wikidata-full |
There is also the .babelrc.js
, where one can configure the target node version (default: the one running the build)