Changes between Version 12 and Version 13 of DASISH/XSD and XML


Ignore:
Timestamp:
04/12/13 11:31:37 (11 years ago)
Author:
mwindhouwer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/XSD and XML

    v12 v13  
    405405}}}
    406406
     407=== Remarks by Menzo ===
     408
     409{{{<ownerRef>...</ownerRef>}}} is inconsistent with how other references are represented. I would propose {{{<owner ref="..."/>}}}
     410
     411I'm missing the reference for targetSource, i.e., {{{<targetSource ref="...">...</targetSource>}}}
     412
     413I also think versionString is superfluous here, the reference will allow the client to get that information if she wants.
     414
     415I 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
    407417== Responding GET api/annotations/AID02 (example usage for resolvable target sources) ==
    408418
     
    440450}}}
    441451
     452=== Remarks by Menzo ===
     453
     454This one should be equivalent (in structure not content) to GET api/annotations/AID01 below.
     455
    442456== Responding GET api/annotations/AID01 (example usage for unresolvable target sources) ==
    443457
     
    447461 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    448462 xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd"
    449  xml:id="AID002"
    450  URI="http://www.dasish.eu/DB/AID002"
     463 xml:id="AID01"
     464 URI="http://www.dasish.eu/DB/AID01"
    451465 timeStamp="2010-05-04T18:13:51.0Z">
    452466    <owner ref="ID01"/>
     
    517531}}}
    518532
     533=== Remarks by Menzo ===
     534
     535The 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
     537For 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
     539I would make {{{<versionString/>}}} just {{{<version/>}}}, see a previous remark.
     540
    519541== Responding GET api/sources/SID05/cached (example usage for unresolvable target sources) ==
    520542
     
    529551}}}
    530552
     553=== Remarks by Menzo ===
     554
     555As the cached representations are included in the sources response, this call would be superfluous in the Scenario.
     556
    531557== Responding GET api/sources/SID05/cached/CID005A (example usage for unresolvable target sources) ==
    532558
     
    539565}}}
    540566
     567=== Remarks by Menzo ===
     568
     569According to the API this would be the response of GET api/sources/SID05/cached/CID005A/metadata
     570
    541571== Request body for POST api/annotations ==
    542572
     
    547577 xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd"
    548578 xml:id="AID0010"
    549  URI="http://www.dasish.eu/ns/addit/DB"
     579 URI="http://www.dasish.eu/addit/DB"
    550580 timeStamp="2013-05-04T18:13:51.0Z">
    551581    <owner ref="ID02"/>
     
    570600</newAnnotation>
    571601}}}
     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
     607As before I would replace {{{versionString}}} by {{{version}}}.
     608
     609I 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}}}