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: Brian McBride <bwm@hplb.hpl.hp.com>
Date: Thu, 31 May 2001 09:53:35 +0100
Message-ID: <3B16068E.874F3216@hplb.hpl.hp.com>
To: Dave Beckett <dave.beckett@bristol.ac.uk>
CC: w3c-rdfcore-wg@w3.org
Hi Dave,

Dave Beckett wrote:
[...]
> 
> No, since we removed all the sections saying MUST NOT ... which would
> be about illegal examples.  Hence there is no conformance requirement
> than can be or need be tested.

The way I was looking at it, was that removing the 'MUST NOT' was removing
constraints on the behaviour of an RDF processor.  That doesn't prevent us
having examples that are not legal RDF.

I personally feel it would be useful to do so.  I have attached a couple
to this message for you to consider.  [Hope I get the cloaking right].

Brian

Illegal 1:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:eg="http://example.org/">
 <!--
  Test case for
  Issue http://www.w3.org/2000/03/rdf-tracking/#rdf-ns-prefix-confusion

  List of RDF attributes that are required to have an rdf: prefix
    about aboutEach aboutEachPrefix
    ID bagID resource parseType
 -->

  <!-- Test rdf:about - illegal -->

  <rdf:Description about="http://example.org/resource1/">
    <eg:property>bar</eg:property>
  </rdf:Description>
</rdf:RDF>

Illegal 2:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:eg="http://example.org/">
 <!--
  Test case for
  Issue http://www.w3.org/2000/03/rdf-tracking/#rdf-ns-prefix-confusion

  List of RDF attributes that are required to have an rdf: prefix
    about aboutEach aboutEachPrefix
    ID bagID resource parseType
 -->

  <!-- Test rdf:about - illegal -->

  <eg:Class about="http://example.org/resource1/">
    <eg:property>bar</eg:property>
  </eg:Class>
</rdf:RDF>

Received on Thursday, 31 May 2001 04:54:25 EDT

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