I am developing an experimental CMS which has every 'thing' structured with a semantic html annotation language, microformats are not an option so it came down to RDFa.
But i found out about html5 microdata yesterday and that looks really promising to me. I made a few use-cases and have a few questions which i hope somebody can enlighten me about.
--------------------------------------------------------------------------------------------------
Consider this case :
- Code: Select all
<div itemscope itemtype="http://www.example.org/vocabulary/Catalog">
<h4 itemprop="http://www.example.org/vocabulary/Title">Catalog Title</h4>
</div>
I came up with the following triples :
- Code: Select all
<item> <itemtype> http://www.example.org/vocabulary/Catalog
<item> <itemprop> Title : Catalog Title
_or_
- Code: Select all
<item> <itemtype> http://www.example.org/vocabulary/Catalog
<item> <itemprop:Title> Catalog Title
_or_
- Code: Select all
<item::itemtype:http://www.example.org/vocabulary/Catalog> <itemprop:Title> Catalog title
- Which one is it ?
--------------------------------------------------------------------------------------------------
- Can vocabularies be in html5 documents itself ?
- How would one reference a Property or Itemtype when they are not described in rdf/owl vocabularies ?
I came up with something like this :
- Code: Select all
http://www.example.org/items/ has html5 document <div itemscope itemtype="http://www.example.org/vocabulary/An-item" id="item-a">Original item</div>
http:/www.another.example.org/things/ has html5 document <div itemscope itemtype="http://www.example.org/vocabulary/An-item" itemid="http://www.example.org/items/#item-a">(Reference to) Original item</div>
- Do you think/is this is a solid/valid way to describe `items` in html5 documents ?