A CITE library for the JVM, version 0.96.0 > CITE URNs >

Working with parts of a CITE Object URN

Top-level components

The cite library can extract the required top-level components of a CITE URN.

Examples

The top level components of the URN urn:cite:hmt:msA.12r are:

The object component

The cite library can determine what optional parts of the object component are present, and can extract them from the object component if they exist.

Examples

The URN urn:cite:hmt:msA.12r :

The URN urn:cite:hmt:vaimg.VA012RN_0013.v1@0.1532,0.1021,0.4014,0.0225:

Manipulating CITE Object URNs

Because the components of a CITE Object URN have specified semantics, we can work with semantically meaningful manipulations of a CITE Object URN. Every CITE URN has an object component minimally composed of a collection identifier, so we can always reduce a CITE URN to a URN identifying its collection.

Similarly, we can determine whether a CITE URN has an extended reference component, and if so we can reduce a CITE URN with extended reference to a URN identifying the unique object without extended reference.

Examples

The URN urn:cite:hmt:msA.12r belongs to the collection identified by the URN urn:cite:hmt:msA.

The URN urn:cite:hmt:vaimg.VA012RN_0013.v1@0.1532,0.1021,0.4014,0.0225 belongs to the collection identified by the URN urn:cite:hmt:vaimg.