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

Re: New version of @profile and @vocab

From: Toby Inkster <tai@g5n.co.uk>
Date: Fri, 26 Mar 2010 13:41:41 +0000
To: Ivan Herman <ivan@w3.org>
Cc: W3C RDFa WG <public-rdfa-wg@w3.org>
Message-ID: <1269610902.16154.36.camel@ophelia2.g5n.co.uk>
On Fri, 2010-03-26 at 05:51 -0400, Ivan Herman wrote:
> That I do not understand. Do you mean that the same keyword would
> automatically generate several URI-s, ie, would generate several
> triples? This is certainly not the way I envisaged that... 

Precisely. 

It's not the way I'd envisaged it either, but if we do end up with
@profile as an RDFa 1.1 feature, it doesn't seem too difficult to
implement keywords so that they can expand to multiple URIs.

I can even imagine something like:

	@prefix iana:    <http://www.iana.org/assignments/relation/> .
	@prefix rdfa:    <http://www.w3.org/ns/rdfa#> .
	@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
	@prefix xhv:     <http://www.w3.org/1999/xhtml/vocab#> .
	[
		a rdfa:KeywordMapping ;
		rdfa:keyword "nextdoc" ;
		rdfa:uri xhv:next, iana:next, rdfs:seeAlso ;
		rdfa:reverse_uri xhv:prev , iana:prev , rdfs:seeAlso
	] .

So that this:

	<a about="doc1" rel="nextdoc" href="doc2">next</a>

Would generate:

	@prefix iana:    <http://www.iana.org/assignments/relation/> .
	@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
	@prefix xhv:     <http://www.w3.org/1999/xhtml/vocab#> .
	<doc1> iana:next <doc2> ;
		xhv:next <doc2> ;
		rdfs:seeAlso <doc2> .
	<doc2> iana:prev <doc1> ;
		xhv:prev <doc1> ;
		rdfs:seeAlso <doc1> .

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Friday, 26 March 2010 13:42:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:06 GMT