Skip to content
Alpha: see what works today →
Menu

Named question about pod

How many of each kind

How many things of each type the pod's files state. Records and entries share a type, so an allergy or intolerance counts both the allergies each source sent and the entries the allergies view joins them into. GRAPH ?file reads one file at a time, and only files under the storage root count: a type only the derivations state, such as cascade:Record, is in the derived state's own graph and is left out.

The query

PREFIX pim: <http://www.w3.org/ns/pim/space#>

SELECT ?type (COUNT(DISTINCT ?thing) AS ?things)
WHERE {
  GRAPH ?file { ?thing a ?type }
  ?owner pim:storage ?root .
  FILTER (STRSTARTS(STR(?file), STR(?root)))
}
GROUP BY ?type
ORDER BY ?type

Terms it reads

pim:storage

Rules and decision notes that name it

No rule or decision note writes its path.

Its rows on Alex Rivera's pod

The first 10 of 30 rows, as Alex Rivera's explorer shows them. Every row of every question is in answers.json.

typethings
dcat:Dataset1
oa:FragmentSelector32
pim:ConfigurationFile1
prov:Activity12
prov:Association2
prov:Entity35
prov:Person1
prov:Plan6
prov:SoftwareAgent9
solid:TypeIndex1

queries/questions/pod/How many of each kind.rq on GitHub ↗