I am currently using Wikidata Query Service to run my Wikidata queries.
For example, one of my Wikidata queries looks as follows.
SELECT ?sLabel {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "EntitySearch".
…
I'm looking for a way to get all the movies on English Wikipedia, with their creation date.
A movie for me is a page with IMDB ID attached to it.
So, this is my query so far:
SELECT DISTINCT ?item_label ?imdb_id (year(?dateCreation) as…
I know the following SPARQL against Wikidata SPARQL Endpoint query is senseless. A similar query is automatically generated from within my application. Please disregard the conceptual soundness, and let's dig into this strange (for me at least)…
While examining the results of the official example query "Continents, countries, regions and capitals" (on https://query.wikidata.org/, limited to Germany for your convenience here: link), I noticed that some capitals of German federal states were…
I want to get the Wikipedia page id from the Wikidata id, how can I get it from the Wikidata Query Service or other methods with python? Because I do not see any attribute in wikidata called something like wikipedia id.
I am using wikidata Query Service to fetch data: https://query.wikidata.org/
I have already managed to use an entity's label using 2 methods:
Using wikibase label service. For example:
SELECT ?spouse ?spouseLabel WHERE {
wd:Q1744 wdt:P26…
I have the following query, that I ran on the wikidata query service web interface:
SELECT ?objectLabel ?mass
WHERE {
?object wdt:P397 wd:Q525. # the object should have the sun as parent astronomical body
?object wdt:P31 ?status.
?object…
When running the following query I get only one result as expected
SELECT DISTINCT ?city ?country WHERE {
FILTER (?city = wd:Q1748) .
# Primary country
?city p:P17 ?c .
?c ps:P17 ?country ;
wikibase:rank ?rank .
FILTER NOT EXISTS {…
Is there a way to lookup publication dates quickly in Wikidata Query Service's SPARQL to find publications of a certain date, e.g., today?
I was hoping that something like this query would be quick:
SELECT * WHERE {
?work wdt:P577 ?datetime .
…
I made a query, that shows all items that are 'found in taxon' 'Chlamydia trachomatis D/UW-3/CX'. These items must have the Properties P644 (genomic start) and P645 (genomic end). So far this works. But then I wanted to filter these items depending…
I'm trying to get all distinct labels of a Wikidata Item.
I know I can get all labels of an item with the following query:
SELECT DISTINCT ?team ?labels WHERE {
?team wdt:P31 wd:Q13393265.
?team rdfs:label ?labels.
}
LIMIT 10
Link to query
But…
I'm trying to set up the Wikibase Query Service GUI https://github.com/wikimedia/wikidata-query-gui with a Jena-Fuseki backend.
I've edited the custom-config.json file and have populated the prefixes section with the prefixes I am using:
…
I am trying to retrieve some municipalities from Wikidata using SPARQL but several items returned have much of their fields empty despite these items having these data. I do not understand what is wrong with the query below (link to WQS). For…
I am trying to use the Wikimedia Commons Query Service[1] programmatically using Python, but am having trouble authenticating via OAuth 1.
Below is a self contained Python example which does not work as expected. The expected behaviour is that a…
I want to load the following data of specific humans with the Wikidata Query Service:
properties
birth date
lifestyles
qualifiers
start times of the lifestyles
end times of the lifestyles
And I want exactly one row for each human in the output,…