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…
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…
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…
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…
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…
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.
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?…
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…
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.
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,…
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…
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…
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.
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:…
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…