Jump to content

Schema.org: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Yobot (talk | contribs)
m WP:CHECKWIKI error fixes + general fixes using AWB (7752)
added pointer to Schema.RDFS.org
Line 2: Line 2:


Much of the vocabulary on schema.org was inspired by earlier formats such as [[Microformat]]s, [[FOAF]], [[GoodRelations]] and [[OpenCyc]].<ref name="FAQ">{{cite web|url=http://www.schema.org/docs/faq.html|title=FAQ|work=schema.org|accessdate=2 June 2011}}</ref>
Much of the vocabulary on schema.org was inspired by earlier formats such as [[Microformat]]s, [[FOAF]], [[GoodRelations]] and [[OpenCyc]].<ref name="FAQ">{{cite web|url=http://www.schema.org/docs/faq.html|title=FAQ|work=schema.org|accessdate=2 June 2011}}</ref>

A canonical mapping from the terms defined in Schema.org to [[RDF]] (expressed in [[RDF_Schema|RDF Schema]]) is available via [http://schema.rdfs.org Schema.RDFS.org].


== Example ==
== Example ==

Revision as of 06:16, 7 June 2011

Schema.org is the name of a website[1] and intitiative launched on 2 June 2011 by Bing, Google and Yahoo!,[2][3][4] operators of the world's three largest search engines,[5] to record schema which they recognise, and which can be used for marking up web page content as metadata about itself, using microdata, in order that it is more easily understood by their search engine spiders and other parsers. For now the range of formats is small but the long term goal is to support a wider range of schemas.[6] The site also describes an exetension mechanism for adding additional properties.[7] A mailing list is provided, for discussion of the initiative.[8]

Much of the vocabulary on schema.org was inspired by earlier formats such as Microformats, FOAF, GoodRelations and OpenCyc.[9]

A canonical mapping from the terms defined in Schema.org to RDF (expressed in RDF Schema) is available via Schema.RDFS.org.

Example

The following is an example of how to embed information about a movie and the structure of the information into a website. In order to markup the data the attribute itemtype along with the url of the schema is used. The attribute itemscope defines the scope of the itemtype. The kind of the current item can be defined by using the attribute itemprop. Within the schema for a movie is a schema for a person.

<div itemscope itemtype="http://schema.org/Movie">
  <h1 itemprop="name">Avatar</h1>
  <div itemprop="director" itemscope itemtype="http://schema.org/Person">
  Director: <span itemprop="name">James Cameron</span> (born <span itemprop="birthDate">August 16, 1954)</span>
  </div>
  <span itemprop="genre">Science fiction</span>
  <a href="../movies/avatar-theatrical-trailer.html" itemprop="trailer">Trailer</a>
</div>

References

  1. ^ http://schema.org
  2. ^ Google's blog post
  3. ^ Bings blog post
  4. ^ Yahoo!s blog posts
  5. ^ "Top 5 Search Engines from Oct to Dec 10". StatCounter. Retrieved 17 January 2011. {{cite web}}: Text "StatCounter Global Stats" ignored (help)
  6. ^ Getting started guide
  7. ^ "Extending Schemas". schema.org. 2011-06-02. Retrieved 2 June 2011.
  8. ^ "Schema.org Discussion". Google Groups. 2011-06-02. Retrieved 2 June 2011.
  9. ^ "FAQ". schema.org. Retrieved 2 June 2011.

External links