@heluecht @jaywink What's the thinking RE: talk.feneas.org/t/what-is-the-

I had designed go-fed to always generate JSON-LD contexts where non-AxtivityPub vocabularies are aliased so that there's no property name and no type name collisions between different things.

I'd like to standardize on that so we can be future proof for further RDF compatibility.

Don't know if @Gargron and @nightpool and @kaniini@spacepub.space would be interested as well.

@heluecht @jaywink @Gargron @nightpool @kaniini@spacepub.space Alternatively, the cats already out of the bag, and since no one really parses JSON-LD at runtime, we'll just standardize on what's already out there, I'll change go-fed, and we'll live with the possibility of vocab collisions. Which avoids painful migrations.

@cj @Gargron @jaywink @kaniini @nightpool Friendica is indeed using a JSON-LD library to compact the JSON. So an invalid JSON-LD will lead to parsing problems.

@cj I'm not sure I understand the question. The PR linked doesn't look like valid JSON-LD at all. Valid JSON-LD would look something like:

"@context": [
"sec": "w3id.org/security/v1"
"sec:publicKey": {
"id": "http://localhost:8080/api/v1/ap/actor/lukas#publicKey",
"sec:owner": "http://localhost:8080/api/v1/ap/actor/lukas",
"sec:publicKeyPem": "-----BEGIN PUBLIC KEY...",
"type": "sec:PublicKey"

@nightpool Thanks for pointing this out -- go-fed is definitely not propagating the default alias at serialization time, so that's a bug.

However my original question still stands --- if go-fed does alias the security context to "widsv" or anything else, can Mastodon et. al. (+cc @heluecht @jaywink ) handle deserializing that, or do they do non JSONLD deserializing and expect "publicKey" to never have a prefix?


@nightpool @heluecht @jaywink I basically either need to fix the bug or tell the code generator the "community standard" of context aliasing.

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!