How do I form the query to look up the English label of a property on a given entity.
This query provides the ID of P31:
SELECT ?item ?itemLabel ?instance_of WHERE {
?item wdt:P646 "/m/09c7w0".
SERVICE wikibase:label { bd:serviceParam…
I have this SPARQL script meant to work on Wikidata:
SELECT
?game
(group_concat(distinct ?gameLabel ; separator = ", ") AS ?gameLabels)
(group_concat(distinct ?genreLabel ; separator = ", ") AS ?genreLabels)
WHERE {
…
I am trying to recover the cast list for movies from wikidata.
My SPARQL query for Dr. No is as follows:
SELECT ?actor ?actorLabel WHERE {
?movie wdt:P161 ?actor .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
…
I need to use the SPARQL query service from Wikidata.
What I need to retrieve is a list of all properties that items which are instance of (P31) disease (Q12136) have
I'm having some trouble understanding how to nest two queries
With this Query we…
I am not very used to SPARQL, but I managed to write my own query for books and their genres, authors and their dates of birth and death at https://query.wikidata.org
SELECT
?title ?titleLabel
(GROUP_CONCAT(DISTINCT(?authorLabel); separator="//")…
I am trying to retrieve the titles and release dates (publication date) for movies using the wikidata.org sparkql endpoint (https://query.wikidata.org/). The titles are listed in different languages, which are filtered in the query below. However,…
I am trying to get a list of all hyperonymes of a given Wikidata item.
For instance I want to traverse the "subclass of" element for https://www.wikidata.org/wiki/Q4421.
How would the SPARQL command for https://query.wikidata.org look like?
I use following command to get (latest) version of certain software from Wikidata from the command line using jq as JSON parser.
curl -sL "http://www.wikidata.org/w/api.php?action=wbgetentities&ids=$QID&languages=en&format=json" |
jq…
I need to get cities names in arabic and english from wikidata
also after that I need to get states names in arabic and english
is it available to download the query return data or copy it to excel or csv?
this seems to be relatively simple, to query the date of birth of Barack Obama, why does it take so long that it timeout at https://query.wikidata.org/ ? There are only about 3 entity that has label Barack Obama and also about 2 for "date of…