[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accepting articles and bookmarks



El Jueves, 7 de Junio de 2007 11:41, Sylvain Hellegouarch escribió:
> Antonio Tapiador del Dujo a écrit :
> > El Miércoles, 6 de Junio de 2007 15:18, Tim Bray escribió:
> >> On Jun 6, 2007, at 1:04 AM, Antonio Tapiador del Dujo wrote:
> >>> Hi everyone,
> >>> I have an implementation issue about APP.
> >>>
> >>> I'm writting an APP enabled CMS [1]. This CMS accepts articles and
> >>> bookmarks,
> >>> among other types of content. It's not clear for me how should I
> >>> announce
> >>> these two types in the Service Document so any client is able to
> >>> distinguish
> >>> them.
> >>>
> >>> In a thread in Atom-Syntax [2] there is consensus about
> >>> representing bookmarks
> >>> as Atom Entries, so I think they should be announced as
> >>> application/atom+xml;type=entry. But this would prevent clients
> >>> that manage
> >>> both types, like Flock browser [3], to know where both types of
> >>> collections
> >>> are.
> >>
> >> Couldn't you have two collections, one named "Articles" and the other
> >> "Bookmarks"?  -Tim
> >
> > Yes, this is what I have right now.
> > My point is that the client is able to automatically connect the blogging
> > module with the Articles collection(s), and the favorites module with the
> > Bookmarks collection(s), after fetching the Service Document.
>
> This is more a convention than anything else IMO. I don't think having
> one media-type type parameter per use case is reasonnable.

But they are two diferent types of content, aren't they?
In articles, the relevant part of the information is the body, in bookmarks it 
is the link.

I'm not talking about the semantics of the collection, or the possible uses of 
a collection. Let's think about audio (podcasts). If the Service Document 
announces that certain collection accepts audio, the client will call 
apropiate programs / modules to manage audio.

> Maybe having 
> a rel="" attribute within the app:collection could be a nice idea in
> such case.
>
> <app:collection rel="bookmark">...</app:collection><app:collection
> rel="articles">...</app:collection>
>
> But then again this is not something the WG can decide anyway and it
> will come out after some experience in the field of the common use cases
> like yours. Browser and more generally APP client vendors will
> eventually sort this out.

Ok, just looking for more experiences / points of view :-)

Cheers.