= joinpath(repo, "test", "assets", "burney86-sample.cex") f
Manuscripts and pages
Documentation in progress
This section is incomplete.
Overview
- The
Codex
andMSPage
types are specialized types of physical objects: individual pages related to a codex - each is a citable object, so
MSPage
can used in a triple set - page gives you relation to rest of codex
Example: codex
- we’ll use an example from
test/assets
directory of package gh repo, and will instantiate from a CEX source usingfromcex
(fromCitableBase
q.v)
using CitablePhysicalText, CitableBase
= fromcex(f, Codex, FileReader) mss
1-element Vector{Codex}:
Burney 86 manuscript
There’s only 1 MS in this collection.
= mss[1] ms
Burney 86 manuscript
A citable object
label(ms)
"Burney 86 manuscript"
urn(ms)
urn:cite2:citebl:burney86pages.v1:
An iterable collection
This is a Julia iterable that iterates pages.
eltype(ms)
MSPage
for pg in ms
@info(label(pg))
end
[ Info: British Library, Burney 86, folio 1 recto
[ Info: British Library, Burney 86, folio 1 verso
[ Info: British Library, Burney 86, folio 2 recto
[ Info: British Library, Burney 86, folio 2 verso
[ Info: British Library, Burney 86, folio 3 recto
[ Info: British Library, Burney 86, folio 3 verso
[ Info: British Library, Burney 86, folio 4 recto
[ Info: British Library, Burney 86, folio 4 verso
[ Info: British Library, Burney 86, folio 5 recto
collect(ms)[1]
<urn:cite2:citebl:burney86pages.v1:1r> British Library, Burney 86, folio 1 recto
length(ms)
9
Example: page
= collect(ms)[1] pg
<urn:cite2:citebl:burney86pages.v1:1r> British Library, Burney 86, folio 1 recto
image(pg)
urn:cite2:citebl:burney86imgs.v1:burney_ms_86_f001r
rectoverso(pg)
"recto"