query-1aaf11da370c7fe77fa01490f8e1e645
Hyphenations per language
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?hyphenations
(CONCAT("#language/", SUBSTR(STR(?language), 32), "/hyphenation") AS ?hyphenationsUrl)
?language ?languageLabel
(CONCAT("#language/", SUBSTR(STR(?language), 32)) AS ?languageUrl)
?example_hyphenation
WHERE {
{
SELECT
(COUNT(?hyphenation) AS ?hyphenations)
?language
(SAMPLE(?hyphenation) AS ?example_hyphenation)
WHERE {
?lexeme dct:language ?language ;
ontolex:lexicalForm / wdt:P5279 ?hyphenation .
}
GROUP BY ?language
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
ORDER BY DESC(?hyphenations)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?example_hyphenation"):::projected
v4("?hyphenation")
v5("?hyphenations"):::projected
v6("?hyphenationsUrl")
v3("?language"):::projected
v7("?languageUrl")
v2("?lexeme")
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
v2 --"dct:language"--> v3
v2 --"ontolex:lexicalForm"--> a1
a1 --"wdt:P5279"--> v4
bind2[/"count(?hyphenation)"/]
v4 --o bind2
bind2 --as--o v5
bind3[/"sample(?hyphenation)"/]
v4 --o bind3
bind3 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind4[/"concat('#language/',substring(str(?language),'32^^xsd:integer'),'/hyphenation')"/]
v3 --o bind4
bind4 --as--o v6
bind5[/"concat('#language/',substring(str(?language),'32^^xsd:integer'))"/]
v3 --o bind5
bind5 --as--o v7