Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scholia/app/static/scholia.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,10 @@ function askQuery2(endpointUrl, panel, askQuery, callback) {
data: { query: askQuery },
};

// overwrite the central URLs of SPARQL specific URLs are found
configFromSPARQL = extractConfig(askQuery);
if (configFromSPARQL["url"]) endpointUrl = configFromSPARQL["url"];

$.ajax(endpointUrl, settings).then((data) => {
if (data.boolean) {
// unhide panels
Expand Down
5 changes: 4 additions & 1 deletion scholia/app/templates/ask_work_cito.sparql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#sparql_endpoint = https://query-scholarly.wikidata.org/sparql
ASK {
[] pq:P3712 / wdt:P31 wd:Q96471816 ; ps:P2860 wd:{{q}} . BIND("work-cito" AS ?aspectsubpage)
[] pq:P3712 ?intent ; ps:P2860 wd:Q28264479 .
SERVICE wdsubgraph:wikidata_main { ?intent wdt:P31 wd:Q96471816 }
BIND("work-cito" AS ?aspectsubpage)
}
Loading