-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please mention the fragment identifier requirements for ActivityStreams media type #610
Comments
I don't think that JSON-LD actually has a mechanism for resolving parts of a JSON-LD document using fragment identifiers. We give some tips here: https://www.w3.org/wiki/ActivityPub/Primer/Object_identifiers#Fragments but it's not well-defined. The JSON-LD spec does have a definition for referring to JSON-LD embedded with a <script> tag within an HTML document. https://www.w3.org/TR/json-ld11/#locating-a-specific-json-ld-script-element I don't think it's easy for ActivityPub processors (clients or servers) to reference AS2 this way, but I could see using it for embedding AS2 objects into a Web app that the local JavaScript could use. However, in this case, using the same |
you can see it defined under IANA considerations - JSON-LD 1.1, where it says:
|
also related: w3c/activitypub#367 Lots of good ideas there, but no single obvious consensus answer, and I suspect there won't be one any time soon. It's great that JSON-LD specifies fragment handling! But that's not an answer for AP or AS2, since afaik neither of those requires (or is, strictly speaking) JSON-LD. From the primer page:
(Obviously other fragment standards exist, as you all are discussing, so I expect the wording here means "AP itself doesn't have a standard defined.") |
unfortunately, if you're using |
Maybe! That's a big if, since much of the fediverse is on Mime types are useful! But it seems like a bit of a stretch to say that they'd mandate that much expectation (requirement) of behavior here. |
it might be useful to raise this issue on art@ietf or thereabouts, then. they probably know more about this stuff than we do. |
Whether "much" of the "fediverse" is "on" (or off) JSON-LD is not relevant to this issue. AFAICT, "much" of the AP-verse is using fragment identifiers in As there is publicly verifiable deployment out there, the editorial (or other) feedback requested in this issue is I think fairly valid. Moreover, "much" of the AP-verse appears to use JSON-LD and finds it compatible (as per AP and AS Core). Anecdotal evidence from a server using the Mastodon implementation FWIW :
Successful response including JSON-LD context. Equivalent representation (content-type, content-length, etag..) with identical JSON-LD content at:
|
I guess we have two options here. Since |
Specifically, we should add a section on Fragment Identifier Requirements. i think we have a choice between following jsonld requirements, eg no meaning except identity, or adding a way to look up a property of the resource. |
Sounds like this issue is evolving into more or less the same question as w3c/activitypub#367 ? I'm happy to merge them if so. ...oh, they're re the two different specs. OK. Even so, might be worth addressing them together, and then afterward deciding which language to add to which spec, or errata, or primers, etc. |
AP servers and clients conform to RFC 7231 and RFC 3986/3987, so by definition, they can work with fragment identifiers when necessary. Any software generating or consuming content using AS2 is expected to understand "anyURI" (which optionally includes fragment identifiers). AP and AS2 already have strong compatibility with JSON-LD, so I believe deferring to JSON-LD for fragment identifiers will maintain that alignment without introducing any additional constraints or definitions. Aside: AS2 also doesn't constrain the URI scheme for the Servers have always had the right, and can still impose their own constraints on a request target by rejecting the request with a |
Please Indicate One:
Please Describe the Issue:
JSON-LD specifies the fragment identifier, ActivityStreams does not. if the media types are intended to be synonymous, then they should probably follow the same fragment identifier rules.
not doing so would lead to all sorts of interoperability issues.
The text was updated successfully, but these errors were encountered: