Skip to content

Instantly share code, notes, and snippets.

@jeremyf
Created May 26, 2017 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyf/2b66a6a23912c232c96149755715707b to your computer and use it in GitHub Desktop.
Save jeremyf/2b66a6a23912c232c96149755715707b to your computer and use it in GitHub Desktop.
{
"@context": {
"xsd": "http://www.w3.org/2001/XMLSchema#",
"deri": "http://sindice.com/vocab/search#",
"und": "http://localhost:3000/show/",
"dc": "http://purl.org/dc/terms/",
"deri:first": {
"@type": "@id"
},
"deri:last": {
"@type": "@id"
},
"deri:previous": {
"@type": "@id"
},
"deri:next": {
"@type": "@id"
},
"deri:itemsPerPage": {
"@type": "xsd:integer"
},
"deri:totalResults": {
"@type": "xsd:integer"
}
},
"@graph": [
{
"@id": "http://test.host/catalog.json",
"deri:itemsPerPage": 2,
"deri:totalResults": 12,
"deri:first": "http://test.host/catalog.json",
"deri:last": "http://test.host/catalog.json?page=6",
"deri:next": "http://test.host/catalog.json?page=2"
},
{
"@id": "und:m039k356t2q",
"dc:title": "Work1"
},
{
"@id": "und:dr26xw4309w",
"dc:title": "Work2"
}
]
}
<http://test.host/catalog.json> <http://sindice.com/vocab/search#first> <http://test.host/catalog.json> .
<http://test.host/catalog.json> <http://sindice.com/vocab/search#itemsPerPage> "2"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://test.host/catalog.json> <http://sindice.com/vocab/search#last> <http://test.host/catalog.json?page=6> .
<http://test.host/catalog.json> <http://sindice.com/vocab/search#next> <http://test.host/catalog.json?page=2> .
<http://test.host/catalog.json> <http://sindice.com/vocab/search#totalResults> "12"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://localhost:3000/show/m039k356t2q> <http://purl.org/dc/terms/title> "Work1" .
<http://localhost:3000/show/dr26xw4309w> <http://purl.org/dc/terms/title> "Work2" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment