Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
SR5
.
Toggle Highlighting
SQL
var endpointUrl = 'https://query.wikidata.org/sparql', sparqlQuery = "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\n" + "PREFIX schema: <http://schema.org/>\n" + "\n" + "SELECT DISTINCT ?item ?label ?sitelink WHERE {\n" + " ?article schema:about ?item.\n" + " ?article schema:isPartOf <https://ar.wikipedia.org/>.\n" + " ?article schema:name ?sitelink.\n" + " ?item rdfs:label ?label.\n" + " ?item wdt:P31 wd:Q27020041.\n" + " FILTER((LANG(?label)) = \"ar\")\n" + " FILTER(?sitelink != ?label)\n" + " FILTER(\"false\"^^xsd:boolean = (CONTAINS(?sitelink, \")\")))\n" + "}", settings = { headers: { Accept: 'application/sparql-results+json' }, data: { query: sparqlQuery } }; $.ajax( endpointUrl, settings ).then( function ( data ) { $( 'body' ).append( ( $('<pre>').text( JSON.stringify( data) ) ) ); console.log( data ); } );
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...