A CITE library for the JVM, version 0.96.0 >

I# CITE Collection Inventory #

CITE Collections

A minimum valid CITE Collection is made up:

Examples

We can initialize a valid CITE Collection as follows.

First, using these properties:

we can construct a valid CiteProperty for the Collection's canonical ID property.

Then, using these properties, we can construct a valid CiteProperty for the Collection's label property:

we can construct a valid CiteProperty for the Collection's label property.

If we give this collection the URN urn:cite:hmt:vaimg, with the hmt namespace abbreviation expanded to http://homermultitext.org/citens, and source named images.csv we can create a valid CITE Collection object.

CITE Properties

Every CITEProperty object is defined by three strings: a name that is unique within the Collection a belongs to, a type, and a human-readable display label. The value of type must be one of string, number, boolean, or markdown. The cite library can construct CITEProperty objects from ordered triples of strings in the sequence name, type and label.

Examples

Given these definitions:

we can construct a valid CiteProperty.

If instead we use the string text_data for the type value, the library throws an Exception, because text_data is not a valid value for a CITEProperty type.

For string properties, it is also possible to define a set of controlled vocabulary items.

Examples

If we use these values:

and further define a list of allowed values [recto,verso], we can construct a CITEProperty with controlled vocabulary.

Extensions

A valid CITE Extension includes:

If we define an extension with these values:

then we can construct a valid CITE Extension object.