Re: [Specifications] Allow hydra:returns on IriTemplate?

I think this is not such a great idea to overload `hydra:returns`. Currently is has `rdfs:domain` set to `hydra:Operation` and it makes perfect sense. The template itself is not what "returns" anything.

I think we need a specialised property for that, or encourage the use of `GET`. Maybe combined with `schema:FindAction`?

``` json
{
  "@type": "IriTemplate",
  "template": "http://example.com/person{?name},
  "operations": [
    {
      "@type": [ "Operation", "schema:FindAction" ],
      "method": "GET",
      "returns": "ex:Person"
    }
  ]
}
```

-- 
GitHub Notification of comment by tpluscode
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/50#issuecomment-341972115 using your GitHub account

Received on Sunday, 5 November 2017 13:11:32 UTC