Questions tagged [wikidata-query-service]

Wikidata Query Service (WDQS) is a SPARQL endpoint that allows to publicly access to Wikidata's database.

Wikidata Query Service (WDQS) is a SPARQL public endpoint that allows to access to Wikidata's database.

It is accessible via:

Further documentation:

160 questions
0
votes
1 answer

Wikidata Query Service: lookup property label

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…
bhan
  • 2,489
  • 3
  • 19
  • 26
0
votes
1 answer

Filter out string from result set

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 { …
posfan12
  • 2,541
  • 8
  • 35
  • 57
0
votes
1 answer

Recover the "original" order

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". } …
SQL Hacks
  • 1,322
  • 1
  • 10
  • 15
0
votes
1 answer

Get properties from a group of items in with SPARQL

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…
Alberto
  • 3
  • 1
  • 3
0
votes
0 answers

After (GROUP_CONCAT can't get single results

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="//")…
user7499416
0
votes
1 answer

Retrieve the US release date for a movie from Wikidata using Sparql

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,…
Jeroen Vuurens
  • 1,171
  • 1
  • 9
  • 10
0
votes
3 answers

Wikidata Query Service traverse property

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?
Lunatech
  • 197
  • 2
  • 8
0
votes
1 answer

How to get latest version of certain software using Wikidata?

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…
smihael
  • 863
  • 13
  • 29
-1
votes
1 answer

query wikidata cities names in arabic and english

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?
Sara Shoukry
  • 1
  • 1
  • 2
-1
votes
1 answer

Why does this Wikidata sparql timeout?

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…
William
  • 5,526
  • 6
  • 20
  • 42
1 2 3
10
11