-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
In addition to describing data structured using OWL (#13), which I find not too useful, I would also propose to define additional modelling terms to allow for additional ways of defining resource semantics.
For starters I propose two inverse properties, which I have been using to declare operations
hex:supportedByClass
a rdf:Property ;
owl:inverseOf hydra:supportedOperation ;
rdfs:domain hydra:Operation ;
rdfs:range hydra:Class ;
rdfs:comment "Allows creating supported operations with reverse relation with a hydra:Class"
.
hex:supportedByProperty
a rdf:Property ;
owl:inverseOf hydra:supportedOperation ;
rdfs:domain hydra:Operation ;
rdfs:range hydra:Link ;
rdfs:label "Operation supported by a (link) property" ;
rdfs:comment "Allows creating supported operations with reverse relation with a hydra:Link"
.This way I add operations to external terms, such as having a PUT on schema:Person without using it as subject, instead making such an operation a resource in its own right
<schema:Person/PutOperation>
a hydra:Operation , schema:UpdateAction ;
hex:supportedByClass schema:Person ;
hydra:method "PUT" ;
.Obviously, this will only work with server which understands OWL semantics but the client does not need any modifications.