- From: Tomasz Pluskiewicz <tomasz@t-code.pl>
- Date: Sun, 8 Nov 2020 21:18:08 +0100
- To: "public-hydra@w3.org" <public-hydra@w3.org>, Istiaq Hasan <istiaq.hasan@stud.uni-bamberg.de>
Hello Good to hear you’re using Hydra! Hope we will more from you as your project progresses. Now, I am not sure what you are trying to achieve. Hydra vocabulary is used predominantly to describe the API (in the form of ApiDocumenatation resource) as well as extend the representations to a degree (such as when you use the Collection class or inline hydra operations). The latter case is mostly to extend the representations send to the clients and would rarely have much impact on the requests coming back to the API. It’s like with the case of HTML Forms. The markup defines what kind of input it collect on a web page but it is typically not used by the server to validate the actual requests that originates from any given HTML form. If you are looking for way to validate the request payloads you could check SHACL. [1] You can trivially extend you ApiDocumentation to provide shapes which a an operation’s payload must conform to. It seems that SHACL will not likely become an integral part of Hydra, and could even be used completely independently if request validation is all you need (ie. without the client knowing). You might still refer to the issues #214 [2] and #215 [3] for some inspiration and discussion. Best, Tom [1]: https://www.w3.org/TR/shacl/ [2]: https://github.com/HydraCG/Specifications/issues/214 [3]: https://github.com/HydraCG/Specifications/issues/215 On 8 November 2020 at 21:02:24, Istiaq Hasan (istiaq.hasan@stud.uni-bamberg.de) wrote: > Hello Team, > > I am Istiaq Hasan, a student from University of Bamberg, Germany. > > I am using Hydra hypermedia in a project. I want to validate a response of a request against > the schema. I was looking for the Hydra schema unfortunately, I couldn't find one. > > I am wondering, https://www.w3.org/ns/hydra/core can be used as Hydra schema or not. > If this can't be used as Hydra Schema, it would be great if you can provide the link of Hydra > Schema. > > I am looking forward to hearing from you. > > Kind Regards, > Istiaq Hasan. > > >
Received on Sunday, 8 November 2020 20:18:31 UTC