This is really just an accident of the order in which decisions were
made. Originally we were calling all URLs "url" in the JSON
serialization, but then we added the "standard link" construct and I
debated a bunch whether to call it url to follow everything else or to
call it href to follow how links work elsewhere, and I ultimately
settled on "href" since that's the terminology used in Web Linking.
Amusingly, the permalink property was later renamed to "link" at some
point, muddling the terminology even more.
I think we have to do one of the following:
* Rename the property for Permalink URL back to "url" or
"permalinkUrl" (I think the former was preferred in earlier discussion)
and change the standard link property to be "url" along with it.
* Rename all of the link url properties to "href" to match Standard
Link and rename the Permalink URL property to "href" too.
Of these, I think I prefer the former in general, although it does erk
me a little bit to differ from the terminology in Web Linking for the
part of the spec that refers to it.
It does seem pretty strange to have both the singular "link" and the
plural "links" but have one mean something pretty different to the other.
(Also, that's not how the standard link construct is required to be
serialized per the current spec; the links are actually serialized as
separate arrays keyed on relation type to make it easy to quickly find
all of the ones with a given rel value without post-processing the data
structure.)
Target attributes are a set of key/value pairs that describe the link
or its target; for example, a media type hint. This specification
does not attempt to coordinate their names or use, but does provide
common target attributes for use in the Link HTTP header.
Finally, this specification does not define a general syntax for
expressing links, nor mandate a specific context for any given link;
it is expected that serialisations of links will specify both
aspects. One such serialisation is communication of links through
HTTP headers, specified in Section 5.
I think the de-facto standard for linking in JSON is still up for grabs
at this point, so I think we should primarily strive for internal
consistency in the activity streams serialization and appropriateness
for our use-cases rather than consistency with external specs and
protocols that are themselves still evolving.
--
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.
or..
preview-image: "http://photos.example.com/123"
as-in
rel: href
where rel has a domain/range, so in the case of "preview-image" the
range would be something that is an image.
--