203 | | (1/10/2013) Changed. Earlier it was api/sources/<XXX>/cached/00000000-0000-0000-0000-000000000051/metadata |
204 | | |
205 | | {{{#!xml |
206 | | <?xml version="1.0" encoding="UTF-8"?> |
207 | | <cashedRepresentationInfo xmlns="http://www.dasish.eu/ns/addit" |
208 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
209 | | xsi:schemaLocation="http://www.dasish.eu/ns/addit |
210 | | file:/Users/olhsha/repositories/DASISH/t5.6/schema/trunk/annotator-schema/src/main/resources/DASISH-schema.xsd" |
211 | | type="text" tool="browser" mimeType="text/html" |
212 | | ref="http://localhost:8080/annotator-backend/api/cached/00000000-0000-0000-0000-000000000051"/> |
213 | | }}} |
214 | | |
215 | | |
216 | | |
217 | | |
218 | | === Responding GET api/annotations/AIDzyy (example usage for unresolvable target sources 1) === |
| 203 | |
| 204 | {{{#!xml |
| 205 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
| 206 | <cashedRepresentationInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 207 | xmlns="http://www.dasish.eu/ns/addit" |
| 208 | type="image" |
| 209 | tool="apple-screen-shot" |
| 210 | mimeType="image/png" |
| 211 | URI="http://localhost:8080/annotator-backend/api/cached/00000000-0000-0000-0000-000000000051" |
| 212 | xsi:schemaLocation="http://www.dasish.eu/ns/addit https://svn.clarin.eu/DASISH/t5.6/schema/trunk/annotator-schema/src/main/resources/DASISH-schema.xsd"/> |
| 213 | }}} |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | === Responding GET api/annotations/00000000-0000-0000-0000-00000000002c (example usage for unresolvable target sources 1) === |
223 | | ?xml version="1.0" encoding="UTF-8"?> |
224 | | <annotation xmlns="http://www.dasish.eu/ns/addit" |
225 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
226 | | xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd" |
227 | | URI="http://dasish.eu/annotations/AIDzyy" timeStamp="2013-05-04T18:13:51.0Z"> |
228 | | <owner ref="http://dasish.eu/users/UIde1fe1f"/> |
229 | | <headline>Nativity Facade (old page)</headline> |
230 | | <body type="relation"> |
231 | | <relation>different</relation> |
232 | | <this ref="http://dasish.eu/sources/SIDbbbb"/> |
233 | | <that ref="http://dasish.eu/sources/SIDrrrr"/> |
| 223 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
| 224 | <annotation xmlns="http://www.dasish.eu/ns/addit" |
| 225 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" headline="Sagrada Famiglia" |
| 226 | ownerRef="http://localhost:8080/annotator-backend/api/users/00000000-0000-0000-0000-000000000111" |
| 227 | lastModified="2013-08-12T11:25:00.383Z" |
| 228 | URI="http://localhost:8080/annotator-backend/api/annotations/00000000-0000-0000-0000-00000000002c" |
| 229 | xsi:schemaLocation="http://www.dasish.eu/ns/addit https://svn.clarin.eu/DASISH/t5.6/schema/trunk/annotator-schema/src/main/resources/DASISH-schema.xsd"> |
| 230 | <body> |
| 231 | <textBody mimeType="text/html"><html><body>some html 1</body></html></textBody> |
235 | | <targetSources> |
236 | | <target> |
237 | | <source ref="http://dasish.eu/sources/SIDbbb"> |
238 | | <link>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#Nativity_Fa.C3.A7ade</link> |
239 | | <version>2010-01-29T23:59:59</version> |
240 | | </source> |
241 | | </target> |
242 | | <target> |
243 | | <source ref="http://dasish.eu/sources/SIDrrrr"> |
244 | | <link>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#Passion_Fa.C3.A7ade</link> |
245 | | <version>2010-01-29T23:59:59</version> |
246 | | </source> |
247 | | </target> |
248 | | </targetSources> |
249 | | <permissions ref="http:/dasish.eu/permissions/PrmIdxxx"/> |
| 233 | <targets> |
| 234 | <targetInfo version="version 0.0" link="http://nl.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#De_opd" ref="http://localhost:8080/annotator-backend/api/targets/00000000-0000-0000-0000-00000000003c"/> |
| 235 | <targetInfo version="version 1.0" link="http://nl.wikipedia.org/wiki/Antoni_Gaud%C3%AD#Vroege_werk" ref="http://localhost:8080/annotator-backend/api/targets/00000000-0000-0000-0000-000000000032"/> |
| 236 | </targets> |
| 237 | <permissions> |
| 238 | <userWithPermission permission="owner" ref="http://localhost:8080/annotator-backend/api/users/00000000-0000-0000-0000-000000000111"/> |
| 239 | <userWithPermission permission="writer" ref="http://localhost:8080/annotator-backend/api/users/00000000-0000-0000-0000-000000000112"/> |
| 240 | <userWithPermission permission="reader" ref="http://localhost:8080/annotator-backend/api/users/00000000-0000-0000-0000-000000000113"/> |
| 241 | </permissions> |