Changes between Version 2 and Version 3 of eXist-interface/annotations
- Timestamp:
- Jul 5, 2011, 2:14:19 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
eXist-interface/annotations
v2 v3 1 = eXist Interface: User annotations =1 = eXist Interface: Maintenance of user annotations = 2 2 3 == Example document == 3 User annotations are maintained by the interface function /mpdl/interface/external/object.xql. 4 This function has 3 parameters: 5 * operation (possible values: read, create, update, delete) 6 * type (possible values: element, query) 7 * object (see examples below) 8 * attributes 9 * uid: user id (normally email address) of the operation (e.g. andy@mpiwg-berlin.mpg.de) 10 * documentId: the eXist document identifier (e.g. /tei/en/Test_1789.xml) 11 * xpointer: the xpointer to the position in that document (e.g.: id('page2')/TEI[1]/text[1]/body[1]/p[1]/s[3]/point(4)); see [/wiki/schema/xpointer XPointer specification] 12 * value: if operation is create or update: the new object (e.g. <note>This is an annotation of Andy</note>) 13 14 == Examples == 15 16 === Example document === 4 17 [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 18 6 == Read annotations==19 === Read annotations === 7 20 {{{ 8 21 http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql? … … 13 26 [http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql?operation=read&type=element&object=%3Cobject%20documentId=%22/tei/en/Test_1789.xml%22%20xpointer=%22id%28%27page2%27%29%22%3E%3C/object%3E Read annotations] 14 27 15 == Create annotation==28 === Create annotation === 16 29 {{{ 17 30 http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql? … … 21 34 }}} 22 35 [http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql?operation=create&type=element&object=%3Cobject%20uid=%22andy@mpiwg-berlin.mpg.de%22%20documentId=%22/tei/en/Test_1789.xml%22%20xpointer=%22id%28%27page2%27%29/TEI%5B1%5D/text%5B1%5D/body%5B1%5D/p%5B1%5D/s%5B3%5D/point%284%29%22%3E%3Cnote%3EThis%20is%20an%20annotation%20of%20Andy%3C/note%3E%3C/object%3E Create annotation] 23 == Delete annotation == 36 37 === Delete annotation === 24 38 {{{ 25 39 http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql? … … 29 43 }}} 30 44 [http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql?operation=delete&type=element&object=%3Cobject%20uid=%22andy@mpiwg-berlin.mpg.de%22%20documentId=%22/tei/en/Test_1789.xml%22%20xpointer=%22id%28%27page2%27%29/TEI%5B1%5D/text%5B1%5D/body%5B1%5D/p%5B1%5D/s%5B3%5D%22%3E%3C/object%3E Delete annotation] 45 46 == Limitations == 47 * Bugs 48 * at one position there is only one external user annotation possible so far