Everything the SCTA publishes is derived from source files kept in repositories on GitHub. Those repositories are the source of truth. From them the SCTA builds indexes, and serves everything from those: the RDF graph, rebuilt every night, and a full-text index of the transcriptions. Any of it can be rebuilt from the repositories.
The sources of truth #
| Repository | Holds | Format |
|---|---|---|
| scta-projectfiles | One file per work: its structure (books, distinctions, questions, ...), its parts' titles, its author, its manuscripts. The entry point of the build. | EDF |
| scta-texts | One repository per text, one folder per item, with the TEI transcriptions (critical, diplomatic, translations) and a transcriptions.xml naming the file to use. The source of truth for the texts themselves. |
LombardPress Schema |
| scta-codices | Manuscripts and printed editions: their surfaces (folios, pages) and which items they carry. | CDF |
| scta-people | The prosopography: names, dates, religious orders, links to Wikidata. | |
| scta-articles, scta-misc-data | Article registries; hand-made lists such as work groups and expression types. | TDF, RDF |
The nightly build #
Every night the build (scta-rdf) turns these files into one RDF graph, following the
SCTA RDF schema:
- Update its copies of the repositories from GitHub.
- Build the graph. Each Expression Description File becomes a tree of expressions, with their
manifestations (one per witness) and transcriptions. The transcription marked for extraction in
transcriptions.xmlsupplies the paragraphs and what the text itself records: quotations, references, the names and works it mentions. Codices, people, work groups and articles are added from their own files, and inverse relations are filled in, so that a link can be followed from either end. - Load the result into the triple store (Apache Jena TDB), which Fuseki serves for SPARQL queries.
The build keeps a hash of every file it processes and every graph it loads, and skips what hasn't changed, so a nightly run only does the work the day's changes require.
The full-text index #
The graph knows a text's structure and what it cites, but not every word of it. For the words, the TEI transcriptions are also indexed with Lucene, a full-text search engine. Today that index lives inside eXist (exist.scta.info), which takes in changed texts from GitHub and serves text search and search within the manuscript images. The RDF graph is not the only way the data is indexed, and needn't be: each index answers the questions it is good at.
What reads the indexes #
Nothing serves the source files directly; every output reads one of the indexes (or the TEI they were built from):
- the SPARQL endpoint (sparql.scta.info), for anyone;
- the resource API and the catalogue: every resource's description at its own URI (Using the data);
- IIIF manifests for the manuscripts, OAI-PMH for library aggregators;
- the viewers, for titles, structure and links;
- the texts themselves (
/text), resolved through the graph to the TEI; - search (
/search, planned), which will consult both indexes: Lucene to find the words, the graph to say where they are (which work, author, part) and to narrow the search by them.
What this means in practice #
- A change appears the next day. A pull request merged into a text or a project file is in the graph after the following nightly build. (The full-text index can take in a changed text sooner.)
- Fix data at its source. A wrong title or a missing part is corrected in the EDF, a transcription error in the TEI (Corrections and issues), never in the graph or a service.
- Anything downstream can be rebuilt. The indexes, the API caches and the catalogue hold nothing that isn't in the repositories.