-
Notifications
You must be signed in to change notification settings - Fork 0
XML versus RDF
Dzonatas edited this page Feb 3, 2013
·
2 revisions
Serialization techniques for Resource Description Framework confused basic lexical functionality of Extensible Markup Language. Simply, RDF does not describe formats as XML lets us, extensively.
RDF follows this kind of sequence:
<root version="1.1">
<book type="indexed">
<title>How to Win Monkeys and Influence Groggers</title>
<author>The Cannibals</author>
<date>2012 MIT</date>
</book>
<book type="lost">
<title>The Carrot and The Snowman</title>
<author>Drake</author>
<date>MCMXCIX</date>
</book>
</root>
Notice the RDF elements do not represent any code or format.
Compare that with XHTML elements with microdata:
<div itemscope itemtype="http://schema.org/Movie">
<h1 itemprop="name">Avatar</h1>
<div itemprop="director" itemscope itemtype="http://schema.org/Person">
Director: <span itemprop="name">James Cameron</span> (born <span itemprop="birthDate">August 16, 1954)</span>
</div>
<div>Genre: <span itemprop="genre">Science fiction</span></div>
<a href="../movies/avatar-theatrical-trailer.html" itemprop="trailer">Trailer</a>
</div>