hydra:returns for operations returning collections of class instances

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