- From: Shane McCarron <shane@aptest.com>
- Date: Thu, 14 Aug 2008 11:28:33 -0500
- To: Manu Sporny <msporny@digitalbazaar.com>
- CC: RDFa Developers <public-rdf-in-xhtml-tf@w3.org>
FWIW my parser returns: <file:/photo1.jpg> <http://purl.org/dc/elements/1.1/title> "" . which is what I would have expected. Manu Sporny wrote: > Per one of my action items from the meeting today, I was to test how > librdfa handled the empty plain literal case: > > http://www.w3.org/MarkUp/2008/ED-rdfa-syntax-20080814/#sec_5.5. > > Step #9, plain literal processing: > > "or there are no child nodes (in which case the literal value is the > empty string);" > > librdfa generates an incomplete triple in this case, which I believe is > a bug in librdfa. Ben, Mark, if you could verify that this is indeed a > bug, I'll fix it in librdfa and try to remember to create the following > unit test after we're through PR: > > --------------------------------------------------------------- > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" > "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:dc="http://purl.org/dc/elements/1.1/"> > <head> > <title>Test Empty Plain Literal</title> > </head> > <body> > <p> > The title for this photo is blank: > <span about="photo1.jpg" property="dc:title"></span>. > </p> > </body> > </html> > > --------------------------------------------------------------- > > ASK WHERE { > <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/photo1.jpg> > <http://purl.org/dc/elements/1.1/title> > "" . > } > > --------------------------------------------------------------- > > -- manu > > -- Shane P. McCarron Phone: +1 763 786-8160 x120 Managing Director Fax: +1 763 786-8180 ApTest Minnesota Inet: shane@aptest.com
Received on Thursday, 14 August 2008 16:29:25 UTC