Changes between Version 60 and Version 61 of DASISH/XSD and XML


Ignore:
Timestamp:
05/14/13 15:23:35 (11 years ago)
Author:
olhsha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/XSD and XML

    v60 v61  
    229229}}}
    230230
    231 == Request body for POST api/annotations ==
     231== Making a new annotation ==
     232
     233=== Request body for POST api/annotations ===
    232234
    233235{{{#!xml
     
    296298
    297299
    298 == Response body (envelope) for POST api/annotations ==
     300=== Response body (envelope) for POST api/annotations ===
    299301
    300302The temporary id is replaced with the permanent reference. However, no cahced representation is found for the catalan web-page. Therefore, in the action part of the envelope there is an action CREATE_CACHED_REPRESENTATION for the object which is the source for catalan web-page.
     
    344346
    345347The client sends metadata cached representation in the POST body, and a cached representation itself. An example of serialized metadata  for a cached representation has been considered above, so we do not give it here.
     348
     349
     350== Editing annotation body ==
     351
     352=== Request: an updated body ===
     353
     354{{{#!xml
     355<?xml version="1.0" encoding="UTF-8"?>
     356<newBody xmlns="http://www.dasish.eu/ns/addit"
     357    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     358    xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd"   
     359    type="relation"    >
     360    <relation>History in English and Catalan</relation>
     361    <english ref="http://dasish.eu/sources/SIDaaabbb"/>
     362    <catalan ref="http://dasish.eu/sources/SIDcxcx"/>
     363</newBody>
     364}}}
     365
     366=== Enveloped respond for updating the annotation body ===
     367
     368The list of actions is empty because there are cached representations for all the target sources.
     369{{{#!xml
     370<?xml version="1.0" encoding="UTF-8"?>
     371<respondNewAnnotation xmlns="http://www.dasish.eu/ns/addit"
     372 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     373 xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd">
     374    <annotationResponse>
     375        <content>
     376            <annotation xmlns="http://www.dasish.eu/ns/addit"
     377                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     378                xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd"
     379                URI="http://dasish.eu/annotations/AIDeegf"
     380                timeStamp="2013-05-29T18:13:51.0Z">
     381                <owner ref="http://dasish.eu/users/UIde1fe1f"/>
     382                <headline>Comapring English and Catalan Wiki</headline>
     383                <body type="relation">
     384                    <relation>History in English and Catalan</relation>
     385                    <english ref="http://dasish.eu/sources/SIDaaabbb"/>
     386                    <catalan ref="http://dasish.eu/sources/SIDcxcx"/> 
     387                </body>
     388                <targetSources>
     389                    <target>
     390                        <source ref="http://dasish.eu/sources/SIDaaabbb">
     391                            <link>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#History</link>
     392                            <version>20.04.2012</version>
     393                        </source>
     394                    </target>   
     395                    <target>
     396                        <source ref="http://dasish.eu/sources/SIDcxcx">
     397                            <link>http://ca.wikipedia.org/wiki/Temple_Expiatori_de_la_Sagrada_Fam%C3%ADlia#Hist.C3.B2tia</link>
     398                            <version>20.04.2013</version>
     399                        </source>
     400                    </target>
     401                </targetSources>
     402                <permissions ref="http://dasish.eu/permissions/PermissionsListIDxyz"/>
     403            </annotation>     
     404        </content>
     405    <actions />   
     406    </annotationResponse>
     407</respondNewAnnotation>
     408}}}