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

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

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Thu, 31 May 2001 16:58:07 +0100
To: Dan Connolly <connolly@w3.org>
cc: w3c-rdfcore-wg@w3.org
Message-ID: <24336.991324687@tatooine.ilrt.bris.ac.uk>
>>>Dan Connolly said:
> Very nice work.
> A quibble, just to show I read it carefully:
> This isn't an anonymous node; it's just a relative identifier:
>   @prefix : <#> .
>   :genid <http:...> <...>.
> I'm proposing that we use
> 	_:genid <http:...> <...>.
> i.e. no @prefix, just _:name. TimBL hacked support for it yesterday;

OK, fixed those.

Hmm, can't seem to get the CVS of cwm updated for me:

  cvs server: failed to create lock directory in repository `/sources/public/2000/10/swap': Permission denied
  cvs server: failed to obtain dir lock in repository `/sources/public/2000/10/swap'
  cvs [server aborted]: read lock failed - giving up

> let's see if it works...
> yup...
> $ python2 cwm.py --quiet --rdf
> http://ilrt.org/people/cmdjb/2001/05/rdf-ns-prefix-confusion/test01.rdf
> --n3=spart --bySubject

[aside: -- options don't work on my current copy - 1.51]

>     <http://example.org/resource1/>     <http://example.org/property>
> "bar" .
> hm... test2 doesn't work as well; cwm.py doesn't believe in bagID.

Yeah I noticed that so had to construct what I thought the n3 should
be, using the M&S bagID example and encoding the triples emitted from
the SiRPAC demo.

> in test4.n3, you've got a relative reference in your expected results,
> resulting from rdf:ID="foo". We're going to have to specify the
> base URI as part of test inputs so that we can absolutize everything
> consistently.

I'll just leave it for the moment until we get something precise for this.

> Aha... test5 allows me to show what I'm after:
> $ python2 cwm.py --quiet --rdf
> http://ilrt.org/people/cmdjb/2001/05/rdf-ns-prefix-confusion/test05.rdf
> --n3=spart --bySubject
>     <http://example.org/resource1/>     <http://example.org/property>
> _:0 .
>     _:0     <http://example.org/property2> "bar" .
> I'm using
>   http://www.w3.org/2000/10/swap/cwm.py
>   $Id: cwm.py,v 1.52 2001/05/30 23:08:24 timbl Exp $


> 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.

Oh yeah, isn't rdf's xml syntax fun - you need to write a parser to
appreciate what a joy it is.  rdf:type as an attribute isn't seen
much but is legal.


I've updated the changes in the area at

Received on Thursday, 31 May 2001 11:58:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:24:00 UTC