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.

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