Re: [Specifications] Specifying operations on TemplatedLink objects

AFAIK `hydra:Link` is just a property. It is a hint for a hydra client which tells that client that it can expect something interesting when dereferencing the linked resource.

The `hydra:TemplatedLink` on the other hand doesn't link to a specific resource but to a whole range of resources whose URIs are constructed by substituting the template variables.

In other words, I think of `hydra:Link` as part of your domain graph. The template however, is hydra-specific way to have the client construct URLs which cannot be supplied by the server. Links connect resources two resources in an API. Templated link connects a resource and a `hydra:IriTemplate`

> Where should the `{ "@type": "hydra:IriTemplate" }` be specified?

You mean in the events API? I don't see a templated link there. But in general, you use it with templated link as in the `hydra:search` snippet above.

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

Received on Tuesday, 25 April 2017 08:48:59 UTC