Giter VIP home page Giter VIP logo

Comments (7)

jasnell avatar jasnell commented on May 20, 2024

If I understand this suggestion correctly, there's no functional difference between the way Link Values currently work. You're mostly suggesting a change in how it is described in text. Is that correct?

from activitystreams.

erincandescent avatar erincandescent commented on May 20, 2024

Yes, other than this would permit tightening up the definition of e.g. the "object" property such that lists would be prohibited

from activitystreams.

jasnell avatar jasnell commented on May 20, 2024

There's no reason why the "object" property cannot be a list... there can be more than one direct object for an activity, e.g. "James read two books, 'Green Eggs and Ham' and 'The Cat in the Hat'".

{
  "actor": "acct:[email protected]",
  "verb": "read",
  "object": [
    {
      "objectType": "book",
      "displayName": "Green Eggs and Ham"
    },
    {
      "objectType": "book",
      "displayName": "The Cat in the Hat"
    }
  ]
}

from activitystreams.

jasnell avatar jasnell commented on May 20, 2024

I do agree, however, that there are at least some properties (e.g. "generator", "provider") that could be limited to single objects rather than permitting lists. But I'd wager that there are few such properties.

from activitystreams.

erincandescent avatar erincandescent commented on May 20, 2024

I would argue there that what you have done is read two books, which is two separate activities. While in theory the ability to associate two objects with an activity sounds nice, I just think it complicates implementations unnecessarily.

from activitystreams.

jasnell avatar jasnell commented on May 20, 2024

That depends entirely on the needs of the application ;-) ... I'm working with "rollup" use cases in which the ability to specify multiple actors and multiple objects is seen as a significant advantage. The ability to capture statements like "James read two books" or "James and 3 other people followed Arnaud and Tantek" using a single Activity statement can be quite powerful.

from activitystreams.

jasnell avatar jasnell commented on May 20, 2024

I believe this is addressed in the current vocab proposal.

from activitystreams.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.