query-6f6666b880d5e8a8d34ff2f8c7560120
Redundancies : fields that studies a kind of object both with a specific case of those objects
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 distinct ?discipline ?topic ?subtopic ?disciplineLabel ?topicLabel ?subtopicLabel WHERE {
?discipline wdt:P2578|^wdt:P2579 ?topic,?subtopic.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?subtopic (wdt:P279)+ ?topic .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?discipline"):::projected
v3("?subtopic"):::projected
v2("?topic"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P2579"--> v1
v3 --"wdt:P2579"--> v1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P2578"--> v2
v1 --"wdt:P2578"--> v3
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
v3 --"wdt:P279"--> v2