W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > July 2001

N-Triples test cases

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Fri, 13 Jul 2001 11:05:10 +0100
To: w3c-rdfcore-wg@w3.org
Message-ID: <14770.995018710@tatooine.ilrt.bris.ac.uk>
I'm using these to test my nearly-finished N-Triples parser
and thought these might be useful for others.

CVS version http://cvs.ilrt.org/cvsweb/redland/raptor/test.nt

Dave


#
# N-Triples Test Cases
# Dave Beckett - http://purl.org/net/dajobe/
# 
# $Id: test.nt,v 1.1 2001/07/13 10:02:57 cmdjb Exp $
#
# comment lines
  	  	   # comment line after whitespace
# empty blank line, then one with spaces and tabs

         	
<http://example.org/resource1> <http://example.org/property> <http://example.org/resource2> .
_:anon <http://example.org/property> <http://example.org/resource2> .
<http://example.org/resource1> <http://example.org/property> _:anon .
# spaces and tabs throughout:
 	 <http://example.org/resource1> 	 <http://example.org/property>	 <http://example.org/resource2> 	.	 

# All literal escapes
<http://example.org/resource1> <http://example.org/property> "simple literal" .
<http://example.org/resource1> <http://example.org/property> "backslash:\\" .
<http://example.org/resource1> <http://example.org/property> "dquote:\"" .
<http://example.org/resource1> <http://example.org/property> "newline:\n" .
<http://example.org/resource1> <http://example.org/property> "return\r" .
<http://example.org/resource1> <http://example.org/property> "tab:\t" .

# Space is optional before final .
<http://example.org/resource1> <http://example.org/property> <http://example.org/resource2>.
<http://example.org/resource1> <http://example.org/property> "x".
<http://example.org/resource1> <http://example.org/property> _:anon.
Received on Friday, 13 July 2001 06:05:11 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:38:09 EDT