Re: rdfa parsing problem

Meri,

Short answer: because the HTML is not well-formed.

Long answer: if you run it through the validator [1] you will see that the
<span> is not allowed in this position, there [2] (which makes pretty much
sense, right? ;)

Cheers,
      Michael

[1] http://validator.w3.org/
[2] 
http://validator.w3.org/check?uri=http%3A%2F%2Fsw-app.org%2Frdfa%2Ftable-par
sing-problem.html&charset=(detect+automatically)&doctype=Inline&group=0

-- 
Dr. Michael Hausenblas
DERI - Digital Enterprise Research Institute
National University of Ireland, Lower Dangan,
Galway, Ireland, Europe
Tel. +353 91 495730
http://sw-app.org/about.html
http://webofdata.wordpress.com/


> From: Meri Kovach <meri.kovach@gmail.com>
> Date: Wed, 20 May 2009 11:37:09 +0200
> To: RDFa TF list <public-rdf-in-xhtml-tf@w3.org>
> Subject: rdfa parsing problem
> Resent-From: RDFa TF list <public-rdf-in-xhtml-tf@w3.org>
> Resent-Date: Wed, 20 May 2009 09:37:47 +0000
> 
> Could you please explain to me why these two extracts, when parsed, do not
> produce the same statements:
> 
>  <table>
>     <tr>
>     <span about="#2105555" typeof="foaf:Person">
>        <td>1</td>
>        <td><span property="foaf:firstName">Meri</span></td>
>        <td><span property="foaf:familyName">Kovac</span></td>
>    </span>
>    </tr>
>  </table>
> 
> and
> 
>   <table>
>     <tr about="#2105555" typeof="foaf:Person">
>        <td>1</td>
>        <td><span property="foaf:firstName">Meri</span></td>
>        <td><span property="foaf:familyName">Kovac</span></td>
>    </tr>
>  </table>
> 
> The parsing result (using RDF distiller) is following:
> 
>   <foaf:Person rdf:about="http://localhost:8080/rdfa.html#2105555"/>
>   <rdf:Description rdf:about="http://localhost:8080/rdfa.html">
>     <foaf:firstName>Meri</foaf:firstName>
>     <foaf:familyName>Kovac</foaf:familyName>
>   </rdf:Description>
> 
> and
>   <foaf:Person rdf:about="http://localhost:8080/rdfa.html#2105555">
>     <foaf:firstName>Meri</foaf:firstName>
>     <foaf:familyName>Kovac</foaf:familyName>
>   </foaf:Person>
> 
> The second one is the correct one. Why is the subject mixed up in the first
> one?
> 
> Thnx,
> Meri

Received on Wednesday, 20 May 2009 09:59:57 UTC