I am using Wikidata Query Service (which uses SPARQL) to retrieve some cities, but get duplicate items with different property values (even though these items pertain to the same city). It appears the error comes from some of the cities properties…
I'm trying to get external identifiers for an entity in Wikidata. Using the following query, I can get the literal values (_value) and optionally formatted URLs (value) for Q2409 on the Wikidata Query Service site.
Load in Wikidata Query…
I want to get the IMDb links of all films in a category page on Wikipedia, for example: https://en.wikipedia.org/wiki/Category:American_historical_films. I have heard of Wikidata Query Service and PetScan but honestly they are too complicated for me…
I am pretty new to sparql and apache Jena so please forgive my naiveness.
I loaded wikidata dump (705G) using TDB2 loader and executed some query examples from Wikidata Query Service.
Most of the queries take longer time in Jena compare to Wikidata…
I am new to SPARQL,
Is it possible to write a query that returns Wikipedia box information for a corresponding item label from the Wikipedia box for the Arabic Language that appears at the bottom of the Wikidata item page?
see the picture:
Instead…
I am trying to get filtered data from the Wikidata API, currently I can do a general search using this API, but now there have been specific cases where I have to filter this information, for example, I need to get a list of only authors to get the…
Being an intern at a performing organization, an organization that imported its database in 2018, I am to update some of that data and add references to some of the properties that have been created in 2018. To do so, I need to make sure those…
I'm using the Wikidata Query Service to try and get all instances within Wikidata that contain a UMLS CUI (Property P2892).
I've tried doing
SELECT ?item
WHERE
{
?item wd:P2892.
}
But am getting the error Query is malformed: Encountered " "." ".…
This query for retrieving movie posters from Wikidata results in "Query timeout limit reached" errors on query.wikidata.org:
#defaultView:ImageGrid
SELECT ?item ?itemLabel ?pic ?fileTitle ?width ?height
WHERE
{
?item wdt:P31/wdt:P279* wd:Q11424 .
…
I'm trying to write a SPARQL query using Wikidata Query Service to retrieve all prime ministers of the Netherlands from 1970. However, I want to filter the output by checking if a prime minister worked for a university. If a minister worked for a…
The query below is the accepted answer for my question Getting only english property value. When used on the Wikidata Query service try it! it will show shortNames for countries like Australia -> AUS and Austria -> AUT as requeted. Running the same…
I am trying to extract names and death dates of certain people from a list by querying Wikidata with the wdq command.
I was hoping to achieve this with the following command on Bash Shell:
while read line; do wdq 'SELECT * WHERE { ?person rdfs:label…
I am trying to get some lists of data from Wikipedia. So I am using Wikidata SPARQL query service. What I need to know is how can I fetch the data from the URL (Wikipedia page URL). Currently I am searching from name. Following is my query,
SELECT…
I'm trying to load all sovereign states together with some states with partially recognized sovereignty (Taiwan, Kosovo) in Wikidata's SPARQL endpoint query.wikidata.org. This is my SPARQL:
SELECT ?item ?iso2
WHERE {
{
?item wdt:P31…