AngryLoki / wikidata-graph-builder

Visualize Wikidata items using d3.js
https://angryloki.github.io/wikidata-graph-builder/
MIT License
191 stars 27 forks source link

Connect it to wikibase? #7

Open kerphi opened 3 years ago

kerphi commented 3 years ago

Hello,

Is it easy to connect it to another wikibase instance? I understand it depends on the wikidata query service (sparql) so it's maybe possible to change the URL of the sparql endpoint somewhere?

Thanks for any help.

regards

Superraptor commented 1 month ago

Looking through files I can see a few places where Wikidata is referenced or where the SPARQL endpoint is referenced. I think, in general, this could be modified to allow it to work with any Wikibase instance with an open SPARQL endpoint? (I'm actually interested in doing such a thing myself)

@AngryLoki to your knowledge, would it be easy to refactor the code to allow the user to supply the endpoint instead of it being set to Wikidata? (Maybe through a YAML file or something of the sort?). Really interested as to your feedback!