This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ?resource | ?method | | |
|-------------------------------------------------|------------| | |
| <http://todosapp.com/api/version_4/todos#self> | GET | | |
| <http://todosapp.com/api/version_4/todos#self> | POST | | |
|-------------------------------------------------|------------| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT ?resource ?method | |
WHERE { | |
?resource <http://todosapp.com/api/vocab#oerations> ?operation . | |
?operation <http://todosapp.com/api/vocab#method> ?method . | |
} | |
ORDER BY(?resource) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": { "@vocab": "http://todosapp.com/api/vocab#" }, | |
"@id": "http://todosapp.com/api/version_4/users/1#self", | |
"name": "John Doo", | |
"email": "[email protected]", | |
"todos": { | |
"@id": "http://todosapp.com/api/version_4/todos#self", | |
"operations": [ | |
{ | |
"method": "GET", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%RAML 1.0 | |
title: Todos Service | |
baseUri: http://todosapp.com/api/version_4 | |
mediaType: [ application/ld+json, application/json, application/xml ] | |
types: | |
URI: string | |
Type: string | |
Operation: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -X GET https://api.github.com/ | |
{ | |
"current_user_url": "https://api.github.com/user", | |
"current_user_authorizations_html_url": "https://github.com/settings/connections/applications{/client_id}", | |
"authorizations_url": "https://api.github.com/authorizations", | |
"code_search_url": "https://api.github.com/search/code?q={query}{&page,per_page,sort,order}", | |
"emails_url": "https://api.github.com/user/emails", | |
"emojis_url": "https://api.github.com/emojis", | |
"events_url": "https://api.github.com/events", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%RAML 1.0 | |
title: Todos Service | |
baseUri: http://todosapp.com/api/version_3_3 | |
mediaType: [ application/ld+json, application/json, application/xml ] | |
types: | |
URI: string | |
Link: | |
properties: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": { "@vocab": "http://todosapp.com/api/vocab#" }, | |
"@id": "http://todosapp.com/api/users/1/todos#self", | |
"members": [ | |
{ "@id": "http://todosapp.com/api/users/1/todos/1#self" }, | |
{ "@id": "http://todosapp.com/api/users/1/todos/2#self" } | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X GET http://todosapp.com/api/version_3_2/users/1/todos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%RAML 1.0 | |
title: Todos Service | |
baseUri: http://todosapp.com/api/version_3_2 | |
mediaType: [ application/ld+json, application/json, application/xml ] | |
types: | |
URI: string | |
Link: | |
properties: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -iv -H "Accept: application/ld+json" http://dbpedia.org/resource/Mount_Everest | |
* Trying 194.109.129.58... | |
* Connected to dbpedia.org (194.109.129.58) port 80 (#0) | |
> GET /resource/Mount_Everest HTTP/1.1 | |
> Host: dbpedia.org | |
> User-Agent: curl/7.43.0 | |
> Accept: application/ld+json | |
> | |
< HTTP/1.1 303 See Other |