-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SPARQL #4
Comments
Yeah, it's about time I got around to this :) Adding an I'll pull the changes on the tools server over the weekend, because I'm having some trouble accessing it today :/ |
Ok, changes are on the tools server. Here's an example of French heads of government (from https://www.mediawiki.org/wiki/Wikibase/Indexing/SPARQL_Query_Examples#French_heads_of_government_by_length_of_service ) sigh should probably add short urls at somepoint |
In addition to WDQ, SPARQL queries at http://query.wikidata.org should be supported.
A simple rule could be that the first column of the returned rows must be an item; these items could then be used just as the items from WDQ.
Example query: SELECT ?item WHERE { ?item wdt:P31 wd:Q16521 . ?item wdt:P51 ?dummy0 }
Example URL generation (returns JSON):
$url = "https://query.wikidata.org/sparql?format=json&query=" . urlencode($sparql) ;
The text was updated successfully, but these errors were encountered: