Skip to content

Instantly share code, notes, and snippets.

@patrickcoombe
Created June 3, 2020 20:00
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 patrickcoombe/0fc0986d468e7b6a450c380378b35f96 to your computer and use it in GitHub Desktop.
Save patrickcoombe/0fc0986d468e7b6a450c380378b35f96 to your computer and use it in GitHub Desktop.
COVID-19 JSON-LD Example 2
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "SpecialAnnouncement",
"category": "https://www.wikidata.org/wiki/Q81068910",
"name": "Your Title",
"datePosted": "2020-04-15T00:00",
"text": "This is where you would put your announcement...",
"newsUpdatesAndGuidelines": "https://www.example.com/point-to-announcement.html",
"announcementLocation": {
"@type": "CivicStructure",
"address": {
"@type": "PostalAddress",
"streetAddress": "1 Oak st",
"name": "Location Name",
"addressLocality": "Delray Beach",
"addressCountry": "USA",
"addressRegion": "FL",
"@id": "https://www.example.com/url"
},
"url": "https://www.example.com",
"name": "Locale Nickname",
"@id": "https://www.example.com"
},
"@id": "https://www.example.com"
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment