CitableText.CitableByCtsUrn
— TypeA value of CitableBase.CitableTrait
that can be used for content citable by CtsUrn
.
CitableText.CtsUrn
— TypeImplementation of the CTS URN. See http://cite-architecture.org/ctsurn/.
CitableText.CtsUrnComparable
— TypeValue for URN comparison trait on CtsUrn
DocStringExtensions
Base.show
— MethodDispatch show
for CtsUrn
type.
show(io, u)
CitableBase.addversion
— Methodaddversion(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.dropversion
— Methoddropversion(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.supportssubref
— MethodCtsUrn
s support subreferences.
supportssubref(u)
CitableBase.supportsversion
— MethodCtsUrn
s support version ids.
supportsversion(u)
CitableBase.urncomparisontrait
— MethodCtsUrn
s are URN comparable.
urncomparisontrait(_)
CitableBase.urncontains
— Methodurncontains(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.urnequals
— Methodurnequals(urn1, urn2)
True if urn1
equals urn2
.
CitableBase.urnsimilar
— Methodurnsimilar(urn1, urn2)
Override urnsimilar
function to be true if urn1
and urn1
are urnsimilar by URN logic.
CitableBase.versionid
— MethodExtract version identifier from u
.
versionid(u)
CitableText.addexemplar
— Methodaddexemplar(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.addpassage
— Methodaddpassage(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.addworkid
— MethodCreate 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.collapsePassageBy
— MethodcollapsePassageBy(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.collapsePassageTo
— MethodcollapsePassageTo(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.dropexemplar
— Methoddropexemplar(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.droppassage
— Methoddroppassage(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.dropsubref
— Methoddropsubref(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.dropsubref
— Methoddropsubref(u)
Remove any subreferences from a CtsUrn.
CitableText.exemplarid
— MethodExtract exemplar identifier from u
.
exemplarid(u)
CitableText.groupid
— MethodExtract textgroup identifier from u
.
groupid(u)
CitableText.hassubref
— Methodhassubref(psg)
True if String has a subreference.
Examples
julia>
hassubref(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10@μῆνιν"))
CitableText.hassubref
— Methodhassubref(u)
True if CtsUrn has a subreference.
Examples
julia>
hassubref(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10@μῆνιν"))
CitableText.isrange
— Methodisrange(psg)
True if passage component string is a range..
Examples
julia>
isrange("1.1-1.10"))
CitableText.isrange
— Methodisrange(u)
True if passage component is a range..
Examples
julia>
isrange(CtsUrn("urn:cts:greekLit:tlg0012.tlg001:1.1-1.10"))
CitableText.namespace
— Methodnamespace(u)
Extract CTS namespace from a CtsUrn.
Examples
julia>
namespace(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
CitableText.passagecomponent
— Methodpassagecomponent(u)
Extract passage component from a CtsUrn.
Examples
julia>
passagecomponent(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
CitableText.passagecontains
— Methodpassagecontains(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.passagedepth
— Methodpassagedepth(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.passageparts
— Methodpassageparts(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_begin
— Methodrange_begin(s)
Extract first range part from a passage component.
Examples
julia>
range_begin("1.1-1.10"))
CitableText.range_begin
— Methodrange_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_end
— Methodrange_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_end
— Methodrange_end(u)
Extract second range part from a passage component.
Examples
julia>
range_end("1.1-1.10"))
CitableText.subref
— Methodsubref(s)
Extract subreference part of a passage string.
Examples
julia>
subref(1.1-1.10@μῆνιν")
CitableText.subref
— MethodCreate a new CtsUrn dropping any extended reference in u
.
subref(u)
CitableText.validUrn
— MethodTrue if s fully compiles with CtsUrn syntax.
CitableText.workcomponent
— Methodworkcomponent(u)
Extract work component from a CtsUrn.
Examples
julia>
workcomponent(CtsUrn("urn:cts:greekLit:tlg0012.tlg001.msA:1.1"))
CitableText.workcontains
— Methodworkcontains(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.workdepth
— Methodworkdepth(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.workid
— MethodExtract work identifier from u
.
workid(u)
CitableText.workparts
— Methodworkparts(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"))