Hydra: A Vocabulary for Hypermedia-Driven Web APIs

Hydra
AVocabulary for HypermediaAPIs
Markus Lanthaler
Graz University ofTechnology
Why can’t Web APIs be browsed?
- Layered system
REST + Linked Data: a match made!?
Hydra: A Vocabulary for Hypermedia-Driven Web APIs
Resource
Link
Form
Class
rdfs:Resource
rdf:Property
rdfs:Class
Operation
Resource
Link
Form
Class
rdfs:Resource
rdf:Property
rdfs:Class
Operation
Templated
Hydra: A Vocabulary for Hypermedia-Driven Web APIs
{
"id": "cso29ax",
"title": "LDOW2013 presentation",
"description": "Prepare LDOW2013 presentation",
"is_open": true,
"created_at": "2012-11-26T04:49:44Z",
"comments": "/issues/cso29ax/comments/"
}
http://example.com/issues/cso29ax
{
"@context": "/ctx/context.jsonld",
"id": "cso29ax",
"title": "LDOW2013 presentation",
"description": "Prepare LDOW2013 presentation",
"is_open": true,
"created_at": "2012-11-26T04:49:44Z",
"comments": "/issues/cso29ax/comments/"
}
http://example.com/issues/cso29ax
{
"@id": "#comments",
"@type": "hydra:Link",
...
}
{
"@id": "#comments",
"@type": "hydra:Link",
"supportedOperations": [
{
"@id": "#create-comment",
"@type": "hydra:CreateResourceOperation",
"label": "Creates a new comment",
"method": "POST",
"expects": "#Comment",
"returns": "#Comment"
}
]
}
{
"@id": "#Comment",
"@type": "hydra:Class",
"supportedProperties": [
{
"property": "#text",
"required": true,
"readonly": false,
"writeonly": false
}
]
}
Hydra Console
Hydra: A Vocabulary for Hypermedia-Driven Web APIs
© 2013, Markus Lanthaler. Some Rights Reserved.
http://creativecommons.org/licenses/by-nc-sa/3.0/
Thank You
Questions?
Markus Lanthaler
http://www.markus-lanthaler.com
@MarkusLanthaler
mail@markus-lanthaler.com
Image Credits
(1) http://www.flickr.com/photos/ecstaticist/3650101568/
(2) http://www.flickr.com/photos/eole/8138645952/
(5) http://www.vonwong.com/ (with permission)
1 of 17

More Related Content

What's hot(20)

HTTP and Your Angry DogHTTP and Your Angry Dog
HTTP and Your Angry Dog
Ross Tuck10.3K views
Graphql presentationGraphql presentation
Graphql presentation
Vibhor Grover2.5K views
Full-on Hypermedia APIs with HydraFull-on Hypermedia APIs with Hydra
Full-on Hypermedia APIs with Hydra
Markus Lanthaler14.2K views
MongoDB FundamentalsMongoDB Fundamentals
MongoDB Fundamentals
MongoDB1.8K views
SHACL by exampleSHACL by example
SHACL by example
Jose Emilio Labra Gayo13.6K views
MongoDB Aggregation MongoDB Aggregation
MongoDB Aggregation
Amit Ghosh234 views
Building Modern APIs with GraphQLBuilding Modern APIs with GraphQL
Building Modern APIs with GraphQL
Amazon Web Services952 views
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
MongoDB7.2K views
Introduction to JSONIntroduction to JSON
Introduction to JSON
Kanda Runapongsa Saikaew3.5K views
Introduction to GraphQLIntroduction to GraphQL
Introduction to GraphQL
Amazon Web Services11.7K views
MongoDB and Node.jsMongoDB and Node.js
MongoDB and Node.js
Norberto Leite4.8K views
GraphQL vs RESTGraphQL vs REST
GraphQL vs REST
GreeceJS3.1K views
React & GraphQLReact & GraphQL
React & GraphQL
Nikolas Burk909 views
MongoDB Performance TuningMongoDB Performance Tuning
MongoDB Performance Tuning
Puneet Behl1.8K views
Angular Data BindingAngular Data Binding
Angular Data Binding
Jennifer Estrada656 views
MongoDB - Aggregation PipelineMongoDB - Aggregation Pipeline
MongoDB - Aggregation Pipeline
Jason Terpko1.2K views

Similar to Hydra: A Vocabulary for Hypermedia-Driven Web APIs(20)

Recently uploaded(20)

Liqid: Composable CXL PreviewLiqid: Composable CXL Preview
Liqid: Composable CXL Preview
CXL Forum118 views
Green Leaf Consulting: Capabilities DeckGreen Leaf Consulting: Capabilities Deck
Green Leaf Consulting: Capabilities Deck
GreenLeafConsulting170 views
METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...
METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...
Prity Khastgir IPR Strategic India Patent Attorney Amplify Innovation23 views

Hydra: A Vocabulary for Hypermedia-Driven Web APIs