Skip to content

Instantly share code, notes, and snippets.

@Haroenv
Last active November 7, 2016 10:27
Show Gist options
  • Save Haroenv/2b8a3e9ff273db6670d66992492170d2 to your computer and use it in GitHub Desktop.
Save Haroenv/2b8a3e9ff273db6670d66992492170d2 to your computer and use it in GitHub Desktop.
A JSON-LD possible output of an adventure park API. Using https://haroen.me/terms/
{
"@context": {
"@vocab": "http://schema.org/",
"in": "https://haroen.me/terms/interests#",
"ac": "https://haroen.me/terms/accessibility#",
"cn": "https://haroen.me/terms/constraints#",
"ageRange": "cn:ageRange",
"heightRange": "cn:heightRange",
"accessible": "ac:accessible",
"foaf": "http://xmlns.com/foaf/0.1/",
"interests": "foaf:interests"
},
"@id": "http://pretpark.haroenviaene.ikdoeict.net/attractions/5",
"@type": "TouristAttraction",
"name": "Mini Death Ride",
"description": "bla bla bla this is nice cool bla bla",
"containedInPlace": {
"name": "The nice park by Haroen ;--)",
"@id": "http://pretpark.haroenviaene.ikdoeict.net"
},
"image": "http://pretpark.haroenviaene.ikdoeict.net/5.jpg",
"ageRange": {
"minValue": 4,
"maxValue": 12
},
"heightRange": {
"minValue": 100,
"maxValue": 180
},
"interests": [{
"@id": "in:adrenaline"
}, {
"@id": "in:kids"
}, {
"@id": "in:beginner"
}],
"geo": {
"@type": "GeoCoordinates",
"latitude": "40.75",
"longitude": "73.98"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.4",
"reviewCount": "89"
},
"accessible": true
}
{
"@context": {
"@vocab": "http://schema.org/",
"in": "https://haroen.me/terms/interests#",
"ac": "https://haroen.me/terms/accessibility#",
"cn": "https://haroen.me/terms/constraints#",
"ageRange": "cn:ageRange",
"heightRange": "cn:heightRange",
"accessible": "ac:accessible",
"foaf": "http://xmlns.com/foaf/0.1/",
"interests": "foaf:interests",
"hydra": "http://www.w3.org/ns/hydra/core#",
"Collection": "hydra:Collection"
},
"@id": "https://pretpark.haroenviaene.ikdoeict.net/api/attractions/?q=...",
"@type": "Collection",
"@graph": [{
"@id": "http://pretpark.haroenviaene.ikdoeict.net/attractions/5",
"@type": "TouristAttraction",
"name": "Mini Death Ride",
"description": "bla bla bla this is nice cool bla bla",
"containedInPlace": {
"name": "The nice park by Haroen ;--)",
"@id": "http://pretpark.haroenviaene.ikdoeict.net"
},
"image": "http://pretpark.haroenviaene.ikdoeict.net/5.jpg",
"ageRange": {
"minValue": 4,
"maxValue": 12
},
"heightRange": {
"minValue": 100,
"maxValue": 180
},
"interests": [{
"@id": "in:adrenaline"
}, {
"@id": "in:kids"
}, {
"@id": "in:beginner"
}],
"geo": {
"@type": "GeoCoordinates",
"latitude": "40.75",
"longitude": "73.98"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.4",
"reviewCount": "89"
},
"accessible": true
},{
"@id": "http://pretpark.haroenviaene.ikdoeict.net/attractions/6",
"@type": "TouristAttraction",
"name": "Maxi Death Ride",
"description": "bla bla bla this is nice but cool bla bla",
"containedInPlace": {
"name": "The nice park by Haroen ;--)",
"@id": "http://pretpark.haroenviaene.ikdoeict.net"
},
"image": "http://pretpark.haroenviaene.ikdoeict.net/attractions/6.jpg",
"ageRange": {
"minValue": 12,
"maxValue": 60
},
"heightRange": {
"minValue": 160,
"maxValue": 220
},
"interests": [{
"@id": "in:adrenaline"
}, {
"@id": "in:teens"
}, {
"@id": "in:advanced"
}],
"geo": {
"@type": "GeoCoordinates",
"latitude": "40.75",
"longitude": "73.98"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "3.6",
"reviewCount": "10000"
},
"accessible": false
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment