Skip to content

Commit

Permalink
Remove @vocab and hydra prefix from JSON-LD context (#17)
Browse files Browse the repository at this point in the history
* remove @vocab and hydra prefix from JSON-LD context
* use JSON-LD trick suggested by @lanthaler
  • Loading branch information
elf-pavlik authored and lanthaler committed Sep 27, 2017
1 parent abb69dd commit af45e21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/DataModel/JsonLd/context.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"@context": {
"@context": [{
"iri": "@id",
"isA": "@type",
"@vocab": "http://www.w3.org/ns/hydra/core#",
"hydra": "http://www.w3.org/ns/hydra/core#",
"operations": "hydra:operation",
"supportedClasses": {
Expand All @@ -22,7 +21,8 @@
"@id": "hydra:member",
"@container": "@set"
},
"http://www.w3.org/ns/hydra/core#Collection": "http://www.w3.org/ns/hydra/core#Collection",
"http://www.w3.org/ns/hydra/core#Resource": "http://www.w3.org/ns/hydra/core#Resource"
}
}
"totalItems": "hydra:totalItems"
},{
"hydra": null
}]
}
2 changes: 1 addition & 1 deletion tests/DataModel/JsonLd/JsonLdMetadataProvider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ describe("Given instance of the JsonLdHypermediaProcessor class", function() {
afterEach(function() {
(<any>HydraClient)._hypermediaProcessors = this.hypermediaProcessors;
});
});
});

0 comments on commit af45e21

Please sign in to comment.