Re: suggested test cases for turtle comments

* Jeremy J Carroll <jjc@syapse.com> [2013-05-10 13:20-0700]
> This is not intended as a formal comment, and I do not request issue tracking or a formal response.
> 
> I hit an inconsistency between turtle implementations with the following snippet:
> 
> @prefix based: <http://syapse.com/based#> .
> @prefix sys: <http://syapse.com/sys#> .
> based:HumanSubject_1 sys:owner# link with modelName User
> '''s:syuser/5''' .
> 
> 
> Looking at my error (forgetting the space before the #) and looking at the spec. which allows this, I was not surprised at the behavior of either system.
> 
> I wonder whether there are enough tests for the somewhat curious rules to do with comments.
> 
> My understanding is that
> 
> _:a eg:prop (
>      eg:aaa#this-is-a-comment
>      eg:aaa\#this-is-not-a-comment-but-part-of-the-qname
> ).

Hi Jeremy, thanks for the test case suggestion. I've created four:
  <http://www.w3.org/2013/TurtleTests/#comment_following_localName>
    @prefix p: <http://a.example/> .
    <http://a.example/s> <http://a.example/p> p:o#comment
    .
    => <http://a.example/s> <http://a.example/p> <http://a.example/o> .

  <http://www.w3.org/2013/TurtleTests/#number_sign_following_localName>
    @prefix p: <http://a.example/> .
    <http://a.example/s> <http://a.example/p> p:o\#numbersign
    .
    => <http://a.example/s> <http://a.example/p> <http://a.example/o#numbersign> .

  <http://www.w3.org/2013/TurtleTests/#comment_following_PNAME_NS>
    @prefix p: <http://a.example/> .
    <http://a.example/s> <http://a.example/p> p:#comment
    .
    => <http://a.example/s> <http://a.example/p> <http://a.example/> .

  <http://www.w3.org/2013/TurtleTests/#number_sign_following_PNAME_NS>
    @prefix p: <http://a.example/>.
    <http://a.example/s> <http://a.example/p> p:\#numbersign
    .
    => <http://a.example/s> <http://a.example/p> <http://a.example/#numbersign> .


If this resolution addresses your issue, please respond to this
message with a subject line which starts with "[RESOLVED]". Thank you
for your help in improving the Turtle tests.


> Jeremy J Carroll
> Principal Architect
> Syapse, Inc.
> 
> 
> 
> 

-- 
-ericP

Received on Wednesday, 3 July 2013 15:10:33 UTC