W3C home > Mailing lists > Public > www-rdf-interest@w3.org > May 2000

Re: ID Attribute of Properties

From: Jan Wielemaker <jan@swi.psy.uva.nl>
Date: Tue, 30 May 2000 16:01:09 +0200
Message-Id: <200005301401.QAA13311@gollem.swi.psy.uva.nl>
To: Stefan Kokkelink <skokkeli@mathematik.uni-osnabrueck.de>, RDF interest group <www-rdf-interest@w3.org>
> 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):


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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:30 UTC