W3C home > Mailing lists > Public > public-hydra@w3.org > June 2014

hydra:returns for operations returning collections of class instances

From: Jindřich Mynarz <mynarzjindrich@gmail.com>
Date: Tue, 17 Jun 2014 10:29:31 +0200
Message-ID: <CAE=8Bu-mP_Tw9X-qQ5JC9RNV0QRuf4ZXSTN10rtDJ7Lf2sv0xw@mail.gmail.com>
To: public-hydra@w3.org
Hi,

if a hydra:Operation returns a hydra:Collection of instances of class
:Class, should the hydra:returns of the operation be set to
hydra:Collection or :Class?

For example, the Issue tracker demo
(http://www.markus-lanthaler.com/hydra/api-demo/vocab#) describes an
operation _:user_raised_issues_retrieve, which returns
hydra:Collection instead of vocab:Issue. Similarly, the
vocab:User/raisedIssues property, which supports this operation, is
defined with the rdfs:range set to hydra:Collection.

Is this a counter-measure for the issue of hydra:Collections
"breaking" relationships (ISSUE #41)?

- Jindřich

-- 
Jindřich Mynarz
http://mynarz.net/#jindrich
Received on Tuesday, 17 June 2014 08:30:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 15:53:59 UTC