Re: Whitespace in Turtle after ^^

On 20/01/15 08:31, Jan Wielemaker wrote:
> On 01/19/2015 11:50 PM, Peter Ansell wrote:
>> On 20 January 2015 at 03:54, Andy Seaborne <andy@apache.org> wrote:
>>> On 19/01/15 16:35, Stian Soiland-Reyes wrote:
>>>>
>>>> so in general the non-terminals like RDFLiteral and
>>>> predicateObjectList allow any whitespace between its tokens, right?
>>>
>>>
>>> Yes - between the sub-rules and the terminals involved.
>>>
>>>> Yet Jena does not like the nasty Turtle.. :)
>>>
>>>
>>> It does, 'cos I just fixed it :)
>>>
>>> JENA-852
>>>
>>
>> Sesame also had this issue and it will be fixed in 2.7.15:
>>
>> https://openrdf.atlassian.net/browse/SES-2165
>
> Also fixed the SWI-Prolog turtle parser (git version).  Just to be sure:
> This does also allow for comments, as in
>
> x:y x:p "hello"
> #not so nice
> ^^
> #not so nice
> xsd:string .

Yes.

> and this also applies the @ and the ntriples and nquads formats, right?

Yes - for horizontal white space, not vertical. NT and NQ have different 
definition of white space in those specs.  Comments would count as WS 
but as they run to end of line, it can't be legal with a comment 
separating two parts of a literal.

 Andy

>
>  Cheers --- Jan
>

Received on Tuesday, 20 January 2015 11:44:11 UTC