Convert DOI to a HTML5 / Schema citation


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 itemtype="http://schema.org/ScholarlyArticle"> <span itemprop="author" itemscope itemtype="http://schema.org/Person"> …

Continue reading →

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


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": "Occupation", "name": "Professor of Physics", "occupationLocation": { "@type":…

Continue reading →