W3C home > Mailing lists > Public > public-rdfa@w3.org > March 2011

Re: Extended links in RDFa

From: Toby Inkster <tai@g5n.co.uk>
Date: Sun, 6 Mar 2011 23:34:19 +0000
To: Eric van der Vlist <vdv@dyomedea.com>
Cc: public-rdfa <public-rdfa@w3.org>
Message-ID: <20110306233419.48bac13b@miranda.g5n.co.uk>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:08 UTC