Re: RDFa in HTML 4

Johannes Koch wrote:
> 
> Shane McCarron schrieb:
>> Johannes Koch wrote:
>>> If you want to include RDFa into HTML, you have to change the HTML 
>>> DTD anyway. So why not add a namespace prefixes-URIs mapping attribute?
>>>
>>> <div ns-mapping="dcterms http://purl.org/dc/terms/ audio 
>>> http://purl.org/media/audio#" ... >
>>> ...
>>> </div>
>>>
>>> This looks like schemaLocation attribute in XML Schema, here being a 
>>> list of tuples (prefix and URI). However this approach does not work 
>>> with default namespaces.
>> Exactly.  And something like that might be possible.  The good news is 
>> that CURIEs don't use the default namespace, so that is a non-issue.
> 
> And, of course, with CURIEs it's not really a prefix to _namespace URI_ 
> mapping, but prefix to _URI start part_ mapping. So the attribute name 
> ns-mapping is not exactly appropriate.
> 

I actually have, in my implementation, an optional feature that 
implements exactly that, but with the attribute name @prefix (same 
keyword as the one used in SPARQL or turtle...)

Ivan

-- 

Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf

Received on Friday, 18 July 2008 12:41:17 UTC