Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
Skin
  • Chiaro
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Scuro
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Cerulean)
  • Nessuna skin
Collassa

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Technical Discussion
  4. Representing the cause of an activity

Representing the cause of an activity

Pianificato Fissato Bloccato Spostato Technical Discussion
7 Post 2 Autori 40 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • evan@activitypub.spaceundefined Questo utente è esterno a questo forum
    evan@activitypub.spaceundefined Questo utente è esterno a questo forum
    evan@activitypub.space
    scritto su ultima modifica di
    #1

    In Activity Streams 2.0, we can represent the result of an activity using the result property. Here, when the actor accepts a Follow activity, the result is that the follower is added to the actor's followers collection.

    {
       "@context": "https://www.w3.org/ns/activitystreams",
       "id": "https://social.example/accept/12931",
       "type": "Accept",
       "actor": "https://social.example/person/24405",
       "to": ["as:Public", "https://other.example/person/21356"],
       "object": {
          "id": "https://other.example/follow/30360",
          "type": "Follow",
          "to": ["as:Public", "https://social.example/person/24405"],
          "actor": "https://other.example/person/21356",
          "object": "https://social.example/person/24405"
       },
       "result": {
           "id": "https://social.example/add/11066",
           "type": "Add",
           "actor": "https://social.example/person/24405",
           "to": ["as:Public", "https://other.example/person/21356"],
           "object": "https://other.example/person/21356",
           "target": "https://social.example/person/24405/followers"
       }
    }
    

    My question is: how can the Add activity refer to the activity that caused it? I don't think we have a standard property for this. My best guess right now is context or maybe instrument, neither of which seems ideal. I think an extension inverse property, like resultOf, might be the best option.

    1 Risposta Ultima Risposta
    0
    • sivy@hachyderm.ioundefined Questo utente è esterno a questo forum
      sivy@hachyderm.ioundefined Questo utente è esterno a questo forum
      sivy@hachyderm.io
      scritto su ultima modifica di
      #2

      @evan hi Evan, I think we would need some examples of what you consider a cause to be in order to develop this idea further

      evan@activitypub.spaceundefined 1 Risposta Ultima Risposta
      0
      • sivy@hachyderm.ioundefined Questo utente è esterno a questo forum
        sivy@hachyderm.ioundefined Questo utente è esterno a questo forum
        sivy@hachyderm.io
        scritto su ultima modifica di
        #3

        @evan@activitypub.space @evan@cosocial.ca i.e. can another activity be considered a cause which raises the question of whether an activity stream stream can be considered a network graph delivered overtime

        1 Risposta Ultima Risposta
        0
        • sivy@hachyderm.ioundefined Questo utente è esterno a questo forum
          sivy@hachyderm.ioundefined Questo utente è esterno a questo forum
          sivy@hachyderm.io
          scritto su ultima modifica di
          #4

          @evan I don’t know just random driving thoughts

          1 Risposta Ultima Risposta
          0
          • sivy@hachyderm.ioundefined sivy@hachyderm.io

            @evan hi Evan, I think we would need some examples of what you consider a cause to be in order to develop this idea further

            evan@activitypub.spaceundefined Questo utente è esterno a questo forum
            evan@activitypub.spaceundefined Questo utente è esterno a questo forum
            evan@activitypub.space
            scritto su ultima modifica di
            #5

            sivy@hachyderm.io I used an example in my original post! The result property describes this relationship.

            https://www.w3.org/TR/activitystreams-vocabulary/#dfn-result

            Here are a few more:

            • When an actor arrives at a place, the actor updates their own location
            • When an actor likes an object, the actor adds the object to their liked collection
            • When an actor unfollows someone, the actor removes that someone from their following collection

            So, I see it particularly useful for the side-effects defined by ActivityPub, but there may be other good uses.

            1 Risposta Ultima Risposta
            0
            • sivy@hachyderm.ioundefined Questo utente è esterno a questo forum
              sivy@hachyderm.ioundefined Questo utente è esterno a questo forum
              sivy@hachyderm.io
              scritto su ultima modifica di
              #6

              @evan this is what happens when you read the fedi at stoplights.

              I'd think some kind of link to the "triggering" activity in the result.

              (I'm speaking from a very old and rusty memory of AP, but)

              Is a result an activity? Can it live on it's own? If not, it seems like a processor can make the assumption that object → result? Otherwise, a link to the triggering activity by id could work. But what to call that link? <shrugs>

              1 Risposta Ultima Risposta
              0
              • evan@activitypub.spaceundefined Questo utente è esterno a questo forum
                evan@activitypub.spaceundefined Questo utente è esterno a questo forum
                evan@activitypub.space
                scritto su ultima modifica di
                #7

                Dagnabbit. Here's a comment from 11 years ago on this topic!

                https://github.com/w3c/activitystreams/issues/20#issuecomment-58034202

                1 Risposta Ultima Risposta
                0

                Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

                Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

                Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

                Registrati Accedi
                Rispondi
                • Risposta alla discussione
                Effettua l'accesso per rispondere
                • Da Vecchi a Nuovi
                • Da Nuovi a Vecchi
                • Più Voti


                Feed RSS
                Representing the cause of an activity
                @pierobosio@soc.bosio.info
                V4.10.1 Contributors
                • Accedi

                • Accedi o registrati per effettuare la ricerca.
                • Primo post
                  Ultimo post