reteplayground
Aggregate

Entities grouped by type (instance of)

SELECT ?typeLabel (COUNT(?s) AS ?n) WHERE {
  ?s bd:P2 ?type . ?type rdfs:label ?typeLabel . FILTER(L…
} GROUP BY ?typeLabel ORDER BY DESC(?n) LIMIT 20
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → no server, no download — the query runs in your browser.

The query

PREFIX bd: <https://data.biblissima.fr/prop/direct/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?typeLabel (COUNT(?s) AS ?n) WHERE { ?s bd:P2 ?type . ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "fr") } GROUP BY ?typeLabel ORDER BY DESC(?n) LIMIT 20

rete playground · documentation · github.com/caviri/rete