Giter Club home page Giter Club logo

activity-schema's Introduction

This repository does contain a few specifications about publishing 
activity streams.
 

activity-schema's People

Contributors

apparentlymart avatar chrismessina avatar jasnell avatar kevinmarks avatar willnorris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

activity-schema's Issues

‘summary’ vs ‘content’

Objects have 'content' (the bulk) and 'summary', but activities have 'content'. I argue that an activity’s content is actually it’s object, and that having activity.summary as a short human readable summary of the activity would be more appropriate.

E.G. if I have:

note.summary = "This is a medium length, tweet-like note for use in an example. This is a medium length, tweet-like note for use in an example. It has a <a href="">HTML link</a> in."
note.displayName = "This is a medium length, tweet-like note for use in an example. This is a…"

It’s associated post activity should look like this:

activity.object = note
activity.summary = "This is a medium length, tweet-like note for use in an example. This is a…"
activity.title = "Barnaby posted a note"

(I have obviously left out various properties for brevity)

Representation of SCM repositories and commits?

Hi,

I've been playing with mroth/lolcommits, and making a plugin for e14n/pump.io, which uses ActivityStreams at its core. At the moment, I'm simply posting an image object with the commit message as its title/content, same as the Twitter plugins did, but @evanp suggested to use a more semantically-correct activity.

There doesn't seem to be any provision to represent repositories and commits so far, so I thought this issue could start a discussion about it.

In my understanding, we would need some basic concepts of repositories, which might need to be specialised for a specific SCM (e.g., Git, SVN, ...), and then add new verbs to represent commits (probably pushes too (see lolcommits/lolcommits#142). Aliases of “add” or “append” should do the trick.

Any thoughts?

Image Schema is not fully represented on Schema Doc

So I am working on a Cloud Foundry app that stores and resizes pictures with ImageMagick which can then be shared to the stream. I have the original photo, a stream sized photo and a thumbnail.
I went to the schema spec to lookup the latest JSON representation. I had a hard time finding it and even pinged Martin to help me look.
I cannot find the full representation here
http://activitystrea.ms/specs/json/schema/activity-schema.html

The net net is that the different Object Types are not linked from the top of the document or TOC as they used to a year ago as you can see here
http://activitystrea.ms/head/activity-schema.html

Overall the spec seems a bit confusing compared to what we had a while back that showed all the properties.
http://wiki.activitystrea.ms/w/page/23768198/Photo

Inconsistent use of 'title' and 'displayName'

The semantics of 'title' and 'name' are different. Name refers to the name of an object, title to how the name is displayed (e.g. the name of a book might be "The Hunting of the Snark" but 'title' refers to the physical manifestation of that).

So 'displayName' effectively equals 'title', as 'title' is the physical manifestation of a name.

`task` is ambiguous

The schema states that an AS task is an activity which has yet to be completed. What happens when the task is completed? Surely the object type should not change.

Verb examples do not match spec

In the examples the verbs are past tense:

justquick (actor) closed (verb) issue 2 (object) on django-activity-stream (target) 12 hours ago

But the spec the documentation says to use lists example verbs in present tense. The examples in the documentation also sometimes show a phrase but the spec always uses a single word or kebab-cased identifier. I believe the examples in the documentation should follow the spec to use verbs as a single word or as an identifier as it is more correct. This approach also makes for cleaner i8n.

Stream framework also leads with the infinitive https://stream-framework.readthedocs.io/en/latest/verbs.html.

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.