I am once again having trouble with SPARQL.
First off, a bit of background information:
I have been using the Wikidata Query Service to retrieve data from Wikidata.
As the Wikidata SPARQL endpoint is limited and timeouts occur for large tasks, I…
I created the following SPARQL query to Wikidata. And the result of this query are records related to states in Germany. But as you can see, results are occurring four times in a row (you can test it here: https://query.wikidata.org/). I supposed…
I am having an issue when concatenating in SPARQL using the Wikidata Query Service. https://query.wikidata.org/
What I want to do is retrieve all persons with a GTAA ID (?q wdt:P1741 ?GTAA_ID.)
and specifically persons who have an occupation listed…
I used this query at https://query.wikidata.org/ --
SELECT ?p ?pLabel (?oc as ?OC) (?sp as ?SP) WHERE {
?p wdt:P106/wdt:P279* wd:Q937857. # Soccer player
SERVICE wikibase:label {bd:serviceParam wikibase:language "en" . }
…
I would like to know the most recent population of Swiss municipalities with the help of Wikidata. To get the ones which have the preferred rank would be easy but not helpful. I have the following SPARQL query but now I have the problem to project…
I'm trying to retrieve ALL movie titles, with their aliases. I'm using queries like these (with increasing OFFSET) and at first it seems to work:
SELECT ?itemLabel ?itemAltLabel WHERE {
?item wdt:P31 wd:Q11424.
SERVICE wikibase:label {…
I am trying to create a list with all Harry Potter characters names using the Wikidata API. I want to get itemlabels (character names) from the link below into my Python notebook.
Here is the Wikidata Query Service query which runs as I want.
import…
I need help with a query on query.wikidata.org.
I'm trying to find a solution how to get the "proportion" (P1107) values under "owned by" (P127) property. For example for Audi (Q23317), which is owned by the Volkswagen Group, the proportion value…
I'm using the Wikidata query service to learn the SPARQL query language. I'm trying to get information on countries and their identifying information.
Here is a simple query which is intended to return a list of countries…
I am using Wikidata Query Service to get the dates of population of some places. The output gives a raw result in the format 2010-01-01T00:00:00Z (as an example). I have also retrieved the date precision of each date. The query results display the…
I am trying to retrieve samples of coordinates in Wikidata via SPARQL but am having a very difficult time trying to achieve it. I would want to get only a single pair of coordinates per place and display the result in a column, and the latitude and…
How do I get the instance type(s) (i.e., property=P31 and associated labels) for multiple Wikidata IDs in a single query? Ideally, I want to output a list with the columns: Wikidata ID | P31 ID | P31 Label, with multiple rows used if a Wikidata ID…
I am trying to get some municipalities and their population (P1082) over the years using SPARQL in Wikidata. The query I am using works, but I do not know how to convert the years of the population figures into columns, so that I only have a single…
I'm using the Wikidata SPARQL Query Service with the following query:
SELECT ?item ?itemLabel ?class ?classLabel ?projectLabel WHERE {
VALUES ?item { wd:Q1 wd:Q367204 }
?item wdt:P31 ?class;
wdt:P18 ?project.
SERVICE wikibase:label {…