Skip to content

Instantly share code, notes, and snippets.

@cjzopen
Last active March 29, 2023 17:03
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cjzopen/67abc35b150a9271313e77bdeaed563e to your computer and use it in GitHub Desktop.
Save cjzopen/67abc35b150a9271313e77bdeaed563e to your computer and use it in GitHub Desktop.
Organization json-ld example
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [{
"@type": "Organization",
"@id": "https://www.example.com/#organization",
"name": "{{ your name }}",
"url": "https://www.example.com/",
"address": "{{ address }}",
"email": "{{ email }}",
"founder": "{{ not important }}",
"foundingDate": "{{ not important }}",
"telephone": "{{ not important }}",
"faxNumber": "{{ not important }}",
"contactPoint": [{
"@type": "ContactPoint",
"telephone": "{{ phone }}",
"email": "{{ email }}",
"url": "https://www.example.com/consult/",
"contactType": "customer service"
}],
"sameAs": [
"https://wikipedia.org/wiki/xxxx",
"https://www.facebook.com/xxx",
"https://www.youtube.com/user/xxx",
"https://www.linkedin.com/company/xxx"
],
"logo": {
"@type": "ImageObject",
"@id": "https://www.example.com/#logo",
"url": "https://www.example.com/img/logo.png",
"caption": "{{ your name }}"
},
"image": {
"@id": "https://www.example.com/#logo"
}
}, {
"@type": "WebSite",
"@id": "https://www.example.com/#website",
"url": "https://www.example.com/",
"name": "{{ your name }}",
"publisher": {
"@id": "https://www.example.com/#organization"
},
"potentialAction": {
"@type": "SearchAction",
"target": "https://www.example.com/?s={search_term_string}",
"query-input": "required name=search_term_string"
}
}, {
"@type": "WebPage",
"@id": "https://www.example.com/#webpage",
"url": "https://www.example.com/",
"inLanguage": "zh-TW",
"name": "{{ your title }}",
"isPartOf": {
"@id": "https://www.example.com/#website"
},
"about": {
"@id": "https://www.example.com/#organization"
},
"description": "{{ your description }}"
}]
}
</script>
@cjzopen
Copy link
Author

cjzopen commented Apr 19, 2019

use @id connect every @type

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