Re: TEST: <code>

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 UTC