section: a reading section of a library work. passage: a graded passage.
One of section, passage.
langstring
Language code: la (Latin) or grc (Ancient Greek).
One of la, grc.
languagestring
titlestring
"Aeneid 1.1-11" for a section; the passage title for a graded passage.
citationstring
"Virgil, Aeneid 1.1-11": quote this when you cite the text.
refstring or null
The section's first citation, as used in its URL. Null for a graded passage.
levelinteger or null
Graded passages: difficulty 1 to 5.
urnstring or null
CTS URN, e.g. urn:cts:latinLit:phi0690.phi003.perseus-lat2:1.1-1.11. Null when the edition has none (The Latin Library's own numbering).
urlstring
Canonical page.
apistring
Absolute URL.
markdownstring or null
The same text as Markdown.
authorobject
2 fields
author fields
namestring
urlstring or null
Absolute URL.
workobject
3 fields
work fields
titlestring
urlstring or null
Absolute URL.
urnstring or null
CTS URN, e.g. urn:cts:latinLit:phi0690.phi003.perseus-lat2:1.1-1.11. Null when the edition has none (The Latin Library's own numbering).
verseboolean
wordsinteger
textstring
Plain text; verse keeps its line breaks.
prevLink or null
4 fields
prev fields
citationstring
"Aeneid 1.12-33"
labelstring
"Book 1, lines 12-33"
urlstring
Absolute URL.
apistring
The same resource as JSON.
nextLink or null
Follow next.api to read on without searching again.4 fields
next fields
citationstring
"Aeneid 1.12-33"
labelstring
"Book 1, lines 12-33"
urlstring
Absolute URL.
apistring
The same resource as JSON.
creditCredit
5 fields
credit fields
textstring
Credit line for the edition: author, work, editor, source, licence and changes. Quote it when you reuse the text.
licensestring
CC BY-SA 4.0, CC BY-SA 3.0, CC BY 4.0, CC BY 3.0, The Latin Library terms, or a public-domain note.
licenseUrlstring or null
sourcestring
Where the edition comes from.
qualitystring
ocr: an unproofread scan.
One of proofread, ocr.
analysisAnalysis
OptionalOnly with include=analysis.5 fields
analysis fields
analysedinteger
Sentences with a stored analysis.
totalinteger
Sentences in the text.
licensestring
Per edition: "Text: <the text's licence>; analysis notes: CC BY-SA 4.0". The analysis notes are CC BY-SA; the text keeps its own licence (credit.license).
notestring
sentencesarray of AnalysedSentence
4 fields
sentences fields
indexinteger
0-based sentence index in the text.
textstring
translationstring or null
Null when the sentence has no stored analysis yet.
wordsarray of Word or null
Null when the sentence has no stored analysis yet.11 fields
words fields
iinteger
1-based index of the word in its sentence.
formstring
The word as printed.
lemmastring
Dictionary headword; Latin with macrons, Greek polytonic.
entrystring or null
Dictionary entry: principal parts, or genitive and gender.
uposstring
Universal Dependencies part of speech.
featsstring
Universal Dependencies features, e.g. "Case=Acc|Gender=Neut|Number=Plur"; "_" if none.
headinteger
Index of the word this one depends on; 0 for the root.
deprelstring
Universal Dependencies relation to its head: nsubj, obj, amod, …
glossstring
Meaning in this sentence, 1 to 4 words.
notestring or null
One sentence on the word's role.
encliticobject
OptionalPresent only when an enclitic rides on the word, e.g. -que "and".2 fields
enclitic fields
formstring
glossstring
contextContext
OptionalOnly with include=context.3 fields
context fields
machineWrittenboolean
False for the graded passages' hand-written notes.
sectionobject or null
Null until someone has opened Context for this part in the reader.4 fields
const params =newURLSearchParams({ref:"urn:cts:latinLit:phi0690.phi003.perseus-lat2:1.46"})const res =awaitfetch(`https://interlinea.aeterna-institute.org/api/v1/text?${params}`)const data =await res.json()
console.log(data)
import json
from urllib.parse import urlencode
from urllib.request import urlopen
params =urlencode({"ref":"urn:cts:latinLit:phi0690.phi003.perseus-lat2:1.46"})withurlopen(f"https://interlinea.aeterna-institute.org/api/v1/text?{params}")as res:
data = json.load(res)print(data)
{"kind":"section","lang":"la","language":"Latin","title":"Aeneid 1.46-86","citation":"Virgil, Aeneid 1.46-86","ref":"1.46","level":null,"urn":"urn:cts:latinLit:phi0690.phi003.perseus-lat2:1.46-1.86","url":"https://interlinea.aeterna-institute.org/library/latin/virgil/aeneid/1.46","api":"https://interlinea.aeterna-institute.org/api/v1/library/latin/virgil/aeneid/1.46","markdown":"https://interlinea.aeterna-institute.org/library/latin/virgil/aeneid/1.46.md","author":{"name":"Virgil","url":"https://interlinea.aeterna-institute.org/library/latin/virgil"},"work":{"title":"Aeneid","url":"https://interlinea.aeterna-institute.org/library/latin/virgil/aeneid","urn":"urn:cts:latinLit:phi0690.phi003"},"verse":true,"words":276,"text":"Ast ego, quae divom incedo regina, Iovisque\net soror et coniunx, una cum gente tot annos\nbella gero! Et quisquam numen Iunonis adoret\npraete…","prev":{"citation":"Aeneid 1.1-45","label":"Lines 1.1-1.45","url":"https://interlinea.aeterna-institute.org/library/latin/virgil/aeneid/1.1","api":"https://interlinea.aeterna-institute.org/api/v1/library/latin/virgil/aeneid/1.1"},"next":{"citation":"Aeneid 1.87-130","label":"Lines 1.87-1.130","url":"https://interlinea.aeterna-institute.org/library/latin/virgil/aeneid/1.87","api":"https://interlinea.aeterna-institute.org/api/v1/library/latin/virgil/aeneid/1.87"},"credit":{"text":"Virgil, Aeneid, ed. J. B. Greenough. Text: the Perseus Digital Library, canonical-latinLit, CC BY-SA 4.0. Changes: apostrophes normalised an…","license":"CC BY-SA 4.0","licenseUrl":"https://creativecommons.org/licenses/by-sa/4.0/","source":"https://github.com/PerseusDL/canonical-latinLit/blob/master/data/phi0690/phi003/phi0690.phi003.perseus-lat2.xml","quality":"proofread"}}