query-132fd24fca10b24315ea8689779d8163
MonedulaWiki(P1705)native label
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 DISTINCT ?item ?itemLabel ?countryLabel ?itemnativeLabel ?langusedLabel ?langcode
WHERE {
{
SELECT DISTINCT ?item ?itemnativeLabel ?langused ?langcode WHERE {
{
SELECT DISTINCT ?item WHERE {
?item wdt:P31/wdt:P279* wd:Q46831 .
}
}.
?item wdt:P1705 ?itemnativeLabel .
BIND (LANG(?itemnativeLabel) AS ?langcode)
?langused wdt:P424 ?langcode .
wd:Q34770 ^wdt:P279*/^wdt:P31 ?langused .
}
} BIND(xsd:integer(SUBSTR(STR(?item), 33)) AS ?num)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?num ?itemLabel ?countryLabel ?langusedLabel ?langcode
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?countryLabel"):::projected
v6("?item"):::projected
v2("?itemLabel"):::projected
v7("?itemnativeLabel"):::projected
v8("?langcode"):::projected
v8("?langused")
v4("?langusedLabel"):::projected
v9("?num")
a1((" "))
a2((" "))
c6(["wd:Q34770"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q46831"]):::iri
v6 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v6 --"wdt:P1705"--> v7
bind0[/"?itemnativeLabel"/]
v7 --o bind0
bind0 --as--o v8
v8 --"wdt:P424"--> v8
a2 --"wdt:P279"--> c6
v8 --"wdt:P31"--> a2
bind1[/"http://www.w3.org/2001/XMLSchema#integer(substring(str(?item),'33^^xsd:integer'))"/]
v6 --o bind1
bind1 --as--o v9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end