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 (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Technical Discussion
  3. The vocabulary part of #GoActivityPub is getting closer and closer to being able of generating and operating with custom #ActivityPub data types.

The vocabulary part of #GoActivityPub is getting closer and closer to being able of generating and operating with custom #ActivityPub data types.

Scheduled Pinned Locked Moved Technical Discussion
goactivitypubactivitypub
1 Cross-posts 11 Posts 6 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.
  • mariusor@metalhead.clubM mariusor@metalhead.club

    The vocabulary part of #GoActivityPub is getting closer and closer to being able of generating and operating with custom #ActivityPub data types.

    https://go-activitypub.federated.id/lib/rfc/code-generation.html

    fentiger@mastodon.socialF
    fentiger@mastodon.socialF
    fentiger@mastodon.social
    wrote last edited by
    #2

    @mariusor Have you seen @Steve_Bate 's ontology?

    https://github.com/steve-bate/activitypub-ontology

    I use this in addition to the JSON-LD context document. It gives you more type information as well as telling you which terms are valid in which objects, and some other stuff, not all of which I've been able to use.

    Some of the FEPs have similar data describing their custom terms too.

    (This way I'm generating struct definitions as an output, though, rather than using them as input.)

    mariusor@metalhead.clubM balcanquhal@tldr.nettime.orgB 2 Replies Last reply
    0
    • fentiger@mastodon.socialF fentiger@mastodon.social

      @mariusor Have you seen @Steve_Bate 's ontology?

      https://github.com/steve-bate/activitypub-ontology

      I use this in addition to the JSON-LD context document. It gives you more type information as well as telling you which terms are valid in which objects, and some other stuff, not all of which I've been able to use.

      Some of the FEPs have similar data describing their custom terms too.

      (This way I'm generating struct definitions as an output, though, rather than using them as input.)

      mariusor@metalhead.clubM
      mariusor@metalhead.clubM
      mariusor@metalhead.club
      wrote last edited by
      #3

      @FenTiger based on that graph, it's incorrect. Some type hierarchies are invalid: OrderedCollection is an Object not just a Thing, Application is not disjoint to Actor, etc.

      @Steve_Bate

      fentiger@mastodon.socialF 1 Reply Last reply
      0
      • mariusor@metalhead.clubM mariusor@metalhead.club

        @FenTiger based on that graph, it's incorrect. Some type hierarchies are invalid: OrderedCollection is an Object not just a Thing, Application is not disjoint to Actor, etc.

        @Steve_Bate

        fentiger@mastodon.socialF
        fentiger@mastodon.socialF
        fentiger@mastodon.social
        wrote last edited by
        #4

        @mariusor I've certainly had to adjust it in places to make things work.

        I've also been focusing far more on interoperability than theoretical correctness, and I'm sure I ended up deviating from the spec in all sorts of places...

        @Steve_Bate

        mariusor@metalhead.clubM 1 Reply Last reply
        0
        • mariusor@metalhead.clubM mariusor@metalhead.club

          The vocabulary part of #GoActivityPub is getting closer and closer to being able of generating and operating with custom #ActivityPub data types.

          https://go-activitypub.federated.id/lib/rfc/code-generation.html

          silverpill@mitra.socialS
          silverpill@mitra.socialS
          silverpill@mitra.social
          wrote last edited by
          #5

          @mariusor Just use JSON. Want a custom type?

          {
            "type": "MyType"
          }
          

          It's that simple.

          mariusor@metalhead.clubM 1 Reply Last reply
          0
          • fentiger@mastodon.socialF fentiger@mastodon.social

            @mariusor Have you seen @Steve_Bate 's ontology?

            https://github.com/steve-bate/activitypub-ontology

            I use this in addition to the JSON-LD context document. It gives you more type information as well as telling you which terms are valid in which objects, and some other stuff, not all of which I've been able to use.

            Some of the FEPs have similar data describing their custom terms too.

            (This way I'm generating struct definitions as an output, though, rather than using them as input.)

            balcanquhal@tldr.nettime.orgB
            balcanquhal@tldr.nettime.orgB
            balcanquhal@tldr.nettime.org
            wrote last edited by
            #6

            @FenTiger @mariusor @Steve_Bate

            To what extent does activitypub interoperate with the linked data / ontology world? I know it's based on JSON-LD but I'd like to know more. (I'm a PhD student partly in… ontologies!)

            jon@allmende.ioJ 1 Reply Last reply
            0
            • balcanquhal@tldr.nettime.orgB balcanquhal@tldr.nettime.org

              @FenTiger @mariusor @Steve_Bate

              To what extent does activitypub interoperate with the linked data / ontology world? I know it's based on JSON-LD but I'd like to know more. (I'm a PhD student partly in… ontologies!)

              jon@allmende.ioJ
              jon@allmende.ioJ
              jon@allmende.io
              wrote last edited by
              #7

              @balcanquhal

              For example the #valueflows ontology by @lynnfoster and @bhaugen is used in the #Flohmarkt app to instigate an 'Economiverse'.

              You can check the Schema Observatory for common uses.

              @FenTiger @mariusor @Steve_Bate

              1 Reply Last reply
              0
              • fentiger@mastodon.socialF fentiger@mastodon.social

                @mariusor I've certainly had to adjust it in places to make things work.

                I've also been focusing far more on interoperability than theoretical correctness, and I'm sure I ended up deviating from the spec in all sorts of places...

                @Steve_Bate

                mariusor@metalhead.clubM
                mariusor@metalhead.clubM
                mariusor@metalhead.club
                wrote last edited by
                #8

                @FenTiger I don't meant to start a fight but I think that focusing on interop - especially with Mastodon, with their wanton disregard of spec compliance - is the wrong move. The only way Mastodon will fix their shit is if there's a large enough mass of servers out there that serves them documents they don't handle correctly, and the users starts to complain. I can't do it alone. ❀

                @Steve_Bate

                fentiger@zotum.netF 1 Reply Last reply
                0
                • ? [[global:guest]] crossposted this topic to General Discussion
                • silverpill@mitra.socialS silverpill@mitra.social

                  @mariusor Just use JSON. Want a custom type?

                  {
                    "type": "MyType"
                  }
                  

                  It's that simple.

                  mariusor@metalhead.clubM
                  mariusor@metalhead.clubM
                  mariusor@metalhead.club
                  wrote last edited by
                  #9

                  @silverpill I appreciate the sentiment, but type in this was mostly about data structure, not object types. πŸ˜›

                  1 Reply Last reply
                  0
                  • mariusor@metalhead.clubM mariusor@metalhead.club

                    @FenTiger I don't meant to start a fight but I think that focusing on interop - especially with Mastodon, with their wanton disregard of spec compliance - is the wrong move. The only way Mastodon will fix their shit is if there's a large enough mass of servers out there that serves them documents they don't handle correctly, and the users starts to complain. I can't do it alone. ❀

                    @Steve_Bate

                    fentiger@zotum.netF
                    fentiger@zotum.netF
                    fentiger@zotum.net
                    wrote last edited by
                    #10
                    @marius I think that's a reasonable position to take, and in fact that's how I'm approaching the OAuth stuff, by following the OAuth WG specs to the letter and if that breaks compatibility with anyone else then that's their problem rather than mine πŸ˜‰

                    I just find the W3C/SWICG stuff to be very hard to interpret unambiguously, which makes it difficult to use as anything other than a guideline.
                    1 Reply Last reply
                    0
                    • fentiger@zotum.netF fentiger@zotum.net
                      @marius I think that's a reasonable position to take, and in fact that's how I'm approaching the OAuth stuff, by following the OAuth WG specs to the letter and if that breaks compatibility with anyone else then that's their problem rather than mine πŸ˜‰

                      I just find the W3C/SWICG stuff to be very hard to interpret unambiguously, which makes it difficult to use as anything other than a guideline.
                      mariusor@metalhead.clubM
                      mariusor@metalhead.clubM
                      mariusor@metalhead.club
                      wrote last edited by
                      #11

                      @fentiger sure, I don't mean that.

                      I'm thinking more about: send types other than Note, send more than 4 attachments, send mixed form attachments, support multiple attributedTo values, support multiple inReplyTo values, etc. Mastodon is bottom of the barrel for compatibility...

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better πŸ’—

                      Register Login
                      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