The TextInventory maintains minimal information about a corpus of texts needed to work with them in the OHCO2 data model. It can be initialized from an XML serialization validating against the cite
library's RNG schemas.
From this TextInventory file we can construct a TextInventory.
The TextInventory records the URNs for every level of a text's CTS work hierarchy, and includes a human-readable label for the URN at each level.
We can verify that URNs at different levels of the work hierarchy are documented in the inventory:
URN | In inventory at... |
---|---|
urn:cts:greekLit:tlg0012.tlg001.msA:1.1 | Version level |
urn:cts:greekLit:tlg0012.tlg001.msA.lex:1.1.1 | Exemplar level |
We can retrieve human-readable labels for each level of the work hierarchy:
For the notional work level of the hierarchy, the TextInventory records the primary language of the text using three-digit ISO language codes.
The Iliad (urn:cts:greekLit:tlg0012.tlg001:) has a primary language code grc
The English translation with URN urn:cts:greekLit:tlg0012.tlg001.chs01: has the language code eng, while the Venetus A manuscript (urn:cts:greekLit:tlg0012.tlg001.msA:) has the code grc.
The TextInventory documents the citation scheme for every level of the text's citation hierarchy.