query-c93298439f6e627a98ad7ad79e38b10c
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?item_EN ?item_EO ?item_DE ?type ?type_EN ?type_EO ?type_DE
WHERE
{
?item wdt:P31 ?type.
?item (wdt:P407|wdt:P103|wdt:P1412)* wd:Q8641.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
?item rdfs:label ?item_EN.
?type rdfs:label ?type_EN.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "eo".
?item rdfs:label ?item_EO.
?type rdfs:label ?type_EO.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de".
?item rdfs:label ?item_DE.
?type rdfs:label ?type_DE.
}
} ORDER BY DESC(?type)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v7("?item_DE"):::projected
v3("?item_EN"):::projected
v5("?item_EO"):::projected
v1("?type"):::projected
v8("?type_DE"):::projected
v4("?type_EN"):::projected
v6("?type_EO"):::projected
c12(["de"]):::literal
c3(["wd:Q8641"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c11(["eo"]):::literal
v2 --"wdt:P31"--> v1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1412"--> c3
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P103"--> c3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P407"--> c3
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
v2 --"rdfs:label"--> v3
v1 --"rdfs:label"--> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c11
v2 --"rdfs:label"--> v5
v1 --"rdfs:label"--> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c12
v2 --"rdfs:label"--> v7
v1 --"rdfs:label"--> v8
end