API Documentation

Types

Functions

Manipulating Cite2Urns:

CitableObject.namespaceFunction
namespace(u)

Extract CITE2 namespace from a CtsUrn.

Examples

julia>
namespace(Cite2Urn("urn:cite2:hmt:msA.v1:12r"))
source
CitableObject.objectcomponentFunction
objectcomponent(u)

Extract CITE2 object component from a CtsUrn.

Examples

julia>
objectcomponent(Cite2Urn("urn:cite2:hmt:msA.v1:12r"))
source
CitableBase.hassubrefFunction

True for URN types that support subreferences.

hassubref(u)

True if last component of u has a sub-reference.

hassubref(u)
CitableBase.subrefFunction

Urn subtypes should implement dropversion(urn::U)::U.

subref(u)
subref(u)

Extract subreference from a a URN, or empty string if there is no subreference.

CitableBase.dropsubrefFunction

Urn subtypes should implement dropversion(urn::U)::U.

dropsubref(u)
dropsubref(u)

Remove any subreferences in URN u. If u is a range, separately drop subreference from each of range-begin and range-end parts.

CitableBase.dropversionFunction

Urn subtypes should implement dropversion(urn::U)::U.

dropversion(u)

Create a new Cite2Urn by dropping the version part of a given Cite2Urn.

dropversion(u)
source
CitableBase.addversionFunction

Urn subtypes should implement addversion(urn::U, versionid)::U.

addversion(u, versioninfo)

Create a new Cite2Urn by setting the version part of a given Cite2Urn to a given value.

addversion(u, versid)
source
CitableBase.versionidFunction

Urn subtypes should implement addversion(urn::U, versionid)::U.

versionid(u)
versionid(u)

Extract CITE2 collection identifer from a Cite2Urn.

Examples

julia>
urn = Cite2Urn("urn:cite2:hmt:msA.v1:12r")
collectionid(urn)
source

Comparing a pair of Cite2Urns:

CitableBase.urncontainsFunction

URN-comparable objects must implement urncontains.

urncontains(x, y)
urncontains(u1, u2)

True if urn1 contains or is equal to urn2 accroding to URN logic.

```

source
CitableBase.urnequalsFunction

For subtypes of Urn, implement urnequals concretely.

urnequals(u1, u2)

URN-comparable objects must implement urnequals.

urnequals(x, y)
urnequals(urn1, urn2)

Override urnequals function for Cite2Urns.

source
CitableBase.urnsimilarFunction

URN-comparable objects must implement urnsimilar.

urnsimilar(x, y)
urnsimilar(urn1, urn2)

Override similar function to be true if urn1 and urn1 are similar by URN logic.

source

CexUtils submodule

Finding data by URN value:

CitableObject.CexUtils.propertiesFunction

Find all property definitions in the CEX string s contained by u.

properties(s, u)
source

Find all property definitions in blks contained by u.

properties(blks, u)
source

Dispatch properties on T.

properties(cexsrc, u, reader)
source

Find all property definitions in CEX file filesrc contained by u.

properties(filesrc, u, freader)
source

Find all property definitions in CEX at URL url contained by u.

properties(url, u, ureader)
source

Find all property definitions in CEX at URL url contained by u.

properties(s, u, sreader)
source
CitableObject.CexUtils.collectiondataFunction

Find all data lines in blkscontained byu`.

collectiondata(blks, u; delimiter)
source

Find all data lines in the CEX string s contained by u.

collectiondata(s, u; delimiter)
source

Dispatch collectiondata on T.

collectiondata(cexsrc, u, reader; delimiter)
source

Find all data lines in CEX file filesrc contained by u.

collectiondata(filesrc, u, freader; delimiter)
source

Find all data lines in CEX at URL url contained by u.

collectiondata(url, u, ureader; delimiter)
source

Find all datalines in CEX s contained by u.

collectiondata(s, u, sreader; delimiter)
source
CitableObject.CexUtils.implementationsFunction

Find Cite2Urns for all collections in s implementing datamodel.

implementations(s, datamodel; delimiter)
source

Find Cite2Urns for all collections in blks implementing datamodel.

implementations(blks, datamodel; delimiter)
source

Dispatch implementations on T.

implementations(cexsrc, datamodel, reader; delimiter)
source

Find Cite2Urns for all collections in CEX file filesrc implementing datamodel.

implementations(filesrc, datamodel, freader; delimiter)
source

Find Cite2Urns for all collections in CEX file filesrc implementing datamodel.

implementations(url, datamodel, freader; delimiter)
source

Find Cite2Urns for all collections in CEX file filesrc implementing datamodel.

implementations(s, datamodel, freader; delimiter)
source
CitableObject.CexUtils.data_for_modelFunction

Find all data lines in the CEX string s for collections implementing datamodel.

data_for_model(s, datamodel; delimiter)
source

Find all data lines in blks for collections implementing datamodel.

data_for_model(blks, datamodel; delimiter)
source

Dispatch data_for_model on T.

data_for_model(cexsrc, datamodel, reader; delimiter)
source

Find all data lines in file filesrc for collections implementing datamodel.

data_for_model(filesrc, datamodel, freader; delimiter)
source

Find all data lines in content of url implementing datamodel.

data_for_model(url, datamodel, freader; delimiter)
source

Find all data lines in s implementing datamodel.

data_for_model(s, datamodel, freader; delimiter)
source
CitableObject.CexUtils.relations_for_modelFunction

Find relations data for all relation sets in s implementing data model dm.

relations_for_model(s, dm)
source

Find relations data for all relation sets in blks implementing data model dm.

relations_for_model(blks, dm)
source

Dispatch relations on T.

relations_for_model(cexsrc, dm, reader)
source

Find relations data for all relation sets in CEX file filesrc implementing data model dm.

relations_for_model(filesrc, dm, freader)
source

Find relations data for all relation sets from CEX at URL url implementing data model dm.

relations_for_model(url, dm, freader)
source

Find relations data for all relation sets in s implementing data model dm.

relations_for_model(s, dm, freader)
source

Finding human-readable labels by URN value:

CitableObject.CexUtils.cataloglabelFunction

Find catalog label, if any, for u in CEX source s. If no catalog found, compose machine-generated label.

cataloglabel(s, u; delimiter)
source

Find catalog label, if any, for u in CEX source s. If no catalog found, compose machine-generated label.

cataloglabel(blks, u; delimiter)
source

Dispatch properties on T.

cataloglabel(cexsrc, u, reader)
source

Find catalog label, if any, in CEX file filesrc contained by u.

cataloglabel(filesrc, u, freader)
source

Find catalog label, if any, in CEX at URL url contained by u.

cataloglabel(url, u, freader)
source

Find catalog label, if any, in CEX at URL url contained by u.

cataloglabel(s, u, sreader)
source