| 1 | = eXist Interface: User annotations = |
| 2 | |
| 3 | == Example document == |
| 4 | [http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/page-query-result.xql?document=/tei/en/Test_1789.xml&mode=text&pn=2 Test document with user annotations] |
| 5 | |
| 6 | == Read annotations == |
| 7 | {{{ |
| 8 | http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql? |
| 9 | operation=read& |
| 10 | type=element& |
| 11 | object=<object documentId="/tei/en/Test_1769.xml" xpointer="id('page2')"></object> |
| 12 | }}} |
| 13 | |
| 14 | == Create annotation == |
| 15 | {{{ |
| 16 | http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql? |
| 17 | operation=create& |
| 18 | type=element& |
| 19 | object=<object uid="andrey@mpiwg-berlin.mpg.de" documentId="/tei/en/Test_1769.xml" xpointer="id('page2')/archimedes[1]/text[1]/body[1]/chap[1]/p[1]/s[3]/point(4)"><note>This is a test note of Andrey</note></object> |
| 20 | }}} |
| 21 | |
| 22 | == Delete annotation == |
| 23 | {{{ |
| 24 | http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql? |
| 25 | operation=delete& |
| 26 | type=element& |
| 27 | object=<object uid="andrey@mpiwg-berlin.mpg.de" documentId="/tei/en/Test_1769.xml" xpointer="id('page2')/archimedes[1]/text[1]/body[1]/chap[1]/p[1]/s[3]"></object> |
| 28 | }}} |
| 29 | |