Skip to content

Commit

Permalink
Merge pull request #200 from alien-mcl/feature/Enable_hydra_to_expect…
Browse files Browse the repository at this point in the history
…_and_return_non_RDF_resources

Enable hydra to expect and return non RDF resources
  • Loading branch information
alien-mcl authored Oct 9, 2019
2 parents 4942c17 + 9aceab6 commit adee1cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/latest/core/core.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
"subClassOf": { "@id": "rdfs:subClassOf", "@type": "@vocab" },
"subPropertyOf": { "@id": "rdfs:subPropertyOf", "@type": "@vocab" },
"seeAlso": { "@id": "rdfs:seeAlso", "@type": "@id" },
"domainIncludes": { "@id": "schema:domainIncludes", "@type": "@id" }
"domainIncludes": { "@id": "schema:domainIncludes", "@type": "@id" },
"rangeIncludes": { "@id": "schema:rangeIncludes", "@type": "@id" }
},
"@id": "http://www.w3.org/ns/hydra/core",
"@type": "owl:Ontology",
Expand Down Expand Up @@ -253,7 +254,8 @@
"label": "expects",
"comment": "The information expected by the Web API.",
"domain": "hydra:Operation",
"range": "hydra:Class",
"range": "hydra:Resource",
"rangeIncludes": ["hydra:Resource", "hydra:Class"],
"vs:term_status": "testing"
},
{
Expand All @@ -262,7 +264,8 @@
"label": "returns",
"comment": "The information returned by the Web API on success",
"domain": "hydra:Operation",
"range": "hydra:Class",
"range": "hydra:Resource",
"rangeIncludes": ["hydra:Resource", "hydra:Class"],
"vs:term_status": "testing"
},
{
Expand Down
5 changes: 5 additions & 0 deletions spec/latest/core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,11 @@ <h3>Documenting a Web API</h3>
user has the permission to delete the resource. Otherwise, the link
would simply be hidden in the representation.</p>

<p>Example shown below describes the operation's expected and returned
value as a dereferencable resource (an RDF resource of a given class),
but the vocabulary is not limited to only those originating
from RDF and is enabled to other types of resources.</p>

<pre class="example nohighlight" data-transform="updateExample"
title="Documenting the supported operations of link properties">
<!--
Expand Down

0 comments on commit adee1cf

Please sign in to comment.