Base.showMethod

Dispatch show for CtsUrn type.

show(io, u)
CitableBase.addversionMethod
addversion(u, vers)

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

Examples

julia>
addversion(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
CitableBase.dropversionMethod
dropversion(u)

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

Examples

julia>
dropversion(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
CitableBase.urncontainsMethod
urncontains(urn1, urn2)

True if urn1 contains urn2 according to URN logic.

Examples

julia>
urncontains(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1")
CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1")
)
CitableBase.urnsimilarMethod
urnsimilar(urn1, urn2)

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

CitableText.addexemplarMethod
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"))
CitableText.addpassageMethod
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"))
CitableText.addworkidMethod

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

addworkid(u, workid)
CitableText.collapsePassageByMethod
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"))
CitableText.collapsePassageToMethod
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"))
CitableText.dropexemplarMethod
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"))
CitableText.droppassageMethod
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"))
CitableText.dropsubrefMethod
dropsubref(s)

Remove any subreference substrings in a string. If s is a range expression, separately drop subreference from each of range-begin and range-end parts.

CitableText.hassubrefMethod
hassubref(psg)

True if String has a subreference.

Examples

julia>
hassubref(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10@μῆνιν"))
CitableText.hassubrefMethod
hassubref(u)

True if CtsUrn has a subreference.

Examples

julia>
hassubref(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10@μῆνιν"))
CitableText.israngeMethod
isrange(psg)

True if passage component string is a range..

Examples

julia>
isrange("1.1-1.10"))
CitableText.israngeMethod
isrange(u)

True if passage component is a range..

Examples

julia>
isrange(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
CitableText.namespaceMethod
namespace(u)

Extract CTS namespace from a CtsUrn.

Examples

julia>
namespace(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
CitableText.passagecomponentMethod
passagecomponent(u)

Extract passage component from a CtsUrn.

Examples

julia>
passagecomponent(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
CitableText.passagecontainsMethod
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")
)
CitableText.passagedepthMethod
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"))
CitableText.passagepartsMethod
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"))
CitableText.range_beginMethod
range_begin(s)

Extract first range part from a passage component.

Examples

julia>
range_begin("1.1-1.10"))
CitableText.range_beginMethod
range_begin(u)

Extract first range part from a CtsUrn.

Examples

julia>
range_begin(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
CitableText.range_endMethod
range_end(s)

Extract second range part from a CtsUrn.

Examples

julia>
range_end(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
CitableText.range_endMethod
range_end(u)

Extract second range part from a passage component.

Examples

julia>
range_end("1.1-1.10"))
CitableText.subrefMethod
subref(s)

Extract subreference part of a passage string.

Examples

julia>
subref(1.1-1.10@μῆνιν")
CitableText.subrefMethod

Create a new CtsUrn dropping any extended reference in u.

subref(u)
CitableText.workcomponentMethod
workcomponent(u)

Extract work component from a CtsUrn.

Examples

julia>
workcomponent(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
CitableText.workcontainsMethod
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")
)
CitableText.workdepthMethod
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"))
CitableText.workpartsMethod
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"))