I am trying to find all Wikidata items whose P18 property is an URL that has the word "Montage" anywhere in its filename.
Example:
I managed to find items by their complete P18 filename:
SELECT ?item
WHERE
{
?item wdt:P18 <http://commons.wikimedia.org/wiki/Special:FilePath/Montage%20Columbus%201.jpg>.
}
But now I would like to add wildcards to that. My attempts with *
and contains/regex all failed.
How to achieve that?
hint:Query
trick is gold. Feel free to post an answer containing the query, so that I can accept it. If not I will post and accept myself ^_^