It's a bug in the Jena Turtle writer.

https://issues.apache.org/jira/browse/JENA-53

It's due to the shared list that's causing the problem. The solution will be to not use list syntax.

        Andy

On 08/03/11 16:55, Andy Seaborne wrote:


On 08/03/11 16:33, Ian Dickinson wrote:
On 08/03/11 16:29, Tim Harsch wrote:
I created a toy ontology and exported it to TTL via Top Braid Composer:
https://gist.github.com/860486#file_schema.ttl


It produced a parse error (below). I don't know if TBC is producing
bad TTL or if Jena is in error when parsing. It looks like valid TTL
to me, but then I don't know the spec that well.

com.hp.hpl.jena.n3.turtle.TurtleParseException: Lexical error at line
50, column 8. Encountered: " " (32), after : "-"

Line 50 says:

_:b1 :- (:Brother :Parent) .

which doesn't look like valid Turtle to me. I don't think you can have a
predicate name which is just '-'.

It's not a predicate, it just looks like one :-)

It's the N3 operator for "names" and you can't have it in Turtle.

But it might be the Jena writer at fault, which has overtones of N3
(history).

Andy


Ian


Reply via email to