linkeddata / rdflib.js

Linked Data API for JavaScript
http://linkeddata.github.io/rdflib.js/doc/
Other
564 stars 143 forks source link

multi-line literals in turtle only supported with double-quotes #214

Open retog opened 6 years ago

retog commented 6 years ago

Starting a multiline-literals with 3 single-quote will lead to

Bad syntax: objectList expected

Using 3 double quotes works as it should

melvincarvalho commented 6 years ago

Oh, that's interesting. I've always used 3 double quotes for that. Does the spec allow single quotes too?

melvincarvalho commented 6 years ago

Ah yes, so it does

https://www.w3.org/TR/turtle/#turtle-literals

Well, I never knew that! I am guessing that this is a long standing bug.

We should perhaps add a test for this and fix. Tho is there an underlying parser?