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,9 @@
1
+ <!-- http://microformat2-node.jit.su/h-recipe.html -->
2
+
3
+ <div class="h-recipe">
4
+ <p class="p-name">Toast</p>
5
+ <ul>
6
+ <li class="e-ingredient">Slice of bread</li>
7
+ <li class="e-ingredient">Butter</li>
8
+ </ul>
9
+ </div>
@@ -0,0 +1,11 @@
1
+ // http://microformat2-node.jit.su/h-recipe.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-recipe"],
6
+ "properties": {
7
+ "name": ["Toast"],
8
+ "ingredient": ["Slice of bread", "Butter"]
9
+ }
10
+ }]
11
+ }
@@ -0,0 +1,67 @@
1
+ <!-- http://microformat2-node.jit.su/h-recipe.html -->
2
+
3
+ <section class="hrecipe"><h1 class="p-name">Yorkshire Puddings</h1>
4
+ <p class="p-summary">Makes <span class="p-yield">6 good sized Yorkshire puddings</span>, the way my mum taught me</p>
5
+
6
+
7
+ <p><img class="u-photo" src="http://codebits.glennjones.net/semantic/yorkshire-puddings.jpg"></p>
8
+
9
+ <span class="p-review h-review-aggregate">
10
+ <span class="p-rating">
11
+ <span class="p-average">4.5</span> stars out 5 based on </span>
12
+ <span class="p-count">35</span> reviews</span>
13
+
14
+
15
+
16
+ <div id="ingredients-container">
17
+ <h3>Ingredients</h3>
18
+ <ul>
19
+ <li class="e-ingredient">1 egg</li>
20
+ <li class="e-ingredient">75g plain flour</li>
21
+ <li class="e-ingredient">70ml milk</li>
22
+ <li class="e-ingredient">60ml water</li>
23
+ <li class="e-ingredient">Pinch of salt</li>
24
+ </ul>
25
+ </div>
26
+
27
+ <h3>Time</h3>
28
+ <ul>
29
+ <li class="prepTime">Preparation <span class="value-title" title="PT0H10M">10 mins</span>
30
+ </li>
31
+ <li class="cookTime">Cook <span class="value-title" title="PT0H25M">25 mins</span>
32
+ </li>
33
+ </ul>
34
+ <h3>Instructions</h3>
35
+ <div class="e-instructions">
36
+ <ol>
37
+ <li>Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole
38
+ Yorkshire pudding tins and place in the oven to heat through.</li>
39
+
40
+ <li>To make the batter, add all the flour into a bowl and beat in the eggs until smooth.
41
+ Gradually add the milk and water while beating the mixture. It should be smooth and
42
+ without lumps. Finally add a pinch of salt.</li>
43
+
44
+ <li>Make sure the oil is piping hot before pouring the batter evenly into the tins.
45
+ Place in the oven for 20-25 minutes until pudding have risen and look golden brown</li>
46
+ </ol>
47
+ </div>
48
+
49
+ <h3>Nutrition</h3>
50
+ <ul id="nutrition-list">
51
+ <li class="nutrition">Calories: <span class="calories">125</span>
52
+ </li>
53
+ <li class="nutrition">Fat: <span class="fat">3.2g</span>
54
+ </li>
55
+ <li class="nutrition">Cholesterol: <span class="cholesterol">77mg</span>
56
+ </li>
57
+ </ul>
58
+ <p>(Amount per pudding)</p>
59
+
60
+ <p>
61
+ Published on <time class="dt-published" datetime="2011-10-27">27 Oct 2011</time> by
62
+ <span class="p-author h-card">
63
+ <a class="p-name u-url" href="http://glennjones.net">Glenn Jones</a>
64
+ </span>
65
+ </p>
66
+ <a href="http://www.flickr.com/photos/dithie/4106528495/">Photo by dithie</a>
67
+ </section>
@@ -0,0 +1,51 @@
1
+ // http://microformat2-node.jit.su/h-recipe.html
2
+
3
+ {
4
+ "items": [ {
5
+ "type": ["h-recipe"],
6
+ "properties": {
7
+ "name": ["Yorkshire Puddings"],
8
+ "summary": ["Makes 6 good sized Yorkshire puddings, the way my mum taught me"],
9
+ "yield": ["6 good sized Yorkshire puddings"],
10
+ "photo": ["http://codebits.glennjones.net/semantic/yorkshire-puddings.jpg"],
11
+ "review": [
12
+ {
13
+ "value": "4.5 stars out 5 based on 35 reviews",
14
+ "type": ["h-review-aggregate"],
15
+ "properties": {
16
+ "rating": ["4.5 stars out 5 based on"],
17
+ "average": ["4.5"],
18
+ "count": ["35"],
19
+ "name": ["4.5 stars out 5 based on 35 reviews"]
20
+ }
21
+ }
22
+ ],
23
+ "ingredient": [
24
+ "1 egg",
25
+ "75g plain flour",
26
+ "70ml milk",
27
+ "60ml water",
28
+ "Pinch of salt"
29
+ ],
30
+ "instructions": [
31
+ "\n \n Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole \n Yorkshire pudding tins and place in the oven to heat through. \n \n To make the batter, add all the flour into a bowl and beat in the eggs until smooth. \n Gradually add the milk and water while beating the mixture. It should be smooth and \n without lumps. Finally add a pinch of salt.\n \n Make sure the oil is piping hot before pouring the batter evenly into the tins. \n Place in the oven for 20-25 minutes until pudding have risen and look golden brown\n \n "
32
+ ],
33
+ "nutrition": [
34
+ "Calories: 125",
35
+ "Fat: 3.2g",
36
+ "Cholesterol: 77mg"
37
+ ],
38
+ "published": ["2011-10-27"],
39
+ "author": [
40
+ {
41
+ "value": "Glenn Jones",
42
+ "type": ["h-card"],
43
+ "properties": {
44
+ "name": ["Glenn Jones"],
45
+ "url": ["http://glennjones.net"]
46
+ }
47
+ }
48
+ ]
49
+ }
50
+ }]
51
+ }
@@ -0,0 +1,3 @@
1
+ <!-- http://microformat2-node.jit.su/h-resume.html -->
2
+
3
+ <p class="h-resume">Tim Berners-Lee, invented the World Wide Web.</p>
@@ -0,0 +1,10 @@
1
+ // http://microformat2-node.jit.su/h-resume.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-resume"],
6
+ "properties": {
7
+ "name": ["Tim Berners-Lee, invented the World Wide Web."]
8
+ }
9
+ }]
10
+ }
@@ -0,0 +1,20 @@
1
+ <!-- http://microformat2-node.jit.su/h-resume.html -->
2
+
3
+ <div class="h-resume">
4
+ <p class="p-name">Tim Berners-Lee</p>
5
+ <p class="p-summary">Invented the World Wide Web.</p>
6
+ <hr>
7
+ <div class="p-contact h-card">
8
+ <p class="p-name">MIT</p>
9
+ <p>
10
+ <span class="p-street-address">32 Vassar Street</span>,
11
+ <span class="p-extended-address">Room 32-G524</span>,
12
+ <span class="p-locality">Cambridge</span>,
13
+ <span class="p-region">MA</span>
14
+ <span class="p-postal-code">02139</span>,
15
+ <span class="p-country-name">USA</span>.
16
+ </p>
17
+ <p>Tel:<span class="p-tel">+1 (617) 253 5702</span></p>
18
+ <p>Email:<a class="u-email" href="mailto:timbl@w3.org">timbl@w3.org</a></p>
19
+ </div>
20
+ </div>
@@ -0,0 +1,39 @@
1
+ // http://microformat2-node.jit.su/h-resume.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-resume"],
6
+ "properties": {
7
+ "name": ["Tim Berners-Lee"],
8
+ "summary": ["Invented the World Wide Web."],
9
+ "contact": [{
10
+ "value": "MIT 32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. Tel:+1 (617) 253 5702 Email:timbl@w3.org",
11
+ "type": ["h-card"],
12
+ "properties": {
13
+ "name": ["MIT"],
14
+ "street-address": ["32 Vassar Street"],
15
+ "extended-address": ["Room 32-G524"],
16
+ "locality": ["Cambridge"],
17
+ "region": ["MA"],
18
+ "postal-code": ["02139"],
19
+ "country-name": ["USA"],
20
+ "tel": ["+1 (617) 253 5702"],
21
+ "email": ["mailto:timbl@w3.org"]
22
+ }
23
+ }]
24
+ }
25
+ },{
26
+ "type": ["h-card"],
27
+ "properties": {
28
+ "name": ["MIT"],
29
+ "street-address": ["32 Vassar Street"],
30
+ "extended-address": ["Room 32-G524"],
31
+ "locality": ["Cambridge"],
32
+ "region": ["MA"],
33
+ "postal-code": ["02139"],
34
+ "country-name": ["USA"],
35
+ "tel": ["+1 (617) 253 5702"],
36
+ "email": ["timbl@w3.org"]
37
+ }
38
+ }]
39
+ }
@@ -0,0 +1,17 @@
1
+ <!-- http://microformat2-node.jit.su/h-resume.html -->
2
+
3
+ <div class="h-resume">
4
+ <p class="p-name">Tim Berners-Lee</p>
5
+ <div class="p-contact h-card">
6
+ <p class="p-title">Director of the World Wide Web Foundation</p>
7
+ </div>
8
+ <p class="p-summary">Invented the World Wide Web.</p>
9
+ <hr>
10
+ <div class="p-experience h-event h-card">
11
+ <p class="p-title">Director</p>
12
+ <p><a class="p-name p-org u-url" href="http://www.webfoundation.org/">World Wide Web Foundation</a></p>
13
+ <p>
14
+ <time class="dt-start" datetime="2009-01-18">Jan 2009</time> – Present
15
+ <time class="dt-duration" datetime="P2Y11M">(2 years 11 month)</time></p>
16
+ </div>
17
+ </div>
@@ -0,0 +1,54 @@
1
+ // http://microformat2-node.jit.su/h-resume.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-resume"],
6
+ "properties": {
7
+ "name": ["Tim Berners-Lee"],
8
+ "summary": ["Invented the World Wide Web."],
9
+ "contact": [{
10
+ "value": "Director of the World Wide Web Foundation",
11
+ "type": ["h-card"],
12
+ "properties": {
13
+ "name": ["Director of the World Wide Web Foundation"],
14
+ "title": ["Director of the World Wide Web Foundation"]
15
+ }
16
+ }],
17
+ "experience": [{
18
+ "value": "Director World Wide Web Foundation Jan 2009 - Present (2 years 11 month)",
19
+ "type": ["h-event", "h-card"],
20
+ "properties": {
21
+ "name": ["World Wide Web Foundation"],
22
+ "org": ["World Wide Web Foundation"],
23
+ "url": ["http://www.webfoundation.org/"],
24
+ "start": ["2009-01-18"],
25
+ "duration": ["P2Y11M"]
26
+ }
27
+ }]
28
+ }
29
+ },{
30
+ "type": ["h-card"],
31
+ "properties": {
32
+ "name": ["Director of the World Wide Web Foundation"],
33
+ "title": ["Director of the World Wide Web Foundation"]
34
+ }
35
+ },{
36
+ "type": ["h-event"],
37
+ "properties": {
38
+ "name": ["World Wide Web Foundation"],
39
+ "org": ["World Wide Web Foundation"],
40
+ "url": ["http://www.webfoundation.org/"],
41
+ "start": ["2009-01-18"],
42
+ "duration": ["P2Y11M"]
43
+ }
44
+ },{
45
+ "type": ["h-card"],
46
+ "properties": {
47
+ "name": ["World Wide Web Foundation"],
48
+ "org": ["World Wide Web Foundation"],
49
+ "url": ["http://www.webfoundation.org/"],
50
+ "start": ["2009-01-18"],
51
+ "duration": ["P2Y11M"]
52
+ }
53
+ }]
54
+ }
@@ -0,0 +1,15 @@
1
+ <!-- http://microformat2-node.jit.su/h-resume.html -->
2
+
3
+ <div class="h-resume">
4
+ <p class="p-name">Tim Berners-Lee</p>
5
+ <div class="p-contact h-card">
6
+ <p class="p-title">Director of the World Wide Web Foundation</p>
7
+ </div>
8
+ <p class="p-summary">Invented the World Wide Web.</p>
9
+ <hr>
10
+ <p class="p-education h-event h-card">
11
+ <span class="p-name p-org">The Queen's College, Oxford University</span>,
12
+ <span class="p-description">BA Hons (I) Physics</span>
13
+ <time class="dt-start" datetime="1973-09">1973</time> –
14
+ <time class="dt-end" datetime="1976-06">1976</time></p>
15
+ </div>
@@ -0,0 +1,54 @@
1
+ // http://microformat2-node.jit.su/h-resume.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-resume"],
6
+ "properties": {
7
+ "name": ["Tim Berners-Lee"],
8
+ "summary": ["Invented the World Wide Web."],
9
+ "contact": [{
10
+ "value": "Director of the World Wide Web Foundation",
11
+ "type": ["h-card"],
12
+ "properties": {
13
+ "name": ["Director of the World Wide Web Foundation"],
14
+ "title": ["Director of the World Wide Web Foundation"]
15
+ }
16
+ }],
17
+ "education": [{
18
+ "value": "The Queen's College, Oxford University, BA Hons (I) Physics 1973 - 1976",
19
+ "type": ["h-event", "h-card"],
20
+ "properties": {
21
+ "name": ["The Queen's College, Oxford University"],
22
+ "org": ["The Queen's College, Oxford University"],
23
+ "description": ["BA Hons (I) Physics"],
24
+ "start": ["1973-09"],
25
+ "end": ["1976-06"]
26
+ }
27
+ }]
28
+ }
29
+ },{
30
+ "type": ["h-card"],
31
+ "properties": {
32
+ "name": ["Director of the World Wide Web Foundation"],
33
+ "title": ["Director of the World Wide Web Foundation"]
34
+ }
35
+ },{
36
+ "type": ["h-event"],
37
+ "properties": {
38
+ "name": ["The Queen's College, Oxford University"],
39
+ "org": ["The Queen's College, Oxford University"],
40
+ "description": ["BA Hons (I) Physics"],
41
+ "start": ["1973-09"],
42
+ "end": ["1976-06"]
43
+ }
44
+ },{
45
+ "type": ["h-card"],
46
+ "properties": {
47
+ "name": ["World Wide Web Foundation"],
48
+ "org": ["World Wide Web Foundation"],
49
+ "url": ["http://www.webfoundation.org/"],
50
+ "start": ["2009-01-18"],
51
+ "duration": ["P2Y11M"]
52
+ }
53
+ }]
54
+ }
@@ -0,0 +1,15 @@
1
+ <!-- http://microformat2-node.jit.su/h-resume.html -->
2
+
3
+ <div class="h-resume">
4
+ <p>
5
+ <span class="p-name">Tim Berners-Lee</span>,
6
+ <span class="p-summary">invented the World Wide Web</span>.
7
+ </p>
8
+ Skills:
9
+ <ul>
10
+ <li class="p-skill">information systems</li>
11
+ <li class="p-skill">advocacy</li>
12
+ <li class="p-skill">leadership</li>
13
+ <ul></ul>
14
+ </ul>
15
+ </div>
@@ -0,0 +1,12 @@
1
+ // http://microformat2-node.jit.su/h-resume.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-resume"],
6
+ "properties": {
7
+ "name": ["Tim Berners-Lee"],
8
+ "summary": ["invented the World Wide Web"],
9
+ "skill": ["information systems", "advocacy", "leadership"]
10
+ }
11
+ }]
12
+ }
@@ -0,0 +1,13 @@
1
+ <!-- http://microformat2-node.jit.su/h-resume.html -->
2
+
3
+ <div class="h-resume">
4
+ <p>
5
+ <span class="p-name">Tim Berners-Lee</span>,
6
+ <span class="p-summary">invented the World Wide Web</span>.
7
+ </p>
8
+ Belongs to following groups:
9
+ <p>
10
+ <a class="p-affiliation h-card" href="http://www.w3.org/">
11
+ <img class="p-name u-photo" alt="W3C" src="http://www.w3.org/Icons/WWW/w3c_home_nb.png"></a>
12
+ </p>
13
+ </div>
@@ -0,0 +1,27 @@
1
+ // http://microformat2-node.jit.su/h-resume.html
2
+
3
+ {
4
+ "items": [{
5
+ "type": ["h-resume"],
6
+ "properties": {
7
+ "name": ["Tim Berners-Lee"],
8
+ "summary": ["invented the World Wide Web"],
9
+ "affiliation": [{
10
+ "value": "",
11
+ "type": ["h-card"],
12
+ "properties": {
13
+ "name": ["W3C"],
14
+ "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"],
15
+ "url": ["http://www.w3.org/"]
16
+ }
17
+ }]
18
+ }
19
+ },{
20
+ "type": ["h-card"],
21
+ "properties": {
22
+ "name": ["W3C"],
23
+ "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"],
24
+ "url": ["http://www.w3.org/"]
25
+ }
26
+ }]
27
+ }