A few additional updates to the proposed 2.0 update. This adds in the IETF boilerplate and folds in the audience targeting and replies extensions.
https://github.com/jasnell/json-activity/commit/7e35e50a213499e528b6a05d58eff910e593078f
On Jun 11, 2013 3:43 PM, "Markus Lanthaler" <markus.l...@gmx.net> wrote:
>
[snip]
> >>
> >
> > The alias is a local identifier. In my use cases, this is typically
> > something like "@public". Let's define it strictly to be a possibly
> > relative IRI.
>
> But it isn't intended to be resolved to an absolute IRI, right?
>
>
Not in any case I am aware of.
> >> I use the following URL as the prefix for all properties (namespace URL)
> >> http://activitystrea.ms/spec/2.0/#
> >>
> >> The hash at the end allows to put a machine-readable description of all
> >> properties in a single file. Here's a first (still very rough) version of
> >> such a machine-readable description in JSON-LD:
> >> https://raw.github.com/lanthaler/json-activity/master/vocab.jsonld
> >>
> >> I think if AS 2.0 is going to adopt JSON-LD, it should be required to
> >> include a reference to a context (probably hosted somewhere on a
> >> activitystrea.ms) to signal that, e.g.:
> >>
> >> "@context": "http://activitystrea.ms/spec/2.0/"
> >>
> >> This can be safely ignored by all clients not using a document as
> JSON-LD.
> >
> > Well, the goal is json-ld compatibility, not necessarily json-ld
> > dependency. Perhaps we can call this out in the spec as a MAY include.
>
> Yeah, that's how I see it as well. However, without linking to the context,
> no off-the-shelf JSON-LD processor would be able to make sense out of the
> data.
>
> This doesn't add a dependency on JSON-LD though. The structure of the data
> etc. will still be defined by the AS spec and everything can still be
> interpreted without even knowing that it is JSON-LD or what that @context is
> about.
>
Please correct me if I'm wrong, but it's possible to link the @context using a link header too, correct?