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

Install SQID #25

Open
kyao opened this issue Mar 6, 2020 · 4 comments
Open

Install SQID #25

kyao opened this issue Mar 6, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@kyao
Copy link
Contributor

kyao commented Mar 6, 2020

Install SQID browsing tool for our installation of Wikidata.

https://tools.wmflabs.org/sqid/#/

@saggu
Copy link
Member

saggu commented Mar 10, 2020

I was able to clone the repository locally, change the sparql endpoint and see the updated endpoint being used.

There are a couple of things going on in SQID,

  1. Searches the wikidata api to fetch results for a string.
  2. Once user clicks on a search result, uses wikidata api to fetch Qnode in json format.
  3. Uses the json to filter out properties, statements and uses the sparql endpoint to run the queries.
  4. Also there are a bunch of json files which it uses internally to fetch some stats about the wikidata as a whole. We can try to create these json files locally(which I havent tried yet). By default, it calls the remote end point (Request URL: https://tools-static.wmflabs.org/sqid/data) to fetch the stats.

@rongpenl when you installed the wikibase on a server, does it come with an api endpoint as well. The official wikidata ebdpoint is - https://www.wikidata.org/w/api.php

FYI @szeke @kyao @dgarijo

@saggu
Copy link
Member

saggu commented Mar 10, 2020

I am looking into whether we can make it work without having a local wikidata api endpoint

@saggu
Copy link
Member

saggu commented Mar 16, 2020

The file to change the endpoints is

https://github.com/Wikidata/SQID/blob/master/src/api/endpoints.ts

@rongpenl

@dgarijo
Copy link
Collaborator

dgarijo commented Mar 17, 2020

Is it possible to make it work without the search? That is adding something like ?Q={QNODE}, where QNODE is the node to retireve in our target endpoint?

@rongpenl rongpenl self-assigned this Apr 14, 2020
@saggu saggu added the bug Something isn't working label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants