W3C home > Mailing lists > Public > semantic-web@w3.org > May 2019

Re: Are many (X)HTML documents also RDF/XML documents?

From: Thomas Passin <tpassin@tompassin.net>
Date: Mon, 6 May 2019 15:54:45 -0600
To: SW-forum Web <semantic-web@w3.org>
Message-ID: <5f673129-d755-842b-f153-58dbef84ea86@tompassin.net>
On 5/6/2019 3:21 PM, Antoine Zimmermann wrote:
> Interesting remark. I'm not sure what the phrases you quote imply in 
> general, but if you give the following input to the RDF validator at 
> https://www.w3.org/RDF/Validator/, you get an error.

Well, sure, none of the rdf namespaces have been declared anywhere in 
the document, so even if you could otherwise do what is suggested here, 
you need the namespaces.

TomP

> The grammar of rdf:XML is given at 
> https://www.w3.org/TR/rdf-syntax-grammar/#section-Infoset-Grammar
> 
> I don't think that many HTML documents qualify as RDF/XML, if any.
> 
> On 06/05/2019 21:55, Wouter Beek wrote:
>> <?xml version="1.0" encoding="utf-8"?>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
>> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml">
>> <head>
>>    <title>
>>    </title>
>> </head>
>> <body>
>>    <table>
>>      <tr>
>>        <td>some col 1</td>
>>      </tr>
>>    </table>
>> </body>
>> </html>
> 
> 
Received on Monday, 6 May 2019 21:55:12 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 08:45:59 UTC