WDscholia / scholia

Wikidata-based scholarly profiles
https://scholia.toolforge.org
Other
220 stars 78 forks source link

Fix #2429 config module #2515

Closed fnielsen closed 3 weeks ago

fnielsen commented 3 months ago

The setup and reading of the configuration is handle by a separate module.

Fixes #2429

Description

The setup and reading of the configuration is handle by a separate module.

Caveats

Please list anything which has been left out of this PR or which should be considered before this PR is accepted Check any of the following which apply:

If you make changes to the Python code

Testing

Please describe the tests that you ran to verify your changes. Provide instructions, so we can reproduce. Please also list any relevant details for your test configuration.

Checklist

egonw commented 3 months ago

Okay, I think I see what you meant now.

My first test did not work, but that's because the scholia.js still uses internally hardcoded (unconfigurable) URLs. But I can work with this.

egonw commented 3 months ago

Example scholia.ini:

[query-server]
# QLever
#sparql_endpoint = https://qlever.cs.uni-freiburg.de/api/wikidata
#sparql_editurl = https://qlever.cs.uni-freiburg.de/wikidata/?query=
#sparql_embedurl = 

# OpenLink (Virtuoso)
#sparql_endpoint = https://wikidata.demo.openlinksw.com/sparql/
#sparql_editurl = 
#sparql_embedurl =

# Wikidata:
#sparql_endpoint = https://query.wikidata.org/sparql
#sparql_editurl = https://query.wikidata.org/#
#sparql_embedurl = https://query.wikidata.org/embed.html#

# Wikidata Split Main
sparql_endpoint = https://query-main.wikidata.org/sparql
sparql_editurl = https://query-main.wikidata.org/#
sparql_embedurl = https://query-main.wikidata.org/embed.html#

# Wikidata Split Scholar
#sparql_endpoint = https://query-scholarly.wikidata.org/sparql
#sparql_editurl = https://query-scholarly.wikidata.org/#
#sparql_embedurl = https://query-scholarly.wikidata.org/embed.html#

[requests]
user_agent = Scholia
egonw commented 4 weeks ago

Okay, we have to start moving. We have less than 6 months left.

Hi all!

As part of the WDQS Graph Split project,[1] we have new SPARQL endpoints available for serving
the “main”[2] and “scholarly”[3] subgraphs of Wikidata.

As you might be aware we are addressing the Wikidata Query Service stability and scaling issues.
We have been working on several projects to address these issues. This announcement is about one
of them, the WDQS Graph Split.[1] This change will have an impact on certain uses of the Wikidata
Query Service.

We are now entering a transition period until the end of February 2025. The three SPARQL endpoints
will remain in place until the end of the transition. At the end of the transition,
[query.wikidata.org](http://query.wikidata.org/) will serve the main Wikidata subgraph (without
scholarly articles). The query-main and query-scholarly endpoints will continue to be available after
the transition.

If you know to want more this change, please refer to the talk page on Wikidata.[4]

Have fun!

[1] https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/WDQS_graph_split
[2] https://query-main.wikidata.org/
[3] https://query-scholarly.wikidata.org/
[4] https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/WDQS_backend_update/September_2024_scaling_update
egonw commented 3 weeks ago

Oh, I did write up how to use this patch, but forgot to add the link here: https://chem-bla-ics.linkedchemistry.info/2024/08/23/scholia.html