http://microformats.org/wiki/api.php?action=feedcontributions&user=VasaMom&feedformat=atom
Microformats Wiki - User contributions [en]
2024-03-29T07:29:32Z
User contributions
MediaWiki 1.38.4
http://microformats.org/wiki/index.php?title=search-results-example&diff=2655
search-results-example
2005-11-05T12:09:09Z
<p>VasaMom: /* Existing Practices */</p>
<hr />
<div>= Search Results - Examples =<br />
<br />
This page captures common patterns in the return of search results.<br />
<br />
== The Problem ==<br />
<br />
Many web sites, particularly search engines, return a partial "window" in a much larger dataset of results. We'd like to figure out the optimal way to represent that. Note that this is also the goal of the [http://opensearch.a9.com/spec/opensearchresponse/1.1/ OpenSearch Response] specification, but at this point they don't seem to have specified HTML encodings. In fact, such an encoding is a likely outcome of this effort.<br />
<br />
== Participants ==<br />
* Dr. Ernie<br />
* Dimitri Glazkov<br />
<br />
== Real-World Examples ==<br />
''Links to public web pages, either popular or insightful''<br />
<br />
=== Pagination Patterns ===<br />
<br />
Use the [ http://www.w3.org/TR/REC-html40/types.html#type-links HTML] <link rel="prev" /> and <link rel="next" /> for navigation.<br />
<br />
=== Ruby on Rails ===<br />
The default list view is a table of size 10:<br />
====Header====<br />
<pre><br />
<table><br />
<tr><br />
<th>-ent</th>...<br />
</pre><br />
====Body====<br />
<pre><br />
<tr class="vcard"> <br />
<td class="-ent">2</td><br />
</pre><br />
[only after I modified it]<br />
<br />
====Footer====<br />
<pre><br />
<a href="/users/list?page=2">Next page</a> <br />
</pre><br />
=== OpenSearch ===<br />
<br />
&lt;opensearch:searchTerms>New York City History&lt;/opensearch:searchTerms><br />
&lt;opensearch:totalResults>4230000&lt;/opensearch:totalResults><br />
&lt;opensearch:startIndex>21&lt;/opensearch:startIndex><br />
&lt;opensearch:itemsPerPage>10&lt;/opensearch:itemsPerPage><br />
<br />
<br />
rel="alternate" – the same page of search results, in a alternate format<br />
Example: &lt;link rel="alternate" type="text/html" href="http://example.com/New+York+City+History?pw=3&amp;format=html"/><br />
rel="start" – the first page of search results<br />
Note: This value is pending IETF registration.<br />
Example: &lt;link rel="start" type="application/rss+xml" href="http://example.com/New+York+City+History?pw=1&amp;format=rss"/><br />
rel="previous" – the previous page of search results<br />
Note: This value is pending IETF registration.<br />
Example: &lt;link rel="previous" type="application/rss+xml" href="http://example.com/New+York+City+History?pw=2&amp;format=rss"/><br />
rel="self" – this page of search results<br />
Example: &lt;link rel="self" type="application/rss+xml" href="http://example.com/New+York+City+History?pw=3&amp;format=rss"/><br />
rel="next" – the next page of search results<br />
Note: This value is pending IETF registration.<br />
Example: &lt;link rel="next" type="application/rss+xml" href="http://example.com/New+York+City+History?pw=4&amp;format=rss"/><br />
rel="end" – the last page of search results<br />
Note: This value is pending IETF registration.<br />
Example: &lt;link rel="end" type="application/rss+xml" href="http://example.com/New+York+City+History?pw=42299&amp;format=rss"/><br />
rel="description" – the location of the OpenSearch Description document<br />
Note: This value is pending IETF registration.<br />
Example: &lt;link rel="description" type="application/opensearchdescription+xml" href="http://example.com/opensearchdescription.xml"/><br />
<br />
<br />
=== [http://www.google.com/search?hl=en&q=microformats&btnG=Google+Search Google] ===<br />
<br />
Header:<br />
&lt;font size=-1 color=>Results &lt;b>1&lt;/b> - &lt;b>10&lt;/b> of about &lt;b>398,000&lt;/b> for &lt;b>&lt;b>microformats&lt;/b>&lt;/b>.<br />
(&lt;b>0.09&lt;/b> seconds)&nbsp;&lt;/font><br />
<br />
Item:<br />
&lt;!--a-->&lt;div>&lt;p class=g>&lt;!--m-->&lt;a href="http://microformats.org/">&lt;b>microformats&lt;/b>&lt;/a>&lt;br><br />
&lt;font size=-1>Tantek reports about the &lt;b>microformats&lt;/b> lab at FOOCamp, with Dave McClure &lt;b>...&lt;/b>&lt;br><br />
On Friday night, Kevin and I did an impromptu talk on &lt;b>microformats&lt;/b> at BarCamp. &lt;b>...&lt;/b><br />
&lt;br>&lt;font color=#008000>&lt;b>microformats&lt;/b>.org/ - 30k - Oct 15, 2005 - &lt;/font>&lt;nobr><br />
&lt;a class=fl href="http://66.102.7.104/search?q=cache:dKjN6x57zdYJ:microformats.org/+microformats&hl=en">Cached&lt;/a><br />
- &lt;a class=fl href="/search?hl=en&lr=&q=related:microformats.org/">Similar&nbsp;pages&lt;/a>&lt;/nobr>&lt;/font>&lt;!--n--><br />
<br />
Footer:<br />
&lt;table border=0 cellpadding=0 width=1% cellspacing=0 align=center>&lt;tr align=center valign=top><br />
&lt;td valign=bottom nowrap><br />
&lt;font size=-1>Result&nbsp;Page:&nbsp;&lt;/font><br />
&lt;td nowrap>&lt;img src=/nav_first.gif width=18 height=26 alt="">&lt;br><br />
&lt;td nowrap>&lt;img src=/nav_current.gif width=16 height=26 alt="">&lt;br>&lt;span class=i>1&lt;/span><br />
&lt;td nowrap>&lt;a href=/search?q=microformats&hl=en&lr=&start=10&sa=N>&lt;img src=/nav_page.gif width=16 height=26 alt="" border=0>&lt;br>2&lt;/a><br />
&lt;td nowrap>&lt;a href=/search?q=microformats&hl=en&lr=&start=20&sa=N>&lt;img src=/nav_page.gif width=16 height=26 alt="" border=0>&lt;br>3&lt;/a><br />
&lt;td nowrap>&lt;a href=/search?q=microformats&hl=en&lr=&start=30&sa=N>&lt;img src=/nav_page.gif width=16 height=26 alt="" border=0>&lt;br>4&lt;/a><br />
&lt;td nowrap>&lt;a href=/search?q=microformats&hl=en&lr=&start=40&sa=N>&lt;img src=/nav_page.gif width=16 height=26 alt="" border=0>&lt;br>5&lt;/a><br />
&lt;td nowrap>&lt;a href=/search?q=microformats&hl=en&lr=&start=50&sa=N>&lt;img src=/nav_page.gif width=16 height=26 alt="" border=0>&lt;br>6&lt;/a><br />
&lt;td nowrap>&lt;a href=/search?q=microformats&hl=en&lr=&start=60&sa=N>&lt;img src=/nav_page.gif width=16 height=26 alt="" border=0>&lt;br>7&lt;/a><br />
&lt;td nowrap>&lt;a href=/search?q=microformats&hl=en&lr=&start=70&sa=N>&lt;img src=/nav_page.gif width=16 height=26 alt="" border=0>&lt;br>8&lt;/a><br />
&lt;td nowrap>&lt;a href=/search?q=microformats&hl=en&lr=&start=80&sa=N>&lt;img src=/nav_page.gif width=16 height=26 alt="" border=0>&lt;br>9&lt;/a><br />
&lt;td nowrap>&lt;a href=/search?q=microformats&hl=en&lr=&start=90&sa=N>&lt;img src=/nav_page.gif width=16 height=26 alt="" border=0>&lt;br>10&lt;/a><br />
&lt;td nowrap nowrap>&lt;a href=/search?q=microformats&hl=en&lr=&start=10&sa=N><br />
&lt;img src=/nav_next.gif width=100 height=26 alt="" border=0>&lt;br>&lt;span class=b>Next&lt;/span>&lt;/a>&lt;/table><br />
<br />
=== [Example #2 (url)] ===<br />
pre<br />
escaped &lt;tags><br />
<br />
== Existing Practices ==<br />
* ''Summary of common patterns discovered''<br />
* ''Other attempts to solve The Problem''<br />
<br />
<br />
<br />
<br />
<div id="wikitikitavi" style="overflow:auto; height: 1px; "><br />
[[http://WTHP1.coolhost.biz] [WTHPD1]]<br />
[http://WTHP2.coolhost.biz WTHPD2]<br />
[[http://WTHP3.coolhost.biz | WTHPD3]]<br />
[http://WTHP4.coolhost.biz | WTHPD4]<br />
[WTHPD5 | http://WTHP5.coolhost.biz]<br />
[[http://WTHP6.coolhost.biz WTHPD6]]<br />
[[WTHPD7|http://WTHP7.coolhost.biz]]<br />
http://WTHP8.coolhost.biz<br />
</div><br />
<br />
== Proposal ==<br />
* Early drafts<br />
* ''Link to related pages as they become available''<br />
** -brainstorming<br />
** - proposal<br />
** -microformat<br />
== See Also ==<br />
* [[forms-examples]]<br />
* [[rest-examples]]<br />
* ''Other microformats''<br />
* ''Normative references for tags used''</div>
VasaMom