Given Drupal 7's RDFa love, would it be possible to output recipes with RDFa code?
Google explains the RDFa and gives a great example (http://www.google.com/support/webmasters/bin/answer.py?&answer=173379)
Here is their example recipe code:
<div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Recipe">
<h1 property="v:name">Grandma's Holiday Apple Pie</h1>
<img src="apple-pie.jpg" rel="v:photo"/>
By <span property="v:author">Carol Smith</span>
Published: <span property="v:published" content="2009-11-05">November 5, 2009</span>
<span property="v:summary">This is my grandmother's apple pie recipe. I like to add a dash of nutmeg.</span>
<span rel="v:Review">
<span typeof="v:Review-aggregate">
<span rel="v:rating">
<span typeof="v:Rating">
<span property="v:average">4.0</span> stars based on
<span property="v:count">35</span> reviews
</span>
</span>
</span>
</span>
Prep time: <span property="v:prepTime" content="PT30M">30 min</span>
Cook time: <span property="v:cookTime" content="PT1H">1 hour</span>
Total time: <span property="v:totalTime" content="PT1H30M">1 hour 30 min</span>
Yield: <span property="v:yield">1 9" pie (8 servings)</span>
<span rel="v:nutrition">
<span typeof="v:Nutrition">
Serving size: <span property="v:servingSize">1 medium slice</span>
Calories per serving: <span property="v:calories">250</span>
Fat per serving: <span property="v:fat">12g</span>
</span>
</span>
Ingredients:
<span rel="v:ingredient">
<span typeof="v:Ingredient">
Thinly-sliced <span property="v:name">apples</span>:
<span property="v:amount">6 cups</span>
</span>
</span>
<span rel="v:ingredient">
<span typeof="v:Ingredient">
<span property="v:name">White sugar</span>:
<span property="v:amount">3/4 cup</span>
</span>
</span>
...
Directions:
<div property="v:instructions">
1. Cut and peel apples
2. Mix sugar and cinnamon. Use additional sugar for tart apples.
...
</div>
</div>
Comments
Comment #1
jvandervort commentedIt would be possible, do you have a use for it or are you thinking about some future site interoperability?
Comment #2
adellefrank commentedI'm thinking of increased usefulness for search engines when people typed in ingredients and possible future mashups with SPARQL. Google, of course, being the giant right now, gives much more meaningful search results with images and rankings when this type of format is used.
Thanks for your time!
Comment #3
AlanAtLarge commentedAbsolutely interested.
Comment #4
dave reid.
Comment #5
Grammarian commentedAlso interested! (Currently helping with a food & recipe site using Recipe module. Would love this for future iterations.)
Comment #6
Shadlington commentedSubscribing
Comment #7
maki124 commentedSubscribing - currently I am handcoding in the RDFa markup so this would be great to have.
Comment #8
maki124 commentedComment #9
jvandervort commentedCommitted rdf support.
Comment #10
adellefrank commented@jvandervort: you are a god among coders, thanks!!
Comment #11
chougrani commentedSubscribing