Skip to content

Instantly share code, notes, and snippets.

@jonoalderson
Last active February 14, 2019 09:09
Show Gist options
  • Save jonoalderson/c8ca9d416ffda4400248d412f6b45b83 to your computer and use it in GitHub Desktop.
Save jonoalderson/c8ca9d416ffda4400248d412f6b45b83 to your computer and use it in GitHub Desktop.
{
"@context": "https://schema.org",
"@graph": [{
"@type" : "Organization",
"@id" : "https://www.example.com/#organization",
"url" : "https://www.example.com/",
"name" : "{{Organization Name}}",
"logo" : {
"@type" : "ImageObject",
"@id" : "https://www.example.com/#logo",
"url" : "https://www.example.com/logo.jpg"
}
},
{
"@type" : "WebSite",
"@id" : "https://www.example.com/#website",
"url" : "https://www.example.com/",
"name" : "{{Website Name}}",
"publisher" : { "@id" : "https://www.example.com/#organization" }
},
{
"@type" : ["WebPage", "FAQPage"],
"@id" : "https://www.example.com/example-page/",
"url" : "https://www.example.com/example-page/",
"inLanguage" : "{{Language Code}}",
"name" : "{{Page Title}}",
"description" : "{{Page Description}}",
"isPartOf" : { "@id" : "https://www.example.com/#website" },
"mainEntity" : [
{ "@id" : "https://www.example.com/example-page/#question-123abc" },
{ "@id" : "https://www.example.com/example-page/#question-456def" }
]
},
{
"@type": "Question",
"@id" : "https://www.example.com/example-page/#question-123abc",
"url" : "https://www.example.com/example-page/#question-123abc",
"answerCount": "1",
"name" : "What’s this curvey yellow fruit called?",
"acceptedAnswer" : { "@id" : "https://www.example.com/example-page/#answer-123abc" }
},
{
"@type": "Question",
"@id" : "https://www.example.com/example-page/#question-456def",
"url" : "https://www.example.com/example-page/#question-456def",
"answerCount": "1",
"name" : "What is your favourite colour?",
"acceptedAnswer" : { "@id" : "https://www.example.com/example-page/#answer-456def" }
},
{
"@type": "Answer",
"@id" : "https://www.example.com/example-page/#answer-123abc",
"url" : "https://www.example.com/example-page/#answer-123abc",
"text" : "It’s a yellow fruit which you unzip and eat the white bits."
},
{
"@type": "Answer",
"@id" : "https://www.example.com/example-page/#answer-456def",
"url" : "https://www.example.com/example-page/#answer-456def",
"text" : "It’s yellow, obviously."
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment