AnantLabs / rdfquery

Automatically exported from code.google.com/p/rdfquery
0 stars 0 forks source link

Uppercase lang fails #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This will succeed:
var l1 = $.rdf.literal('"Ein Release (Version) eines Projekts."@de');

This will fail:
var l2 = $.rdf.literal('"Ein Release (Version) eines Projekts."@DE');

I don't actually know what the standard says about case in language specifiers, 
but 4store converts them all to uppercase, so I changed literalRegex to:
literalRegex = 
/^("""((\\"|[^"])*)"""|"((\\"|[^"])*)")(@([a-zA-Z]+(-[a-z0-9]+)*)|\^\^(.+))?$/,

Original issue reported on code.google.com by anderson...@gmail.com on 1 Feb 2012 at 1:58