Re: ID Attribute of Properties

> i use the Sirpac and the Pro-Solutions parser to 
> parse the following RDF:
> 
> <?xml version="1.0"?>
> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>      xmlns:NIST="http://www.nist.gov/RDFschema/">
>   <Description about="John_Smith">
>     <NIST:Weight rdf:ID="1">80
>     </NIST:Weight>
>   </Description>
> </RDF>
> 
> The two parsers create only one triple:
> 
> triple('http://www.nist.gov/RDFschema/Weight',
>        'online#John_Smith',
>        '80')
> 
> Is this a bug? The spec says[6.12, propertyElt]: 'The value of the
> ID Attribute, if specified, is the identifier for the 
> resource that represents the reification of the statement.'
> In my opinion the four triples representing the reified
> statement are missing. Or is there only one resource with
> ID="1" created which you can't see in the triples produced
> by the parsers?

When writing an RDF parser in Prolog I used these parsers as reference,
but without the help of some people on this list I would never have
found the correct interpretations.  I think the parser is now compliant
(and indead gives 4 triples for you case). You find it at the URL
below (also from the W3C RDF pages):

    http://www.swi.psy.uva.nl/projects/SWI-Prolog/packages/sgml/online.html

	Regards --- Jan

Received on Tuesday, 30 May 2000 10:01:11 UTC