We're updating the issue view to help you get more done. 

N3 Parser error on language tag

Description

Parsing the N3 triple in a Java String:
<urn:a> <http://www.example.net/test> "Foo"@fr-FR.

Using code like (copy/paste of fragments of code):
ByteArrayInputStream bais = new ByteArrayInputStream(rdfcontent);
Reader is = new InputStreamReader(bais, "UTF-8");
connect.add(is, "urn:a", RDFFormat.N3);

Leads to a parsing error:
4 juil. 2013 16:31:22 org.openrdf.rio.helpers.ParseErrorLogger error
ATTENTION: [Rio error] Illegal language tag char: '.' (1, -1)

Remarks:

With an extra space between FR and the final dot is parsed correctly.

Environment

None

Status

Assignee

Peter Ansell

Reporter

Laurent Mazuel

Labels

None

Components

Fix versions

Affects versions

2.7.2

Priority

Critical