I# CITE Collection Inventory #
A minimum valid CITE Collection is made up:
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.
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.
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.
If we use these values:
and further define a list of allowed values [recto,verso], we can construct a CITEProperty with controlled vocabulary.
A valid CITE Extension includes:
If we define an extension with these values:
cite
RDF namespace http://cite-architecture.github.io/extensions/imagethen we can construct a valid CITE Extension object.