microformats2 1.0.2 → 2.0.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.travis.yml +8 -0
- data/Gemfile +4 -0
- data/Guardfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +117 -26
- data/Rakefile +65 -9
- data/lib/microformats2.rb +30 -115
- data/lib/microformats2/collection.rb +71 -0
- data/lib/microformats2/format.rb +101 -0
- data/lib/microformats2/format_parser.rb +59 -0
- data/lib/microformats2/implied_property/foundation.rb +58 -0
- data/lib/microformats2/implied_property/name.rb +34 -0
- data/lib/microformats2/implied_property/photo.rb +24 -0
- data/lib/microformats2/implied_property/url.rb +20 -0
- data/lib/microformats2/property.rb +10 -0
- data/lib/microformats2/property/date_time.rb +31 -0
- data/lib/microformats2/property/embedded.rb +9 -0
- data/lib/microformats2/property/foundation.rb +80 -0
- data/lib/microformats2/property/text.rb +16 -0
- data/lib/microformats2/property/url.rb +18 -0
- data/lib/microformats2/property_parser.rb +54 -0
- data/lib/microformats2/version.rb +3 -0
- data/microformats2.gemspec +30 -0
- data/spec/lib/microformats2/collection_spec.rb +181 -0
- data/spec/lib/microformats2/implied_property/name_spec.rb +31 -0
- data/spec/lib/microformats2/implied_property/photo_spec.rb +31 -0
- data/spec/lib/microformats2/implied_property/url_spec.rb +31 -0
- data/spec/lib/microformats2_spec.rb +30 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-1.html +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-1.js +16 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-2.html +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-2.js +16 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-3.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-3.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-2.html +4 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-2.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-3.html +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-3.js +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-4.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-4.js +26 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-5.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-5.js +30 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-6.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-6.js +29 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-7.html +16 -0
- data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-7.js +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-0.html +4 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-2.html +21 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-2.js +28 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-3.html +22 -0
- data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-3.js +21 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-2.html +14 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-2.js +57 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-3.html +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-3.js +35 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-4.html +9 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-4.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-5.html +45 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-5.js +22 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-6.html +51 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-6.js +21 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-7.html +22 -0
- data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-7.js +20 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-0.html +5 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-1.html +7 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-1.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-2.html +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-2.js +13 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-3.html +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-3.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-4.html +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-4.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-5.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-5.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-0.html +26 -0
- data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-0.js +37 -0
- data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-1.html +37 -0
- data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-1.js +48 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-2.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-2.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-2.html +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-2.js +23 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-3.html +22 -0
- data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-3.js +42 -0
- data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-0.html +9 -0
- data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-0.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-1.html +67 -0
- data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-1.js +51 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-1.html +20 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-1.js +39 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-2.html +17 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-2.js +54 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-3.html +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-3.js +54 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-4.html +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-4.js +12 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-5.html +13 -0
- data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-5.js +27 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-0.html +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-0.js +19 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-1.html +20 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-1.js +26 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-2.html +15 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-2.js +23 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-1.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-2.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-2.js +11 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-3.html +6 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-3.js +19 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-4.html +8 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-4.js +20 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-5.html +24 -0
- data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-5.js +37 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-0.html +18 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-0.js +43 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-1.html +26 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-1.js +54 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-2.html +13 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-2.js +20 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-3.html +20 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-3.js +40 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-4.html +23 -0
- data/spec/support/cases/microformat2-node.jit.su/includes/includes-4.js +42 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-0.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-0.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-1.html +3 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-1.js +10 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-2.html +12 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-2.js +19 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-3.html +21 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-3.js +26 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-4.html +15 -0
- data/spec/support/cases/microformat2-node.jit.su/rel/rel-4.js +42 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-0.html +2 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-0.js +9 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-1.html +2 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-1.js +10 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-2.html +5 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-2.js +11 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-3.html +17 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-3.js +20 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-4.html +16 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-4.js +24 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-5.html +7 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-5.js +11 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-6.html +9 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-6.js +18 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-7.html +9 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-7.js +18 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-8.html +9 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-8.js +17 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-9.html +9 -0
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-9.js +17 -0
- data/spec/support/lib/microformats2/implied_property/name-fail.html +60 -0
- data/spec/support/lib/microformats2/implied_property/name-pass.html +30 -0
- data/spec/support/lib/microformats2/implied_property/photo-fail.html +60 -0
- data/spec/support/lib/microformats2/implied_property/photo-pass.html +30 -0
- data/spec/support/lib/microformats2/implied_property/url-fail.html +18 -0
- data/spec/support/lib/microformats2/implied_property/url-pass.html +12 -0
- data/spec/support/lib/microformats2/nested-format-with-property.html +12 -0
- data/spec/support/lib/microformats2/nested-format-with-property.js +15 -0
- data/spec/support/lib/microformats2/nested-format-without-property.html +13 -0
- data/spec/support/lib/microformats2/nested-property.html +12 -0
- data/spec/support/lib/microformats2/nested-property.js +9 -0
- data/spec/support/lib/microformats2/simple.html +19 -0
- data/spec/support/lib/microformats2/simple.js +10 -0
- metadata +535 -85
- data/.autotest +0 -23
- data/.gemtest +0 -0
- data/History.txt +0 -19
- data/Manifest.txt +0 -10
- data/bin/microformats2 +0 -3
- data/test/IndieWebCamp.html +0 -351
- data/test/simple.html +0 -30
- data/test/test_microformats2.rb +0 -185
@@ -0,0 +1,10 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-review-aggregate.html -->
|
2
|
+
|
3
|
+
<div class="h-review-aggregate">
|
4
|
+
<h3 class="p-item h-item">Mediterranean Wraps</h3>
|
5
|
+
<span class="p-summary">
|
6
|
+
Customers flock to this small restaurant for their
|
7
|
+
tasty falafel and shawerma wraps and welcoming staff.
|
8
|
+
</span>
|
9
|
+
<span class="p-rating">4.5</span> out of 5
|
10
|
+
</div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-review-aggregate.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-review-aggregate"],
|
6
|
+
"properties": {
|
7
|
+
"item": [{
|
8
|
+
"value": "Mediterranean Wraps",
|
9
|
+
"type": ["h-item"],
|
10
|
+
"properties": {
|
11
|
+
"name": ["Mediterranean Wraps"]
|
12
|
+
}
|
13
|
+
}],
|
14
|
+
"summary": ["Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff."],
|
15
|
+
"rating": ["4.5"],
|
16
|
+
"name": ["Mediterranean Wraps Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff. 4.5 out of 5"]
|
17
|
+
}
|
18
|
+
}]
|
19
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-review-aggregate.html -->
|
2
|
+
|
3
|
+
<div class="hreview-aggregate">
|
4
|
+
<div class="p-item h-card">
|
5
|
+
<h3 class="p-name">Mediterranean Wraps</h3>
|
6
|
+
<p>
|
7
|
+
<span class="p-street-address">433 S California Ave</span>,
|
8
|
+
<span class="p-locality">Palo Alto</span>,
|
9
|
+
<span class="p-region">CA</span> -
|
10
|
+
<span class="p-tel">(650) 321-8189</span>
|
11
|
+
</p>
|
12
|
+
</div>
|
13
|
+
<span class="p-summary">Customers flock to this small restaurant for their
|
14
|
+
tasty falafel and shawerma wraps and welcoming staff.</span>
|
15
|
+
<span class="p-rating">
|
16
|
+
<span class="p-average value">9.2</span> out of
|
17
|
+
<span class="p-best">10</span>
|
18
|
+
based on <span class="p-count">17</span> reviews
|
19
|
+
</span>
|
20
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-review-aggregate.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-review-aggregate"],
|
6
|
+
"properties": {
|
7
|
+
"item": [{
|
8
|
+
"value": "Mediterranean Wraps 433 S California Ave, Palo Alto, CA - (650) 321-8189",
|
9
|
+
"type": ["h-card"],
|
10
|
+
"properties": {
|
11
|
+
"name": ["Mediterranean Wraps"],
|
12
|
+
"street-address": ["433 S California Ave"],
|
13
|
+
"locality": ["Palo Alto"],
|
14
|
+
"region": ["CA"],
|
15
|
+
"tel": ["(650) 321-8189"]
|
16
|
+
}
|
17
|
+
}],
|
18
|
+
"summary": ["Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff."],
|
19
|
+
"rating": ["9.2"],
|
20
|
+
"average": ["9.2"],
|
21
|
+
"best": ["10"],
|
22
|
+
"count": ["17"],
|
23
|
+
"name": ["Mediterranean Wraps 433 S California Ave, Palo Alto, CA - (650) 321-8189 Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff. 9.2 out of 10 based on 17 reviews"]
|
24
|
+
}
|
25
|
+
}]
|
26
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-review-aggregate.html -->
|
2
|
+
|
3
|
+
<div class="h-review-aggregate">
|
4
|
+
<div class="p-item h-event">
|
5
|
+
<h3 class="p-name">Fullfrontal</h3>
|
6
|
+
<p class="p-description">A one day JavaScript Conference held in Brighton</p>
|
7
|
+
<p><time class="dt-start" datetime="2012-11-09">9th November 2012</time></p>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<p class="p-rating">
|
11
|
+
<span class="p-average value">9.9</span> out of
|
12
|
+
<span class="p-best">10</span>
|
13
|
+
based on <span class="p-count">62</span> reviews
|
14
|
+
</p>
|
15
|
+
</div>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-review-aggregate.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-review-aggregate"],
|
6
|
+
"properties": {
|
7
|
+
"item": [{
|
8
|
+
"value": "Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012",
|
9
|
+
"type": ["h-event"],
|
10
|
+
"properties": {
|
11
|
+
"name": ["Fullfrontal"],
|
12
|
+
"description": ["A one day JavaScript Conference held in Brighton"],
|
13
|
+
"start": ["2012-11-09"]
|
14
|
+
}
|
15
|
+
}],
|
16
|
+
"rating": ["9.9"],
|
17
|
+
"average": ["9.9"],
|
18
|
+
"best": ["10"],
|
19
|
+
"count": ["62"],
|
20
|
+
"name": ["Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012 9.9 out of 10 based on 62 reviews"]
|
21
|
+
}
|
22
|
+
}]
|
23
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-review.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-review"],
|
6
|
+
"properties": {
|
7
|
+
"item": [{
|
8
|
+
"value": "Crepes on Cole",
|
9
|
+
"type": ["h-item"],
|
10
|
+
"properties": {
|
11
|
+
"name": ["Crepes on Cole"],
|
12
|
+
"url": ["http://example.com/crepeoncole"]
|
13
|
+
}
|
14
|
+
}],
|
15
|
+
"rating": ["4.7"],
|
16
|
+
"name": ["Crepes on Cole 4.7 out of 5 stars"]
|
17
|
+
}
|
18
|
+
}]
|
19
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-review.html -->
|
2
|
+
|
3
|
+
<div class="h-review">
|
4
|
+
<p class="p-item h-item">
|
5
|
+
<img class="u-photo" src="images/photo.gif"><a class="p-name u-url" href="http://example.com/crepeoncole">Crepes on Cole</a>
|
6
|
+
</p>
|
7
|
+
<p><span class="p-rating">5</span> out of 5 stars</p>
|
8
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-review.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-review"],
|
6
|
+
"properties": {
|
7
|
+
|
8
|
+
"item": [{
|
9
|
+
"value": "Crepes on Cole",
|
10
|
+
"type": ["h-item"],
|
11
|
+
"properties": {
|
12
|
+
"photo": ["http://example.com/images/photo.gif"],
|
13
|
+
"name": ["Crepes on Cole"],
|
14
|
+
"url": ["http://example.com/crepeoncole"]
|
15
|
+
}
|
16
|
+
}],
|
17
|
+
"rating": ["5"]
|
18
|
+
}
|
19
|
+
}]
|
20
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/h-review.html -->
|
2
|
+
|
3
|
+
<div class="h-review">
|
4
|
+
<span><span class="p-rating">5</span> out of 5 stars</span>
|
5
|
+
<h4 class="p-name">Crepes on Cole is awesome</h4>
|
6
|
+
<span class="p-reviewer h-card">
|
7
|
+
Reviewer: <span class="p-name">Tantek</span> -
|
8
|
+
</span>
|
9
|
+
<time class="dt-reviewed" datetime="2005-04-18">April 18, 2005</time><div class="e-description">
|
10
|
+
<p class="p-item h-card">
|
11
|
+
<span class="p-name p-org">Crepes on Cole</span> is one of the best little
|
12
|
+
creperies in <span class="p-adr h-adr"><span class="p-locality">San Francisco</span></span>.
|
13
|
+
Excellent food and service. Plenty of tables in a variety of sizes
|
14
|
+
for parties large and small. Window seating makes for excellent
|
15
|
+
people watching to/from the N-Judah which stops right outside.
|
16
|
+
I've had many fun social gatherings here, as well as gotten
|
17
|
+
plenty of work done thanks to neighborhood WiFi.
|
18
|
+
</p>
|
19
|
+
</div>
|
20
|
+
<p>Visit date: <span>April 2005</span></p>
|
21
|
+
<p>Food eaten: <a class="p-category" href="http://en.wikipedia.org/wiki/crepe">crepe</a></p>
|
22
|
+
<p>Permanent link for review: <a class="u-url" href="http://example.com/crepe">http://example.com/crepe</a></p>
|
23
|
+
<p><a rel="license" href="http://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License">Creative Commons Attribution-ShareAlike License</a></p>
|
24
|
+
</div>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// http://microformat2-node.jit.su/h-review.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-review"],
|
6
|
+
"properties": {
|
7
|
+
"rating": ["5"],
|
8
|
+
"name": ["Crepes on Cole is awesome"],
|
9
|
+
"reviewer": [{
|
10
|
+
"value": "Reviewer: Tantek -",
|
11
|
+
"type": ["h-card"],
|
12
|
+
"properties": {
|
13
|
+
"name": ["Tantek"]
|
14
|
+
}
|
15
|
+
}],
|
16
|
+
"description": ["\n <p class=\"p-item h-card\">\n <span class=\"p-name p-org\">Crepes on Cole</span> is one of the best little \n creperies in <span class=\"p-adr h-adr\"><span class=\"p-locality\">San Francisco</span></span>.\n Excellent food and service. Plenty of tables in a variety of sizes \n for parties large and small. Window seating makes for excellent \n people watching to/from the N-Judah which stops right outside. \n I've had many fun social gatherings here, as well as gotten \n plenty of work done thanks to neighborhood WiFi.\n </p>\n "],
|
17
|
+
"item": [{
|
18
|
+
"value": "Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.",
|
19
|
+
"type": ["h-card"],
|
20
|
+
"properties": {
|
21
|
+
"name": ["Crepes on Cole"],
|
22
|
+
"org": ["Crepes on Cole"],
|
23
|
+
"adr": [{
|
24
|
+
"value": "San Francisco",
|
25
|
+
"type": ["h-adr"],
|
26
|
+
"properties": {
|
27
|
+
"locality": ["San Francisco"],
|
28
|
+
"name": ["San Francisco"]
|
29
|
+
}
|
30
|
+
}]
|
31
|
+
}
|
32
|
+
}],
|
33
|
+
"category": ["crepe"],
|
34
|
+
"url": ["http://example.com/crepe"]
|
35
|
+
}
|
36
|
+
}]
|
37
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/includes.html -->
|
2
|
+
|
3
|
+
<div class="h-card" itemref="mozilla-org mozilla-adr">
|
4
|
+
<span class="p-name">Brendan Eich</span>
|
5
|
+
</div>
|
6
|
+
<div class="h-card" itemref="mozilla-org mozilla-adr">
|
7
|
+
<span class="p-name">Mitchell Baker</span>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<p id="mozilla-org" class="p-org">Mozilla</p>
|
11
|
+
<p id="mozilla-adr" class="p-adr h-adr">
|
12
|
+
<span class="p-street-address">665 3rd St.</span>
|
13
|
+
<span class="p-extended-address">Suite 207</span>
|
14
|
+
<span class="p-locality">San Francisco</span>,
|
15
|
+
<span class="p-region">CA</span>
|
16
|
+
<span class="p-postal-code">94107</span>
|
17
|
+
<span class="p-country-name">U.S.A.</span>
|
18
|
+
</p>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
// http://microformat2-node.jit.su/includes.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-card"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["Brendan Eich"],
|
8
|
+
"org": ["Mozilla"],
|
9
|
+
"adr": [{
|
10
|
+
"value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.",
|
11
|
+
"type": ["h-adr"],
|
12
|
+
"properties": {
|
13
|
+
"street-address": ["665 3rd St."],
|
14
|
+
"extended-address": ["Suite 207"],
|
15
|
+
"locality": ["San Francisco"],
|
16
|
+
"region": ["CA"],
|
17
|
+
"postal-code": ["94107"],
|
18
|
+
"country-name": ["U.S.A."],
|
19
|
+
"name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
|
20
|
+
}
|
21
|
+
}]
|
22
|
+
}
|
23
|
+
},{
|
24
|
+
"type": ["h-card"],
|
25
|
+
"properties": {
|
26
|
+
"name": ["Mitchell Baker"],
|
27
|
+
"org": ["Mozilla"],
|
28
|
+
"adr": [{
|
29
|
+
"value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.",
|
30
|
+
"type": ["h-adr"],
|
31
|
+
"properties": {
|
32
|
+
"street-address": ["665 3rd St."],
|
33
|
+
"extended-address": ["Suite 207"],
|
34
|
+
"locality": ["San Francisco"],
|
35
|
+
"region": ["CA"],
|
36
|
+
"postal-code": ["94107"],
|
37
|
+
"country-name": ["U.S.A."],
|
38
|
+
"name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
|
39
|
+
}
|
40
|
+
}]
|
41
|
+
}
|
42
|
+
}]
|
43
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!-- http://microformat2-node.jit.su/includes.html -->
|
2
|
+
|
3
|
+
<div class="h-event" itemref="io-session07">
|
4
|
+
<span class="p-name">Monetizing Android Apps</span> - spaekers:
|
5
|
+
<span class="p-speaker">Chrix Finne</span>,
|
6
|
+
<span class="p-speaker">Kenneth Lui</span> -
|
7
|
+
<span itemref="io-location" class="p-location h-adr">
|
8
|
+
<span class="p-extended-address">Room 10</span>
|
9
|
+
</span>
|
10
|
+
</div>
|
11
|
+
<div class="h-event" itemref="io-session07">
|
12
|
+
<span class="p-name">New Low-Level Media APIs in Android</span> - spaekers:
|
13
|
+
<span class="p-speaker">Dave Burke</span> -
|
14
|
+
<span itemref="io-location" class="p-location h-adr">
|
15
|
+
<span class="p-extended-address">Room 11</span>
|
16
|
+
</span>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<p id="io-session07">
|
20
|
+
Session 01 is between:
|
21
|
+
<time class="dt-start" datetime="2012-06-27T15:45:00-0800">3:45PM</time> to
|
22
|
+
<time class="dt-end" datetime="2012-06-27T16:45:00-0800">4:45PM</time></p>
|
23
|
+
<p id="io-location">
|
24
|
+
<span class="p-extended-address">Moscone Center</span>,
|
25
|
+
<span class="p-locality">San Francisco</span>
|
26
|
+
</p>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
// http://microformat2-node.jit.su/includes.html
|
2
|
+
|
3
|
+
{
|
4
|
+
"items": [{
|
5
|
+
"type": ["h-event"],
|
6
|
+
"properties": {
|
7
|
+
"name": ["Monetizing Android Apps"],
|
8
|
+
"speaker": ["Chrix Finne","Kenneth Lui"],
|
9
|
+
"location": [{
|
10
|
+
"value": "Room 10 Moscone Center, San Francisco",
|
11
|
+
"type": ["h-adr"],
|
12
|
+
"properties": {
|
13
|
+
"extended-address": ["Room 10", "Moscone Center"],
|
14
|
+
"locality": ["San Francisco"],
|
15
|
+
"name": ["Room 10 Moscone Center, San Francisco"]
|
16
|
+
}
|
17
|
+
}],
|
18
|
+
"start": ["2012-06-27T15:45:00-0800"],
|
19
|
+
"end": ["2012-06-27T16:45:00-0800"]
|
20
|
+
}
|
21
|
+
},{
|
22
|
+
"type": ["h-event"],
|
23
|
+
"properties": {
|
24
|
+
"name": ["New Low-Level Media APIs in Android"],
|
25
|
+
"speaker": ["Dave Burke"],
|
26
|
+
"location": [{
|
27
|
+
"value": "Room 11 Moscone Center, San Francisco",
|
28
|
+
"type": ["h-adr"],
|
29
|
+
"properties": {
|
30
|
+
"extended-address": ["Room 11", "Moscone Center"],
|
31
|
+
"locality": ["San Francisco"],
|
32
|
+
"name": ["Room 11 Moscone Center, San Francisco"]
|
33
|
+
}
|
34
|
+
}],
|
35
|
+
"start": ["2012-06-27T15:45:00-0800"],
|
36
|
+
"end": ["2012-06-27T16:45:00-0800"]
|
37
|
+
}
|
38
|
+
},{
|
39
|
+
"type": ["h-adr"],
|
40
|
+
"properties": {
|
41
|
+
"extended-address": ["Room 10", "Moscone Center"],
|
42
|
+
"locality": ["San Francisco"],
|
43
|
+
"name": ["Room 10 Moscone Center, San Francisco"]
|
44
|
+
}
|
45
|
+
},{
|
46
|
+
"type": ["h-adr"],
|
47
|
+
"properties": {
|
48
|
+
"extended-address": ["Room 11", "Moscone Center"],
|
49
|
+
"locality": ["San Francisco"],
|
50
|
+
"name": ["Room 11 Moscone Center, San Francisco"]
|
51
|
+
}
|
52
|
+
}
|
53
|
+
]
|
54
|
+
}
|