Skip to content

Instantly share code, notes, and snippets.

@patrickcoombe
Last active April 9, 2023 09:35
Show Gist options
  • Save patrickcoombe/a0387486e0906379e713 to your computer and use it in GitHub Desktop.
Save patrickcoombe/a0387486e0906379e713 to your computer and use it in GitHub Desktop.
json-ld sample data for a person
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Person",
"address": {
"@type": "PostalAddress",
"addressLocality": "Colorado Springs",
"addressRegion": "CO",
"postalCode": "80840",
"streetAddress": "100 Main Street"
},
"colleague": [
"http://www.example.com/JohnColleague.html",
"http://www.example.com/JameColleague.html"
],
"email": "info@example.com",
"image": "janedoe.jpg",
"jobTitle": "Research Assistant",
"name": "Jane Doe",
"alumniOf": "Dartmouth",
"birthPlace": "Philadelphia, PA",
"birthDate": "1979-10-12",
"height": "72 inches",
"gender": "female",
"memberOf": "Republican Party",
"nationality": "Albanian",
"telephone": "(123) 456-6789",
"url": "http://www.example.com",
"sameAs" : [ "https://www.facebook.com/",
"https://www.linkedin.com/",
"http://twitter.com/",
"http://instagram.com/",
"https://plus.google.com/"]
}
</script>
@chuckreynolds
Copy link

Shouldn't birthDate use dashes re: ISO 8601?

Copy link

ghost commented Sep 2, 2018

Also I wasn’t aware African American was a nationality lol.

@patrickcoombe
Copy link
Author

fixed and fixed, sorry for the ridiculously late reply I wasn't even aware of the comments on here! I wish there was a way to embed them on the website :) cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment