Skip to content

Additional terms using OWL semantics #16

@tpluscode

Description

@tpluscode

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions