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.
Files changed (205) hide show
  1. data/.gitignore +18 -0
  2. data/.rspec +2 -0
  3. data/.travis.yml +8 -0
  4. data/Gemfile +4 -0
  5. data/Guardfile +5 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +117 -26
  8. data/Rakefile +65 -9
  9. data/lib/microformats2.rb +30 -115
  10. data/lib/microformats2/collection.rb +71 -0
  11. data/lib/microformats2/format.rb +101 -0
  12. data/lib/microformats2/format_parser.rb +59 -0
  13. data/lib/microformats2/implied_property/foundation.rb +58 -0
  14. data/lib/microformats2/implied_property/name.rb +34 -0
  15. data/lib/microformats2/implied_property/photo.rb +24 -0
  16. data/lib/microformats2/implied_property/url.rb +20 -0
  17. data/lib/microformats2/property.rb +10 -0
  18. data/lib/microformats2/property/date_time.rb +31 -0
  19. data/lib/microformats2/property/embedded.rb +9 -0
  20. data/lib/microformats2/property/foundation.rb +80 -0
  21. data/lib/microformats2/property/text.rb +16 -0
  22. data/lib/microformats2/property/url.rb +18 -0
  23. data/lib/microformats2/property_parser.rb +54 -0
  24. data/lib/microformats2/version.rb +3 -0
  25. data/microformats2.gemspec +30 -0
  26. data/spec/lib/microformats2/collection_spec.rb +181 -0
  27. data/spec/lib/microformats2/implied_property/name_spec.rb +31 -0
  28. data/spec/lib/microformats2/implied_property/photo_spec.rb +31 -0
  29. data/spec/lib/microformats2/implied_property/url_spec.rb +31 -0
  30. data/spec/lib/microformats2_spec.rb +30 -0
  31. data/spec/spec_helper.rb +10 -0
  32. data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-0.html +3 -0
  33. data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-0.js +10 -0
  34. data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-1.html +10 -0
  35. data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-1.js +16 -0
  36. data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-2.html +12 -0
  37. data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-2.js +16 -0
  38. data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-3.html +6 -0
  39. data/spec/support/cases/microformat2-node.jit.su/h-adr/h-adr-3.js +12 -0
  40. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-0.html +3 -0
  41. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-0.js +10 -0
  42. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-1.html +3 -0
  43. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-1.js +11 -0
  44. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-2.html +4 -0
  45. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-2.js +12 -0
  46. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-3.html +11 -0
  47. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-3.js +15 -0
  48. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-4.html +6 -0
  49. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-4.js +26 -0
  50. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-5.html +6 -0
  51. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-5.js +30 -0
  52. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-6.html +6 -0
  53. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-6.js +29 -0
  54. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-7.html +16 -0
  55. data/spec/support/cases/microformat2-node.jit.su/h-card/h-card-7.js +15 -0
  56. data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-0.html +4 -0
  57. data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-0.js +10 -0
  58. data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-1.html +3 -0
  59. data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-1.js +11 -0
  60. data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-2.html +21 -0
  61. data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-2.js +28 -0
  62. data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-3.html +22 -0
  63. data/spec/support/cases/microformat2-node.jit.su/h-entry/h-entry-3.js +21 -0
  64. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-0.html +3 -0
  65. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-0.js +10 -0
  66. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-1.html +3 -0
  67. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-1.js +11 -0
  68. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-2.html +14 -0
  69. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-2.js +57 -0
  70. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-3.html +15 -0
  71. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-3.js +35 -0
  72. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-4.html +9 -0
  73. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-4.js +12 -0
  74. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-5.html +45 -0
  75. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-5.js +22 -0
  76. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-6.html +51 -0
  77. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-6.js +21 -0
  78. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-7.html +22 -0
  79. data/spec/support/cases/microformat2-node.jit.su/h-event/h-event-7.js +20 -0
  80. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-0.html +5 -0
  81. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-0.js +10 -0
  82. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-1.html +7 -0
  83. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-1.js +12 -0
  84. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-2.html +10 -0
  85. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-2.js +13 -0
  86. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-3.html +12 -0
  87. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-3.js +12 -0
  88. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-4.html +12 -0
  89. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-4.js +12 -0
  90. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-5.html +6 -0
  91. data/spec/support/cases/microformat2-node.jit.su/h-geo/h-geo-5.js +12 -0
  92. data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-0.html +26 -0
  93. data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-0.js +37 -0
  94. data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-1.html +37 -0
  95. data/spec/support/cases/microformat2-node.jit.su/h-news/h-news-1.js +48 -0
  96. data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-0.html +3 -0
  97. data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-0.js +10 -0
  98. data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-1.html +3 -0
  99. data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-1.js +11 -0
  100. data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-2.html +6 -0
  101. data/spec/support/cases/microformat2-node.jit.su/h-org/h-org-2.js +12 -0
  102. data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-0.html +3 -0
  103. data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-0.js +10 -0
  104. data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-1.html +3 -0
  105. data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-1.js +11 -0
  106. data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-2.html +11 -0
  107. data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-2.js +23 -0
  108. data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-3.html +22 -0
  109. data/spec/support/cases/microformat2-node.jit.su/h-product/h-product-3.js +42 -0
  110. data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-0.html +9 -0
  111. data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-0.js +11 -0
  112. data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-1.html +67 -0
  113. data/spec/support/cases/microformat2-node.jit.su/h-recipe/h-recipe-1.js +51 -0
  114. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-0.html +3 -0
  115. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-0.js +10 -0
  116. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-1.html +20 -0
  117. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-1.js +39 -0
  118. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-2.html +17 -0
  119. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-2.js +54 -0
  120. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-3.html +15 -0
  121. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-3.js +54 -0
  122. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-4.html +15 -0
  123. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-4.js +12 -0
  124. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-5.html +13 -0
  125. data/spec/support/cases/microformat2-node.jit.su/h-resume/h-resume-5.js +27 -0
  126. data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-0.html +10 -0
  127. data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-0.js +19 -0
  128. data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-1.html +20 -0
  129. data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-1.js +26 -0
  130. data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-2.html +15 -0
  131. data/spec/support/cases/microformat2-node.jit.su/h-review-aggregate/h-review-aggregate-2.js +23 -0
  132. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-0.html +3 -0
  133. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-0.js +10 -0
  134. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-1.html +3 -0
  135. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-1.js +11 -0
  136. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-2.html +3 -0
  137. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-2.js +11 -0
  138. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-3.html +6 -0
  139. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-3.js +19 -0
  140. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-4.html +8 -0
  141. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-4.js +20 -0
  142. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-5.html +24 -0
  143. data/spec/support/cases/microformat2-node.jit.su/h-review/h-review-5.js +37 -0
  144. data/spec/support/cases/microformat2-node.jit.su/includes/includes-0.html +18 -0
  145. data/spec/support/cases/microformat2-node.jit.su/includes/includes-0.js +43 -0
  146. data/spec/support/cases/microformat2-node.jit.su/includes/includes-1.html +26 -0
  147. data/spec/support/cases/microformat2-node.jit.su/includes/includes-1.js +54 -0
  148. data/spec/support/cases/microformat2-node.jit.su/includes/includes-2.html +13 -0
  149. data/spec/support/cases/microformat2-node.jit.su/includes/includes-2.js +20 -0
  150. data/spec/support/cases/microformat2-node.jit.su/includes/includes-3.html +20 -0
  151. data/spec/support/cases/microformat2-node.jit.su/includes/includes-3.js +40 -0
  152. data/spec/support/cases/microformat2-node.jit.su/includes/includes-4.html +23 -0
  153. data/spec/support/cases/microformat2-node.jit.su/includes/includes-4.js +42 -0
  154. data/spec/support/cases/microformat2-node.jit.su/rel/rel-0.html +3 -0
  155. data/spec/support/cases/microformat2-node.jit.su/rel/rel-0.js +10 -0
  156. data/spec/support/cases/microformat2-node.jit.su/rel/rel-1.html +3 -0
  157. data/spec/support/cases/microformat2-node.jit.su/rel/rel-1.js +10 -0
  158. data/spec/support/cases/microformat2-node.jit.su/rel/rel-2.html +12 -0
  159. data/spec/support/cases/microformat2-node.jit.su/rel/rel-2.js +19 -0
  160. data/spec/support/cases/microformat2-node.jit.su/rel/rel-3.html +21 -0
  161. data/spec/support/cases/microformat2-node.jit.su/rel/rel-3.js +26 -0
  162. data/spec/support/cases/microformat2-node.jit.su/rel/rel-4.html +15 -0
  163. data/spec/support/cases/microformat2-node.jit.su/rel/rel-4.js +42 -0
  164. data/spec/support/cases/microformats.org/microformats-2/microformats-2-0.html +2 -0
  165. data/spec/support/cases/microformats.org/microformats-2/microformats-2-0.js +9 -0
  166. data/spec/support/cases/microformats.org/microformats-2/microformats-2-1.html +2 -0
  167. data/spec/support/cases/microformats.org/microformats-2/microformats-2-1.js +10 -0
  168. data/spec/support/cases/microformats.org/microformats-2/microformats-2-2.html +5 -0
  169. data/spec/support/cases/microformats.org/microformats-2/microformats-2-2.js +11 -0
  170. data/spec/support/cases/microformats.org/microformats-2/microformats-2-3.html +17 -0
  171. data/spec/support/cases/microformats.org/microformats-2/microformats-2-3.js +20 -0
  172. data/spec/support/cases/microformats.org/microformats-2/microformats-2-4.html +16 -0
  173. data/spec/support/cases/microformats.org/microformats-2/microformats-2-4.js +24 -0
  174. data/spec/support/cases/microformats.org/microformats-2/microformats-2-5.html +7 -0
  175. data/spec/support/cases/microformats.org/microformats-2/microformats-2-5.js +11 -0
  176. data/spec/support/cases/microformats.org/microformats-2/microformats-2-6.html +9 -0
  177. data/spec/support/cases/microformats.org/microformats-2/microformats-2-6.js +18 -0
  178. data/spec/support/cases/microformats.org/microformats-2/microformats-2-7.html +9 -0
  179. data/spec/support/cases/microformats.org/microformats-2/microformats-2-7.js +18 -0
  180. data/spec/support/cases/microformats.org/microformats-2/microformats-2-8.html +9 -0
  181. data/spec/support/cases/microformats.org/microformats-2/microformats-2-8.js +17 -0
  182. data/spec/support/cases/microformats.org/microformats-2/microformats-2-9.html +9 -0
  183. data/spec/support/cases/microformats.org/microformats-2/microformats-2-9.js +17 -0
  184. data/spec/support/lib/microformats2/implied_property/name-fail.html +60 -0
  185. data/spec/support/lib/microformats2/implied_property/name-pass.html +30 -0
  186. data/spec/support/lib/microformats2/implied_property/photo-fail.html +60 -0
  187. data/spec/support/lib/microformats2/implied_property/photo-pass.html +30 -0
  188. data/spec/support/lib/microformats2/implied_property/url-fail.html +18 -0
  189. data/spec/support/lib/microformats2/implied_property/url-pass.html +12 -0
  190. data/spec/support/lib/microformats2/nested-format-with-property.html +12 -0
  191. data/spec/support/lib/microformats2/nested-format-with-property.js +15 -0
  192. data/spec/support/lib/microformats2/nested-format-without-property.html +13 -0
  193. data/spec/support/lib/microformats2/nested-property.html +12 -0
  194. data/spec/support/lib/microformats2/nested-property.js +9 -0
  195. data/spec/support/lib/microformats2/simple.html +19 -0
  196. data/spec/support/lib/microformats2/simple.js +10 -0
  197. metadata +535 -85
  198. data/.autotest +0 -23
  199. data/.gemtest +0 -0
  200. data/History.txt +0 -19
  201. data/Manifest.txt +0 -10
  202. data/bin/microformats2 +0 -3
  203. data/test/IndieWebCamp.html +0 -351
  204. data/test/simple.html +0 -30
  205. data/test/test_microformats2.rb +0 -185
@@ -0,0 +1,10 @@
1
+ <!-- http://microformat2-node.jit.su/h-geo.html -->
2
+
3
+ <p>My favourite hill in the lakes is
4
+ <span class="h-geo">
5
+ <span class="p-name">Pen-y-ghent</span>
6
+ (Geo: <span class="p-latitude">54.155278</span>,
7
+ <span class="p-longitude">-2.249722</span>). It
8
+ raises to <span class="p-altitude">694</span>m.
9
+ </span>
10
+ </p>
@@ -0,0 +1,13 @@
1
+ // http://microformat2-node.jit.su/h-geo.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-geo"],
6
+ "properties": {
7
+ "name": ["Pen-y-ghent"],
8
+ "latitude": ["54.155278"],
9
+ "longitude": ["-2.249722"],
10
+ "altitude": ["694"]
11
+ }
12
+ }]
13
+ }
@@ -0,0 +1,12 @@
1
+ <!-- http://microformat2-node.jit.su/h-geo.html -->
2
+
3
+ <p>
4
+ <span class="h-geo">
5
+ <span class="p-latitude">
6
+ <span class="value-title" title="51.513458">N 51° 51.345</span>,
7
+ </span>
8
+ <span class="p-longitude">
9
+ <span class="value-title" title="-0.14812">W -0° 14.812</span>
10
+ </span>
11
+ </span>
12
+ </p>
@@ -0,0 +1,12 @@
1
+ // http://microformat2-node.jit.su/h-geo.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-geo"],
6
+ "properties": {
7
+ "latitude": ["51.513458"],
8
+ "longitude": ["-0.14812"],
9
+ "name": ["N 51° 51.345, W -0° 14.812"]
10
+ }
11
+ }]
12
+ }
@@ -0,0 +1,12 @@
1
+ <!-- http://microformat2-node.jit.su/h-geo.html -->
2
+
3
+ <p>
4
+ <span class="h-geo">The Bricklayer's Arms
5
+ <span class="p-latitude">
6
+ <span class="value-title" title="51.513458"> </span>
7
+ </span>
8
+ <span class="p-longitude">
9
+ <span class="value-title" title="-0.14812"> </span>
10
+ </span>
11
+ </span>
12
+ </p>
@@ -0,0 +1,12 @@
1
+ // http://microformat2-node.jit.su/h-geo.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-geo"],
6
+ "properties": {
7
+ "latitude": ["51.513458"],
8
+ "longitude": ["-0.14812"],
9
+ "name": ["The Bricklayer's Arms"]
10
+ }
11
+ }]
12
+ }
@@ -0,0 +1,6 @@
1
+ <!-- http://microformat2-node.jit.su/h-geo.html -->
2
+
3
+ <p class="h-geo">
4
+ <abbr class="p-latitude" title="37.408183">N 37° 24.491</abbr>,
5
+ <abbr class="p-longitude" title="-122.13855">W 122° 08.313</abbr>
6
+ </p>
@@ -0,0 +1,12 @@
1
+ // http://microformat2-node.jit.su/h-geo.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-geo"],
6
+ "properties": {
7
+ "latitude": ["37.408183"],
8
+ "longitude": ["-122.13855"],
9
+ "name": ["N 37° 24.491, W 122° 08.313"]
10
+ }
11
+ }]
12
+ }
@@ -0,0 +1,26 @@
1
+ <!-- http://microformat2-node.jit.su/h-news.html -->
2
+
3
+ <div class="h-news">
4
+ <div class="p-entry h-entry">
5
+ <h1><a class="p-name u-url" href="http://microformats.org/2012/06/25/microformats-org-at-7">microformats.org at 7</a></h1>
6
+ <div class="e-content">
7
+ <p class="p-summary">Last week the microformats.org community
8
+ celebrated its 7th birthday at a gathering hosted by Mozilla in
9
+ San Francisco and recognized accomplishments, challenges, and
10
+ opportunities.</p>
11
+
12
+ <p>The microformats tagline “humans first, machines second”
13
+ forms the basis of many of our
14
+ <a href="http://microformats.org/wiki/principles">principles</a>, and
15
+ in that regard, we’d like to recognize a few people and
16
+ thank them for their years of volunteer service </p>
17
+ </div>
18
+ <p>Updated
19
+ <time class="dt-updated" datetime="2012-06-25T17:08:26">June 25th, 2012</time> by
20
+ <a class="p-author h-card" href="http://tantek.com/">Tantek</a>
21
+ </p>
22
+ </div>
23
+ <p>
24
+ <a class="p-source-org h-card" href="http://microformats.org/">microformats.org</a>
25
+ </p>
26
+ </div>
@@ -0,0 +1,37 @@
1
+ // http://microformat2-node.jit.su/h-news.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-news"],
6
+ "properties": {
7
+ "entry": [{
8
+ "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek",
9
+ "type": ["h-entry"],
10
+ "properties": {
11
+ "name": ["microformats.org at 7"],
12
+ "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
13
+ "content": ["\n <p class=\"p-summary\">Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.</p>\n\n <p>The microformats tagline “humans first, machines second” \n forms the basis of many of our \n <a href=\"http://microformats.org/wiki/principles\">principles</a>, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service </p>\n "],
14
+ "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."],
15
+ "updated": ["2012-06-25T17:08:26"],
16
+ "author": {
17
+ "value": "Tantek",
18
+ "type": ["h-card"],
19
+ "properties": {
20
+ "name": ["Tantek"],
21
+ "url": ["http://tantek.com/"]
22
+ }
23
+ }
24
+ }
25
+ }],
26
+ "source-org": [{
27
+ "value": "microformats.org",
28
+ "type": ["h-card"],
29
+ "properties": {
30
+ "name": ["microformats.org"],
31
+ "url": ["http://microformats.org/"]
32
+ }
33
+ }],
34
+ "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek microformats.org"]
35
+ }
36
+ }]
37
+ }
@@ -0,0 +1,37 @@
1
+ <!-- http://microformat2-node.jit.su/h-news.html -->
2
+
3
+ <div class="h-news">
4
+ <div class="p-entry h-entry">
5
+ <h1><a class="p-name u-url" href="http://microformats.org/2012/06/25/microformats-org-at-7">microformats.org at 7</a></h1>
6
+ <div class="e-content">
7
+ <p class="p-summary">Last week the microformats.org community
8
+ celebrated its 7th birthday at a gathering hosted by Mozilla in
9
+ San Francisco and recognized accomplishments, challenges, and
10
+ opportunities.</p>
11
+
12
+ <p>The microformats tagline “humans first, machines second”
13
+ forms the basis of many of our
14
+ <a href="http://microformats.org/wiki/principles">principles</a>, and
15
+ in that regard, we’d like to recognize a few people and
16
+ thank them for their years of volunteer service </p>
17
+ </div>
18
+ <p>Updated
19
+ <time class="dt-updated" datetime="2012-06-25T17:08:26">June 25th, 2012</time> by
20
+ <a class="p-author h-card" href="http://tantek.com/">Tantek</a>
21
+ </p>
22
+ </div>
23
+
24
+ <p>
25
+ <span class="p-dateline h-adr">
26
+ <span class="p-locality">San Francisco</span>,
27
+ <span class="p-region">CA</span>
28
+ </span>
29
+ (Geo: <span class="p-geo">37.774921;-122.445202</span>)
30
+ <span class="p-source-org h-card">
31
+ <a class="p-name u-url" href="http://microformats.org/">microformats.org</a>
32
+ </span>
33
+ </p>
34
+ <p>
35
+ <a class="u-principles" href="http://microformats.org/wiki/Category:public_domain_license">Publishing policy</a>
36
+ </p>
37
+ </div>
@@ -0,0 +1,48 @@
1
+ // http://microformat2-node.jit.su/h-news.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-news"],
6
+ "properties": {
7
+ "entry": [{
8
+ "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek",
9
+ "type": ["h-entry"],
10
+ "properties": {
11
+ "name": ["microformats.org at 7"],
12
+ "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
13
+ "content": ["\n <p class=\"p-summary\">Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.</p>\n\n <p>The microformats tagline “humans first, machines second” \n forms the basis of many of our \n <a href=\"http://microformats.org/wiki/principles\">principles</a>, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service </p>\n "],
14
+ "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."],
15
+ "updated": ["2012-06-25T17:08:26"],
16
+ "author": {
17
+ "value": "Tantek",
18
+ "type": ["h-card"],
19
+ "properties": {
20
+ "name": ["Tantek"],
21
+ "url": ["http://tantek.com/"]
22
+ }
23
+ }
24
+ }
25
+ }],
26
+ "dateline": [{
27
+ "value": "San Francisco, CA",
28
+ "type": ["h-adr"],
29
+ "properties": {
30
+ "locality": ["San Francisco"],
31
+ "region": ["CA"],
32
+ "name": ["San Francisco, CA"]
33
+ }
34
+ }],
35
+ "geo": ["37.774921;-122.445202"],
36
+ "source-org": [{
37
+ "value": "microformats.org",
38
+ "type": ["h-card"],
39
+ "properties": {
40
+ "name": ["microformats.org"],
41
+ "url": ["http://microformats.org/"]
42
+ }
43
+ }],
44
+ "principles": ["http://microformats.org/wiki/Category:public_domain_license"],
45
+ "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek San Francisco, CA (Geo: 37.774921;-122.445202) microformats.org Publishing policy"]
46
+ }
47
+ }]
48
+ }
@@ -0,0 +1,3 @@
1
+ <!-- http://microformat2-node.jit.su/h-org.html -->
2
+
3
+ <span class="h-org">Mozilla Foundation</span>
@@ -0,0 +1,10 @@
1
+ // http://microformat2-node.jit.su/h-org.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-org"],
6
+ "properties": {
7
+ "name": ["Mozilla Foundation"]
8
+ }
9
+ }]
10
+ }
@@ -0,0 +1,3 @@
1
+ <!-- http://microformat2-node.jit.su/h-org.html -->
2
+
3
+ <a class="h-org" href="http://mozilla.org/">Mozilla Foundation</a>
@@ -0,0 +1,11 @@
1
+ // http://microformat2-node.jit.su/h-org.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-org"],
6
+ "properties": {
7
+ "name": ["Mozilla Foundation"],
8
+ "url": ["http://mozilla.org/"]
9
+ }
10
+ }]
11
+ }
@@ -0,0 +1,6 @@
1
+ <!-- http://microformat2-node.jit.su/h-org.html -->
2
+
3
+ <p class="h-org">
4
+ <span class="p-organization-name">W3C</span> -
5
+ <span class="p-organization-unit">CSS Working Group</span>
6
+ </p>
@@ -0,0 +1,12 @@
1
+ // http://microformat2-node.jit.su/h-org.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-org"],
6
+ "properties": {
7
+ "organization-name": ["W3C"],
8
+ "organization-unit": ["CSS Working Group"],
9
+ "name": ["W3C - CSS Working Group"]
10
+ }
11
+ }]
12
+ }
@@ -0,0 +1,3 @@
1
+ <!-- http://microformat2-node.jit.su/h-product.html -->
2
+
3
+ <p class="h-product">Raspberry Pi</p>
@@ -0,0 +1,10 @@
1
+ // http://microformat2-node.jit.su/h-product.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-product"],
6
+ "properties": {
7
+ "name": ["Raspberry Pi"]
8
+ }
9
+ }]
10
+ }
@@ -0,0 +1,3 @@
1
+ <!-- http://microformat2-node.jit.su/h-product.html -->
2
+
3
+ <a class="h-product" href="http://www.raspberrypi.org/">Raspberry Pi</a>
@@ -0,0 +1,11 @@
1
+ // http://microformat2-node.jit.su/h-product.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-product"],
6
+ "properties": {
7
+ "name": ["Raspberry Pi"],
8
+ "url": ["http://www.raspberrypi.org/"]
9
+ }
10
+ }]
11
+ }
@@ -0,0 +1,11 @@
1
+ <!-- http://microformat2-node.jit.su/h-product.html -->
2
+
3
+ <div class="h-product">
4
+ <h2 class="p-name">Raspberry Pi</h2>
5
+ <img class="u-photo" src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"><p class="e-description">The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.</p>
6
+ <a class="u-url" href="http://www.raspberrypi.org/">More info about the Raspberry Pi</a>
7
+ <p class="p-price">£29.95</p>
8
+ <p class="p-review h-review"><span class="p-rating">4.5</span> out of 5</p>
9
+ <p>Categories: <span class="p-category">Computer</span>, <span class="p-category">Education</span></p>
10
+ </div>
11
+
@@ -0,0 +1,23 @@
1
+ // http://microformat2-node.jit.su/h-product.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-product"],
6
+ "properties": {
7
+ "name": ["Raspberry Pi"],
8
+ "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"],
9
+ "description": ["The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming."],
10
+ "url": ["http://www.raspberrypi.org/"],
11
+ "price": ["£29.95"],
12
+ "category": ["Computer","Education"],
13
+ "review": [{
14
+ "value": "4.5 out of 5",
15
+ "type": ["h-review"],
16
+ "properties": {
17
+ "rating": ["4.5"],
18
+ "name": ["4.5 out of 5"]
19
+ }
20
+ }]
21
+ }
22
+ }]
23
+ }
@@ -0,0 +1,22 @@
1
+ <!-- http://microformat2-node.jit.su/h-product.html -->
2
+
3
+ <div class="h-product">
4
+ <h2 class="p-name">Raspberry Pi</h2>
5
+ <img class="u-photo" src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"><p class="e-description">The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.</p>
6
+ <a class="u-url" href="http://www.raspberrypi.org/">More info about the Raspberry Pi</a>
7
+ <p class="p-price">£29.95</p>
8
+ <p class="p-review h-review-aggregate">
9
+ <span class="p-rating h-rating">
10
+ <span class="p-average">9.2</span> out of
11
+ <span class="p-best">10</span>
12
+ based on <span class="p-count">178</span> reviews
13
+ </span>
14
+ </p>
15
+ <p>Categories: <span class="p-category">Computer</span>, <span class="p-category">Education</span></p>
16
+ <p class="p-brand h-card">From:
17
+ <span class="p-name p-org">The Raspberry Pi Foundation</span> -
18
+ <span class="p-locality">Cambridge</span>
19
+ <span class="p-country-name">UK</span>
20
+ </p>
21
+ </div>
22
+
@@ -0,0 +1,42 @@
1
+ // http://microformat2-node.jit.su/h-product.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-product"],
6
+ "properties": {
7
+ "name": ["Raspberry Pi"],
8
+ "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"],
9
+ "description": ["The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming."],
10
+ "url": ["http://www.raspberrypi.org/"],
11
+ "price": ["£29.95"],
12
+ "review": [{
13
+ "value": "9.2 out of 10 based on 178 reviews",
14
+ "type": ["h-review-aggregate"],
15
+ "properties": {
16
+ "rating": [{
17
+ "value": "9.2 out of 10 based on 178 reviews",
18
+ "type": ["h-rating"],
19
+ "properties": {
20
+ "average": ["9.2"],
21
+ "best": ["10"],
22
+ "count": ["178"],
23
+ "name": ["9.2 out of 10 based on 178 reviews"]
24
+ }
25
+ }],
26
+ "name": ["9.2 out of 10 based on 178 reviews"]
27
+ }
28
+ }],
29
+ "category": ["Computer","Education"],
30
+ "brand": [{
31
+ "value": "From: The Raspberry Pi Foundation - Cambridge UK",
32
+ "type": ["h-card"],
33
+ "properties": {
34
+ "name": ["The Raspberry Pi Foundation"],
35
+ "org": ["The Raspberry Pi Foundation"],
36
+ "locality": ["Cambridge"],
37
+ "country-name": ["UK"]
38
+ }
39
+ }]
40
+ }
41
+ }]
42
+ }