query-a2a7f9ec365bab5b1bd9724eb67c423f
All items that have both a category's main topic (P301) and a main subject (P921) claim 16:27, 2 December 2020 (UTC)❫ ✉ ❪ChristianKl have mostly the same meaning and thus there are no items that use both with different values. Can someone give me a query that shows all items that use both of those? (P921)main subject and (P301)category's main topic I have the suspicion that : You are correct. See:ChristianKl@
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?category ?categoryLabel ?mt ?ms
WHERE {
?category wdt:P301 ?mt .
?category wdt:P921 ?ms .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?category"):::projected
v3("?ms"):::projected
v2("?mt"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P301"--> v2
v1 --"wdt:P921"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end