Skip to content

Commit 7a0f8ac

Browse files
committed
New e-* object structure in output
1 parent 341fd01 commit 7a0f8ac

37 files changed

Lines changed: 210 additions & 189 deletions

h-entry.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ <h3>The expected JSON output:</h3>
117117
"properties": {
118118
"url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
119119
"name": ["microformats.org at 7"],
120-
"content": ["\n &lt;p class=\"p-summary\"&gt;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.&lt;/p&gt;\n\n &lt;p&gt;The microformats tagline &#8220;humans first, machines second&#8221; \n forms the basis of many of our \n &lt;a href=\"http://microformats.org/wiki/principles\"&gt;principles&lt;/a&gt;, and \n in that regard, we&#8217;d like to recognize a few people and \n thank them for their years of volunteer service &lt;/p&gt;\n "],
120+
"content": [{
121+
"value": "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",
122+
"html": "\n &lt;p class=\"p-summary\"&gt;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.&lt;/p&gt;\n\n &lt;p&gt;The microformats tagline &#8220;humans first, machines second&#8221; \n forms the basis of many of our \n &lt;a href=\"http://microformats.org/wiki/principles\"&gt;principles&lt;/a&gt;, and \n in that regard, we&#8217;d like to recognize a few people and \n thank them for their years of volunteer service &lt;/p&gt;\n "
123+
}],
121124
"updated": ["2012-06-25T17:08:26"],
122125
"author": [{
123126
"value": "Tantek",

h-news.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ <h3>The expected JSON output:</h3>
7171
"properties": {
7272
"name": ["microformats.org at 7"],
7373
"url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
74-
"content": ["\n &lt;p class=\"p-summary\"&gt;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.&lt;/p&gt;\n\n &lt;p&gt;The microformats tagline &#8220;humans first, machines second&#8221; \n forms the basis of many of our \n &lt;a href=\"http://microformats.org/wiki/principles\"&gt;principles&lt;/a&gt;, and \n in that regard, we&#8217;d like to recognize a few people and \n thank them for their years of volunteer service &lt;/p&gt;\n "],
74+
"content": [{
75+
"value": "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",
76+
"html": "\n &lt;p class=\"p-summary\"&gt;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.&lt;/p&gt;\n\n &lt;p&gt;The microformats tagline &#8220;humans first, machines second&#8221; \n forms the basis of many of our \n &lt;a href=\"http://microformats.org/wiki/principles\"&gt;principles&lt;/a&gt;, and \n in that regard, we&#8217;d like to recognize a few people and \n thank them for their years of volunteer service &lt;/p&gt;\n "
77+
}],
7578
"updated": ["2012-06-25T17:08:26"],
7679
"author": {
7780
"value": "Tantek",
@@ -157,7 +160,10 @@ <h3>The expected JSON output:</h3>
157160
"properties": {
158161
"name": ["microformats.org at 7"],
159162
"url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
160-
"content": ["\n &lt;p class=\"p-summary\"&gt;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.&lt;/p&gt;\n\n &lt;p&gt;The microformats tagline &#8220;humans first, machines second&#8221; \n forms the basis of many of our \n &lt;a href=\"http://microformats.org/wiki/principles\"&gt;principles&lt;/a&gt;, and \n in that regard, we&#8217;d like to recognize a few people and \n thank them for their years of volunteer service &lt;/p&gt;\n "],
163+
"content": [{
164+
"value": "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",
165+
"html": "\n &lt;p class=\"p-summary\"&gt;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.&lt;/p&gt;\n\n &lt;p&gt;The microformats tagline &#8220;humans first, machines second&#8221; \n forms the basis of many of our \n &lt;a href=\"http://microformats.org/wiki/principles\"&gt;principles&lt;/a&gt;, and \n in that regard, we&#8217;d like to recognize a few people and \n thank them for their years of volunteer service &lt;/p&gt;\n "
166+
}],
161167
"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."],
162168
"updated": ["2012-06-25T17:08:26"],
163169
"author": {

h-product.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ <h3>The expected JSON output:</h3>
106106
"properties": {
107107
"name": ["Raspberry Pi"],
108108
"photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"],
109-
"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."],
109+
"description": [{
110+
"value": "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.",
111+
"html": "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."
112+
}],
110113
"url": ["http://www.raspberrypi.org/"],
111114
"price": ["£29.95"],
112115
"category": ["Computer","Education"],
@@ -165,7 +168,10 @@ <h3>The expected JSON output:</h3>
165168
"properties": {
166169
"name": ["Raspberry Pi"],
167170
"photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"],
168-
"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."],
171+
"description": [{
172+
"value": "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.",
173+
"html": "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."
174+
}],
169175
"url": ["http://www.raspberrypi.org/"],
170176
"price": ["£29.95"],
171177
"review": [{

h-recipe.html

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ <h3>The expected JSON output:</h3>
4747
"type": ["h-recipe"],
4848
"properties": {
4949
"name": ["Toast"],
50-
"ingredient": ["Slice of bread", "Butter"]
50+
"ingredient": [{
51+
"value": "Slice of bread",
52+
"html": "Slice of bread"
53+
},{
54+
"value": "Butter",
55+
"html": "Butter"
56+
}]
5157
}
5258
}]
5359
}
@@ -150,16 +156,26 @@ <h3>The expected JSON output:</h3>
150156
}
151157
}
152158
],
153-
"ingredient": [
154-
"1 egg",
155-
"75g plain flour",
156-
"70ml milk",
157-
"60ml water",
158-
"Pinch of salt"
159-
],
160-
"instructions": [
161-
"\n <ol>\n <li>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.</li> \n \n <li>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.</li>\n \n <li>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</li>\n </ol>\n "
162-
],
159+
"ingredient": [{
160+
"value": "1 egg",
161+
"html": "1 egg"
162+
},{
163+
"value": "75g plain flour",
164+
"html": "75g plain flour"
165+
},{
166+
"value": "70ml milk",
167+
"html": "70ml milk"
168+
},{
169+
"value": "60ml water",
170+
"html": "60ml water"
171+
},{
172+
"value": "Pinch of salt",
173+
"html": "Pinch of salt"
174+
}],
175+
"instructions": [{
176+
"value": "Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole Yorkshire pudding tins and place in the oven to heat through. To make the batter, add all the flour into a bowl and beat in the eggs until smooth. Gradually add the milk and water while beating the mixture. It should be smooth and without lumps. Finally add a pinch of salt. Make sure the oil is piping hot before pouring the batter evenly into the tins. Place in the oven for 20-25 minutes until pudding have risen and look golden brown",
177+
"html": "\n <ol>\n <li>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.</li> \n \n <li>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.</li>\n \n <li>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</li>\n </ol>\n "
178+
}],
163179
"nutrition": [
164180
"Calories: 125",
165181
"Fat: 3.2g",

h-review.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ <h3>The expected JSON output:</h3>
233233
"name": ["Tantek"]
234234
}
235235
}],
236-
"description": ["\n &lt;p class=\"p-item h-card\"&gt;\n &lt;span class=\"p-name p-org\"&gt;Crepes on Cole&lt;/span&gt; is one of the best little \n creperies in &lt;span class=\"p-adr h-adr\"&gt;&lt;span class=\"p-locality\"&gt;San Francisco&lt;/span&gt;&lt;/span&gt;.\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 &lt;/p&gt;\n "],
236+
"description": [{
237+
"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.",
238+
"html": "\n &lt;p class=\"p-item h-card\"&gt;\n &lt;span class=\"p-name p-org\"&gt;Crepes on Cole&lt;/span&gt; is one of the best little \n creperies in &lt;span class=\"p-adr h-adr\"&gt;&lt;span class=\"p-locality\"&gt;San Francisco&lt;/span&gt;&lt;/span&gt;.\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 &lt;/p&gt;\n "
239+
}],
237240
"item": [{
238241
"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.",
239242
"type": ["h-card"],

hentry.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ <h3>The expected JSON output:</h3>
116116
"type": ["h-entry"],
117117
"properties": {
118118
"name": ["microformats.org at 7"],
119-
"content": ["\n &lt;p class=\"entry-summary\"&gt;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.&lt;/p&gt;\n\n &lt;p&gt;The microformats tagline &#8220;humans first, machines second&#8221; \n forms the basis of many of our \n &lt;a href=\"http://microformats.org/wiki/principles\"&gt;principles&lt;/a&gt;, and \n in that regard, we&#8217;d like to recognize a few people and \n thank them for their years of volunteer service &lt;/p&gt;\n "],
119+
"content": [{
120+
"value": "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",
121+
"html": "\n &lt;p class=\"entry-summary\"&gt;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.&lt;/p&gt;\n\n &lt;p&gt;The microformats tagline &#8220;humans first, machines second&#8221; \n forms the basis of many of our \n &lt;a href=\"http://microformats.org/wiki/principles\"&gt;principles&lt;/a&gt;, and \n in that regard, we&#8217;d like to recognize a few people and \n thank them for their years of volunteer service &lt;/p&gt;\n "
122+
}],
120123
"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."],
121124
"updated": ["2012-06-25T17:08:26"],
122125
"author": [{

0 commit comments

Comments
 (0)