XStandoff Examples

Drive My Car

An excerpt from the Beatles song "Drive my car", to illustrate overlap of direct discourse and metrical structure. Originally provided by Bauman 2005.

The text

[TXT]

Asked a girl what she wanted to be
She said baby, can't you see
I wanna be famous, a star on the screen
But you can do something in between
Baby you can drive my car
Yes I'm gonna be a star
Baby you can drive my car
And baby I love you

The annotation levels

Fist 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>
<lg type="verse">
<l>Asked a girl what she wanted to be</l>
<l>She said baby, can't you see</l>
<l>I wanna be famous, a star on the screen</l>
<l>But you can do something in between</l>
</lg>
<lg type="chorus">
<l>Baby you can drive my car</l>
<l>Yes I'm gonna be a star</l>
<l>Baby you can drive my car</l>
<l>And baby I love you</l>
</lg>
</body>
</text>

Second annotation level: the direct discourse.

<?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>
<p>Asked a girl what she wanted to be
She said <q>baby, can't you see
I wanna be famous, a star on the screen
But you can do something in between</q></p>
<p><q>Baby you can drive my car
Yes I'm gonna be a star
Baby you can drive my car
And baby I love you</q></p>
</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="drive_my_car_lines-drive_my_car_quotes"
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="235">
<xsf:primaryDataRef uri="../pd/drive_my_car.txt"/>
</xsf:primaryData>
<xsf:segmentation>
<xsf:segment xml:id="seg1" start="0" end="235"/>
<xsf:segment xml:id="seg2" start="0" end="140"/>
<xsf:segment xml:id="seg3" start="0" end="34"/>
<xsf:segment xml:id="seg4" start="35" end="63"/>
<xsf:segment xml:id="seg5" start="44" end="139"/>
<xsf:segment xml:id="seg6" start="64" end="103"/>
<xsf:segment xml:id="seg7" start="104" end="139"/>
<xsf:segment xml:id="seg8" start="140" end="235"/>
<xsf:segment xml:id="seg9" start="140" end="165"/>
<xsf:segment xml:id="seg10" start="166" end="189"/>
<xsf:segment xml:id="seg11" start="190" end="215"/>
<xsf:segment xml:id="seg12" start="216" end="235"/>
</xsf:segmentation>
<xsf:annotation>
<xsf:level xml:id="drive_my_car_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">
<lg xsf:segment="seg2" type="verse">
<l xsf:segment="seg3"/>
<l xsf:segment="seg4"/>
<l xsf:segment="seg6"/>
<l xsf:segment="seg7"/>
</lg>
<lg xsf:segment="seg8" type="chorus">
<l xsf:segment="seg9"/>
<l xsf:segment="seg10"/>
<l xsf:segment="seg11"/>
<l xsf:segment="seg12"/>
</lg>
</body>
</text>
</xsf:layer>
</xsf:level>
<xsf:level xml:id="drive_my_car_quotes-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">
<p xsf:segment="seg2">
<q xsf:segment="seg5"/>
</p>
<p xsf:segment="seg8">
<q xsf:segment="seg8"/>
</p>
</body>
</text>
</xsf:layer>
</xsf:level>
</xsf:annotation>
</xsf:corpusData>