User

Difference between revisions of "VIGNERON/Stats"

< User:VIGNERON

(+ storing queries)
 
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>

Revision as of 16:21, 11 February 2021

All items by types

... Loading ...