Changes between Version 12 and Version 13 of DASISH/XSD and XML
- Timestamp:
- 04/12/13 11:31:37 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DASISH/XSD and XML
v12 v13 405 405 }}} 406 406 407 === Remarks by Menzo === 408 409 {{{<ownerRef>...</ownerRef>}}} is inconsistent with how other references are represented. I would propose {{{<owner ref="..."/>}}} 410 411 I'm missing the reference for targetSource, i.e., {{{<targetSource ref="...">...</targetSource>}}} 412 413 I also think versionString is superfluous here, the reference will allow the client to get that information if she wants. 414 415 I don't think we should use a kind of [[http://en.wikipedia.org/wiki/Hungarian_notation|Hunagrian notation]] by including information on the type in the element/attribute names. 416 407 417 == Responding GET api/annotations/AID02 (example usage for resolvable target sources) == 408 418 … … 440 450 }}} 441 451 452 === Remarks by Menzo === 453 454 This one should be equivalent (in structure not content) to GET api/annotations/AID01 below. 455 442 456 == Responding GET api/annotations/AID01 (example usage for unresolvable target sources) == 443 457 … … 447 461 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 448 462 xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" 449 xml:id="AID0 02"450 URI="http://www.dasish.eu/DB/AID0 02"463 xml:id="AID01" 464 URI="http://www.dasish.eu/DB/AID01" 451 465 timeStamp="2010-05-04T18:13:51.0Z"> 452 466 <owner ref="ID01"/> … … 517 531 }}} 518 532 533 === Remarks by Menzo === 534 535 The versions list contains the version you looking at as well, e.g., the version list of SID005 consists of SID005 and SID015. Is this so because the list is ordered and we can determine the position of the version under consideration? 536 537 For very dynamic and popular target sources the version list might become big, that could be a reason to move it to a separate call. Actually we have already GET api/sources/<sid>/versions, so I would leave them out here. 538 539 I would make {{{<versionString/>}}} just {{{<version/>}}}, see a previous remark. 540 519 541 == Responding GET api/sources/SID05/cached (example usage for unresolvable target sources) == 520 542 … … 529 551 }}} 530 552 553 === Remarks by Menzo === 554 555 As the cached representations are included in the sources response, this call would be superfluous in the Scenario. 556 531 557 == Responding GET api/sources/SID05/cached/CID005A (example usage for unresolvable target sources) == 532 558 … … 539 565 }}} 540 566 567 === Remarks by Menzo === 568 569 According to the API this would be the response of GET api/sources/SID05/cached/CID005A/metadata 570 541 571 == Request body for POST api/annotations == 542 572 … … 547 577 xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" 548 578 xml:id="AID0010" 549 URI="http://www.dasish.eu/ ns/addit/DB"579 URI="http://www.dasish.eu/addit/DB" 550 580 timeStamp="2013-05-04T18:13:51.0Z"> 551 581 <owner ref="ID02"/> … … 570 600 </newAnnotation> 571 601 }}} 602 603 === Remarks by Menzo === 604 605 {{{@xml:id}}}s won't be known by the client yet, so leave out any {{{@xml:id}}} or give it a temp value if we need that for document internal referential integrity. 606 607 As before I would replace {{{versionString}}} by {{{version}}}. 608 609 I miss the result of this POST, which is interesting as it might signal the client to provide a cached representation for the unknown target source. Could be something like: 610 611 {{{#!xml 612 <?xml version="1.0" encoding="UTF-8"?> 613 <annotation xmlns="http://www.dasish.eu/ns/addit" 614 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 615 xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" 616 xml:id="AID123" 617 URI="http://www.dasish.eu/addit/DB/AID123" 618 timeStamp="2013-05-04T18:13:51.0Z"> 619 <targetSources> 620 <targetSource xml:id="SID018"> 621 <URI>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#Organ</URI> 622 <action>CREATE_CACHED_REPRESENTATION</action> 623 </targetSource> 624 </targetSources> 625 </annotation> 626 }}}