1

I want to find all Wikidata items that have "Gthumb.svg" as a P18 property.

Leaving aside the fact that "Gthumb.svg" may not exist on Commons and that normal P18 values have a "commons:" prefix, it should return at least this item whose P18 is "Gthumb.svg":

https://www.wikidata.org/wiki/Q11499608

So, I wrote this query:

SELECT ?item
WHERE 
{
  ?item wdt:P18 "Gthumb.svg".
}

Problem: It returns zero results. What am I doing wrong?

  • 1
    This works: SELECT ?item {?item wdt:P18 <http://commons.wikimedia.org/wiki/Special:FilePath/Gthumb.svg>} – Stanislav Kralin Oct 23 '17 at 10:33
  • @StanislavKralin: You could have posted as an answer. Thanks a lot! – Nicolas Raoul Oct 23 '17 at 10:41
  • AFAIK, there are many problems with these "multimedia" properties, I can not give an exhaustive answer. – Stanislav Kralin Oct 23 '17 at 11:09
2

As pointed out by Stanislav Kralin, here is the correct query:

SELECT ?item
WHERE 
{
  ?item wdt:P18 <http://commons.wikimedia.org/wiki/Special:FilePath/Gthumb.svg>.
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.