Websemantics/schema.org
Aus SELFHTML-Wiki
schema.org ist eine Initiative, die zum Ziel hat, Daten auf Webseiten einheitlich zu strukturieren und auszuzeichnen.[1] Mit den von schema.org entwickelten Begrifflichkeiten[2] können mit Hilfe von itemprop-Mikrodaten und RDFa (RDF in Attributes) Inhalte auf Websites gekennzeichnet werden, um von den beteiligten Suchmaschinen leichter erkannt zu werden.
Auszeichnung mit RDFa (REDF in Attributes)
<address vocab="http://schema.org/Person" typeof="author">
<span property="name">Max Mustermann</span>
<div property="address" typeof="http://schema.org/PostalAddress">
<span property="streetAddress">Feldweg 21</span>,
<span property="postalCode">12345</span> <span property="addressLocality">Ahausen</span>
</div>
<span property="telephone">(49) 123-4567</span>
<a href="mailto:max.mustermann@example.com" property="email">max.mustermann@example.com</a>
</adress>
Auszeichnung mit itemprop-Mikrodaten
<address itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Max Mustermann</span>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">Feldweg 21</span>,
<span itemprop="postalCode">12345</span> <span itemprop="addressLocality">Ahausen</span>
</div>
<span itemprop="telephone">(49) 123-4567</span>
<a href="mailto:max.mustermann@example.com" itemprop="email">max.mustermann@example.com</a>
</adress>
Weblinks
- ↑ http://schema.org/
- ↑ Wikipedia: Ontologie