Changes between Version 76 and Version 77 of DASISH/XSD and XML
- Timestamp:
- 05/14/13 17:15:28 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DASISH/XSD and XML
v76 v77 18 18 The xsd schema is designed according to the following paradigm: 19 19 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}}}. 21 21 22 22 -- Each of these types has an obligatory attribute "URI" which contains DASISH identifier pointing to the location of the resource on the DASISH server. … … 61 61 }}} 62 62 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 === 65 66 66 67 The root element below is of type {{{AnnotationInfos}}} (the list of {{{AnnotationInfo}}}). … … 100 101 101 102 102 == Responding GET api/annotations/AIDzzz (example of resolvable target sources)==103 === Responding GET api/annotations/AIDzzz (example of resolvable target sources) === 103 104 104 105 … … 138 139 139 140 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) === 141 142 142 143 The 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. … … 174 175 175 176 176 == Responding GET api/sources/SIDbbb (unresolvable target sources 2)==177 === Responding GET api/sources/SIDbbb (unresolvable target sources 2) === 177 178 178 179 {{{#!xml … … 190 191 191 192 192 == Responding GET api/versions/VIDaacc (unresolvable target sources 3)==193 === Responding GET api/versions/VIDaacc (unresolvable target sources 3) === 193 194 194 195 {{{#!xml … … 216 217 }}} 217 218 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) === 219 220 220 221 {{{#!xml … … 306 307 <respondNewAnnotation xmlns="http://www.dasish.eu/ns/addit" 307 308 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"> 309 310 <annotationResponse> 310 311 <content> … … 356 357 <newBody xmlns="http://www.dasish.eu/ns/addit" 357 358 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" 359 360 type="relation" > 360 361 <relation>History in English and Catalan</relation> … … 371 372 <respondNewAnnotation xmlns="http://www.dasish.eu/ns/addit" 372 373 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"> 374 375 <annotationResponse> 375 376 <content>