I'm still not clear about the discussion we had yesterday. @evan are AS2 (and #ActivityPub) serializations JSON-LD or not? I see the AS2 spec says the serialization only has "“compatibility with JSON-LD” but must conform to JSON-LD algorithm requirements. I understand if it's JSON-LD, it is also JSON (but not necessarily the inverse). Like we discussed yesterday, JSON-LD is JSON and it's an RDF data model. JSON, in general, is neither JSON-LD nor an RDF data model.
This entry was edited (2 months ago)
This website is tracked using the Matomo analytics tool. If you do not want that your visits are logged in this way you can set a cookie to prevent Matomo / Piwik from tracking further visits of the site (opt-out).
Evan Prodromou
in reply to Steve Bate • • •they're JSON-LD because we needed an extension mechanism.
You can generate RDF triples if you really want. I think quads are even better.
But you can't read those triples to find the secret design intent of AS2. We designed it from JSON down, not from RDF up.
Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •you put an URL in your context array that says, "I support this extension."
Then, you use terms from that extension.
And, yes, I'm aware it can get a lot more complicated, but it doesn't have to.
Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Evan Prodromou • • •you were talking about whether activities you receive are "in" your inbox.
It's hard to say "where" a digital object is. In ActivityPub, it's very reasonable to say that the object only truly exists at the URL of its id, and everything else is a copy or reference.
But Collection objects can have JSON objects (copies) and/or URLs (references) in the items array. Saying those objects aren't really "in" the Collection is misleading. Using RDF triples to prove that the aren't is wrong.
Sarven Capadisli
in reply to Evan Prodromou • • •I'd add that even from a pure RDF graph perspective, it doesn't matter whether the object (activity) of a triple statement is a URI or a bnode (optionally the copy of all the triple statements about that object).
What typically matters is if the collection is "self-describing", i.e., the inbox URI (the Collection) is the subject, the lifecycle of the triple statement is expected to be under the control of the inbox owner. The URI owner essentially controls the statements any way.
Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •Evan Prodromou
in reply to Evan Prodromou • • •Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •Evan Prodromou
in reply to Evan Prodromou • • •Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •Evan Prodromou
in reply to Evan Prodromou • • •Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •so, it sounds like you want to believe in some kind of secret, hermeneutical ActivityPub that one can only understand if you cast enough RDF spells.
But there is no such secret formula. We made no pact with the RDF powers when we started using JSON-LD for AS2.
Evan Prodromou
in reply to Evan Prodromou • • •We created these types and structures to represent activities, actors and objects on social networks. An object with type Person represents a person. An object with type Video represents a video. An object with type Collection is a collection.
The RDF model is no more significant than the curly brackets and colons in the JSON.
Evan Prodromou
in reply to Evan Prodromou • • •also, I wonder if you've read the section on object representations in Chapter 2 of my book? It goes into a lot of detail about how these things interact.
https://www.oreilly.com/library/view/activitypub/9781098162733/
ActivityPub
O’Reilly Online Learningnaturzukunft
in reply to Evan Prodromou • • •Evan Prodromou
in reply to naturzukunft • • •bhaugen
in reply to Evan Prodromou • • •so if I want to read it now I need to sign up for an O'Reilly account? (10-day free trial?)
@naturzukunft @steve
naturzukunft
in reply to Evan Prodromou • • •naturzukunft
in reply to naturzukunft • • •Question:
Hi there, i would like to order the ActivityPub by Evan Prodromou ISBN: 9781098169466 as print version. Is this possible ?
Answer:
Hi Fred,
Thanks for contacting us. Unfortunately, this title has been canceled and can't be ordered. Please let me know if you have any questions.
Kind regards,
Paul | Senior Customer Support
Evan Prodromou
in reply to naturzukunft • • •Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •Evan Prodromou
in reply to Evan Prodromou • • •Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •Evan Prodromou
in reply to Steve Bate • • •Erin 💽✨
in reply to Evan Prodromou • • •I remember AS2 as JLD being part of the WG charter, and therefore not really up for discussion. Maybe that discussion was had before the invites went out, but it felt too me a bit like a mandate from "on high" (i.e. the W3C)
I regret how the JLD interop was specified in the spec though. I think we could have done better
Evan Prodromou
in reply to Erin 💽✨ • • •Steve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •Evan Prodromou
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Evan Prodromou • • •so, I did a gist that I think represents your original point, namely, that regardless of whether the object is represented as a JSON object or an URL in the `items` property array value of an AS2 `Collection`, the triple generated to represent the relationship of containment is the same. Is that roughly it?
https://gist.github.com/evanp/dc5f242aa4a2a6aab1f8b9977e4d04fc
Converting an AS2 collection from JSON-LD to n-quads
GistEvan Prodromou
in reply to Evan Prodromou • • •I can definitely agree with that, although it gets more complicated with paged collections. For AS2 and AP, this also shows a single note in a collection, but the RDF is not the same.
https://gist.github.com/evanp/86f81773d2a06eac91f67574f004500b
Paged collection
GistSteve Bate
in reply to Evan Prodromou • • •Evan Prodromou
in reply to Steve Bate • • •Steve Bate
in reply to Evan Prodromou • • •Linked Data Platform Paging 1.0
dvcs.w3.orgEvan Prodromou
in reply to Steve Bate • • •Steve Bate
in reply to Steve Bate • • •