Changes between Version 76 and Version 77 of DASISH/XSD and XML


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

--

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/XSD and XML

    v76 v77  
    1818The xsd schema is designed according to the following paradigm:
    1919
    20 -- There are 6 xsd-types corresponding to five sorts of resources in DASISH: {{{CachedRepresentation}}}, {{{Source}}}, {{{User}}}, {{{Annotation}}}, {{{Notebook}}}., {{{Lists of Permissions}}}.
     20-- There are 7 xsd-types corresponding to five sorts of resources in DASISH: {{{CachedRepresentation}}}, {{{Source}}}, {{{User}}}, {{{Annotation}}}, {{{Notebook}}}., {{{Lists of Permissions}}}, {{{Lists of Versions}}}.
    2121
    2222--  Each of these types has an obligatory attribute "URI" which contains DASISH identifier pointing to the location of the resource on the DASISH server.
     
    6161}}}
    6262
    63 
    64 == Responding GET api/annotations?link="http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia"&access=read  ==
     63== Retrieving annotations ==
     64
     65=== Responding GET api/annotations?link="http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia"&access=read  ===
    6566
    6667The root element below is of type {{{AnnotationInfos}}} (the list of {{{AnnotationInfo}}}).
     
    100101
    101102
    102 == Responding GET api/annotations/AIDzzz (example of resolvable target sources) ==
     103=== Responding GET api/annotations/AIDzzz (example of resolvable target sources) ===
    103104
    104105
     
    138139
    139140
    140 == Responding GET api/annotations/AIDzyy (example usage for unresolvable target sources 1) ==
     141=== Responding GET api/annotations/AIDzyy (example usage for unresolvable target sources 1) ===
    141142
    142143The respond for an annotation with unresolved target sources and the respond for an annotation with resolved target sources (see above) are both instances of the same schema element.  However, the annotation refers to an obsolete version of the page. Next, having the target source references, the client will ask for the source versions saved in the DB. The last step: having the info about the version under consideration, the client asks for cached representations of the version.
     
    174175
    175176
    176 == Responding GET api/sources/SIDbbb (unresolvable target sources 2) ==
     177=== Responding GET api/sources/SIDbbb (unresolvable target sources 2) ===
    177178
    178179{{{#!xml
     
    190191
    191192
    192 == Responding GET api/versions/VIDaacc (unresolvable target sources 3) ==
     193=== Responding GET api/versions/VIDaacc (unresolvable target sources 3) ===
    193194
    194195{{{#!xml
     
    216217}}}
    217218
    218 == Responding GET api/sources/SIDbbb/cached/CIDtttt/metadata (unresolvable target sources 4) ==
     219=== Responding GET api/sources/SIDbbb/cached/CIDtttt/metadata (unresolvable target sources 4) ===
    219220
    220221{{{#!xml
     
    306307<respondNewAnnotation xmlns="http://www.dasish.eu/ns/addit"
    307308 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    308  xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd">
     309 xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd">
    309310    <annotationResponse>
    310311        <content>
     
    356357<newBody xmlns="http://www.dasish.eu/ns/addit"
    357358    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    xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd"   
    359360    type="relation"    >
    360361    <relation>History in English and Catalan</relation>
     
    371372<respondNewAnnotation xmlns="http://www.dasish.eu/ns/addit"
    372373 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 xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd">
    374375    <annotationResponse>
    375376        <content>