Skip to content

Schema.org

GCHQDeveloper81 edited this page Jul 16, 2024 · 2 revisions

Founded by Google, Microsoft and Yahoo, the intention of this vocab was to provide a vocab for talking about the kinds of things you might find people talking about on the internet (for example Events, People and Places). Whilst this does mean that the schema.org vocab is very broad, it doesn’t get particularly deep and so is really only a general purpose vocab for describing surface-level details about common things.

The primary goal of schema.org was to create a common vocab that could be used to markup web pages, allowing them to be more easily crawled by and interpreted by search engines and other non-human agents. It still fulfils this role to this day - being the central vocab behind the structured data strategy of both Google and Microsoft among others.

Example

The following example shows how to use the Schema.org vocab to describe the TV show "Twin Peaks" along with its film adaptation "Fire Walk With Me".

BASE <http://www.example.com/>
PREFIX schema: <http://schema.org/>

<#TwinPeaks> a schema:TVShow ;
    schema:name "Twin Peaks" ;
    schema:inLanguage "en";
    schema:numberOfSeasons 3 .

<#TwinPeaksFireWalkWithMe> a schema:Movie ;
    schema:name "Twin Peaks: Fire walk with me" ;
    schema:inLanguage "en" ;
    schema:isFamilyFriendly false ;
    schema:genre "Horror", "Drama", "Mystery" ;
    schema:isBasedOn <#TwinPeaks> ;
    schema:releasedEvent [
        a schema:PublicationEvent ;
        schema:startDate "1992‐08‐28" ] .