Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Adding Semantic Reviews / Rich Snippets to your WordPress Site

· 850 words


Screenshot of JSON code in a web page.

This is a real "scratch my own itch" post. I want to add Schema.org semantic metadata to the book reviews I write on my blog. This will enable "rich snippets" in search engines. There are loads of WordPress plugins which do this. But where's the fun in that?! So here's how I quickly built it into my open source blog theme. Screen options First, let's add some screen options to the WordPress…

The future of the web, isn't the web

· 11 comments · 650 words · Viewed ~5,391 times


A fist emerges from a computer screen and punches the user.

My friends, and former employers, at the Government Digital Service have written a spectacularly good blog post "Making GOV.UK more than a website". In it, they describe how adding Schema.org markup to their website has allowed search engines to extract semantic content and display it to a user. For example, the "Learn to drive" page has content which can appear directly in a search engine: …

Add review to Goodreads from Schema markup

· 600 words


The Goodreads Logo.

I write book reviews on my blog. I also want to syndicate them to Goodreads. Sadly, Goodreads doesn't natively read the Schema.org markup I so carefully craft. So here's the scrap of code I use to syndicate my reviews. Goodreads API Keys Get your Keys from https://www.goodreads.com/api/keys You will also need to get OAuth tokens For this documentation, I'll use the example keys - please…

Convert DOI to a HTML5 / Schema citation

· 650 words · Viewed ~232 times


The DOI logo.

This is a quick and dirty way to turn a DOI (Digital Object Identifiers for academic papers) into an HTML & Microdata citation. I use this to power my Citations page. Schema.org is a Microdata standard which allows machines to read your HTML and create semantic relations between documents. Here's a minimum viable citation: <blockquote itemprop="citation" itemscope…

Use-cases wanted! Adding dietary requirements to Schema.org/Person

· 6 comments · 450 words · Viewed ~241 times


Vegetarian sashimi on a bed of ice.

I want Schema.org to add dietary requirements to the Person specification. And I need your help! Background Schema.org is a metadata standard. You can include it on webpages to create structured, machine-readable data. Here's a sample way of representing a Person: { "@context": "https://schema.org/", "@type": "Person", "name": "Albert Einstein", "hasOccupation": [ { "@type": …