W3C home > Mailing lists > Public > www-rdf-interest@w3.org > August 2003

Question about rdf test case

From: Rahul Singh <kingtiny@DriveRDF.org>
Date: Thu, 14 Aug 2003 15:02:17 -0400
Message-ID: <3F3BDCB9.1010209@DriveRDF.org>
To: www-rdf-interest@w3.org

Hi all,

I am running drive through the test cases and have a question about the 
positive test case


The input document is


and the expected output is


Its an rdf:parseType="Collection" list and the expected triples (as per 
the test case) are [1].

Since its an rdf:parseType="Collection" each node in the list should 
have an arc (rdf:type) that points to rdf:List as per the syntax spec. 
But the test case output is missing these arcs.

The W3C validator produces output according to the test case and against 
the spec.

Drive produces triples[2] as specified in the spec [3] and the RDF 
Primer [4].

Could someone please point me towards which is correct - the test-case 
and the W3C Validator or the syntax spec and the primer.

I appreiate the help.


Rahul Singh,

[1] Triples expected by test case and produced by W3C Validator
[Note: missing arcs rdf:type that point to nodes rdf:List]

<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> _:a0 .
_:a0 <http://example.org/eg#intersectionOf> _:a1 .
_:a1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> 
<http://example.org/eg#Person> .
_:a1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:a2 .
_:a2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> 
<http://example.org/eg#Male> .
_:a2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .

[2] Triples produced by Drive as per syntax spec.
[Note: Extra arcs rdf:type that point to nodes rdf:List]

_:10000 <http://example.org/eg#intersectionOf> _:10001 .
_:10001 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#List> .
_:10001 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> 
<http://example.org/eg#Person> .
_:10001 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:10002 .
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> _:10000 .
_:10002 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#List> .
_:10002 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> 
<http://example.org/eg#Male> .
_:10002 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .

[3] RDF Syntax spec for rdf:parseType="Collection"

[4] RDF Primer showing the graph for rdf:parseType="Collection"
Received on Thursday, 14 August 2003 15:02:18 UTC

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