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
0 answers

Query entity by label

From Wikidata Query Service I want to query the entity ethanol (i.e. Q153). I can simply do this by querying for the CAS using the following SPARQL: SELECT ?cas ?casLabel WHERE { ?cas wdt:P231 "64-17-5". SERVICE wikibase:label { bd:serviceParam…
andschar
  • 3,504
  • 2
  • 27
  • 35
0
votes
0 answers

Find synonym for a specific word with Wikidata SPARQL

I'm trying to construct a query for https://query.wikidata.org/ that finds synonyms for a given string. I know it will involve finding lemmas of the particular string (the string is "kind" in this example) and the P5973 synonym property. This…
John Skiles Skinner
  • 1,611
  • 1
  • 8
  • 21
0
votes
0 answers

wikidata sparql query using string

I would like to query wikidata in order to obtain entries based_on some technologies (blockchain, solid, RDF and so on). These potential technologies would change dynamically, so that, I inject them as literals from a piece of code. The point is…
David G. Hdez
  • 125
  • 1
  • 8
0
votes
0 answers

Can I run SPARQL queries against a Wikidata dump locally?

TL;DR: Is there a way I can download and install the data and software used for Wikidata's SPARQL endpoint query.wikidata.org locally? The reason I need this is that I have queries to run which often run into timeouts. In another SO question, I have…
Jonas Sourlier
  • 13,684
  • 16
  • 77
  • 148
0
votes
0 answers

SPARQL Query Fail: SELECT FROM

I wanted to try out some of the examples in this article, but I get very inconsistent results depending on the SPARQL Query Processor I'm using. I have tried out the most basic example: SELECT DISTINCT ?p FROM…
0
votes
4 answers

Reversing a string in SPARQL

Is it possible to reverse a string in SPARQL, so, e.g., "abc" becomes "cba". Alternatively, is it possible to sort based on strings in reverse. I am particularly interested in a solution that would work on Wikidata Query Service.
Finn Årup Nielsen
  • 6,130
  • 1
  • 33
  • 43
0
votes
0 answers

Extract birthdate of item

As an absolute beginner to SPARQL and Wikidata I can't seem to figure out how to extract an attribute of a single entry. Ex: Find the birthdate of Alan Turing Can anyone help me out how to do this using the Wikidata Query Service?…
0
votes
0 answers

My SPARQL only get answers partially, missing some answers unanswered

I made my SPARQL query below in the Wikidata Query Service and got the responses which is different from what I am expected. The query below is intended to extract the all countries that are member of OECD Organization for Economic Co-operation and…
Keanu Paik
  • 304
  • 2
  • 12
0
votes
1 answer

How can I create a SPARQL query on Wikidata that gets all books that have a Project Gutenberg Ebook ID?

I notice that some books on Wikidata have Project Gutenberg ebook IDs. Is it possible to construct a query on the Wikidata Query Service that looks for all books that have this property? I'm new to SPARQL.
Jonathan
  • 10,571
  • 13
  • 67
  • 103
0
votes
1 answer

How to query Wikidata (SPARQL) by official website property P856?

How can you search the Wikidata SPARQL query service for a record whose official website (property P856) matches a specific value? For example, fetch all records whose official website is "https://www.google.com". This should return Q95 and Q9366,…
Jugdish
  • 352
  • 5
  • 12
0
votes
1 answer

Wikidata query equivalent in DBpedia

I am trying to transform my SPARQL query from Wikidata to DBpedia (just for educational purpose), but it doesn't work. Could someone please help me and tell me what I'm doing wrong? Thank you! In http://query.wikidata.org SELECT ?musician…
RoRu
  • 15
  • 7
0
votes
0 answers

Find all super classes of Wikidata object (recursive)

I need to write a query that gets all super classes of an object from the Wikidata project. I have already seen a very similiar question (& answer) here, however this query does not show super classes of a super class: finding super classes of an…
Simon Leiß
  • 474
  • 3
  • 10
0
votes
1 answer

How to count items with some property

Using https://query.wikidata.org I need to count the number of Q* items of Wikidata that have a statement with P402. Something like SELECT (COUNT(?item) AS ?count) WHERE {?item wdt:P402.} but, of course, it is an invalid query.
Peter Krauss
  • 13,174
  • 24
  • 167
  • 304
0
votes
0 answers

Retrieve ticker of company with sparql

The Wikidata website gives an example of the ticker symbol property P249: Boeing BA I thought this should translate to the following sparql query: PREFIX schema: PREFIX wikibase:…
jvermeulen
  • 505
  • 1
  • 6
  • 14
0
votes
0 answers

Constructing all Wikidata triples in SPARQL that have to do with a certain identifier

I am trying to return a list of triples by using a construct query in the Wikidata SPARQL query service. I want all triples of people who have a GTAA_ID identifier. In addition to this, of all people who have a GTAA_ID, I want all triples…
1 2 3
10
11