Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
MediaWiki:Gadget-QuickPresets.js
(view source)
Revision as of 11:19, 12 January 2020
12 bytes removed
,
4 years ago
Undo revision 74593 by
Stenli karanxha
(
talk
)
Line 208:
Line 208:
sparqlQuery = 'Ask { pdio:Q' + qid + ' pdiot:P3/pdiot:P4* pdio:Q' + typeqid + '. hint:Prior hint:gearing "forwards" }',
sparqlQuery = 'Ask { pdio:Q' + qid + ' pdiot:P3/pdiot:P4* pdio:Q' + typeqid + '. hint:Prior hint:gearing "forwards" }',
fullUrl = endpointUrl + '?query=' + encodeURIComponent( sparqlQuery ),
fullUrl = endpointUrl + '?query=' + encodeURIComponent( sparqlQuery ),
−
myHeaders
= { 'Accept': 'application/sparql-results+json' };
+
headers
= { 'Accept': 'application/sparql-results+json' };
debug("qid: "+ qid + "\ntypeqid: " + typeqid + "\n" + fullUrl + "\n" + sparqlQuery);
debug("qid: "+ qid + "\ntypeqid: " + typeqid + "\n" + fullUrl + "\n" + sparqlQuery);
−
fetch( fullUrl, { headers
:myHeaders
} ).then( body => body.json() ).then( json => {
+
fetch( fullUrl, { headers } ).then( body => body.json() ).then( json => {
if ( json.boolean )
if ( json.boolean )
quickpresets_addinterface(qid, prop);
quickpresets_addinterface(qid, prop);
Stenli karanxha
Bureaucrats
, editors,
Interface administrators
, nuke,
Widget editors
22
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Message
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
New Item
New Property
All items
All properties
All pages
Active Users
SAR service dev
Query Service
Maintenance
Administrator
Tools
Special pages
Printable version
Interaction
Community portal
WebXray
Recent changes
Contact Page
Telegram
Discourse forum
MyData Slack