Both @rel and @rev on one element in RDFa - Semantic Overflow most recent 30 from http://www.semanticoverflow.com 2010-09-07T21:58:58Z http://www.semanticoverflow.com/feeds/question/541 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://www.semanticoverflow.com/questions/541/both-rel-and-rev-on-one-element-in-rdfa Both @rel and @rev on one element in RDFa Rob Vesse 2010-02-05T14:23:47Z 2010-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#542 Answer by jsightler for Both @rel and @rev on one element in RDFa jsightler 2010-02-05T21:44:25Z 2010-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#564 Answer by Gregg Kellogg for Both @rel and @rev on one element in RDFa Gregg Kellogg 2010-02-16T03:36:31Z 2010-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>&lt;html xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:foaf="http://xmlns.com/foaf/0.1/"&gt; &lt;head&gt; &lt;base href="http://example.com/test0006"/&gt; &lt;title&gt;Test 0006&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;p&gt; This photo was taken by &lt;a about="photo1.jpg" rel="dc:creator" rev="foaf:img" href="http://www.blogger.com/profile/1109404"&gt;Mark Birbeck&lt;/a&gt;. &lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </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#569 Answer by Ivan for Both @rel and @rev on one element in RDFa Ivan 2010-02-17T13:41:28Z 2010-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>