W3C home > Mailing lists > Public > public-media-annotation@w3.org > December 2008

Re: [Mediann] Ad. "Return Type / String vs Uri" - Issue

From: Pierre-Antoine Champin <pchampin@liris.cnrs.fr>
Date: Fri, 19 Dec 2008 12:44:50 +0000
Message-ID: <494B9742.8010807@liris.cnrs.fr>
To: Felix Sasaki <fsasaki@w3.org>
CC: Tobias Bürger <tobias.buerger@sti2.at>, "public-media-annotation@w3.org" <public-media-annotation@w3.org>

Felix Sasaki a écrit :
> 
> Hi Tobias,
> 
> I think this is a very good example on how to make a distinction between
> "only string value" and "URI value" on the metadata level, and it would
> be great to have it in a wiki page. However, IMO we are going to provide
> an API which should provide access on a metamodel metadata level. Or to
> put this into a question: If we have a method getSubject, should it return
> 1) the complete DC-TEXT presentation
> 2) the completet RDF/XML representation
> 3) If the input is example 1: the URI. If yes, how does the API "know"
> that it needs to do that?
> 4) If the input is example 2: the string value. If yes, how does the API
> "know" that it needs to do that?
> 
> I think you are aiming for 3) and 4), but I'm not sure.

a 5th option would be, as suggested at the last telecon, to return a
JSON object with two attributes "uri" and "text". The burden on the
developer would be low (append ".uri" or ".text" after the returned
value), and the API would not have to "know" what is required.

  pa
Received on Friday, 19 December 2008 12:45:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 19 December 2008 12:45:37 GMT