Skip to content

Instantly share code, notes, and snippets.

View patrickcoombe's full-sized avatar

Patrick Coombe patrickcoombe

View GitHub Profile
@patrickcoombe
patrickcoombe / jobPosting.js
Last active August 13, 2019 04:43
Example json-ld for a job posting
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "JobPosting",
"baseSalary": "100000",
"jobBenefits": "Health Insurance",
"datePosted": "2011-10-31",
"description": "Looking for good work for cheap.",
"educationRequirements": "Bachelors Degree",
"employmentType": "Full-time",
<script type="application/ld+json">
{
"@context" : "https://schema.org",
"@type" : "Organization",
"name" : "Your Organization Name",
"url" : "http://www.your-site.com",
"sameAs" : [
"http://www.facebook.com/your-profile",
"http://www.twitter.com/yourProfile",
"http://plus.google.com/your_profile"
<script type='application/ld+json'>
{
"@context": "https://www.schema.org",
"@type": "product",
"brand": "Acme",
"logo": "http://www.example.com/logo.png",
"name": "WidgetPress",
"category": "Widgets",
"image": "http://www.example.com/image.jpg",
"description": "This is an excellent widget with 21 features and 4 colors.",
@patrickcoombe
patrickcoombe / event.js
Last active August 13, 2019 04:42
Sample JSON-LD for an event
<script type='application/ld+json'>
{
"@context": "https://www.schema.org",
"@type": "Event",
"name": "Launch Party",
"url": "http://www.example.com/launch-party",
"description": "We're excited to announce the launch party for our newest app!",
"startDate": "10/05/2015 12:00PM",
"endDate": "10/05/2015 02:00PM",
"location": {
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://example.com/my-news-article"
},
"headline": "Article headline",
"image": [
@patrickcoombe
patrickcoombe / email-message.js
Last active April 26, 2019 18:18
JSON-LD markup for rich email messages
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type": "EmailMessage",
"description": "View this Pull Request on GitHub",
"action": {
"@type": "ViewAction",
"url":"https://github.com/perma-id/w3id.org/pull/47",
"name":"View Pull Request"
}
@patrickcoombe
patrickcoombe / music-playlist.js
Last active April 26, 2019 18:18
JSON-LD validated code for a music playlist
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type" : "MusicPlaylist",
"name" : "Funky Funk",
"numTracks" : "400",
"track" : [
{
"@type" : "MusicRecording",
"name" : "I love jsonld",
@patrickcoombe
patrickcoombe / video-object.js
Last active April 26, 2019 18:18
JSON-LD for a video object
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "VideoObject",
"name": "Learn JSON-LD",
"@id": "http://example.com/video",
"datePublished": "2015-10-02",
"description" : "In this video, we'll teach you how to use json ld and get 6 pack abs.",
"thumbnailURL" : "http://placehold.it/350x150",
"thumbnail" : "http://placehold.it/350x150",
@patrickcoombe
patrickcoombe / combining-types.js
Last active April 26, 2019 18:18
combining types
<script type="application/ld+json">
[{
"@context" : "https://schema.org",
"@type" : "Person",
"url" : "http://www.example.com",
"name" : "John Doe",
"sameAs" : [ "http://linkedin.com/in/xxx",
"http://www.twitter.com/Twitter" ]
},
{
@patrickcoombe
patrickcoombe / list item
Last active April 26, 2019 18:18
list item
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ItemList",
"url": "http://multivarki.ru?filters%5Bprice%5D%5BLTE%5D=39600",
"numberOfItems": "315",
"itemListElement": [{
"@type": "Product",
"image": "http://img01.multivarki.ru.ru/c9/f1/a5fe6642-18d0-47ad-b038-6fca20f1c923.jpeg",
"url": "http://multivarki.ru/brand_502/",