Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Uncategorized
  3. I have deeply mixed feelings about #ActivityPub's adoption of JSON-LD, as someone who's spent way too long dealing with it while building #Fedify.

I have deeply mixed feelings about #ActivityPub's adoption of JSON-LD, as someone who's spent way too long dealing with it while building #Fedify.

Scheduled Pinned Locked Moved Uncategorized
fedifyjsonldfedidevactivitypub
46 Posts 17 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Vivien (toujours dans le déni)G Vivien (toujours dans le déni)

    @evan @cwebber @kopper @hongminhee Couldn’t we agree to standardize on expanded json-ld? We would not need any json-ld processor, we would not need to fetch or cache any context. There would be no way to shadow properties.

    Evan ProdromouE This user is from outside of this forum
    Evan ProdromouE This user is from outside of this forum
    Evan Prodromou
    wrote last edited by
    #41

    @gugurumbe @cwebber @kopper @hongminhee AS2 requires compacted JSON-LD.

    infinite love ⴳT 1 Reply Last reply
    0
    • Evan ProdromouE Evan Prodromou

      @gugurumbe @cwebber @kopper @hongminhee AS2 requires compacted JSON-LD.

      infinite love ⴳT This user is from outside of this forum
      infinite love ⴳT This user is from outside of this forum
      infinite love ⴳ
      wrote last edited by
      #42

      @evan @gugurumbe @cwebber @kopper @hongminhee only for terms defined in AS2, though?

      if the activitystreams context is missing in an application/activity+json document, then you MUST assume/inject it. this means you can't redefine "actor" to mean "actor in a movie".

      otherwise, you don't have to augment the context with anything else. "https://w3id.org/security#publicKey" is a valid property name. the proposal is to not augment the normative context where possible. no parsing context if there is no context

      Evan ProdromouE 1 Reply Last reply
      0
      • infinite love ⴳT infinite love ⴳ

        @evan @gugurumbe @cwebber @kopper @hongminhee only for terms defined in AS2, though?

        if the activitystreams context is missing in an application/activity+json document, then you MUST assume/inject it. this means you can't redefine "actor" to mean "actor in a movie".

        otherwise, you don't have to augment the context with anything else. "https://w3id.org/security#publicKey" is a valid property name. the proposal is to not augment the normative context where possible. no parsing context if there is no context

        Evan ProdromouE This user is from outside of this forum
        Evan ProdromouE This user is from outside of this forum
        Evan Prodromou
        wrote last edited by
        #43

        @trwnh i was replying to a post that wanted all expanded terms.

        @gugurumbe @cwebber @kopper @hongminhee

        Vivien (toujours dans le déni)G 1 Reply Last reply
        0
        • Evan ProdromouE Evan Prodromou

          @trwnh i was replying to a post that wanted all expanded terms.

          @gugurumbe @cwebber @kopper @hongminhee

          Vivien (toujours dans le déni)G This user is from outside of this forum
          Vivien (toujours dans le déni)G This user is from outside of this forum
          Vivien (toujours dans le déni)
          wrote last edited by
          #44

          @evan @trwnh @cwebber @kopper @hongminhee I think it would be great to have everything expanded besides the required as2 context.
          The results of the compaction algorithm would change if new things migrate into schema.org, so technically a document could become invalid or break without being modified, but this would be a lot better otherwise I guess.

          infinite love ⴳT 1 Reply Last reply
          1
          0
          • Vivien (toujours dans le déni)G Vivien (toujours dans le déni)

            @evan @trwnh @cwebber @kopper @hongminhee I think it would be great to have everything expanded besides the required as2 context.
            The results of the compaction algorithm would change if new things migrate into schema.org, so technically a document could become invalid or break without being modified, but this would be a lot better otherwise I guess.

            infinite love ⴳT This user is from outside of this forum
            infinite love ⴳT This user is from outside of this forum
            infinite love ⴳ
            wrote last edited by
            #45

            @gugurumbe @evan @cwebber @kopper @hongminhee yup, using full IRIs also has the advantage that ld-unaware processors only need to recognize 1 form instead of infinitely many.

            the thing is, we have semantics imported from the content type (activity+json) which can also change. which is why i think versioning the context document is also important -- it freezes the semantics at the time of publishing, like pinning your dependencies.

            without that, we might well have a simpler profile...

            Vivien (toujours dans le déni)G 1 Reply Last reply
            0
            • infinite love ⴳT infinite love ⴳ

              @gugurumbe @evan @cwebber @kopper @hongminhee yup, using full IRIs also has the advantage that ld-unaware processors only need to recognize 1 form instead of infinitely many.

              the thing is, we have semantics imported from the content type (activity+json) which can also change. which is why i think versioning the context document is also important -- it freezes the semantics at the time of publishing, like pinning your dependencies.

              without that, we might well have a simpler profile...

              Vivien (toujours dans le déni)G This user is from outside of this forum
              Vivien (toujours dans le déni)G This user is from outside of this forum
              Vivien (toujours dans le déni)
              wrote last edited by
              #46

              @trwnh as a paranoid person, I sometimes wonder what would happen if schema.org received a court order to partially censor its schema in certain regions of the world. Or inject a backdoor key. If it prevents people from sending memes across the geofence, it’s bad.

              1 Reply Last reply
              1
              0
              • R AodeRelay shared this topic
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups