Re: Test Cases for Issue http://www.w3.org/2000/03/rdf-tracking/#rdf-ns-prefix-confusion

> Dave Beckett wrote:
> >
> > I have fixed a few bugs, added more tests and bad test cases for
> > non RDF documents.
>
> Very nice work.

Very very nice work Dave!

[...]

> re test6: whoa! I didn't realize rdf:type as an attribute
> was special syntax; i.e. that it takes a URIref rather
> than a literal. None of the code I've written groks that.
> Learn something new every day, I guess.

Neither did I ...
using cwm.py 1.52 to render into n3 normal we get a "no proof found"
this is what happened (and sorry for the clumsy style)

////////////////////////////////////////////////////////////////////////////////
C:\rdf\2001\05\rdf-ns-prefix-confusion>python /n3/cwm.py -rdf test06.rdf -n3 > t
est06.cwm.n3

C:\rdf\2001\05\rdf-ns-prefix-confusion>java Euler -trace test06.cwm.n3 test06.n3

# <http://example.org/resource/> a "http://example.org/class/".
[1]CALL: <http://example.org/resource/> <http://www.w3.org/1999/02/22-rdf-syntax
-ns#type> <http://example.org/class/>.
[1]FAIL: <http://example.org/resource/> <http://www.w3.org/1999/02/22-rdf-syntax
-ns#type> <http://example.org/class/>.
# Generated with Euler 26.061 on Thu May 31 17:59:14 CEST 2001
#
# @prefix log: <http://www.w3.org/2000/10/swap/log#>.
# @prefix : <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
# <http://example.org/resource/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#typ
e> <http://example.org/class/>.

# No proof found for file:/rdf/2001/05/rdf-ns-prefix-confusion/test06.n3 in 1 st
eps (80 steps/sec)
////////////////////////////////////////////////////////////////////////////////

and changing the "http://example.org/class/" into <http://example.org/class/>
is the remedy

this is of course similar to what Pat would say
"using a steam-hammer to crack a nut"...

--
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/

Received on Thursday, 31 May 2001 12:27:23 UTC