Both @rel and @rev on one element in RDFa - Semantic Overflow most recent 30 from http://www.semanticoverflow.com2010-09-07T21:58:58Zhttp://www.semanticoverflow.com/feeds/question/541http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://www.semanticoverflow.com/questions/541/both-rel-and-rev-on-one-element-in-rdfaBoth @rel and @rev on one element in RDFaRob Vesse2010-02-05T14:23:47Z2010-02-17T13:41:28Z
<p>Does anyone know whether it's permissible to have both the @rel and @rev attributes on an element in RDFa?</p>
<p>This seems like a slightly odd thing to me if it is allowed since it results in two triples like so:</p>
<pre><code>:a :b :c .
:c :b :a .
</code></pre>
<p>Maybe I'm missing it in the specifcation document (it is a long document) but is this expressly forbidden or is this legal syntax?</p>
http://www.semanticoverflow.com/questions/541/both-rel-and-rev-on-one-element-in-rdfa/542#542Answer by jsightler for Both @rel and @rev on one element in RDFajsightler2010-02-05T21:44:25Z2010-02-05T21:44:25Z<pre><code>:a :loves :c .
:c :loves :a .
</code></pre>
<p>Does that seem so unusual? I think its both legal, and possibly even expected in many cases.</p>
http://www.semanticoverflow.com/questions/541/both-rel-and-rev-on-one-element-in-rdfa/564#564Answer by Gregg Kellogg for Both @rel and @rev on one element in RDFaGregg Kellogg2010-02-16T03:36:31Z2010-02-16T03:36:31Z<p>This is essentially the RDFa test 0006, which uses both rev and rel on the same element:</p>
<pre><code><html xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<head>
<base href="http://example.com/test0006"/>
<title>Test 0006</title>
</head>
<body>
<p>
This photo was taken by
<a about="photo1.jpg" rel="dc:creator" rev="foaf:img"
href="http://www.blogger.com/profile/1109404">Mark Birbeck</a>.
</p>
</body>
</html>
</code></pre>
<p>You can try out sample RDFa (or any type of RDF) through my distiller at <a href="http://kellogg-assoc.com/distiller" rel="nofollow">http://kellogg-assoc.com/distiller</a>, which uses the RdfContext Ruby gem.</p>
http://www.semanticoverflow.com/questions/541/both-rel-and-rev-on-one-element-in-rdfa/569#569Answer by Ivan for Both @rel and @rev on one element in RDFaIvan2010-02-17T13:41:28Z2010-02-17T13:41:28Z<p>The answer is: yes, it is allowed. I agree that it is not widely used but, in a way, it would be more convoluted (spec-wise) to disallow it than to allow it!</p>