query-c7b720eef1af02808b2592628f540e85
Languages derived from
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q9035>
SELECT
?count
(CONCAT("#language/", SUBSTR(STR(target:), 32), "/language/", SUBSTR(STR(?language), 32)) AS ?countUrl)
?language ?languageLabel
(CONCAT("#language/", SUBSTR(STR(?language), 32)) AS ?languageUrl)
?originating_example_lexeme ?originating_example_lexemeLabel
(CONCAT("#lexeme/", SUBSTR(STR(?originating_example_lexeme), 32)) AS ?originating_example_lexemeUrl)
WHERE {
{
SELECT
(COUNT(?lexeme) AS ?count)
?language
(SAMPLE(?originating_lexeme) AS ?originating_example_lexeme)
WHERE {
?lexeme dct:language target: ;
wdt:P5191+ ?originating_lexeme .
?originating_lexeme dct:language ?language .
}
GROUP BY ?language
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?originating_example_lexeme wikibase:lemma ?originating_example_lexemeLabel .
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count"):::projected
v7("?countUrl")
v4("?language"):::projected
v8("?languageUrl")
v2("?lexeme")
v5("?originating_example_lexeme"):::projected
v6("?originating_example_lexemeLabel"):::projected
v9("?originating_example_lexemeUrl")
v3("?originating_lexeme")
c2([http://www.wikidata.org/entity/Q9035]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"dct:language"--> c2
v2 --"wdt:P5191"--> v3
v3 --"dct:language"--> v4
bind2[/"count(?lexeme)"/]
v2 --o bind2
bind2 --as--o v5
bind3[/"sample(?originating_lexeme)"/]
v3 --o bind3
bind3 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
v5 --"wikibase:lemma"--> v6
bind4[/"concat('#language/',substring(str(http://www.wikidata.org/entity/Q9035),'32^^xsd:integer'),'/language/',substring(str(?language),'32^^xsd:integer'))"/]
v4 --o bind4
bind4 --as--o v7
bind5[/"concat('#language/',substring(str(?language),'32^^xsd:integer'))"/]
v4 --o bind5
bind5 --as--o v8
bind6[/"concat('#lexeme/',substring(str(?originating_example_lexeme),'32^^xsd:integer'))"/]
v5 --o bind6
bind6 --as--o v9