-
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
Operation linked to class and property #156
Comments
@bergos, any update on the clarification of this issue? |
Here is a complete example, which should be easier to understand without knowing the ontology. There are two classes
Different properties could be used, but that's not always possible if a third party ontology is used and no custom properties should be used.
|
@bergos does this issue only stay relevant for |
@elf-pavlik you are right, it should work outside Are there any examples for hypermedia controls in the resources itself? Which clients support that feature? I'm not aware that this feature is mentioned explicitly in the spec or other documents. If that's the solution, than the feature should be more official. |
One example here: https://www.hydra-cg.com/spec/latest/triple-pattern-fragments/#controls Some background: https://ruben.verborgh.org/blog/2015/10/06/turtles-all-the-way-down/ Also use cases we recently work on start having hypermedia controls inline, see During last telecon we discussed if we should have ApiDocumentation and inline controls covering exactly the same set of use cases. While we found this possibility attractive we also stay open that inline controls may cover some cases which ApiDocumentation can't. Your use case might turn out one of those. |
At the moment it is not possible to define different operations for the same property, but different classes. Maybe it's a design choice, but it make the API design a little bit more difficult for some use cases.
For example the Data Cube points for
DataSet
to aSlice
using theslice
property. Theexpects
looks different for each dataset, but always theslice
property should be used to point to the dynamically filtered data. It's solved now by using different custom slice properties. With OWL it would be possible to link from the custom slice properties to the original one. But that requires a client to understand OWL. One option would be moving thesupportedOperation
to thesupportedProperty
level.Is this a use case which should be covered or was it a design choice that properties must always support the same operations?
Example with custom slice property:
Example with
supportedOperation
on thesupportedProperty
level:The text was updated successfully, but these errors were encountered: