Last active
February 12, 2021 00:55
-
-
Save jaw111/3a44d8a19f2a25230657 to your computer and use it in GitHub Desktop.
GS1 GTIN+ OTW JSON-LD example
This file contains 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": { | |
"gs1": "http://gs1.org/voc/", | |
"xsd": "http://www.w3.org/2001/XMLSchema#", | |
"gtin13": { | |
"@id": "gs1:gtin13", | |
"@type": "xsd:string" | |
}, | |
"ingredientpercentage": { | |
"@id": "gs1:ingredientpercentage", | |
"@type": "xsd:float" | |
}, | |
"ingredientseq": { | |
"@id": "gs1:ingredientseq", | |
"@type": "xsd:integer" | |
}, | |
"ingredientname": { | |
"@id": "gs1:ingredientname", | |
"@type": "xsd:string" | |
}, | |
"measurementValue": { | |
"@id": "gs1:measurementValue", | |
"@type": "xsd:float" | |
}, | |
"measurementUnitCode": { | |
"@id": "gs1:measurementUnitCode", | |
"@type": "xsd:string" | |
}, | |
"dailyValueIntakePercent": { | |
"@id": "gs1:dailyValueIntakePercent", | |
"@type": "xsd:float" | |
}, | |
"image": { | |
"@id": "gs1:image", | |
"@type": "@id" | |
}, | |
"price": { | |
"@id": "gs1:price", | |
"@type": "xsd:float" | |
}, | |
"priceTypeCode": { | |
"@id": "gs1:priceTypeCode", | |
"@type": "xsd:string" | |
} | |
} | |
} |
This file contains 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": [ | |
"http://schema.org", | |
"gs1.jsonld", | |
{ | |
"id": "@id", | |
"type": "@type", | |
"@base": "http://id.example.com/", | |
"currencyUnit": "priceCurrency" | |
} | |
], | |
"id": "offer/05011476100885", | |
"type": "Offer", | |
"gtin13": "5011476100885", | |
"name": "Cheerios 600g", | |
"description": "Cheerios 600g on special offer: only £2.00 - usually £3.19", | |
"image": "http://images2.mysupermarket.co.uk/Products_1000/22/001022.jpg", | |
"priceSpecification": { | |
"price": "2.00", | |
"currencyUnit": "GBP", | |
"type": "PriceSpecification" | |
}, | |
"itemOffered": { | |
"id": "product/05011476100885", | |
"type": "Product", | |
"sameAs": "http://www.nestle.com/id/gtin/05011476100885", | |
"gtin13": "5011476100885", | |
"name": "Cheerios 600g", | |
"description": "Deliciously crunchy Os, packed with 4 whole grains." | |
} | |
} |
This file contains 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": [ | |
"http://schema.org", | |
"gs1.jsonld", | |
{ | |
"id": "@id", | |
"type": "@type", | |
"@base": "http://id.example.com/", | |
"variant": { | |
"@reverse": "isVariantOf" | |
} | |
} | |
], | |
"id": "productModel/ff091b21-b6e8-4e0e-b19a-40910c880f82", | |
"type": "ProductModel", | |
"sameAs": "http://www.nestle.com/id/ff091b21-b6e8-4e0e-b19a-40910c880f82", | |
"name": "Cheerios 600g", | |
"description": "Deliciously crunchy Os, packed with 4 whole grains.", | |
"variant": [ | |
{ | |
"id": "productModel/5011476100885", | |
"type": "ProductModel", | |
"sameAs": "http://www.nestle.com/id/gtin/5011476100885", | |
"name": "Cheerios 600g with plastic toy" | |
}, | |
{ | |
"id": "productModel/5011476100961", | |
"type": "ProductModel", | |
"sameAs": "http://www.nestle.com/id/gtin/5011476100961", | |
"name": "Cheerios 600g with theme park offer" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment