query-444bcd236a8c817d3f2a132d8810a992

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?label (count(?char) as ?numberOfCharacters) WHERE {
  ?item wdt:P179 wd:Q16290.
  optional {?item wdt:P674 ?char .}
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en".
    ?item rdfs:label ?label.
  }
} group by ?item ?label

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?char"):::projected v1("?item"):::projected v3("?label"):::projected v4("?numberOfCharacters") c2(["wd:Q16290"]):::iri c5(["bd:serviceParam"]):::iri c7(["en"]):::literal v1 --"wdt:P179"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P674".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 v1 --"rdfs:label"--> v3 end bind1[/"count(?char)"/] v2 --o bind1 bind1 --as--o v4