Changes between Version 57 and Version 58 of DASISH/XSD and XML


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

--

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/XSD and XML

    v57 v58  
    265265
    266266
    267 
    268267 === Request body for POST api/annotations: another example ===
    269268
     
    297296
    298297
     298== Response body (envelope) for POST api/annotations ==
     299
     300The 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.
     301
     302{{{#!xml
     303<?xml version="1.0" encoding="UTF-8"?>
     304<respondNewAnnotation xmlns="http://www.dasish.eu/ns/addit"
     305 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     306 xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd">
     307    <annotationResponse>
     308        <content>
     309            <annotation xmlns="http://www.dasish.eu/ns/addit"
     310                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     311                xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd"
     312                URI="http://dasish.eu/annotations/AIDeegf"
     313                timeStamp="2013-05-29T18:13:51.0Z">
     314                <owner ref="http://dasish.eu/users/UIde1fe1f"/>
     315                <headline>Comapring English and Catalan Wiki</headline>
     316                <body type="relation">
     317                    <relation>History</relation>
     318                    <english ref="http://dasish.eu/sources/SIDaaabbb"/>
     319                    <catalan ref="http://dasish.eu/sources/SIDcxcx"/> 
     320                </body>
     321                <targetSources>
     322                    <target>
     323                        <source ref="http://dasish.eu/sources/SIDaaabbb">
     324                            <link>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#History</link>
     325                            <version>20.04.2012</version>
     326                        </source>
     327                    </target>   
     328                    <target>
     329                        <source ref="http://dasish.eu/sources/SIDcxcx">
     330                            <link>http://ca.wikipedia.org/wiki/Temple_Expiatori_de_la_Sagrada_Fam%C3%ADlia#Hist.C3.B2tia</link>
     331                            <version>20.04.2013</version>
     332                        </source>
     333                    </target>
     334                </targetSources>
     335                <permissions ref="http://dasish.eu/permissions/PermissionsListIDxyz"/>
     336            </annotation>     
     337        </content>
     338    <actions>
     339        <action action="CREATE_CACHED_REPRESENTATION" object="http://dasish.eu/sources/SIDcxcx"/>
     340    </actions>
     341    </annotationResponse>
     342</respondNewAnnotation>
     343}}}
     344
     345