Skip to content
A Standoff Implementation of TEI (Text Encoding Initiative) markup
XQuery CSS HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
data
modules
mopane
resources
templates
.gitignore
README.md
ajax.html
build.xml
collection.xconf
controller.xql
editor.xhtml
error-page.html
expath-pkg.xml
icon.png
implementing-standoff-annotation.md
index.html
pre-install.xql
repo.xml
search.html
view-play.html
view-work.html

README.md

Standoff Implementation of TEI in eXist-db

Build app by running ant. Install .xar in eXist-db (version 2.2 upwards) through the Dashboard.

Call http://localhost:8080/exist/apps/merula/plays/sha-ham101.html. standoff2inline.xql then inserts the annotations stored in /db/apps/merula/data/annotations into the base text (stored as /db/apps/merula/data/sample_MTDP10363.xml), first the editorial annotations, then the feature annotations, thereby re-generating a TEI document, and displays it as html.

Run inline2standoff.xq in eXide with let $output-format := 'doc'. This takes the original (inline) TEI text sample_MTDP10363.xml stored in /db/apps/merula/mopane and generates its base text version, plus all of its inline annotations, and stores this in /db/apps/merula/data. This overwrites the sample data.

Add an editorial annotation by running add-annotation.xq in eXide and the existing feature annotations that follow it are kept in sync.

See Implementing Standoff Annotation for a discussion of the issues involved and the approaches adopted.

You can’t perform that action at this time.