Serving IIIF and DTS APIs specifications from TEI data via XQuery with support from a SPARQL Endpoint
This paper presents two modules, one serving the IIIF presentation API, and another the three Distributed Text Services API specifications (Collection, Navigation and Document), as well as an additional experimental Web Annotation and indexes API. These are all served from XML TEI data with a RESTxq XQuery module within an exist-db application which also benefits from direct access to a SPARQL Endpoint containing a serialization in RDF of some of the information in the XML. The setup is not uncommon: we have our data collaboratively edited in GitHub, indexed from there into exist-db and transformed with XSLT to RDF-XML. The RDF-XML is passed on to a Apache Jena Fuseki on the same server and is indexed there as well, as RDF so that the two datasets are parallel and updated synchronously. What I want to argue is that the setup itself and the code involved are integrating part of the knowledge being served. They make assumption on the existing data and build the additional representation using that with an additional set of inferences. I conclude the contribution with some examples of use of these modules and their functions.