Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the workflow for customizing a local QLever instance based on Wikidata dump #1569

Open
Daniel-Mietchen opened this issue Oct 20, 2024 · 1 comment

Comments

@Daniel-Mietchen
Copy link

At a hackathon this weekend, @WolfgangFahl has set up a local QLever instance based on the current Wikidata dump. It works well for our main purpose (testing Wikidata-related queries) but we have not yet figured out how to customize our instance.

Landing page Freiburg:
Screenshot from 2024-10-20 17-08-57

Landing page Aachen:
Screenshot from 2024-10-20 17-09-20

No major differences except for the Format/ Reset button, and we would like to customize the footer.

Index Information Freiburg:
Screenshot from 2024-10-20 17-10-42

Index Information Aachen:
Screenshot from 2024-10-20 17-11-33

Here, we are clearly lacking information but haven't figured out how to get the relevant information to display there.

Backend Information Freiburg:
Screenshot from 2024-10-20 17-12-50

Backend Information Aachen:
Screenshot from 2024-10-20 17-13-13

Again, not much of a difference there, except for the ask command.

Thanks for any pointers.

@hannahbast
Copy link
Member

hannahbast commented Oct 20, 2024

@Daniel-Mietchen and @WolfgangFahl: Thanks for the feedback. Some comments/questions:

  1. Did you use the the qlever CLI aka qlever script with the pre-configured QLeverfile for Wikidata? if yes, everything should have just worked out of the box. Please let us know if you encountered any problems. If you did, I would like to find out whether you did more work than necessary (people sometimes do that) or if there are some bugs on our end.

  2. The functionality for the "Format" button is in Query formatter qlever-ui#103, which is not merged yet because of some nitpicks. If it is important for you, you can just merge it yourself for your instance. We will also merge it soon.

  3. Exactly what is it that you want to customize? Are you aware that there is a configuration for each backend, which you can customize by clicking on "Backend information" and then "Edit this backend"? The layout of the page is currently not customizable, but it is very easy to modify the template files, which are in https://github.com/ad-freiburg/qlever-ui/tree/master/backend/templates

  4. You can set the description for the index and the text index in the Qleverfile. The respective variable names are DESCRIPTION and TEXT_DESCRIPTION.

  5. ASK queries are not yet implemented, but will be very soon. There is already a PR that works: Implement ASK queries #1562

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants