Re: Understanding Activity Dialog

On 14 October 2012 08:16, Sandeep Shetty <sandeep.shetty@gmail.com> wrote:

> Hey Melvin,
>
> This is the least documented of the lot. I'm hoping to fix it while
> working on the proof of concept I mentioned earlier.
>
> So the first iteration of Activity Dialog is a quick hack and here is
> how it might work (say for example the "like" verb):
>

Got it thanks so for a like verb in simplest form is :

<#me>  i:likes  <resource>

Where #me is a Person ... i:likes is the namespaces predicate for liking
and <resource> is normally a webpage.

In my modelling I've gone for a like as a payment.

So this is very similar to the pingback/email fields (to, from, comment)

But I also add quantity, currency and a timestamp:

http://melvincarvalho.com/likes#1000000
→ rdf:type → http://payswarm.com/vocabs/commerce#Transferhttp://payswarm.com/vocabs/commerce#sourcehttp://melvincarvalho.com/#mehttp://payswarm.com/vocabs/commerce#amount → "1"
→ http://payswarm.com/vocabs/commerce#currency → like:likes
→ http://payswarm.com/vocabs/commerce#destinationhttp://www.youtube.com/watch?v=Cj6ho1-G6tw
→ rdfs:comment → "Like button clicked"
→ http://payswarm.com/vocabs/commerce#date → "2012-10-13T20:11:29Z"

Would be my likes example.

>From what I can see activity streams has it's own content type and looks
like:

  {
    "published": "2011-02-10T15:04:55Z",
    "actor": {
      "objectType" : "person",
      "id": "tag:example.org,2011:jane"
    },
    "verb": "like",
      "object": {
        "objectType":"photo",
        "url":"http://example.org/album/my_fluffy_cat.jpg"
      }
    }
  }

The first 2 I described are universal formats, you might think of them as
"web complete" ie they can be transformed into almost any other format, so
interoperable by design.  It will be interesting to see to what extent
activity streams can be made into a universal format to inteorperate too.

* The webapp you use to publish/consume content (Activity Web
> implementation) will give you a bookmarklet that you can add to your
> bookmarks bar.
>

Sounds good.  I can also make a bookmark to create likes.


> * When you visit a resource (profile page, blog post, image, video,
> etc.) you want to like, you click on the bookmarklet which opens up a
> popup window loading the Activity Dialog on your webapp which is just
> a form that lets you capture an activity. The Activity Dialog
> pre-fills the current URL as the Object URL for the activity and the
> title (if present) as the displayName. It uses your profile page (on
> the webapp) as the Actor URL and (for now) selects the verb "like".
> (The next version could have a drop-down for the verb and present
> other verbs, for example, allowing comments.)
>

Makes sense.


> * Publishing this activity happens on your webapp and it sends an
> Activity Pingback to the resource that was the object of the activity.
>

So to send you an activity pingback I need to:

1) determine you are following my like
2) discover your endpoint
3) transform my like into the format you need (if possible)

Does that sound about right?



>
> --
> Sandeep Shetty
>
>
> On Sat, Oct 13, 2012 at 4:38 PM, Melvin Carvalho
> <melvincarvalho@gmail.com> wrote:
> > HI Sandeep
> >
> > Thanks for providing some very well presented documentation.  I've been
> > looking at activity dialog.
> >
> > http://activitydialog.org/
> >
> > [[
> >
> > A method to open an Activity Dialog, a resource that the user controls,
> that
> > allows them to create an activity stream entry on their website, the
> object
> > of which can be any URI addressable resource. This could be implemented
> as a
> > simple bookmarklet that prefills the object of the activity with the
> current
> > URL and/or the selected text as content.
> >
> > The activity stream entry should trigger an Activity Pingback to the
> object
> > and a PubSubHubbub push for followers.
> >
> > ]]
> >
> >
> > I'm not 100% sure I've grasped the whole concept.  Would it be possible
> to
> > give an example or describe the user experience in a little more detail?
>

Received on Sunday, 14 October 2012 13:26:06 UTC