Changes between Version 50 and Version 51 of DASISH/XSD and XML


Ignore:
Timestamp:
05/14/13 12:17:28 (11 years ago)
Author:
olhsha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/XSD and XML

    v50 v51  
    205205
    206206
    207 == Responding GET api/sources/SIDbbb/cached/CIDtttt/metadata (example usage for unresolvable target sources) ==
     207== Responding GET api/sources/SIDbbb/cached/CIDtttt/metadata (completing the example with the unresolvable target sources) ==
    208208
    209209{{{#!xml
     
    220220== Request body for POST api/annotations ==
    221221
    222 
    223 The version of the POST with an unknown target source, signalling the client to provide a cached representation for it: 
    224 
    225 '''TODO''': Action element is removed, instead note that we have to think about a solution, probably using an envelope with annotation result and set of action requests
    226 
    227 The serialization compliant with the strongly-typed schema:
    228 
    229 {{{#!xml
    230 <?xml version="1.0" encoding="UTF-8"?>
     222{{{#!xml
     223<?xml version="1.0" encoding="UTF-8"?>
     224<!-- the request body for POSTing a new annotation -->
    231225<annotation xmlns="http://www.dasish.eu/ns/addit"
    232226 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     
    255249        </target>
    256250    </targetSources>
    257     <readers>
    258         <reader ref="http://dasish.eu/users/UIde1fe1f"/>
    259     </readers>
    260     <writers>
    261         <writer ref="http://dasish.eu/users/UIde1fe1f"/>
    262     </writers>
    263 </annotation>
    264 }}}
    265 
    266 The serialization compliant with the weakly-typed schema:
    267 
    268 {{{#!xml
    269 <?xml version="1.0" encoding="UTF-8"?>
    270 <annotation xmlns="http://www.dasish.eu/ns/addit"
    271  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    272  xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd"
    273  URI="tempAIDgfgf"
    274  timeStamp="2013-05-29T18:13:51.0Z">
    275     <owner ref="http://dasish.eu/users/UIde1fe1f"/>
    276     <headline>Comapring English and Catalan Wiki</headline>
    277     <body type="relation">
    278         <relation>History</relation>
    279         <english ref="http://dasish.eu/sources/SIDaaabbb"/>
    280         <catalan ref="tmpSIDefef"/> 
    281     </body>
    282     <targetSources>
    283         <targetSource ref="http://dasish.eu/sources/SIDaaabbb">
    284             <link>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#History</link>
    285             <version>20.04.2012</version>
    286         </targetSource>   
    287         <targetSource xml:id="tmpSIDefef">
    288                 <link>http://ca.wikipedia.org/wiki/Temple_Expiatori_de_la_Sagrada_Fam%C3%ADlia#Hist.C3.B2tia</link>
    289                 <version>20.04.2013</version>
    290         </targetSource>
    291     </targetSources>
    292     <readers>
    293         <reader ref="http://dasish.eu/users/UIde1fe1f"/>
    294     </readers>
    295     <writers>
    296         <writer ref="http://dasish.eu/users/UIde1fe1f"/>
    297     </writers>
    298 </annotation>
    299 }}}
     251    <permissions ref="http://dasish.eu/permissions/PermissionsListIDxyz"/>
     252</annotation>
     253}}}
     254
     255
    300256
    301257 === Request body for POST api/annotations: another example ===
    302258
    303 The serialization of the POST body for another example (UGOT), compliant with the strongly typed schema.
    304 
    305 {{{#!xml
    306 <?xml version="1.0" encoding="UTF-8"?>
     259The serialization of the POST body for another example (UGOT):
     260
     261{{{#!xml
     262<?xml version="1.0" encoding="UTF-8"?>
     263<!-- the request body for POSTing a new annotation -->
    307264<annotation xmlns="http://www.dasish.eu/ns/addit"
    308265    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     
    324281        </target>
    325282    </targetSources>
    326     <readers>
    327         <reader ref="http://dasish.eu/users/user123"/>
    328     </readers>
    329     <writers>
    330         <writer ref="http://dasish.eu/users/user123"/>
    331     </writers>
    332 </annotation>
    333 }}}
    334 
    335 The serialization of the POST body for another example (UGOT), compliant with the weakly typed schema.
    336 {{{#!xml
    337 <?xml version="1.0" encoding="UTF-8"?>
    338 <annotation xmlns="http://www.dasish.eu/ns/addit"
    339     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    340     xmlns:xhtml="http://www.w3.org/1999/xhtml"
    341     xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd"
    342     URI="tempAIDgfgf"
    343     timeStamp="2013-04-26T11:23:26.000Z">
    344     <owner ref="http://dasish.eu/users/user123"/>
    345     <headline>Douglas Adams - Wikipedia, the free encyclopedia</headline>
    346     <body ref="tmpSIDxyxy" type="Note">
    347         <xhtml:span style="background-color:rgb(253,49,31);color:rgb(0,0,0);">Adams was born 1952-03-11</xhtml:span>
    348     </body>
    349     <targetSources>
    350         <targetSource xml:id="tmpSIDxyxy">
    351                 <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>
    352                 <version>2013-04-26T11:23:26.000Z</version>
    353         </targetSource>
    354     </targetSources>
    355     <readers>
    356         <reader ref="http://dasish.eu/users/user123"/>
    357     </readers>
    358     <writers>
    359         <writer ref="http://dasish.eu/users/user123"/>
    360     </writers>
    361 </annotation>
    362 }}}
    363 
    364 '''TODO''': POST response
     283    <permissions ref="http://dasish.eu/permissions/PermissionsListIDabcd"/>
     284</annotation>
     285}}}
     286
     287