W3C home > Mailing lists > Public > public-hydra@w3.org > April 2016

Re: Extend describing operations

From: Asbjørn Ulsberg <asbjorn@ulsberg.no>
Date: Wed, 6 Apr 2016 21:20:14 +0200
Message-ID: <CAEdRHi4P=UrgMSbG4rvT58BpABRMoFNcTb9uSSoWZWpoMWJZjw@mail.gmail.com>
To: Markus Lanthaler <markus.lanthaler@gmx.net>
Cc: Tomasz Pluskiewicz <tomasz@t-code.pl>, Hydra <public-hydra@w3.org>
2016-04-05 22:24 GMT+02:00 Markus Lanthaler <markus.lanthaler@gmx.net>:

> On 13 Mrz 2016 at 16:50, Tomasz Pluskiewicz wrote:
>
>> 2. Should it be possible to have an operation not on self but on another
>> resource. This is what I could write to describe the publish operation
>> above:
>>
>> {
>>    "operation": [
>>      "@type": "PublishOperation",
>>      "url": "/blog/published",
>>      "body": { "@id": "/drafts/my-blog-post" }
>>    ]
>> }
>
> Yes, we should make that possible.

I agree.

> We just need to find a way to relate the resource to the operation then...
> the simplest solution would be to leverage schema.org/action for that.

Are you sure? https://schema.org/action:

> The movement the muscle generates.

;-)

I guess you didn't copy + paste that URL, because
https://schema.org/Action looks more like what we're after:

> An action performed by a direct agent and indirect participants upon a
> direct object.

:-)

>> I'm feeling kind of like the "/blog/published" resource should be a link
>> with it's own operation. I'm still not sure how what to do about the
>> predefined "body".
>
> The simplest approach would be to add a "status" property to the blog
> post.

Yes, and then PATCH it? Or expose it as a resource and PUT on it. Agree?

> [1] https://tools.ietf.org/html/draft-snell-link-method-12

Interesting. This updates the semantics of the methods already defined
in RFC 2068, afaict?

-- 
Asbjørn Ulsberg           -=|=-        asbjorn@ulsberg.no
«He's a loathsome offensive brute, yet I can't look away»
Received on Wednesday, 6 April 2016 19:20:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 6 April 2016 19:20:44 UTC