Empty plain literal test

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

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: Bitmunk 3.0 Website Launches
http://blog.digitalbazaar.com/2008/07/03/bitmunk-3-website-launches

Received on Thursday, 14 August 2008 16:19:53 UTC