W3C home > Mailing lists > Public > www-rdf-comments@w3.org > October to December 2002

comment on emptyPropertyElt

From: Peter F. Patel-Schneider <pfps@research.bell-labs.com>
Date: Thu, 31 Oct 2002 20:53:50 -0500 (EST)
Message-Id: <20021031.205350.27013447.pfps@research.bell-labs.com>
To: www-rdf-comments@w3.org

I just noticed that


	<rdf:Description rdf:about="foo">
	  <bar />

is valid RDF, and, moreover, gives rise to the following n-triple

	foo bar "" .

 (or something like this - I don't know what language tag would be applied).

I think that this is a terrible design decision.  It introduces yet another
special case into the RDF grammar, as evidenced by the wording in 7.2.19

7.2.19 Production emptyPropertyElt 


    * If there are no attributes or only the optional rdf:ID attribute i
      then o := literal(literal-value:="", literal-language := e.language)


I suggest that this be made illegal syntax.  A construction like the above
is probably a mistake, and should not be silently accepted.  Hallucinating
a string here is a particularly bad idea.

Peter F. Patel-Schneider
Bell Labs Research
Received on Thursday, 31 October 2002 20:53:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:01 UTC