Skip to content

Instantly share code, notes, and snippets.

@robmckinnon
Created October 24, 2018 10:09
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 robmckinnon/9b4254febaa081c41f9cd206042973e4 to your computer and use it in GitHub Desktop.
Save robmckinnon/9b4254febaa081c41f9cd206042973e4 to your computer and use it in GitHub Desktop.
store.jsonld
{
"@id": "http://store.example.com/",
"@type": "Store",
"name": "Links Bike Shop",
"description": "The most \"linked\" bike store on earth!",
"product": [
{
"@id": "p:links-swift-chain",
"@type": "Product",
"name": "Links Swift Chain",
"description": "A fine chain with many links.",
"category": ["cat:parts", "cat:chains"],
"price": "10.00",
"stock": 10
},
{
"@id": "p:links-speedy-lube",
"@type": "Product",
"name": "Links Speedy Lube",
"description": "Lubricant for your chain links.",
"category": ["cat:lube", "cat:chains"],
"price": "5.00",
"stock": 20
}
],
"@context": {
"Store": "http://ns.example.com/store#Store",
"Product": "http://ns.example.com/store#Product",
"product": "http://ns.example.com/store#product",
"category":
{
"@id": "http://ns.example.com/store#category",
"@type": "@id"
},
"price": "http://ns.example.com/store#price",
"stock": "http://ns.example.com/store#stock",
"name": "http://purl.org/dc/terms/title",
"description": "http://purl.org/dc/terms/description",
"p": "http://store.example.com/products/",
"cat": "http://store.example.com/category/"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment