User:Dantman/Output Metadata/Example Output

This is an example of the output we hope to make possible with an api to add global metadata to the page.

This page would be generated from extensions desiring to output the following metadata:

Note some key important facts:

  • We don't want the api to go implying types based on the format of the data. eg: A "http://wiki.example.com/" should not implicitly make RDFa or Microdata output give of URL semantics like the use of <link> instead of <meta>.
  • Our goal is NOT for this to be the api used for all Microdata and RDFa metadata. It is ONLY meant for global metadata attached to the page itself. Hence there will be no api support for nesting RDFa about's inside of URIs (though technically you won't need an api to make that association to stuff you put in the markup normally) or for the nesting of other itemprop+itemscope items connected to the Microdata added by this api.
  • Given updates in RDFa and our HTML5 support this output would actually use profile not xmlns. But may use xmlns in XHTML mode (as long as we still support that).
    • Maybe we should just ditch xmlns entirely even in XHTML mode. RDFa recommends using profile. xmlns is only for compatibility with old XHTML+RDFa 1.0 documents.
<!DOCTYPE html>
<html itemscope itemtype="http://schema.org/WebPage"
	xmlns:og="http://opengraphprotocol.org/schema/"
	xmlns:ex="http://example.org/schema/">
<head>
	<title>Example</title>
	<link rel="canonical" href="http://wiki.example.com/">

	<meta itemprop="name" content="Example">
	<link itemprop="url" content="http://wiki.example.com/">

	<meta property="og:title" content="Example">
	<meta property="og:type" content="website">
	<meta property="og:title" content="http://wiki.example.com/">

	<meta property="ex:title" content="Example">
	<link rel="ex:url" href="http://wiki.example.com/">
</head>
<body>
	<div itemscope itemtype="http://example.org/OtherSchema">
		<meta itemprop="title" content="Example">
		<link itemprop="url" href="http://wiki.example.com/">
	</div>
	...
</body>
</html>