This Gist implements a prototype vocabulary and Linked Data representation for resources from the BreweryDB API.
The wrapper supports most endpoints from the BreweryDB API serving a JSON-LD response by default. The JSON-LD representation is generated from the original JSON using the index.php script. Only requests made using GET method are currently supported.
Examples:
- http://breweryld.semaku.com/beers?abv=5
- http://breweryld.semaku.com/beer/CTKv9o
- http://breweryld.semaku.com/hops
- http://breweryld.semaku.com/hop/1
For debugging purposes a ?json
or ?debug
parameter can be added to the request URI to see the original JSON object or a dump of the PHP array respectively.
- Improve support subordinate resources like
/beers/{beerId}/breweries
- Full coverage for all possible embedded arrays and objects in all responses
- Improved support for predefined values like serving temperature and availability
- Extend vocabulary to cover all classes and properties from original data
- Futher extend vocabulary using terms from the Hydra Core Vocabulary
- Add support for more content types e.g. Turtle, RDF/XML, N-Triples