User
Difference between revisions of "VIGNERON/Stats"
< User:VIGNERON
(+ storing queries) |
(→All items by types: + libellé) |
||
Line 2: | Line 2: | ||
<query> | <query> | ||
− | SELECT ?type (COUNT(?item) AS ?c ) | + | SELECT ?type ?typeLabel (COUNT(?item) AS ?c ) |
WHERE { | WHERE { | ||
?item prop:P2 ?type . | ?item prop:P2 ?type . | ||
+ | OPTIONAL { ?type rdfs:label ?typeLabel . FILTER (lang(?typeLabel) = "fr"). } | ||
} | } | ||
− | GROUP BY ?type | + | GROUP BY ?type ?typeLabel |
ORDER BY DESC(?c) | ORDER BY DESC(?c) | ||
</query> | </query> |