W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > August 2010

Comment on RDFa 1.1 Core: Empty elements should not create literals

From: Richard Cyganiak <richard.cyganiak@deri.org>
Date: Thu, 5 Aug 2010 11:53:41 +0100
Message-Id: <EDA6E06C-29B3-4C07-8B6C-A32D02E1FDB0@deri.org>
To: public-rdfa-wg@w3.org
Hello RDFa WG members,

This is a comment on Profiles in the latest RDFa WD [1]. The draft

    <div about="#person">
      <dt>Job title</dt>
      <dd class="job" property="jobtitle"></dd>

After RDFa parsing, the following RDF triple is generated from this  
snippet (assuming a term mapping for jobtitle):

    <#person> ex:jobtitle "" .

I ask that the parsing algorithm be changed so that no triple is  
generated in the case where an element has a @property attribute, no  
@content attribute, and no text content.

The motivation for this change: Template-generated HTML often contains  
empty elements like in the example above. This happens when a field is  
not present in a given record. Generating an empty <td/> or <span/> is  
often less effort than suppressing the generation of the element  
altogether, so thats' what template authors often do. When a zero- 
length element carrying @property is encountered, then it's almost  
certain that the author's intention was *not* to generate a zero- 
length literal, so the parsing algorithm should reflect that.


[1] http://www.w3.org/TR/2010/WD-rdfa-core-20100803/
Received on Thursday, 5 August 2010 10:54:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:48 UTC