SearchMonkey > Start Overview > Event

Event - Display dates, locations, and reviews for events

Example

Description

Display event information directly in Yahoo! Search. Add code to indicate to Yahoo! that an event exists on your page, and when we next crawl your site, we'll take care of the rest. From your markup, we’ll be able to extract structured data from your site and render it automatically in an enhanced result in search results.

Details

  • Types of content permitted: information about festivals, concerts, appointments, parties, and other activities that have a defined time period.
  • How soon after I add my markup will I see my enhanced result appear? Assuming your markup is correct, your enhanced result will appear after Yahoo! recrawls your page; this can take between a few days and a few weeks depending on your site.

Get Started

1. Add code / markup to your site

Copy this code and replace the example text with your data to see enhanced local listing information in Yahoo! Search.

  • Use RDFa markup to embed event metadata directly in your markup. You can provide the event's start date and time, the event's name, the location, and more.
  • Use hcalendar, hcard and hreview markup for an alternative way to display event, address and review information in Yahoo! Search.
  • Use DataRSS XML to send your data to Yahoo! privately, using a feed. Once you have constructed your DataRSS feed, you must submit the feed to Yahoo!.

RDFa

Example 1

<div typeof="vcal:Vevent" 
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:vcal="http://www.w3.org/2002/12/cal/icaltzd#">

  <span property="rdfs:label vcal:summary">SearchMonkey Developer Event </span>

  Start at <span property="vcal:dtstart"> 6pm, June 25, 2008</span>.
</div>

NOTE: Your event code might vary.

Example 2

<div typeof="vcal:Vevent" 
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:vcal="http://www.w3.org/2002/12/cal/icaltzd#"
  xmlns:vcard="http://www.w3.org/2006/vcard/ns#"
  xmlns:review="http://purl.org/stuff/rev#"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
  xmlns:commerce="http://search.yahoo.com/searchmonkey/commerce/">

  <span property="rdfs:label vcal:summary">SearchMonkey Developer Event </span>

  Start at <span property="vcal:dtstart" datatype="xsd:dateTime" content="2008-06-25T18:00:00+00:00"> 6pm, June 25, 2008</span>
  ends at <span property="vcal:dtend" datatype="xsd:dateTime" content="2008-06-25T22:00:00+00:00"> 10pm, June 25, 2008</span>

  <a rel="vcal:url rdfs:seeAlso" resource="http://developer.yahoo.com/searchmonkey/"></a>

  <span property="vcal:description rdfs:comment">
     Let's Party! SearchMonkey Style

     If you're a web developer, come party with us at the SearchMonkey Developer Event.
     There will be a tech talk by the engineers who built the platform. We'll be doing 
     live demos, sharing schwag, and serving substantial amounts of free food and beer!

     SearchMonkey allows developers and site owners to use semantic web standards and 
     structured data to enhance Yahoo! Search results and make them more useful,
     relevant, and visually appealing. Come meet the guys who created the product, 
     and feel free to monkey around with them as you wish.

     If you want to join us then please click "I'm Going" right here in Upcoming 
     or alternatively RSVP by sending your full name to searchmonkeyevent@yahoo-inc.com.

     Hope to see you there!
  </span>

  <div rel="vcal:location">
    <div typeof="vcard:VCard commerce:Business">
      <span property="vcard:fn">WallaceSpace</span>
      <div rel="vcard:adr">
        <div typeof="vcard:Address">
          <!-- If address is not available in parsed form, use
          <span property="rdfs:label">2 Dryden Street, Covent Garden, London, England WC2E 9NA</span>
           -->
          <span property="vcard:street-address">2 Dryden Street</span>
          <span property="vcard:locality">London</span>
          <span property="vcard:region">England</span>
          <span property="vcard:postal-code">WC2E 9NA</span>
          <span property="vcard:country-name">United Kingdom</span>
        </div>
      </div>
      <span property="vcard:tel">+44(0)20 7395 1265</span>
      <div rel="vcard:geo">
        <span property="vcard:latitude" datatype="xsd:float">51.514828</span>
        <span property="vcard:longitude" datatype="xsd:float">-0.122604</span>
      </div>
    </div>
  </div>

  <!--Review -->
  <div rel="review:hasReview">
    <div typeof="review:Review">
      Rated <span property="review:rating" datatype="xsd:float">3.5</span> on a scale of
      <span property="review:minRating" datatype="xsd:integer">1</span>	to
      <span property="review:maxRating" datatype="xsd:integer">5</span>

      Rated <span property="review:totalRatings" datatype="xsd:integer">14</span> times.
    </div>
  </div>
</div>

This metadata will be available in SearchMonkey and Yahoo! Search BOSS for further use. For more information, refer to the RDFa specification or the RDFa wiki.

NOTE: To validate your markup with RDFa attributes, use this W3C DOCTYPE:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

Microformats

Example 1

<div class="vevent">
 <h3 class="summary">SearchMonkey Developer Event</h3>

 <p>To be held on <span class="dtstart">6pm, June 25, 2008</span>.</p>
</div>

This is the minimum markup you need to display event information on your page when that page turns up in search results.

Example 2

