W3C home > Mailing lists > Public > www-archive@w3.org > December 2002

Re: TEST: <code>

From: Jos De_Roo <jos.deroo.jd@belgium.agfa.com>
Date: Mon, 16 Dec 2002 14:08:11 +0100
To: "Jeremy Carroll <jjc" <jjc@hplb.hpl.hp.com>
Cc: www-archive@w3.org
Message-ID: <OF64BEC931.83C69F2B-ONC1256C91.00461FC2-C1256C91.004828F4@agfa.be>


Jeremy,

> what was the motive for removing the <code> tags in some of the test
> descriptions...?
>
> Genuine question.

the reason is that given

==== test.rdf
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
      xmlns:eg='http://example.org/eg#'>
<eg:test rdf:ID='test'>
   <eg:foo rdf:parseType='Literal'>
      abc<eg:xyz>eg:bar</eg:xyz>def
   </eg:foo>
</eg:test >
</rdf:RDF>
====

and using Jena-1.6.0 we get

==== test.n3
@prefix daml:   <http://www.daml.org/2001/03/daml+oil#> .
@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix log:    <http://www.w3.org/2000/10/swap/log#> .
@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
@prefix :       <#> .

:test
      <http://example.org/eg#foo>
            "
      abc<eg:xyz xmlns:eg="http://example.org/eg#">eg:bar</eg:xyz>def
   " ;
      a     <http://example.org/eg#test> .
====

and the inner quotes are giving us trouble
i.e. triple skewing (at least in our N3 parser...)

this is somewhat similar to the problem I have
with JanG's testcases i.e.

==== test2.rdf
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
      xmlns:eg='http://example.org/eg#'>
<eg:test rdf:ID='test'>
   <eg:foo rdf:parseType='Literal'>
      abc "ghi" def
   </eg:foo>
</eg:test >
</rdf:RDF>
====

gives

==== test2.n3
@prefix daml:   <http://www.daml.org/2001/03/daml+oil#> .
@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix log:    <http://www.w3.org/2000/10/swap/log#> .
@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
@prefix :       <#> .

:test
      <http://example.org/eg#foo>
            "
      abc "ghi" def
   " ;
      a     <http://example.org/eg#test> .
====


> (I had put them in, allowing XHTML in the descriptions).

right, I see, sorry for the destruction, but it's
still in CVS ;-)

> Please copy www-archive or www-webont-wg on correspondence about the test

> document, (I am having difficulties getting to my e-mail at the moment).

-- ,
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/
Received on Monday, 16 December 2002 08:09:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:24 GMT