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/1#self", | |
"title": "Test", | |
"description": "Test TODO", | |
"user": { "@id": "http://todosapp.com/api/users/1#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
| ?name | ?todos | | |
|-----------|----------| | |
| John Doo | 1 | | |
|-----------|----------| |
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
PREFIX todos: <http://todosapp.com/api/vocab#> | |
SELECT ?name (COUNT(?todo) AS ?todos) | |
WHERE { | |
?user todos:name ?name . | |
?todo todos:user ?user | |
} | |
GROUP BY ?name |
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
<http://todosapp.com/api/users/1/todos/1> <http://todosapp.com/api/vocab#title> "Test" . | |
<http://todosapp.com/api/users/1/todos/1> <http://todosapp.com/api/vocab#description> "Test TODO" . | |
<http://todosapp.com/api/users/1/todos/1> <http://todosapp.com/api/vocab#user> <http://todosapp.com/api/users/1> . | |
<http://todosapp.com/api/users/1> <http://todosapp.com/api/vocab#name> "John Doo" . | |
<http://todosapp.com/api/users/1> <http://todosapp.com/api/vocab#email> "[email protected]" . | |
<http://todosapp.com/api/users/1> <http://todosapp.com/api/vocab#todos> <http://todosapp.com/api/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
<http://todosapp.com/api/users/1> <http://todosapp.com/api/vocab#name> "John Doo" . | |
<http://todosapp.com/api/users/1> <http://todosapp.com/api/vocab#email> "[email protected]" . | |
<http://todosapp.com/api/users/1> <http://todosapp.com/api/vocab#todos> <http://todosapp.com/api/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
{ | |
"@context": { "@vocab": "http://todosapp.com/api/vocab#" }, | |
"@id": "http://todosapp.com/api/users/1", | |
"name": "John Doo", | |
"email": "[email protected]", | |
"todos": { "@id": "http://todosapp.com/api/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
curl -X GET -H "Accept: application/ld+json" http://todosapp.com/api/version_3/users/1 |
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
<http://todosapp.com/api/users/1/todos/1> <http://todosapp.com/api/vocab#title> "Test" . | |
<http://todosapp.com/api/users/1/todos/1> <http://todosapp.com/api/vocab#description> "Test TODO" . | |
<http://todosapp.com/api/users/1/todos/1> <http://todosapp.com/api/vocab#user> <http://todosapp.com/api/users/1> . |
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
{ | |
"@id": "http://todosapp.com/api/version_3/users/1/todos/1", | |
"http://todosapp.com/api/vocab#title": "Test", | |
"http://todosapp.com/api/vocab#description": "Test TODO", | |
"http://todosapp.com/api/vocab#user": { "@id": "http://todosapp.com/api/version_3/users/1" } | |
} |
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 -H "Accept: application/ld+json" http://todosapp.com/api/version_3/users/1/todos/1 |