A CITE library for the JVM, version 0.96.0 >

CTS Text Inventory

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.

Example

From this TextInventory file we can construct a TextInventory.

Information about the work hierarchy

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.

Examples

We can verify that URNs at different levels of the work hierarchy are documented in the inventory:

URNIn inventory at...
urn:cts:greekLit:tlg0012.tlg001.msA:1.1Version level
urn:cts:greekLit:tlg0012.tlg001.msA.lex:1.1.1Exemplar level

We can retrieve human-readable labels for each level of the work hierarchy:

Information about languages within 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.

Information about the citation hierarchy

The TextInventory documents the citation scheme for every level of the text's citation hierarchy.