Jump to content

Schema.org: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
BG19bot (talk | contribs)
m WP:CHECKWIKI error fix for #64. Do general fixes if a problem exists. - using AWB
Tonyeny (talk | contribs)
→‎External links: added link to Google's resource page for Schema.org
Line 20: Line 20:


To test the [[validity]] of the data marked up with the schemas and Microdata, such [[validator]]s as the Google Structured Data Testing Tool,<ref>[http://www.google.com/webmasters/tools/richsnippets Google Structured Data Testing Tool]</ref> Yandex Microformat validator<ref>[http://webmaster.yandex.ru/microtest.xml Yandex Microformat validator]</ref> and Bing Markup Validator<ref>[http://www.bing.com/toolbox/markup-validator Bing Markup Validator]</ref> can be used.
To test the [[validity]] of the data marked up with the schemas and Microdata, such [[validator]]s as the Google Structured Data Testing Tool,<ref>[http://www.google.com/webmasters/tools/richsnippets Google Structured Data Testing Tool]</ref> Yandex Microformat validator<ref>[http://webmaster.yandex.ru/microtest.xml Yandex Microformat validator]</ref> and Bing Markup Validator<ref>[http://www.bing.com/toolbox/markup-validator Bing Markup Validator]</ref> can be used.

Some Schema markups such as Organization and Person are used to influence Google's [[Knowledge Graph]] results.<ref>{{Cite web|title = Specify your social profiles to Google|url = https://developers.google.com/structured-data/customize/social-profiles|website = Google Developers|accessdate = 2015-06-25}}</ref><ref>{{Cite web|title = Leveraging Wikidata To Gain A Google Knowledge Graph Result|url = http://searchengineland.com/leveraging-wikidata-gain-google-knowledge-graph-result-219706|accessdate = 2015-06-25}}</ref>


== Examples ==
== Examples ==
Line 75: Line 77:
== External links ==
== External links ==
* [https://schema.org schema.org] site
* [https://schema.org schema.org] site
* [https://developers.google.com/structured-data/schema-org About Schema.org] Google's resource page


{{Semantic Web}}
{{Semantic Web}}

Revision as of 21:18, 25 June 2015

Schema.org
Abbreviationschema
Year started2011
OrganizationGoogle, Yahoo, Microsoft, Yandex
Base standardsURI, HTML5, RDF, Microdata, ISO 8601
Related standardsRDFa, Microformat, RDFS, OWL, N-Triples, Turtle, JSON, JSON-LD, CSV
DomainSemantic Web
LicenseCC-BY-SA 3.0
Websiteschema.org

Schema.org is an initiative launched on 2 June 2011 by Bing, Google and Yahoo![1][2][3] (the operators of the then world's largest search engines)[4] to “create and support a common set of schemas for structured data markup on web pages.” On 1 November Yandex (whose search engine is the largest one in Russia) joined the initiative.[5][6] They propose using the schema.org vocabulary along with the Microdata, RDFa, or JSON-LD formats[7] to mark up website content with metadata about itself. Such markup can be recognized by search engine spiders and other parsers, thus gaining access to the meaning of the sites (see Semantic Web). The initiative also describes an extension mechanism for adding additional properties.[8] Public discussion of the initiative largely takes place on the W3C public vocabularies mailing list.[9]

Much of the vocabulary on schema.org was inspired by earlier formats such as Microformats, FOAF, GoodRelations and OpenCyc.[10] Microformats with its most dominante representative hCard, continue to be published widely in the Web, where the deployment of schema.org has strongly increased between 2012 to end 2014.[11]

RDF applications can use Microdata2RDF service.[12] getSchema[13] is a community wiki maintaining a set of markup examples.

A mapping from the terms defined in Schema.org to RDF (expressed in RDF Schema) is available.[14]

To test the validity of the data marked up with the schemas and Microdata, such validators as the Google Structured Data Testing Tool,[15] Yandex Microformat validator[16] and Bing Markup Validator[17] can be used.

Some Schema markups such as Organization and Person are used to influence Google's Knowledge Graph results.[18][19]

Examples

Microdata

The following is an example[20] of how to mark up information about a movie and its director using the schema.org schemas and microdata. In order to mark up 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.

<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 <time itemprop="birthDate" datetime="1954-08-16">August 16, 1954</time>)
  </div>
  <span itemprop="genre">Science fiction</span>
  <a href="../movies/avatar-theatrical-trailer.html" itemprop="trailer">Trailer</a>
</div>

RDFa 1.1 Lite

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

JSON-LD

<script type="application/ld+json">
{ 
  "@context": "http://schema.org/",
  "@type": "Movie",
  "name": "Avatar",
  "director": 
    { 
       "@type": "Person",
       "name": "James Cameron",
       "birthDate": "1954-08-16"
    },
  "genre": "Science fiction",
  "trailer": "../movies/avatar-theatrical-trailer.html" 
}
</script>

References

  1. ^ Introducing schema.org: Search engines come together for a richer web, Google blog, 2 June 2011
  2. ^ Introducing Schema.org: Bing, Google and Yahoo Unite to Build the Web of Objects, Bing blog, 2 June 2011
  3. ^ Introducing schema.org: A Collaboration on Structured Data, Yahoo blog, 2 June 2011
  4. ^ "Top 5 Search Engines from Oct to Dec 10". StatCounter. Retrieved 17 January 2011.
  5. ^ Techcrunch "Yandex joins Google, Yahoo! and Bing to collaborate on Schema.org"
  6. ^ Schema Blog "Yandex now supports schema.org markup"
  7. ^ Getting started with schema.org using Microdata
  8. ^ "Extending Schemas". schema.org. 2011-06-02. Retrieved 2 June 2011.
  9. ^ "W3C web vocabularies mailing list". w3.org. 2013-07-22. Retrieved 22 July 2013.
  10. ^ "FAQ". schema.org. Retrieved 2 June 2011.
  11. ^ "Web Data Commons – RDFa, Microdata, and Microformat Data Sets -- Extracting Structured Data from the Common Web Crawl". 3.1. Extraction Results from the December 2014 Common Crawl Corpus. 2015-04-13. Retrieved 2015-04-13.
  12. ^ Microdata2RDF - a REST service extracting RDF from Microdata semantic annotations
  13. ^ GetSchema.org
  14. ^ Schema.RDFS.org
  15. ^ Google Structured Data Testing Tool
  16. ^ Yandex Microformat validator
  17. ^ Bing Markup Validator
  18. ^ "Specify your social profiles to Google". Google Developers. Retrieved 2015-06-25.
  19. ^ "Leveraging Wikidata To Gain A Google Knowledge Graph Result". Retrieved 2015-06-25.
  20. ^ Getting started with schema.org -- Example