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

Allow a prefix in the vocab attribute?

From: Stéphane Corlosquet <scorlosquet@gmail.com>
Date: Fri, 24 Jun 2011 17:55:27 -0400
Message-ID: <BANLkTins551yVXTiakZ09FFToUBrOAHDdQ@mail.gmail.com>
To: public-rdfa-wg@w3.org
As far as I can tell from the current spec, @vocab is expected to be a URI.
If a prefix was allowed, it would allow for shorter RDFa snippets when
combined with the RDFa core default profile [1].

The following snippet taken from the RDFa 1.1 spec:

<div vocab="http://xmlns.com/foaf/0.1/" about="#me">
   My name is <span property="name">John Doe</span> and my blog is called
   <a rel="homepage" href="http://example.org/blog/">Understanding
Semantics</a>.
</div>

could be rewritten:

<div vocab="foaf" about="#me">
   My name is <span property="name">John Doe</span> and my blog is called
   <a rel="homepage" href="http://example.org/blog/">Understanding
Semantics</a>.
</div>

Is there a technical reason why @vocab was only allowed to be a URI?

Steph.

[1] http://www.w3.org/profile/rdfa-1.1
Received on Friday, 24 June 2011 21:55:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:52 UTC