Skip to content

Instantly share code, notes, and snippets.

| ?resource | ?method |
|-------------------------------------------------|------------|
| <http://todosapp.com/api/version_4/todos#self> | GET |
| <http://todosapp.com/api/version_4/todos#self> | POST |
|-------------------------------------------------|------------|
SELECT ?resource ?method
WHERE {
?resource <http://todosapp.com/api/vocab#oerations> ?operation .
?operation <http://todosapp.com/api/vocab#method> ?method .
}
ORDER BY(?resource)
{
"@context": { "@vocab": "http://todosapp.com/api/vocab#" },
"@id": "http://todosapp.com/api/version_4/users/1#self",
"name": "John Doo",
"email": "john.doo@test.com",
"todos": {
"@id": "http://todosapp.com/api/version_4/todos#self",
"operations": [
{
"method": "GET",
#%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:
$ 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",
#%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:
{
"@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" }
]
}
curl -X GET http://todosapp.com/api/version_3_2/users/1/todos
#%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:
$ 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