W3C home > Mailing lists > Public > public-media-annotation@w3.org > February 2012

JSON Resonses for general test cases & stub for getOriginalMetadata

From: Florian Stegmaier <stegmai@dimis.fim.uni-passau.de>
Date: Thu, 9 Feb 2012 09:14:41 +0100
Message-Id: <04041840-31B3-4E8B-92BD-047305B8BCEB@dimis.fim.uni-passau.de>
To: public-media-annotation@w3.org
Dear all,

Here are my JSON response proposals for G3-G7 [1]:

G3: Passing NULL value instead property array
-> https://www.dimis.fim.uni-passau.de/~stegmai/mawg/mawg_400.json

G4: Property array filled with duplicates
Here i had a discussion already with Werner what to do in this case. These three cases can be considered:
i) Bad request https://www.dimis.fim.uni-passau.de/~stegmai/mawg/mawg_400.json
or
ii) Response carries duplicate entries
iii) A DISTINCT response (no duplicates)

i would prefer version i) here.

G5: Multiple metadata sources specified
-> here it should say 200, right? (since we allow an array of metadata sources in createMediaResource)
-> https://www.dimis.fim.uni-passau.de/~stegmai/mawg/mawg_200.json

G6: No metadata source specified
-> not quiet sure - 404?
-> https://www.dimis.fim.uni-passau.de/~stegmai/mawg/mawg_404.json

G7: Non-existent metadata source
-> not quiet sure - 404?
-> https://www.dimis.fim.uni-passau.de/~stegmai/mawg/mawg_404.json

Feedback on this is more than welcome! Thanks in advance! 

@Thierry: the getOriginalMetadata is the RDF encapsulated into this JSON fragment:

[ { "statusCode" : 200},
  {"originalMetadata" : "<RDF_code>"} ]

Cheers.

[1] http://www.w3.org/2008/WebVideo/Annotations/drafts/API/implementation-report.html
_____________________________
Dipl. Inf. Florian Stegmaier
Chair of Distributed Information Systems
University of Passau
Innstr. 43
94032 Passau

Room 248 ITZ

Tel.: +49 851 509 3063
Fax: +49 851 509 3062

stegmai@dimis.fim.uni-passau.de
https://www.dimis.fim.uni-passau.de/iris/
http://twitter.com/fstegmai
_____________________________
Received on Thursday, 9 February 2012 08:15:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 February 2012 08:15:27 GMT