query-bb2fce5fa6ef27904193a99b87f4b706
Languages
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?lang ?langLabel ?l1 ?l2 ?l3 ?l4
{
# instance of a language
?lang wdt:P31/wdt:P279* wd:Q34770 .
# ISO 639-1 code
optional {
?lang wdt:P218 ?l1 .
}
# ISO 639-2 code
optional {
?lang wdt:P219 ?l2 .
}
# ISO 639-3 code
optional {
?lang wdt:P220 ?l3 .
}
# IETF language tag
optional {
?lang wdt:P305 ?l4 .
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
} ORDER BY ?langLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?l1"):::projected
v4("?l2"):::projected
v5("?l3"):::projected
v6("?l4"):::projected
v2("?lang"):::projected
v1("?langLabel"):::projected
a1((" "))
c3(["wd:Q34770"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P218".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P219".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P220".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P305".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end