> --
> You received this message because you are subscribed to the Google Groups "Activity Streams" group.
> To post to this group, send email to activity...@googlegroups.com.
> To unsubscribe from this group, send email to activity-strea...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/activity-streams?hl=en.
>
>
It seems wrong for us to monopolize the whole application/json MIME
type; Activity Streams isn't the only JSON format out there.
I would suggest we follow Atom's lead and establish a new MIME type for
our particular JSON schema:
application/activitystream+json
We probably should've "registered" this in the JSON Activity Streams
spec itself, but I'm sure we could add it in errata now that the spec is
final.
(and we should probably also pursue an official registration with IANA
too, for the sake of completeness.)
<link rel="alternate" type="application/stream+json"
href="http://dbounds.glow.io/profile/feed?format=json"/>
> --
> You received this message because you are subscribed to the Google Groups "Activity Streams" group.
> To post to this group, send email to activity...@googlegroups.com.
> To unsubscribe from this group, send email to activity-strea...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/activity-streams?hl=en.
>
>
--
Thank you,
Darren Bounds
I have no wish to bikeshed about exactly what the MIME type is, as long
as we don't use application/json.
I think "activitystream" is better than "stream" because you can make
streams of more than just activities, but it doesn't really make much
difference as long as we register it so that others are less likely to
conflict.
--
You received this message because you are subscribed to the Google Groups "Activity Streams" group.
To post to this group, send email to activity...@googlegroups.com.
To unsubscribe from this group, send email to activity-strea...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activity-streams?hl=en.
On Thu, Jun 23, 2011 at 9:29 AM, Pelle Wessman <voxp...@gmail.com> wrote:
> <link rel="activitystream" type="application/json"
> href="http://identi.ca/main/xrd?uri=voxp...@identi.ca" />
>
> The "alternate" relation means that the resource is an alternate
> representation of the current page - will all referenced streams be that?
> Linked RSS-feeds often aren't alternate representations of the page but
> rather more loosely related - I think the same would be true here.
I agree with you. Reading
http://www.w3.org/TR/html40/struct/links.html#h-12.3.3 and
http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#rel-alternate
it seems to me that we're overusing the 'alternate' keyword here,
because activitiystreams grew beyond being just an alternative
representation of a user's static profile page. 'alternate' makes
sense as a word in the case of the same document in a print-format, or
in a different natural language. But a person's activitystream is not
an alternative representation of that person's online profile.
It sort of depends, I guess. If the original page is already a sort of
stream (as is the case with a blog and with a microblog), then it
makes sense. But the changelog of a wikipedia page is not an
alternative representation of that same page, because the original
page itself has the character of a snapshot and not of a stream. It's
a subjective line to draw, I think.
Does anybody know how to sensibly formulate a link from a static page
(not a blog or "streamy" page) to the activitystream of its changelog?
Good point, Pelle!
>
> Also - wouldn't it be good if the relation we choose to use here could also
> be reused in eg. WebFinger documents which currently also lack a generic way
> of discovering an activity stream?
Yeah, it's like this beautiful Woody Allen quote: "we are, in fact,
the sum total of our choices". Except we're not! :)
Like saying, what you do and what you are is the same thing. But I
agree with you here that these two things are different. There's a
difference between "me, now", and "news about me, over time". A
separation between the two concepts would be a definite "nice to
have", I think.
>
> Lastly: Anyone thought of instead of directly including the reference to an
> activity stream feed instead do something like referencing a XRD/WebFinger
> document through an lrdd-relation like:
>
> <link rel="lrdd" href="http://identi.ca/main/xrd?uri=voxp...@identi.ca" />
that seems confusing to me, because then the lrdd of the page is
hardlinked to be the same as the lrdd of voxp...@identi.ca. So if you
then add a 'hair colour' element to the lrdd of voxp...@identi.ca,
then this page with the lrdd link in it suddenly becomes a web page
with a hair colour. :) Would you want to do this on pages that
describe a person, or on pages that are authored by a specific person?
If I write a webpage about you, would I point it to your webfinger or
to my own one? I think rel='lrdd' leaves that unclear.
> That way one could easily reference activity streams with a wide range of
> relations - both generic ones as the one we discuss here and more specific
> ones for more specific kind of streams.
Yes, specific activitystreams! What's happening with that? Is there a
way to represent filtered versions of an activitystream, for instance
only a shortlist of verbs you're interested in?
Disclaimer (repeated): I'm only writing what i think, in case it helps
with the discussion. If it doesn't, then just ignore me. :)
Cheers!
Michiel
Registering a new "rel" keyword seems fine, but we should probably call
it "activities" instead of "activitystream", for consistency with how
link relations are normally named.
So,
<link
rel="activities"
type="application/activitystream+json"
href="http://www.example.com/xml/index.json" />
means:
The resource "http://www.example.com/xml/index.json" contains the
activities for this page in application/activitystream+json format.
(I'm not presumptuous enough to think that Activity Streams JSON will be
the last JSON schema for activities, so I think we should still use a
more specific type than application/json; in the normal case rel
keywords should be orthogonal to types.)