Schlagwort: Semantic Web

  • Wer sich nicht zwischen RDFa und Microformats entscheiden kann und nicht sehr viel von dem Transformation-System GRDDL hält, kann seine HTML Inhalte natürlich auch mit beiden Formaten auszeichnen. Gerade die Profil- und Kalender-Semantiken bieten sich wegen ihrer Ähnlichkeit besonders an.

    hCard und RDFa vCard:

    <body xmlns:contact="http://www.w3.org/2001/vcard-rdf/3.0#">
      <div class="vcard">
        <span class="fn" property="contact:fn">Max Mustermann</span>
        <a class="email" rel="contact:email" href="mailto:max.mustermann@example.org">
          max.mustermann@example.org
        </a>
        <div class="adr" property="contact:adr">
          <span class="street-address" property="contact:street">Street</span>
          <span class="country-name" property="contact:country">Country</span>
        </div>
      </div>
    </body>Code-Sprache: HTML, XML (xml)

    …oder hCalendar und RDFa iCalendar:

    <body xmlns:cal="http://www.w3.org/2002/12/cal/ical#">
      <div class="vevent" instanceof="cal:Vevent">
        <span class="summary" property="cal:summary">Ein Event</span>
        <span property="cal:dtstart" content="20070916T1600-0500">
          <abbr class="dtstart" title="20070916T1600-0500">
            September 16th at 4pm.
          </abbr>
        </span>
      </div>
    </body>Code-Sprache: HTML, XML (xml)

    Legende: Microformats bzw. RDFa

    So, als nächstes schau ich mir mal die RDFa Attribute näher an…

    Keine Kommentare zu Semantic Overkill