Changes between Version 2 and Version 3 of eXist-interface/annotations


Ignore:
Timestamp:
Jul 5, 2011, 2:14:19 PM (13 years ago)
Author:
jwillenborg
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • eXist-interface/annotations

    v2 v3  
    1 = eXist Interface: User annotations =
     1= eXist Interface: Maintenance of user annotations =
    22
    3 == Example document ==
     3User annotations are maintained by the interface function /mpdl/interface/external/object.xql.
     4This 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 ===
    417[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]
    518
    6 == Read annotations ==
     19=== Read annotations ===
    720{{{
    821  http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql?
     
    1326[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]
    1427
    15 == Create annotation ==
     28=== Create annotation ===
    1629{{{
    1730  http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql?
     
    2134}}}
    2235[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 ===
    2438{{{
    2539  http://mpdl-test.mpiwg-berlin.mpg.de:30030/mpdl/interface/external/object.xql?
     
    2943}}}
    3044[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