332 | | <userInfo |
333 | | xmlns="http://www.dasish.eu/ns/addit" |
334 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
335 | | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" |
336 | | currentUser="true"> |
337 | | <uid>ID01</uid> |
338 | | </userInfo> |
339 | | }}} |
340 | | |
341 | | |
342 | | == Responding GET api/annotations?source="http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia"&access=read == |
| 332 | <currentUserInfo xmlns="http://www.dasish.eu/ns/addit" |
| 333 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 334 | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" |
| 335 | ref="http://dasish.eu/users/UIDefef" |
| 336 | currentUser="true"/> |
| 337 | }}} |
| 338 | |
| 339 | |
| 340 | == Responding GET api/annotations?link="http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia"&access=read == |
| 341 | |
| 342 | The root element below is of type {{{AnnotationInfos}}} (the list of {{{AnnotationInfo}}}). |
346 | | <annotationsOfSource xmlns="http://www.dasish.eu/ns/addit" |
347 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
348 | | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd"> |
349 | | <annotations> |
350 | | <annotation id="AID03"> |
351 | | <owner ref="ID02"/> |
352 | | <headline>My client is not in a hurry</headline> |
353 | | <targetSources> |
354 | | <targetSource ref="SID015"/> |
355 | | </targetSources> |
356 | | </annotation> |
357 | | <annotation id="AID02"> |
358 | | <owner ref="ID01"/> |
359 | | <headline>Nativity Facade</headline> |
360 | | <targetSources> |
361 | | <targetSource ref="SID015"/> |
362 | | <targetSource ref="SID017"/> |
363 | | </targetSources> |
364 | | </annotation> |
365 | | <annotation id="AID01"> |
366 | | <owner ref="ID01"/> |
367 | | <headline>Nativity Facade (old site)</headline> |
368 | | <targetSources> |
369 | | <targetSource ref="SID005"/> |
370 | | <targetSource ref="SID007"/> |
371 | | </targetSources> |
372 | | </annotation> |
373 | | </annotations> |
374 | | </annotationsOfSource> |
375 | | |
376 | | }}} |
377 | | |
378 | | |
379 | | |
380 | | == Responding GET api/annotations/AID02 (example usage for resolvable target sources) == |
| 346 | <annotationsOfLink xmlns="http://www.dasish.eu/ns/addit" |
| 347 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 348 | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd"> |
| 349 | <annotation ref="http://dasish.eu/annotations/AIDxyxy"> |
| 350 | <owner ref="http://dasish.eu/users/UIDefef"/> |
| 351 | <headline>My client is not in a hurry</headline> |
| 352 | <targetSources> |
| 353 | <targetSource ref="http://dasish.eu/sources/SIDacdc"/> |
| 354 | </targetSources> |
| 355 | </annotation> |
| 356 | <annotation ref="http://dasish.eu/annotations/AIDzzz"> |
| 357 | <owner ref="http://dasish.eu/users/UIDe1fe1f"/> |
| 358 | <headline>Nativity Facade</headline> |
| 359 | <targetSources> |
| 360 | <targetSource ref="http://dasish.eu/sources/SIDaacc"/> |
| 361 | <targetSource ref="http://dasish.eu/sources/SIDaaaa"/> |
| 362 | </targetSources> |
| 363 | </annotation> |
| 364 | <annotation ref="http://dasish.eu/annotations/AIDzyy"> |
| 365 | <owner ref="http://dasish.eu/users/UIDefef"/> |
| 366 | <headline>Nativity Facade (old site)</headline> |
| 367 | <targetSources> |
| 368 | <targetSource ref="http://dasish.eu/sources/SIDbbbb"/> |
| 369 | <targetSource ref="http://dasish.eu/sources/SIDrrrr"/> |
| 370 | </targetSources> |
| 371 | </annotation> |
| 372 | </annotationsOfLink> |
| 373 | }}} |
| 374 | |
| 375 | |
| 376 | |
| 377 | == Responding GET api/annotations/AIDzzz (example of resolvable target sources) == |
428 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
429 | | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" |
430 | | xml:id="AID01" |
431 | | URI="http://www.dasish.eu/DB/AID002" |
432 | | timeStamp="2010-05-04T18:13:51.0Z"> |
433 | | <owner ref="ID01"/> |
434 | | <headline>Nativity Facade (old site)</headline> |
| 423 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 424 | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" |
| 425 | URI="http://dasish/annotations/AIDzyy" |
| 426 | timeStamp="2013-05-04T18:13:51.0Z"> |
| 427 | <owner ref="http://dasish.eu/users/UIde1fe1f"/> |
| 428 | <headline>Nativity Facade (old page)</headline> |
463 | | == Responding GET api/annotations/AID01/sources (example usage for unresolvable target sources) == |
464 | | |
465 | | {{{#!xml |
466 | | <?xml version="1.0" encoding="UTF-8"?> |
467 | | <sources xmlns="http://www.dasish.eu/ns/addit" |
468 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
469 | | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd"> |
470 | | <targetSource xml:id="SID005" lastModified="2006-05-04T18:13:51.0Z"> |
471 | | <URI>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#Nativity_Fa.C3.A7ade</URI> |
472 | | <version>1.0</version> |
473 | | <versions> |
474 | | <version ref="SID005"/> |
475 | | <version ref="SID015"/> |
476 | | </versions> |
477 | | <cachedRepresentations> |
478 | | <cachedRepresentation xml:id="CID005" URI="http://www.dasish.eu/DB/CID005" mimeType="text/html" tool="tool1" type="text"/> |
479 | | <cachedRepresentation xml:id="CID005A" URI="http://www.dasish.eu/DB/CID005A" mimeType="image/png" tool="tool2" type="screenshot"/> |
480 | | <cachedRepresentation xml:id="CID015" URI="http://www.dasish.eu/DB/CID015" mimeType="mimeType3" tool="tool3" type="type3"/> |
481 | | </cachedRepresentations> |
482 | | </targetSource> |
483 | | <targetSource xml:id="SID007" lastModified="2006-05-04T18:13:51.0Z"> |
484 | | <URI>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#Passion_Fa.C3.A7ade</URI> |
485 | | <version>1.0</version> |
486 | | <versions> |
487 | | <version ref="SID007"/> |
488 | | <version ref="SID017"/> |
489 | | </versions> |
490 | | <cachedRepresentations> |
491 | | <cachedRepresentation xml:id="CID007" URI="http://www.dasish.eu/DB/CID007" mimeType="mimeType5" tool="tool5" type="type5"/> |
492 | | <cachedRepresentation xml:id="CID017" URI="http://www.dasish.eu/DB/CID017" mimeType="mimeType7" tool="tool7" type="type7"/> |
493 | | </cachedRepresentations> |
494 | | </targetSource> |
495 | | </sources> |
496 | | }}} |
| 457 | == Responding GET api/sources/SIDbbb (example usage for unresolvable target sources) == |
| 458 | |
| 459 | {{{#!xml |
| 460 | <source xmlns="http://www.dasish.eu/ns/addit" |
| 461 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 462 | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" |
| 463 | URI="http://dasish.eu/sources/SIDbbbb" |
| 464 | timeSatmp="2011-05-04T18:13:51.0Z" |
| 465 | link="http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#Passion_Fa.C3.A7ade" |
| 466 | version="1.0"> |
| 467 | <cachedRepresentations> |
| 468 | <cachedRepresentation ref="http://dasish.eu/cached/CIDtttt"/> |
| 469 | <cachedRepresentation ref="http://dasish.eu/cached/CIDttxvv"/> |
| 470 | </cachedRepresentations> |
| 471 | <versions-siblings> |
| 472 | <version ref="http://dasish.eu/sources/SIDaacc"/> |
| 473 | </versions-siblings> |
| 474 | </source>}}} |
523 | | <newAnnotation xmlns="http://www.dasish.eu/ns/addit" |
524 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
525 | | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" |
526 | | xml:id="tempAID06" |
527 | | timeStamp="2013-05-04T18:13:51.0Z"> |
528 | | <owner ref="ID02"/> |
| 504 | <annotation xmlns="http://www.dasish.eu/ns/addit" |
| 505 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 506 | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" |
| 507 | URI="tempAIDgfgf" |
| 508 | timeStamp="2013-05-29T18:13:51.0Z"> |
| 509 | <owner ref="http://dasish.eu/users/UIde1fe1f"/> |
545 | | </newAnnotation> |
546 | | }}} |
547 | | |
548 | | The version of the POST with an unknown target source, signalling the client to provide a cached representation for it: |
549 | | {{{#!xml |
550 | | <?xml version="1.0" encoding="UTF-8"?> |
551 | | <newAnnotation xmlns="http://www.dasish.eu/ns/addit" |
552 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
553 | | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" |
554 | | xml:id="tempAID06" |
555 | | timeStamp="2013-05-04T18:13:51.0Z"> |
556 | | <owner ref="ID02"/> |
557 | | <headline>Organ</headline> |
558 | | <body> |
559 | | <note>installed in 2010</note> |
560 | | </body> |
561 | | <targetSources> |
562 | | <targetSource xml:id="SID018"> |
563 | | <URI>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#Organ</URI> |
564 | | <version>5.0</version> |
565 | | <action>CREATE_CACHED_REPRESENTATION</action> |
566 | | </targetSource> |
567 | | </targetSources> |
568 | | <readers> |
569 | | <reader ref="ID02"/> |
570 | | </readers> |
571 | | <writers> |
572 | | <writer ref="ID02"/> |
573 | | </writers> |
574 | | </newAnnotation> |
575 | | }}} |
| 527 | </annotation> |
| 528 | }}} |