Jump to content

Topic on Help talk:Extension:WikibaseCirrusSearch

RZuo (talkcontribs)

take File:Test.wav for example. it has P170=some value with qualifier P4174=RZuo. how do i make a search that finds all files with this?

Dipsacus fullonum (talkcontribs)

I may be wrong, but I doubt that you can use WikibaseCirrusSearch to search structured data for files on Commons. You can however use the Wikimedia Commons Query Service (WCQS) with a SPARQL query like this:

SELECT ?file
WHERE
{
    ?file p:P170 ?statement.
    ?statement ps:P170 ?value.
    FILTER wikibase:isSomeValue(?value)
    ?statement pq:P4174 "RZuo".
}

Try it!

Edit: After testing on Commons I see that I was wrong: You can use WikibaseCirrusSearch on Commons. However there seems to be no support for "some value" values, so you will have to use the SPARQL query anyway.

RZuo (talkcontribs)
Reply to "P = some value?"