<div class="vevent hreview-aggregate">
  <div class="item">
    <h3 class="summary fn">SearchMonkey Developer Event</h3>

    <p class="description">
      Let's Party! SearchMonkey Style

      If you're a web developer, come party with us at the SearchMonkey Developer Event.
      There will be a tech talk by the engineers who built the platform. We'll be doing
      live demos, sharing schwag, and serving substantial amounts of free food and beer!

      SearchMonkey allows developers and site owners to use semantic web standards and
      structured data to enhance Yahoo! Search results and make them more useful,
      relevant, and visually appealing. Come meet the guys who created the product,
      and feel free to monkey around with them as you wish.

      If you want to join us then please click "I'm Going" right here in Upcoming
      or alternatively RSVP by sending your full name to searchmonkeyevent@yahoo-inc.com.

      Hope to see you there!
    </p>
    <p>For more info, see <a class="url" href="http://developer.yahoo.com/searchmonkey/">SearchMonkey Home</a></p>
  </div>
  <p>To be held on <abbr class="dtstart" title="2008-06-25T18:00:00+00:00">6pm, June 25, 2008</abbr>
      until <abbr class="dtend" title="2008-06-25T22:00:00+00:00">10pm, June 25, 2008</abbr></p>
  <div class="location vcard">
     Location: <span class="fn org">WallaceSpace</span>
     <span class="adr">
        <span class="street-address">2 Dryden Street</span>,
        <span class="locality">London</span>,
        <span class="region">England</span>,
        <span class="country-name">United Kingdom</span>,
        <span class="postal-code">WC2E 9NA</span>,
     </span>
    <span class="tel">+44(0)20 7395 1265 </span>

    <div class="geo">
      <abbr class="latitude" title="37.408183">51.514828</abbr>
      <abbr class="longitude" title="-122.13855">-0.122604</abbr>
    </div>
  </div>
  <div>
      Rated <span class="rating">4.5</span> out of <span class="best">5</span> stars based on <span class="count"> 29</span>ratings.
  </div>
</div>

This markup not only displays event information, but address information and the aggregate review rating.

DataRSS XML

Example 1

<y:adjunct xmlns:y="http://search.yahoo.com/datarss/" version="1.0" name="YOURID">
  <y:item rel="dc:subject">
    <y:type typeof="vcal:Vevent">
      <y:meta property="rdfs:label vcal:summary">SearchMonkey Developer Event </y:meta>    
      <y:meta property="vcal:dtstart" datatype="xsd:dateTime" content="2008-06-25T18:00:00+00:00"> 6pm, June 25, 2008</y:meta>
      <y:meta property="vcal:dtend" datatype="xsd:dateTime" content="2008-06-25T22:00:00+00:00"> 10pm, June 25, 2008</y:meta>

      <y:item rel="vcal:url rdfs:seeAlso" resource="http://developer.yahoo.com/searchmonkey/"/>

      <y:meta property="vcal:description rdfs:comment">
         Let's Party! SearchMonkey Style

         If you're a web developer, come party with us at the SearchMonkey Developer Event.
         There will be a tech talk by the engineers who built the platform. We'll be doing 
         live demos, sharing schwag, and serving substantial amounts of free food and beer!

         SearchMonkey allows developers and site owners to use semantic web standards and
         structured data to enhance Yahoo! Search results and make them more useful,
         relevant, and visually appealing. Come meet the guys who created the product,
         and feel free to monkey around with them as you wish.

         If you want to join us then please click "I'm Going" right here in Upcoming
         or alternatively RSVP by sending your full name to searchmonkeyevent@yahoo-inc.com.

         Hope to see you there!
      </y:meta>

      <y:item rel="vcal:location">
        <y:type typeof="vcard:VCard commerce:Business">
          <y:meta property="vcard:fn">WallaceSpace</y:meta>
          <y:item rel="vcard:adr">
            <y:type typeof="vcard:Address">
              <!-- If address is not available in parsed form, use
              <y:meta property="rdfs:label">2 Dryden Street, Covent Garden, London, England WC2E 9NA</y:meta>
               -->
              <y:meta property="vcard:street-address">2 Dryden Street</y:meta>
              <y:meta property="vcard:locality">London</y:meta>
              <y:meta property="vcard:region">England</y:meta>
              <y:meta property="vcard:postal-code">WC2E 9NA</y:meta>
              <y:meta property="vcard:country-name">United Kingdom</y:meta>
            </y:type>
          </y:item>
          <y:meta property="vcard:tel">+44(0)20 7395 1265 </y:meta>
          <y:item rel="vcard:geo">
            <y:meta property="vcard:latitude" datatype="xsd:float">51.514828</y:meta>
            <y:meta property="vcard:longitude" datatype="xsd:float">-0.122604</y:meta>
          </y:item>
        </y:type>
      </y:item>

      <!--Review -->
      <y:item rel="review:hasReview">
        <y:type typeof="review:Review">
          <y:meta property="review:rating" datatype="xsd:float">3.5</y:meta>
          <y:meta property="review:minRating" datatype="xsd:integer">1</y:meta>
          <y:meta property="review:maxRating" datatype="xsd:integer">5</y:meta>
          <y:meta property="review:totalRatings" datatype="xsd:integer">14</y:meta>
        </y:type>
      </y:item>
    </y:type>
  </y:item>
</y:adjunct>

This markup would be included in a DataRSS feed.

2. Validate your markup

Test your markup to make sure your enhanced result will appear.

3. Wait until we recrawl your site for your enhanced result to appear on the search results page

This can take up to a few weeks depending on your site.

Copyright © 2009 Yahoo! Inc. All rights reserved. Copyright | Privacy Policy | Terms of Service

Help us continue to improve the Yahoo! Developer Network: Send Your Suggestions