- From: Tomasz Pluskiewicz via GitHub <sysbot+gh@w3.org>
- Date: Sun, 05 Nov 2017 18:07:44 +0000
- To: public-hydra-logs@w3.org
I'm not sure what you're asking actually.
Wrt the user case, I think that we lack a way to determine what is the data type of IriTemplate's variables. For example, you could get a template to filter a collection by selecting `/events` from a single year
``` json
{
"@type": "IriTemplate",
"template": "/api/events{?year}",
"mapping": [
{
"@type": "IriTemplateMapping",
"variable": "year",
"property": "??"
}
]
}
```
There is no sensible term to put as `hydra:property` because the year doesn't necessarily have to be a property of an `Event`. In such case how does the client know that the `year` variable should represent a year. And display the form control accordingly using some date picker etc.
--
GitHub Notification of comment by tpluscode
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/145#issuecomment-341992763 using your GitHub account
Received on Sunday, 5 November 2017 18:07:45 UTC