Changes between Version 20 and Version 21 of DASISH/Scenario


Ignore:
Timestamp:
04/26/13 12:02:04 (11 years ago)
Author:
olof
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/Scenario

    v20 v21  
    5454* Client: sends the annotation to the server
    5555* {{{POST api/annotation}}}
     56* Example:
     57{{{
     58<?xml version="1.0"?>
     59<annotation xmlns="http://dasish.eu/ns/addit" xmlns:xhtml="http://www.w3.org/1999/xhtml" URI="tempAIDgfgf" timeStamp="2013-04-26T11:23:26.000Z">
     60        <owner ref="http://dasish.eu/users/user123"/>
     61        <headline>Douglas Adams - Wikipedia, the free encyclopedia</headline>
     62        <body type="Note">
     63                <xhtml:span style="background-color:rgb(253,49,31);color:rgb(0,0,0);">Adams was born 1952-03-11</xhtml:span>
     64        </body>
     65        <targetSources>
     66                <action>CREATE_CACHED_REPRESENTATION</action>
     67                <link>http://en.wikipedia.org/wiki/Douglas_adams#xpointer(start-point(string-range(//div[@id="mw-content-text"]/table[1]/tbody[1]/tr[3]/td[1]/text()[1],'',12))/range-to(string-range(//div[@id="mw-content-text"]/table[1]/tbody[1]/tr[3]/td[1]/text()[1],'',25)))</link>
     68                <version>2013-04-26T11:23:26.000Z</version>
     69        </targetSources>
     70</annotation>
     71}}}
     72
    5673See  [[XSD and XML#RequestbodyforPOSTapiannotations]], two versions, with and without action "CREATE_CACHED_REPRESENTATION".
     74
     75
    5776
    5877* Service: responds with the annotation <aid>, with temp id-s replaced by the permanent ones, the full URI for the target sources,  action:create cached representation.