query-3bac50f0848245e49e3a5d955658a9de

rq turtle/ttl

PropertiesISO 639-1 code (P218)

Use at

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 ?lcat ?lcatLabel (COUNT(?item) as ?count_item) WHERE {
  ?item a ontolex:LexicalEntry
    ; dct:language ?language
    ; wikibase:lexicalCategory ?lcat
    ; wikibase:lemma ?lemma .
  ?language wdt:P218 'nl' .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
} group by ?lcat ?lcatLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count_item") v1("?item"):::projected v2("?language") v3("?lcat"):::projected v4("?lemma") c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;"]):::literal c2(["ontolex:LexicalEntry"]):::iri c7(["nl"]):::literal v1 --"a"--> c2 v1 --"dct:language"--> v2 v1 --"wikibase:lexicalCategory"--> v3 v1 --"wikibase:lemma"--> v4 v2 --"wdt:P218"--> c7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end bind1[/"count(?item)"/] v1 --o bind1 bind1 --as--o v5