In case it could be of some use, here is what Sony saves:
1) for each annotated book there exists XML file in annotations directory, for example for the book
./database/media/books/Christian Crumlish/Designing Social Interfaces - Christian Crumlish & Erin Malone.epub
I have file
./Digital Editions/Annotations/database/media/books/Christian Crumlish/Designing Social Interfaces - Christian Crumlish & Erin Malone.epub.annot
containing all annotations.
2) The latter looks like:
Code:
<annotationSet xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://ns.adobe.com/digitaleditions/annotations">
<publication>
<dc:title>Designing Social Interfaces</dc:title>
<dc:creator>Christian Crumlish</dc:creator>
<dc:publisher>O'Reilly Media</dc:publisher>
<dc:identifier>urn:isbn:9780596806125</dc:identifier>
</publication>
<annotation>
<dc:identifier>urn:uuid:6973626E3A39-3738-3035-393638303631</dc:identifier>
<dc:date>2010-03-13T09:24:06Z</dc:date>
<target>
<fragment start="OEBPS/ch02.html#point(/1/2/1/10/7/2/1:185)" end="OEBPS/ch02.html#point(/1/2/1/10/7/3/1:13)"/>
</target>
<content>
<dc:date>2010-03-13T09:24:06Z</dc:date>
<text/>
</content>
<sony:data xmlns:sony="http://www.sony.com/xmlns/product/prs/adeannotations">
<sony:item name="identifier" value="prsID.2.highlight:37-3-0-T0VCUFMvY2gwMi5odG1sI3BvaW50KC8xLzIvMS8xMC83LzIvMToxODUpAA==-T0VCUFMvY2gwMi5odG1sI3BvaW50KC8xLzIvMS8xMC83LzMvMToxMykA" />
<sony:identifier>PLEASE IGNORE</sony:identifier>
</sony:data>
</annotation>
(and now much more similar <annotation> blocks, the one above points to marked quote)
3) freehand drawings are noted by
Code:
<annotation>
<dc:identifier>urn:uuid:742F3E000030-3954-3035-3A32303A3436</dc:identifier>
<dc:date>2010-03-10T02:50:29Z</dc:date>
<target>
<fragment start="index_split_000.html#point(/1/4/90/1:272)" end="index_split_000.html#point(/1/4/90/1:272)"/>
</target>
<content>
<dc:date>2010-03-10T02:51:29Z</dc:date>
<text/>
</content>
<sony:data xmlns:sony="http://www.sony.com/xmlns/product/prs/adeannotations">
<sony:item name="identifier" value="prsID.2.freehandMarkup:6-9-0-4" />
<sony:identifier>PLEASE IGNORE</sony:identifier>
<sony:item name="duplicate" value="false" />
</sony:data>
</annotation>
and accompanied by yet another directory (named ./database/markup/database/media/books/Christian Crumlish/Designing Social Interfaces - Christian Crumlish & Erin Malone.epub/ in this case) which contains .jpg and .svg for every drawing. Those files has numeric names (for example
1268189694120.249.jpg and 1268189694120.249.svg) and I am still to guess how to match those with the place in the book.