Reputation: 33
how to construct a Wikidata SPARQL query to get a person's(single) data by their Wikipedia URL I'm new to SPARQL and Wikidata, I tried this, but it takes a long time and returns no results:
SELECT distinct ?item ?itemLabel ?itemDescription ?image ?article WHERE {
?item wdt:P31 wd:Q5 .
?article schema:about ?item .
?article schema:inLanguage "en" .
?article schema:isPartOf <https://en.wikipedia.org/>.
filter (?article = "<https://en.wikipedia.org/wiki/Ronaldo_(footballer,_born_1977)>").
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} LIMIT 1
Upvotes: 1
Views: 157