...only about subsets/supersets and duplicates...

Antone Roundy wrote:
@rel="subset-of"

@rel="superset"?

We've already got a way to handle aggregations from multiple sources.
Do we want to allow people to choose to just use a "secondary-to" link to express that relationship rather than atom:source-feed with it's copy of the feed metadata?

atom:source must not contain a copy of the whole original feed's metadata, only the metadata required in atom:feed are (should be?) required in atom:source.


(Yes, I know I previously said the whole metadata should be copied, I
now think it was a mistake: copy only what you want to copy, as long as
you copy the minimum required metadata)

Strict subsets on the other hand might have very different feed level
metadata, which would make using atom:source-feed to express them as
aggregations (even though they're from a single source) more technically accurate. But since each entry would have to have an identical copy of atom:source-feed in that case, it would be a little
sloppy.

Might we add an "internal reference" system?

<atom:feed xmlns:atom="...">
...
<atom:source id="another-feed">
  <!-- another feed's metadata -->
</atom:source>
<atom:entry>
   <atom:source ref="another-feed" />
   ...
</atom:entry>
...
</atom:feed>

Problems:
 - if we allow this for atom:source, we might as well allow it for
person constructs (e.g. all entry authors are listed in the feed's
contributors and referenced by entries atom:author or contributors; this
prevents duplication of person constructs describing the same constructs)
 - this is a big enhancement to the spec and won't do it for Atom 1.0

An alternative would be to use a link element with @rel="superset"
telling aggregators that the entries in this feeds are copies of entries
in the linked feed. Entries with the same atom:id would then be
considered duplicates and only the "superset" feed would have
"authority": if an entry is said to have been updated in the subset feed
but not in the superset feed, it might be an "attack", so ignore it.
Same if an entry has been added to the subset feed without appearing in
the superset feed (problem: an entry could "disappear" from the superset
feed due to many newer entries "pushing the entry towards the exit").
Actually, if both the superset and subset feeds are used in
aggregations, the subset feed would only be used to list the entries
(from the superset feed) which compose the subset.
Such a link MUST then be copied in an atom:source element when the subset feed is used in aggregations... and this obviously complicates the aggregation process: some links MUST be copied, others only SHOULD or MAY, depending on their @rel value... To simplify this process, the solution would be that link @rel="superset" doesn't prevent you from using atom:source, which brings us back to the beginning...


A feed might also lists its subsets (e.g. category feeds) using link
elements with @rel="subset", though this list would only be informative,
without the aggregating rules above (preventing from "attacks": I create
a feed that declares another feed as a subset in order for my entries to
take precedence over the "real feed" entries).

Conclusion: all this should IMHO be delayed until the next Atom version... People will probably create extension elements and time will tell us about their advantages and drawbacks, then the Atom WG would be able to choose what to include in the Atom spec.

--
Thomas Broyer



Reply via email to