query-563b03b2bb85e8a7cc90f3843977648e
TODO
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/>
construct{
?subclass ?rpredicate ?entity.
?entity ?predicate ?subclass
}
WHERE {
?subclass (wdt:P279*) wd:Q2095.
{ ?entity ?predicate ?subclass. [] wikibase:directClaim ?predicate }
UNION
{ ?subclass ?rpredicate ?entity. [] wikibase:directClaim ?rpredicate }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entity"):::projected
v3("?predicate"):::projected
v4("?rpredicate"):::projected
v1("?subclass"):::projected
a1((" ")):::projected
a2((" ")):::projected
c2(["wd:Q2095"]):::iri
v1 --"wdt:P279"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 -->v4--> v2
a2 --"wikibase:directClaim"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 -->v3--> v1
a1 --"wikibase:directClaim"--> v3
end
union0r <== or ==> union0l
end