Re: bug with attributes on propertyNode?

On Fri, Jul 07, 2000 at 04:43:03PM -0500, Dan Connolly wrote:
> The RDF parser http://www.w3.org/1999/02/26-modules/
> seems to generate something
> bogus for the foaf:homepage element below:
> 
> details later... wanna archive this before I forget.
> 
> 
> <?xml version="1.0" encoding="utf-8"?>
> <r:RDF xmlns:DubC="http://purl.org/dc/elements/1.1/"
> xmlns:foaf="http://xmlns.com/foaf/0.1/"
> xmlns:h="http://www.w3.org/1999/xhtml"
> xmlns:pim="mid:dans-personal-information-management-stuff@w3.org"
> xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:s="http://www.w3.org/2000/01/rdf-schema#"
> xmlns:wn="http://xmlns.com/wordnet/1.6/"
> xmlns="http://www.w3.org/1999/xhtml">
>   <wn:Person
>   r:about="http://rdfwebring.org/rweb/who?mbox=mailto:connolly@w3.org">
> 
>     <foaf:mbox r:resource="mailto:connolly@w3.org" />
> 
>     <foaf:homepage r:resource="http://www.w3.org/People/Connolly/"
>     DubC:title="Dan Connolly, W3C" />

Oops - 

  Properties and values expressed in XML attribute form within an
  empty XML element E by productions [6.10] and [6.12] are equivalent
  ...
  3.r2 is the resource named by the resource attribute if present or a
  new resource. If the ID attribute is given it is the identifier of
  this new resource.

crept in some time after http://www.w3.org/TR/1998/WD-rdf-syntax-19980216/.

Easily fixed:
Index: W3C/Rdf/EmitterInterface.pm
===================================================================
RCS file: /sources/public/perl/modules/W3C/Rdf/EmitterInterface.pm,v
retrieving revision 1.27
diff -r1.27 EmitterInterface.pm
64,65c64
<                      '!once?addStatement(predicate[-1], object[-2], once, reification[-1], reificationBag[-2]);
<                       addStatement(attribute, once, value, GENID, reificationBag[-1])', 
---
>                      'addStatement(attribute, object[-1], value, GENID, reificationBag[-1])', 

Keep an eye out for reprecussions I haven't considered.

-- 
-eric

(eric@w3.org)

Received on Saturday, 8 July 2000 23:22:21 UTC