- From: Sam Goto <goto@google.com>
- Date: Mon, 15 Sep 2014 09:51:36 -0700
- To: ☮ elf Pavlik ☮ <perpetual-tripper@wwelves.org>
- Cc: W3C Web Schemas Task Force <public-vocabs@w3.org>
- Message-ID: <CAMtUnc59gy=FCOP+aE7FnP9n2owCV_ejwGuMBC10v6FKkmOR_w@mail.gmail.com>
On Sat, Sep 13, 2014 at 7:21 AM, ☮ elf Pavlik ☮ < perpetual-tripper@wwelves.org> wrote: > Howdy, > > I would appreciate some help with wrapping my mind around this aspect of > schema:Action. I will also need this understanding for comparison of > ActivityStreams 2.0 and Schema.org Action I work on - > http://www.w3.org/Social/track/actions/3 > > Following examples from: http://schema.org/docs/actions.html > (BTW my PR fixing small error there: http://git.io/1nHpZw ) > > > //request > > POST https://api.example.com/review > { > "@context": "http://schema.org", > "@type": "ReviewAction", > "object" : { > "@id": "http://example.com/movies/123" > }, > "result": { > "@type": "Review", > "reviewBody": "yada, yada, yada", > "reviewRating": { > "ratingValue": "4" > } > } > } > > // response > > { > "@context": "http://schema.org", > "@type": "ReviewAction", > "actionStatus": "CompletedActionStatus", > "result" : { > "@type": "Review", > "url": "http://example.com/reviews/abc" > } > } > > Two questions arise right away: > > 1. How Review */reviews/abc* can reference Action which created it? I > would find use for a property directly on Thing, maybe simply > "@reverse": "result" ? > right, although i'm not quite familiar with @reverse to know exactly how to use it. @danbri? > 2. In case we do above, performed Action would need a URI, assuming that > I mint one for each performed action, how do I manage changes to > *actionStatus*? Do I need to perform another Action to go from > *ActiveActionStatus* to *CompletedActionStatus*? > I'd imagine so, yes. But you probably meant to go from PotentialActionStatus to CompletedActionStatus, right? > > I will happily prepare another PR if we come up in this conversation > with something we find worth to capture! > > Thanks :) >
Received on Monday, 15 September 2014 16:52:07 UTC