Skip to content

Instantly share code, notes, and snippets.

Patrick Coombe patrickcoombe

View GitHub Profile
@patrickcoombe
patrickcoombe / covid-19-json-ld.js
Created Jun 3, 2020
COVID-19 JSON-LD Example 2
View covid-19-json-ld.js
<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": {
@patrickcoombe
patrickcoombe / covid-19-google.js
Last active Jun 3, 2020
COVID-19 JSON-LD example from Google Web Dev
View covid-19-google.js
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SpecialAnnouncement",
"name": "Shelter-in-place for 3 California counties",
"text": "As of 11:59 pm on March 17, 2020, all individuals in the 3 counties must strictly follow the provisions in this new Order. This new Order will be in effect through March 30, 2020.",
"datePosted": "2020-03-17T08:00",
"expires": "2020-03-24T23:59",
"quarantineGuidelines": "https://example.org/california/shelter-in-place/",
"diseasePreventionInfo": "https://example.org/california/prevention-tips/",
View webSite.js
// two examples
// simple
// and with search
<script type="application/ld+json">{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "My Website Name",
"url": "https://example.com",
View jobPosting.js
<script type = "application/ld+json" > {
"@context": "http://schema.org",
"@type": "JobPosting",
"estimatedSalary": {
"@type": "MonetaryAmount",
"currency": "USD",
"value": {
"@type": "QuantitativeValue",
"minValue": "None",
"maxValue": "None",
View restaurant-menu
// original code from schema.org modifciations made to pass Google Structured Data Testing Tool
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"Restaurant",
"url":"http://www.thisisarestaurant.com",
"name":"The Restaurant",
"image":"http://www.example.com/image-of-some-restaurant.jpg",
"telephone":"5615551212",
View keybase.md

Keybase proof

I hereby claim:

  • I am patrickcoombe on github.
  • I am patrickcoombe (https://keybase.io/patrickcoombe) on keybase.
  • I have a public key whose fingerprint is C5C9 E376 C39E 78FE 61EB FB0E 6E87 E5FB 050B ED33

To claim this, I am signing this object:

View questionAnswer
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "What does Google mean by E-A-T.",
"text": "Within the past few years, Google has started talking a lot about E-A-T in regards to SEO.",
"answerCount": 1,
"dateCreated": "2019-08-10T21:11Z",
View eventSchema
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "Denver",
"addressRegion": "CO",
View event-google.js
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "Jan Lieberman Concert Series: Journey in Jazz",
"startDate": "2025-01-01T19:30",
"endDate": "2025-01-01T23:00",
"location": {
"@type": "Place",
"name": "Santa Clara City Library, Central Park Library",
@patrickcoombe
patrickcoombe / organization-basic.js
Created May 13, 2019
JSON-LD Organization Basic
View organization-basic.js
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Organization",
"name": "ASPCA",
"url": "https://www.aspca.org/",
"sponsor":
{
"@type": "Organization",
"name": "exampleCorp",
You can’t perform that action at this time.