XStandoff Examples

Toy dialog

The classic toy dialog between Peter and Paul about the hammer. See the XCONCUR notation at http://www.xconcur.org/.

The text

[TXT]
Peter: Hey Paul! Would you give me
Peter: the hammer?

The annotation levels

First annotation level: the dialog structure

<?xml version="1.0" encoding="UTF-8"?>
<div xmlns="http://www.xstandoff.net/peter/dialog"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.xstandoff.net/peter/dialog ../xsd/peter_dialog.xsd" type="dialog" org="uniform">
  <u who="Peter">Hey Paul! Would you give me</u>
  <u who="Paul">the hammer?</u>
</div>

Second annotation level: the sentence structure

<?xml version="1.0" encoding="UTF-8"?>
<text xmlns="http://www.xstandoff.net/peter/text"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.xstandoff.net/peter/text ../xsd/peter_text.xsd">
  <s>Hey Paul!</s>
  <s>Would you give me the hammer?</s>
</text>

The XStandoff instance

[XML] [SVG] [X3D]

The resulting XStandoff instance.

<?xml version="1.0" encoding="UTF-8"?>
<xsf:corpusData xmlns:xsf="http://www.xstandoff.net/2009/xstandoff/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://www.xstandoff.net/2009/xstandoff/1.1"
  xsi:schemaLocation="http://www.xstandoff.net/2009/xstandoff/1.1 
  http://www.xstandoff.net/2009/xstandoff/1.1/xsf.xsd" xsfVersion="1.1"
  xml:id="peter_dialog">
  <xsf:primaryData start="0" end="39">
    <primaryDataRef uri="../pd/peter.txt"/>
  </xsf:primaryData>
  <xsf:segmentation>
    <xsf:segment xml:id="seg1" type="char" start="0" end="39"/>
    <xsf:segment xml:id="seg2" type="char" start="0" end="27"/>
    <xsf:segment xml:id="seg3" type="char" start="28" end="39"/>
    <xsf:segment xml:id="seg4" type="char" start="0" end="9"/>
    <xsf:segment xml:id="seg5" type="char" start="10" end="39"/>
  </xsf:segmentation>
  <xsf:annotation>
    <xsf:level xml:id="dialog">
      <xsf:layer xmlns:dialog="http://www.xstandoff.net/peter/dialog" priority="0"
        xsi:schemaLocation="http://www.xstandoff.net/peter/dialog ../xsd/peter_dialog.xsd">
        <dialog:div xsf:segment="seg1" type="dialog" org="uniform">
          <dialog:u xsf:segment="seg2" who="Peter"/>
          <dialog:u xsf:segment="seg3" who="Paul"/>
        </dialog:div>
      </xsf:layer>
    </xsf:level>
    <xsf:level xml:id="text">
      <xsf:layer xmlns:text="http://www.xstandoff.net/peter/text" priority="0"
        xsi:schemaLocation="http://www.xstandoff.net/peter/text ../xsd/peter_text.xsd">
        <text:text xsf:segment="seg1">
          <text:s xsf:segment="seg4"/>
          <text:s xsf:segment="seg5"/>
        </text:text>
      </xsf:layer>
    </xsf:level>
  </xsf:annotation>
</xsf:corpusData>