You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It remains to be seen how the community of not-really-linked-data implementations (which includes go-fed right now) will handle ActivityPub extensions.
Right now the behavior is: We set the alias to a literal known at code generation time. We don't expect others to use aliases. That's it.
So one idea is to code-generate the stuff that will be able to handle normalizing any aliases already in a payload (when adding new things), or setting it to a code-generation-time known default (if no alias has previously been used).
It's possible an entirely different solution is needed.
This is also a wider ActivityPub community convention question, one we haven't faced (yet).
The text was updated successfully, but these errors were encountered:
I worked on this half a year ago. I used github.com/piprate/json-gold/ld for it. It returns a list of normalized triples, that can map onto your structs.
At point I got really pissed about json-ld tho, when I discovered that the following is valid json-ld.
Also, note to self, this issue at code-generation time is the equivalent to what I thought I could do at runtime in issue #113 (which it can't, so that one is closed).
cjslep
changed the title
v1 tool improvement idea: @context alias normalization
astool tool improvement idea: @context alias normalization
Jul 5, 2020
It remains to be seen how the community of not-really-linked-data implementations (which includes go-fed right now) will handle ActivityPub extensions.
For example, will types be like:
or
Right now the behavior is: We set the alias to a literal known at code generation time. We don't expect others to use aliases. That's it.
So one idea is to code-generate the stuff that will be able to handle normalizing any aliases already in a payload (when adding new things), or setting it to a code-generation-time known default (if no alias has previously been used).
It's possible an entirely different solution is needed.
This is also a wider ActivityPub community convention question, one we haven't faced (yet).
The text was updated successfully, but these errors were encountered: