query-a341a4a8b862748076ede1754b379222

rq turtle/ttl

P910 & "Items that link to a Commons category" complex constraint is "Items that link to a Commons category": (P910)topic's main category One of the complex constraints on

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?categoryitem ?commonscategory WHERE { ?item wdt:P910 ?categoryitem . ?commonscategory schema:about ?item . ?commonscategory schema:isPartOf <https://commons.wikimedia.org/> . FILTER REGEX(STR(?commonscategory), "https://commons.wikimedia.org/wiki/Category:") . }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?categoryitem"):::projected v1("?commonscategory"):::projected v2("?item"):::projected c5([https://commons.wikimedia.org/]):::iri f0[["regex(str(?commonscategory),'https://commons.wikimedia.org/wiki/Category:')"]] f0 --> v1 v2 --"wdt:P910"--> v3 v1 --"schema:about"--> v2 v1 --"schema:isPartOf"--> c5