Re: New version of @profile and @vocab

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 UTC