query-a6f2116fe0299101b8c450b5368963a6
Check if creators from a specific collection have a CommonsCreatorPage and CommonsCategory
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?c ?cLabel ?CommonsCreatorPage ?CommonsCategory WHERE {
?p wdt:P195 wd:Q2365880.
?p wdt:P170 ?c.
OPTIONAL {?c wdt:P1472 ?CommonsCreatorPage.}
OPTIONAL {?c wdt:P373 ?CommonsCategory.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,en". }
}
ORDER BY ?cLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?CommonsCategory"):::projected
v4("?CommonsCreatorPage"):::projected
v3("?c"):::projected
v1("?cLabel"):::projected
v2("?p")
c2(["wd:Q2365880"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["nl,en"]):::literal
v2 --"wdt:P195"--> c2
v2 --"wdt:P170"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1472".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P373".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end