schema.org

Getting started with schema.org

Remarks#

About Schema.org

Schema.org is a collaborative, community activity with a mission to create, maintain, and promote schemas for structured data on the Internet, on web pages, in email messages, and beyond.

Schema.org – https://schema.org


Microdata

Microdata is a specification to embed machine-readable data in HTML documents. Microdata consists of name-value pairs (known as items) defined according to a vocabulary. A collection of commonly used markup vocabularies are provided by schema.org

Source – https://developers.google.com/schemas/formats/microdata


JSON-LD

JSON-LD is an easy-to-use JSON-based linked data format that defines the concept of context to specify the vocabulary for types and properties.

Source – https://developers.google.com/schemas/formats/json-ld


Testing your schema markup

Google Structured Data Testing Tool

The Structured Data Testing Tool (SDTT) provides a variety of ways to develop, test, and modify your structured markup. You can load markup into the tool either directly or by supplying a URL.

Yandex Structured Data Validator

The validator lets you check all the most common microformats: microdata, schema.org, microformats, OpenGraph and RDF.

Versions#

VersionRelease date
3.12016-08-09
3.02016-05-04
2.22015-11-05

Basic implementation

Person

Microdata

<section itemscope itemtype="https://schema.org/Person">
  Hello, my name is
  <span itemprop="name">John Doe</span>,
  I am a
  <span itemprop="jobTitle">Graduate research assistant</span>
  at the
  <span itemprop="affiliation">University of Dreams</span>
  My friends call me
  <span itemprop="additionalName">Johnny</span>
  You can visit my homepage at
  <a href="https://www.example.com" itemprop="url">www.example.com</a>
</section>

JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Person",
  "name": "John Doe",
  "jobTitle": "Graduate research assistant",
  "affiliation": "University of Dreams",
  "additionalName": "Johnny",
  "url": "https://www.example.com"
}
</script>

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow