Navigation

Search
Digital Humanities · Text Encoding · Database Architecture

Technical Introduction & Digital Architecture

The TEI P4 XML encoding model, diplomatic discourse representation, SQLite FTS5 search architecture, and cross-project digital interoperability.

Jump to: TEI Encoding Model 7 Diplomatic Layers Data & Query Pipeline FTS5 & Palaeography Interoperability
Foundational Research Attribution: Based on the pioneering text encoding research, schema design, and technical methodologies developed by Arianna Ciula, Paul Spence, Juan Garcés, and Alex Burghart at the Centre for Computing in the Humanities (CCH), King's College London (2005), funded by the British Academy.

1. The TEI P4 Diplomatic Encoding Model

The encoding framework developed for ASChart was designed using a customised profile of the P4 Guidelines of the Text Encoding Initiative (TEI). Rather than capturing merely typographical appearances (italics, lineation, or font styles), the TEI schema captured the semantic structure of legal discourse:

Diplomatic Anatomical Marking Isolating invocations, proems, dispositive operative words, vernacular boundaries, dating systems, curses, and promulgation places with dedicated XML elements.
Prosopographical Cross-Referencing Marking names of kings, queens, bishops, abbots, and thegns with persistent foreign keys mapped directly into the Prosopography of Anglo-Saxon England (PASE).
Chronological Typing Tagging calendar computations: Anno Domini years, Byzantine indiction cycles, regnal years of kings, episcopal pontificates, and Roman kalends/ides.
Bilingual Code-Switching Distinguishing between formal Latin administrative prose (lang="la") and vernacular Old English boundary descriptions (lang="ang").
Sample TEI P4 Charter Encoding (S 24 — Hlothhere of Kent, A.D. 679) TEI XML
<charter id="S0024" archive="canterbury-st-augustines" date="679">
  <formula type="invocation">
    In nomine Domini nostri Iesu Christi Saluatoris .
  </formula>
  <formula type="dispositive">
    Ego Hlotharius rex Cantuariorum pro remedio animae meae
    dono terram in Thaneto ...
  </formula>
  <formula type="bounds" lang="ang">
    sicut limes designatus a me et a meis consiliariis .
  </formula>
  <formula type="curse">
    Si quis uero contra hanc donationem meam uenire temptauerit ...
  </formula>
  <formula type="datingclause" calendar="anno-domini">
    Actum in ciuitate Recuulf . anno dominicae incarnationis . DCLXXVIIII .
  </formula>
</charter>

2. The Seven Diplomatic Anatomical Layers

In traditional print editions, formulaic elements are printed within continuous text blocks, concealing stylistic patterns. In The Revised Electronic Anglo-Saxon Charters, every clause is an active, interactive layer that can be filtered, collated across archives, or highlighted dynamically in the text reader:

1. Invocatio (Religious Invocation)
Opening Chrismon or verbal dedication placing the legal transaction under divine authority.
“In nomine Dei et Saluatoris nostri Iesu Christi…”
Browse Invocations →
2. Prooemium (Pious Proem / Arenga)
Theological preamble on worldly instability and the spiritual wisdom of purchasing heavenly treasures with earthly estates.
“Regnante in perpetuum Domino nostro Iesu Christo… caduca et transitoria…”
Browse Proems →
3. Dispositio (Operative Dispositive Words)
The central legal declaration expressing the alienation, grant, or confirmation of bookland and immunities.
“Dono, concedo, trado, perpetua hereditate largior…”
Browse Dispositives →
4. Termini (Vernacular Boundary Descriptions)
Old English land boundaries recording hedgerows, valleys, boundary dykes, milestones, and ancient tumuli.
“Ærest of Afene on wege; swa andlang weges to ðan readan hricge…”
Browse Bounds →
5. Apprecatio (Dating Clause & Calendrics)
Chronological coordination: Anno Domini, Indiction, Regnal years, Dionysian cycles, and liturgical feasts.
“Actum anno dominicae incarnationis DCC. LXXXIX, indictione XII…”
Browse Dating Clauses →
6. Sanctio (Penal Curse / Anathema)
Solemn imprecation threatening infringers with excommunication, divine wrath, and eternal burning in hellfire.
“Si quis autem hanc nostram dapsilitatem minuere uoluerit, cum Iuda traditore in inferno demergatur…”
Browse Curses →
7. Locus (Place of Promulgation)
The royal vill, witenagemot synod, or cathedral where the king and his council assembled to confirm the diploma.
“Actum in illo celebri loco qui nominatur Clofeshoas…”
Browse Promulgation Places →

3. Data Ingestion, Relational Schema & Query Pipeline

In the 2026 Universität Zürich edition, the underlying marked-up structures are stored in a high-performance relational database (SQLite 3 with FTS5). This ensures sub-millisecond query execution, zero external daemon overhead, and maximum preservation durability:

1. TEI XML Parser & Corpus Migration Extracts metadata, formulas, regests, and prosopographical attestations from the 2005 TEI P4 corpus.
2. Relational Normalisation Populates normalised tables: charters, formulas, charter_formulas, archives, persons, and bibliographies.
3. SQLite FTS5 Full-Text Virtual Table Builds inverted FTS5 indices across Latin text, Old English bounds, summaries, and rulers with BM25 ranking.
4. PHP 8.4+ Outside-Webroot Runtime Strict typing, front-controller routing, parameterised SQL queries, sliding-window rate limiting, and security hardening.

5. Cross-Project Scholarly Interoperability

The Revised Electronic Anglo-Saxon Charters is architected to interoperate reciprocally with major digital resources in early medieval British studies:

The Electronic Sawyer (Cambridge) Every charter is mapped to Peter Sawyer's canonical catalogue numbers (S 1 to S 1539) with reciprocal links to manuscript facsimiles.
PASE Database 936 witness attestations are linked directly to biographical and prosopographical profiles in the Prosopography of Anglo-Saxon England.
LangScape Project Boundary perambulations harmonise with LangScape’s database of early English charter landscape features and bounds.
British Academy Charter Series Critical editions and cartulary commentaries are indexed with DOI links in the Scholarly Bibliography.