XStandoff Examples

XStandoff's all layer: "La Mort d'Agrippine" by Cyrano de Bergerac

An excerpt from the tragedy "La Mort d'Agrippine" by Cyrano de Bergerac that provides two independent structures, the verse structure of lines with a given metre and rhyme, and the performance structure of speeches uttered by the play characters.

This example is based on Marinelli et al. 2008 who provide different versions (ECLIX and CLIX, fragmentation, twin documents, stand-off, TexMecs and LMNL syntax), all based on TEI vocabulary.

The text

[TXT]

Tibère Poursuivez... Agrippine Quoi, Seigneur? Tibère Le propos détestable
où je je vous ai surprise. Agrippine Ah! Ce propos damnable
d'une si grande horreur tous mes sens travailla

The annotation levels

First annotation level: the verse structure of lines.

<?xml version="1.0" encoding="UTF-8"?>
<text xmlns="http://www.tei-c.org/ns/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 ../xsd/tei_corpus.xsd">
<body>
<l>Tibère Poursuivez... Agrippine Quoi, Seigneur? Tibère Le propos détestable</l>
<l>où je je vous ai surprise. Agrippine Ah! Ce propos damnable</l>
<l>d'une si grande horreur tous mes sens travailla</l>
</body>
</text>

Second annotation level: the structure of the speeches. Note, that additional l elements have been added since the provided TEI markup does not allow text nodes as child node of the sp element. In the resulting XStandoff instance these l elements will be included in both annotation layers.

<?xml version="1.0" encoding="UTF-8"?>
<text xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 ../xsd/tei_corpus.xsd">
<body>
<sp>
<speaker>Tibère</speaker>
<l>Poursuivez...</l>
</sp>
<sp>
<speaker>Agrippine</speaker>
<l>Quoi, Seigneur?</l>
</sp>
<sp>
<speaker>Tibère</speaker>
<l>Le propos détestable</l>
</sp>
<sp>
<l>où je je vous ai surprise.</l>
</sp>
<sp>
<speaker>Agrippine</speaker>
<l>Ah! Ce propos damnable</l>
</sp>
<sp>
<l>d'une si grande horreur tous mes sens travailla</l>
</sp>
</body>
</text>

The XStandoff instance

[XML] [SVG] [X3D]

The resulting XStandoff instance.

<?xml version="1.0" encoding="UTF-8"?>
<xsf:corpusData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsf="http://www.xstandoff.net/2009/xstandoff/1.1"
xsfVersion="1.1"
xml:id="agrippine_lines-agrippine_sp"
xsi:schemaLocation="http://www.xstandoff.net/2009/xstandoff/1.1
http://www.xstandoff.net/2009/xstandoff/1.1/xsf.xsd">
<xsf:primaryData start="0" end="182">
<xsf:primaryDataRef uri="../pd/agrippine.txt"/>
</xsf:primaryData>
<xsf:segmentation>
<xsf:segment xml:id="seg1" start="0" end="182"/>
<xsf:segment xml:id="seg2" start="0" end="74"/>
<xsf:segment xml:id="seg3" start="0" end="21"/>
<xsf:segment xml:id="seg4" start="0" end="6"/>
<xsf:segment xml:id="seg5" start="7" end="20"/>
<xsf:segment xml:id="seg6" start="21" end="47"/>
<xsf:segment xml:id="seg7" start="21" end="30"/>
<xsf:segment xml:id="seg8" start="31" end="46"/>
<xsf:segment xml:id="seg9" start="47" end="75"/>
<xsf:segment xml:id="seg10" start="47" end="53"/>
<xsf:segment xml:id="seg11" start="54" end="74"/>
<xsf:segment xml:id="seg12" start="75" end="134"/>
<xsf:segment xml:id="seg13" start="75" end="102"/>
<xsf:segment xml:id="seg14" start="75" end="101"/>
<xsf:segment xml:id="seg15" start="102" end="135"/>
<xsf:segment xml:id="seg16" start="102" end="111"/>
<xsf:segment xml:id="seg17" start="112" end="134"/>
<xsf:segment xml:id="seg18" start="135" end="182"/>
</xsf:segmentation>
<xsf:annotation>
<xsf:level xml:id="agrippine_lines-level1">
<xsf:layer xmlns="http://www.tei-c.org/ns/1.0" priority="0"
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 ../xsd/tei_corpus.xsd">
<text xsf:segment="seg1">
<body xsf:segment="seg1">
<l xsf:segment="seg2"/>
<l xsf:segment="seg12"/>
<l xsf:segment="seg18"/>
</body>
</text>
</xsf:layer>
</xsf:level>
<xsf:level xml:id="agrippine_sp-level1">
<xsf:layer xmlns="http://www.tei-c.org/ns/1.0" priority="0"
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 ../xsd/tei_corpus.xsd">
<text xsf:segment="seg1">
<body xsf:segment="seg1">
<sp xsf:segment="seg3">
<speaker xsf:segment="seg4"/>
<l xsf:segment="seg5"/>
</sp>
<sp xsf:segment="seg6">
<speaker xsf:segment="seg7"/>
<l xsf:segment="seg8"/>
</sp>
<sp xsf:segment="seg9">
<speaker xsf:segment="seg10"/>
<l xsf:segment="seg11"/>
</sp>
<sp xsf:segment="seg13">
<l xsf:segment="seg14"/>
</sp>
<sp xsf:segment="seg15">
<speaker xsf:segment="seg16"/>
<l xsf:segment="seg17"/>
</sp>
<sp xsf:segment="seg18">
<l xsf:segment="seg18"/>
</sp>
</body>
</text>
</xsf:layer>
</xsf:level>
</xsf:annotation>
</xsf:corpusData>

