-
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
url
is defined as @type: @id
in the context document which precludes use of xsd:anyURI values
#596
Comments
that seems overly pedantic. Has this caused a problem for any implementor
ever? Or is this just a "spec cleanliness" problem? Priority of
Constituencies says that we shouldn't make the implementation for consumers
super complicated just to fix some obscure linked data theory issue that
nobody notices in practice
…On Mon, Apr 29, 2024, 8:48 AM a ***@***.***> wrote:
w3c/activitypub#375 (comment)
<w3c/activitypub#375 (comment)>
The AS2-Vocab normative spec defines url as Link | xsd:anyUri
The AS2 context document defines url as @type: @id which disallows use of
values (so no @type: @value)
Conclusions:
- Maybe define urlValue as a term with @type: xsd:anyUri
- Provide guidance for producers that url must always point to a Link
node, and thus when referred to by @id alone after compaction, should
respond with a Link node if content negotiation is used
—
Reply to this email directly, view it on GitHub
<#596>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABZCVYBARY5CV4DHGBP7VTY7ZFR7AVCNFSM6AAAAABG6L5JSWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DSMJQGMYTGOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@nightpool this actually simplifies things for consumers, in that they no longer have to deal with the question of "wait, is this just a uri or can i fetch it and get more info about the Link?” if producers are doing the right thing, the answer should always be "yes, you can fetch more info, it is always a Link". consumers now only have to deal with handling the "embedded or not" issue. i'd actually go further and say that producers should consider making Links always be embedded |
This does cause problems in some contexts, especially for linked-data consumers, but even for JSON-only consumers (long discussion in #498, which you participated in back in 2018). Like @trwnh said, when a developer sees a non-embedded (Warning: potentially obscure linked data discussion follows...) The It's difficult to make sense of it, but the |
url
is defined as @type: @id
in the contdxt document which precludes use of xsd:anyUri valuesurl
is defined as @type: @id
in the context document which precludes use of xsd:anyUri values
So we have a problem here, in that the text is canonical, but the specification is not realisable in JSON-LD. Unfortunately, we do have examples in the text using both We think that a bare URL will work here, but the implication is that it is the URL for a |
One thing that's important to recognize is that @trwnh is recommending that even when an URL looks like an URL for a binary representation, like an image, it should still return Activity Streams 2.0
I think this is a nice solution and would be good to add to the Primer page. |
url
is defined as @type: @id
in the context document which precludes use of xsd:anyUri valuesurl
is defined as @type: @id
in the context document which precludes use of xsd:anyURI values
w3c/activitypub#375 (comment)
The AS2-Vocab normative spec defines
url
as Link | xsd:anyUriThe AS2 context document defines
url
as@type: @id
which disallows use of values (so no@type: @value
)Conclusions:
urlValue
as a term with@type: xsd:anyURI
url
must always point to a Link node, and thus when referred to by@id
alone after compaction, should respond with a Link node if content negotiation is usedThe text was updated successfully, but these errors were encountered: