The TocPageset class

class ferenda.TocPageset(label, pages, predicate=None)

Represents a particular set of TOC pages, structured around some particular attribute(s) of documents, like title or publication date. toc_pagesets() returns a list of these objects, override that method to provide custom TocPageset objects.

param label:A description of this set of TOC pages, like “By publication year”
type label:str
param pages:The set of TocPage objects that makes up this page set.
type pages:list
param predicate:
 The RDFLib predicate (if any) that this pageset is keyed on.