Specification of the prestochango library, version 0.3.6 >

Working with inventory data

prestochango creates an object model of the information that is serialized in XML as a CITE Collections inventory file. This includes information about extensions to CITE Collections recognized in this inventory, and about each inventoried Collection.

Information about CITE Exentions

You can determine the number of Extensions, and for each Extension:

- its abbreviated name
- its full RDF verb

Information about inventoried Collections

Every Collection belongs to a CITE namespace. In CITE URNs, the namespace is identified with an abbreviated identifier. For any namespace in the inventory, you can determine what its abbreviated identifier, and what full URI that corresponds to.

Examples

TBA

You can determine the number of Collections in the repository, and for each Collection:

Examples

Given the test data in this TextInventory file (validated against this schema), and a reference to any directory, we can determine that:

In that inventory, collection urn:cite:hmt:u4

The complete list of its properties is:

Property names
CodexURN
Label
RV
Sequence
URN

Their types are:

NameType
CodexURNciteurn
Labelstring
RVstring
Sequencenumber
URNciteurn

The RV property has an authority list of allowed values. They are

Allowed values
recto
verso

Information about indexed relations

When a property in a CITE Collection is a URN type, the inventory may optionally indicate the nature of the relationship between the cited object and the object in this collection. The relationship is expressed as a pair of RDF verbs.

Examples