Test cases for Issue #rdf-ns-prefix-confusion

These are testing the three parts of this issue:

  1. Tests 01-08 and bad tests 01-08
    The following RDF attributes are required to have an rdf: prefix:

    about aboutEach aboutEachPrefix
    ID bagID type resource parseType
  2. Test 09 and bad test 09
    Namespace qualification MUST be used for all property attributes.

  3. Test 10
    Non-prefixed RDF elements (NOT attributes) are allowed when a default XML element namespace is defined with an xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" attribute.

All the tests have an input RDF/XML file test<n>.rdf with the required output triples in RDF/n3 test<n>.n3 and the bad tests are in test<n>-bad.rdf

You can run CWM on the rdf/xml to emit something like the rdf/n3 - not all of the tests work with something like:

  python2 cwm.py -quiet -rdf test01.rdf -n3=spart -bySubject

You might need to use -- options on later versions:

  python2 cwm.py --quiet --rdf test01.rdf --n3=spart --bySubject
Note that python 2.0 or higher is required.

Dave Beckett