W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > November 2004

Cwm's rdf parser is too forgiving

From: Yosi Scharf <syosi@mit.edu>
Date: Thu, 04 Nov 2004 20:30:52 -0500
Message-ID: <418AD7CC.1090206@mit.edu>
To: public-cwm-bugs@w3.org
Cc: Dan Connolly <connolly@w3.org>, Tim Berners-Lee <timbl@w3.org>

Running the rdf negative parser tests on cwm has the following results:

Problems:
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdf-containers-syntax-vs-schema/error001.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdf-containers-syntax-vs-schema_Manifest.rdf_error001.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-abouteach/error001.rdf 
--ntriples  > ,temp/rdft_rdfcore_rdfms-abouteach_Manifest.rdf_error001.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-difference-between-ID-and-about/error1.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-difference-between-ID-and-about_Manifest.rdf_error1.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-id/error001.rdf 
--ntriples  > ,temp/rdft_rdfcore_rdfms-rdf-id_Manifest.rdf_error001.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-id/error004.rdf 
--ntriples  > ,temp/rdft_rdfcore_rdfms-rdf-id_Manifest.rdf_error004.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-id/error005.rdf 
--ntriples  > ,temp/rdft_rdfcore_rdfms-rdf-id_Manifest.rdf_error005.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-id/error006.rdf 
--ntriples  > ,temp/rdft_rdfcore_rdfms-rdf-id_Manifest.rdf_error006.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-id/error007.rdf 
--ntriples  > ,temp/rdft_rdfcore_rdfms-rdf-id_Manifest.rdf_error007.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-001.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-001.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-002.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-002.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-003.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-003.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-004.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-004.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-005.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-005.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-006.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-006.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-007.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-007.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-009.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-009.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-010.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-010.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-011.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-011.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-012.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-012.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-013.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-013.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-014.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-014.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-015.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-015.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-016.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-016.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-017.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-017.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-018.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-018.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-019.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-019.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-rdf-names-use/error-020.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-rdf-names-use_Manifest.rdf_error-020.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-syntax-incomplete/error001.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-syntax-incomplete_Manifest.rdf_error001.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-syntax-incomplete/error002.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-syntax-incomplete_Manifest.rdf_error002.nt
I should have.
 
  I didn't get a parse error running python ../cwm.py --quiet --rdf=RT 
http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-syntax-incomplete/error003.rdf 
--ntriples  > 
,temp/rdft_rdfcore_rdfms-syntax-incomplete_Manifest.rdf_error003.nt
I should have.

Traceback (most recent call last):
  File "retest.py", line 500, in ?
    main()
  File "retest.py", line 497, in main
    raise RuntimeError("Total %i errors in %i tests." % (len(problems), 
tests))
RuntimeError: Total 30 errors in 149 tests.


That is right. out of some 40 negative parser tests, cwm happily parses 
30 of them.
Note that is we use rdflib as the parser, all are successfully not parsed.

Yosi
Received on Friday, 5 November 2004 01:31:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:00 UTC