API documentation

Types

Functions

CitableText.namespaceFunction
namespace(u)

Extract CTS namespace from a CtsUrn.

Examples

julia>
namespace(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
source
CitableText.workcomponentFunction
workcomponent(u)

Extract work component from a CtsUrn.

Examples

julia>
workcomponent(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
source
CitableText.passagecomponentFunction
passagecomponent(u)

Extract passage component from a CtsUrn.

Examples

julia>
passagecomponent(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
source
CitableText.passagedepthFunction
passagedepth(u)

Count number of levels in the passage hierarchy of a CTS URN.

Examples

julia>
passagedepth(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
source
CitableText.passagepartsFunction
passageparts(u)

Extract an array with all the parts of the passage hierarchy of a CTS URN.

Examples

julia>
workparts(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
source
CitableText.workdepthFunction
workdepth(u)

Count number of levels in the work hierarchy of a CTS URN.

Examples

julia>
workdepth(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
source
CitableText.workpartsFunction
workparts(u)

Extract an array with all the parts of the work hierarchy of a CTS URN.

Examples

julia>
workparts(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
source
CitableBase.versionidFunction

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

versionid(u)

Extract version identifier from u.

versionid(u)
source
Missing docstring.

Missing docstring for isrange. Check Documenter's build log for details.

Missing docstring.

Missing docstring for range_begin. Check Documenter's build log for details.

Missing docstring.

Missing docstring for range_end. Check Documenter's build log for details.

CitableText.droppassageFunction
droppassage(u)

Create a new CtsUrn by dropping the passage component of a given CtsUrn.

Examples

julia>
droppassage(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
source
CitableText.addpassageFunction
addpassage(u, psg)

Create a new CtsUrn by replacing any passage component in a given CtsUrn with a new passage component.

Examples

julia>
addpassage(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
source
Missing docstring.

Missing docstring for dropversion. Check Documenter's build log for details.

Missing docstring.

Missing docstring for addversion. Check Documenter's build log for details.

CitableText.dropexemplarFunction
dropexemplar(u)

Create a new CtsUrn by dropping the exemplar part of a given CtsUrn's work component.

Examples

julia>
dropexemplar(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
source
CitableText.addexemplarFunction
addexemplar(u, ex)

Create a new CtsUrn by replacing any exemplar part of a given CtsUrn's work component with a new exemplar part.

Examples

julia>
addexemplar(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
source
CitableText.collapsePassageToFunction
collapsePassageTo(u, count)

Create a new CtsUrn by collapsing a given CtsUrn's passage hierarchy to a given level.

Examples

julia>
collapsePassageTo(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
source
CitableText.collapsePassageByFunction
collapsePassageBy(u, n)

Create a new CtsUrn by collapsing a given CtsUrn's passage hierarchy by a given number of levels.

Examples

julia>
collapsePassageBy(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
source
CitableText.workcontainsFunction
workcontains(urn1, urn2)

True if work component of urn1 contains or is equal to work component of urn2.

Examples

julia>
workcontains(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1")
CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1")
)
source
CitableText.passagecontainsFunction
passagecontains(urn1, urn2)

True if passage component of urn1 contains or is equal to passage component of urn2.

Examples

julia>
passagecontains(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1")
CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1")
)
source