Detecting RDFa Re: RDFa for Firefox

Ivan Herman (8 oct. 2007 - 18:23) :
> However... a question. How do you detect that a document contains  
> RDFa?
> What is the criteria? Do you use a profile? Or analyse the document to
> see if some of the RDFa attributes are used?

Interesting question. What is the trigger? In the editor's draft  
there is no mention of a trigger for knowing that the document  
contains RDFa, which can be a benefit too.
http://www.w3.org/MarkUp/2007/ED-rdfa-syntax-20070927/

Maybe a way to test that is to consider that all the HTML/XHTML  
document on the Web are "RDFancy". Then to test from random document  
of the Web, if we get useful information most of the time, or  
complete garbage. If the information is useful most of the time, the  
trigger is not that important. If not, Indeed there is a need for  
something.

> Personally, I believe the profile
> http://www.w3.org/ns/rdfa/
> should be used which has been secured by Ralph a while ago...

At which level? profile attribute of XHTML 1.0?
The issue with the profile attribute is that in a cut and paste  
scenario, people will forget to modify the "head" and/or will not  
have write access to the head section of an HTML document.

Is there a way to locally trigger the mode, in the HTML itself.


-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***

Received on Monday, 8 October 2007 09:45:30 UTC