-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter enumeration #161
Comments
If that knowledge (managers) is not exposed by the server, I believe there are few limited options here:
Generally, variable mapping only says on which property given value will be used by the server for filtering - it does not say where this value should come from. |
I remember now my problem with current way of filling in the IRI templates. What if the search query for managers was using concrete URIs but manager's name? {
"mapping": [{
"variable": "managerName",
"property": "schema:name" // ??
}]
} Almost like a free text query but the |
Yep - we had this discussion on last call. |
Yeah, this is a known issue. The semantics of IRI template variables aren't well defined at the moment. See also #45. |
In this use case, I probably would prefer Triple Pattern Fragment https://www.hydra-cg.com/spec/latest/triple-pattern-fragments/#controls rather than approach it as filtering a collection using some crazy IriTemplate
You can see LDF client http://client.linkeddatafragments.org/ having something similar as the default example: DIrectors of movies starring 'Brad Pitt' Use case you mention here seems even simpler and comparable to just Movies starring 'Brad Pitt' - Events managed by 'Jane Doe' |
What's crazy about IRI Templates? It's a standard way for letting client mint the URIs. While imposing TPF/LDF is just dumping another load of knowledge required on top of JSON-LD/Hydra. I don't think it's useful to devs coming outside of our circle |
I didn't call IRI Templates crazy in general. TPF/LDF use IRI Template but rather simple one and seems to cover use case: Events managed by 'Jane Doe' in IMO elegant way. |
I strongly agree with @tpluscode. I'd prefer to move towards some more generic request templating mechanism, where server would define what goes where (i.e. this value goes into the body, this into the header and that into an URL). I recall we've touched this approach during the last call as it would bind all pieces altogether (operation extended with a body/header template as a description of the request, IRI template as description of the URL and action as semantic description of what is going to happen). |
Hello,
Imagine the following call (inspired by filtering events):
HTTP 200 OK
How can the client be aware of what manager he can ask for ? Considering it may be many kind of manager and he can't access to the endpoint
/api/managers
for security reasons (imagine not all manager are public or related to events).The text was updated successfully, but these errors were encountered: