Transforming a Dinah Craik Personography
Updated: Apr 1, 2020
Transforming Dinah Craik Personography from TEI to Linked Data using XSLT

The Source
I created a small prosopography, or collective biography, of the people in Dinah Craik's literary and personal circles, based on data from Karen Bourrier's Digital Dinah Craik project (cc-by-nc 4.0), and transformed it from TEI-XML to linked data using XSLT.
What is TEI-XML?
TEI-XML, generally called just TEI, is an XML-based language for modeling documents and formalizing text in a computationally tractable way. TEI is just one of a number of XML languages, and like all XML languages consists of elements and attributes constrained by data types. Encoding in TEI is the process of adding code to transcribed text to indicate structure and content. Confronted with a plain text transcription, a computer will know nothing about either text structure (e.g., where pages start and end, or the boundaries of paragraphs are) or about more nuanced content (e.g., who added the interlinear glosses to a manuscript and how many years separate the original scribe and the glossator, how abbreviations ought to be expanded, or which calendar system is used in the text). The TEI was originally designed to help scholars describe what they know about a source text; although the language has since expanded to let scholars describe images and any number of other cultural artifacts in a robust and systematic way. You can download my TEI here.
What is XSLT?
eXtensible Stylesheet Language (XSLT) is a literal-result-output xml-based scripting language. You use a series of XSLT tags to grab parts of the source XML document, and miss them inside the output elements that you want in your output document (which can be almost anything: text, html, kml, cypher, or for csv simple commas. You can mix output element languages so long as you declare them in the name space at the top of the document and then use that name space to tell oxygen which new space each element belongs to (e.g. <tei:p> <html:p>)). Each XSLT document is made up of a series of <xsl:templates> with a @match that tells the oxygen which element from the source document to grab, filled with <xsl:value-of> elements with @select attributes, which contain paths to children of the @matched XML element. You can download my XSLT here.
What is Linked Data?
Linked data is machine-readable code that describes relations in the real world, offering machines the meaning (the semantic in the term semantic web) that humans take for granted. You can read more about linked data and its uses here.




Comments