Re: Extended links in RDFa

On Fri, 04 Mar 2011 14:29:43 +0100
Eric van der Vlist <vdv@dyomedea.com> wrote:

>       * Empty span elements to define properties look like a hack. Is
>         there a better way to achieve the same effect?

Well, empty other elements (take your pick: <i>, <b>, <abbr>, etc) -
but I'm guessing it's not the <span> you're objecting to!

You could replace this:

	<span rel="nhrefs:role" resource="nhrefs:authoritative" />

with something like this:

	<span rel="nhrefs:role" resource="nhrefs:authoritative">
	  (authoritative)
	</span>

>       * RDFa2RDFXML doesn't parse this correctly. Is that a bug
>         RDFa2RDFXML or is this snippet invalid (or border line)?

In RDFa 1.0 (which is still the current recommendation - 1.1 is still a
draft), CURIEs used in the about and resource attributes need to be
wrapped in [brackets]:

	<span rel="nhrefs:role" resource="[nhrefs:authoritative]">
	  (authoritative)
	</span>

One other thing you should bear in mind is that while <span /> will
parse fine in XHTML, if you want your markup to be HTML-compatible,
you should really include a separate closing tag, a la <span></span>. 

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Sunday, 6 March 2011 23:59:03 UTC