2

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?

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

1 Answer 1

3

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 and acknowledge you have read our privacy policy.

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