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

http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-seq-representation/Manifest.rdf#test001

The input document is

http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-seq-representation/test001.rdf

and the expected output is

http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-seq-representation/test001.nt

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.

Regards,

Rahul Singh,
kingtiny@cs.cmu.edu

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

<http://example.org/eg#eric> 
<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://example.org/eg#eric> 
<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"
http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-parsetype-Collection

[4] RDF Primer showing the graph for rdf:parseType="Collection"
http://www.w3.org/TR/rdf-primer/#collections
Received on Thursday, 14 August 2003 15:02:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:01 GMT