query-e0886b3e91b6343e3e244431def5f982
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/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?value ?valueLabel WHERE {
{
SELECT DISTINCT ?value WHERE {
[] ps:P27 ?value .
}
}.
VALUES ?class { wd:Q7270 wd:Q3024240 wd:Q6256 wd:Q7275 wd:Q6266 wd:Q161243 wd:Q148837 }
?value p:P31/ps:P31/wdt:P279* ?class .
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?class")
v1("?value"):::projected
a1((" "))
a2((" "))
a3((" "))
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
a1 --"p:statement/P27"--> v1
bind0[/VALUES ?class/]
bind0-->v2
bind00(["wd:Q7270"])
bind00 --> bind0
bind01(["wd:Q3024240"])
bind01 --> bind0
bind02(["wd:Q6256"])
bind02 --> bind0
bind03(["wd:Q7275"])
bind03 --> bind0
bind04(["wd:Q6266"])
bind04 --> bind0
bind05(["wd:Q161243"])
bind05 --> bind0
bind06(["wd:Q148837"])
bind06 --> bind0
v1 --"p:P31"--> a2
a2 --"p:statement/P31"--> a3
a3 --"p:direct/P279"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end