The XStandoff instance using XStandoff's all layer

[XML] [SVG] [X3D]

The experimental all layer can be used to subsume elements that are present in all annotation layers. The all layer is not subject to validation yet. Note that the l element referencing to the segment 12 is not part of the all layer since this would render the second layer invalid (TEI does not allow an empty sp element).
For an example XStandoff instance that disclaims any validation see the second linguistic ambiguity example.

<?xml version="1.0" encoding="UTF-8"?>
<xsf:corpusData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsf="http://www.xstandoff.net/2009/xstandoff/1.1"
xsfVersion="1.1"
xml:id="agrippine_lines-agrippine_sp"
xsi:schemaLocation="http://www.xstandoff.net/2009/xstandoff/1.1
http://www.xstandoff.net/2009/xstandoff/1.1/xsf.xsd">
<xsf:primaryData start="0" end="182">
<xsf:primaryDataRef uri="../pd/agrippine.txt"/>
</xsf:primaryData>
<xsf:segmentation>
<xsf:segment xml:id="seg1" start="0" end="182"/>
<xsf:segment xml:id="seg2" start="0" end="74"/>
<xsf:segment xml:id="seg3" start="0" end="21"/>
<xsf:segment xml:id="seg4" start="0" end="6"/>
<xsf:segment xml:id="seg5" start="7" end="20"/>
<xsf:segment xml:id="seg6" start="21" end="47"/>
<xsf:segment xml:id="seg7" start="21" end="30"/>
<xsf:segment xml:id="seg8" start="31" end="46"/>
<xsf:segment xml:id="seg9" start="47" end="75"/>
<xsf:segment xml:id="seg10" start="47" end="53"/>
<xsf:segment xml:id="seg11" start="54" end="74"/>
<xsf:segment xml:id="seg12" start="75" end="134"/>
<xsf:segment xml:id="seg13" start="75" end="102"/>
<xsf:segment xml:id="seg14" start="75" end="101"/>
<xsf:segment xml:id="seg15" start="102" end="135"/>
<xsf:segment xml:id="seg16" start="102" end="111"/>
<xsf:segment xml:id="seg17" start="112" end="134"/>
<xsf:segment xml:id="seg18" start="135" end="182"/>
</xsf:segmentation>
<xsf:annotation>
<xsf:level xml:id="all-level">
<xsf:layer xmlns:all="http://www.xstandoff.net/2009/all" priority="0">
<all:text xsf:segment="seg1">
<all:body xsf:segment="seg1">
<all:l xsf:segment="seg18"/>
</all:body>
</all:text>
</xsf:layer>
</xsf:level>
<xsf:level xml:id="agrippine_lines-level1">
<xsf:layer xmlns="http://www.tei-c.org/ns/1.0" priority="0"
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 ../xsd/tei_corpus.xsd">
<l xsf:segment="seg2"/>
<l xsf:segment="seg12"/>
</xsf:layer>
</xsf:level>
<xsf:level xml:id="agrippine_sp-level1">
<xsf:layer xmlns="http://www.tei-c.org/ns/1.0" priority="0"
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 ../xsd/tei_corpus.xsd">
<sp xsf:segment="seg3">
<speaker xsf:segment="seg4"/>
<l xsf:segment="seg5"/>
</sp>
<sp xsf:segment="seg6">
<speaker xsf:segment="seg7"/>
<l xsf:segment="seg8"/>
</sp>
<sp xsf:segment="seg9">
<speaker xsf:segment="seg10"/>
<l xsf:segment="seg11"/>
</sp>
<sp xsf:segment="seg13">
<l xsf:segment="seg14"/>
</sp>
<sp xsf:segment="seg15">
<speaker xsf:segment="seg16"/>
<l xsf:segment="seg17"/>
</sp>
<sp xsf:segment="seg18">
<l xsf:segment="seg12"/>
</sp>
</xsf:layer>
</xsf:level>
</xsf:annotation>
</xsf:corpusData>