Incorrect handling for undefined, empty prefixes in N3 deserialization · Issue #312 · RDFLib/rdflib (original) (raw)

As mentioned in Stackoverflow.com question, RDFLib incorrectly handles undefined, empty prefixes when deserializing them from N3:

http://stackoverflow.com/questions/17616463/error-in-serializing-notation3-file-into-rdfxml-format-in-python

N3 specification defines the following:

The empty prefix "" is by default , bound to "#" -- the local namespace of the file. The parser behaves as though there were a
@prefix : <#>.

However, as a current behavior the parser raises an error:

rdflib.plugins.parsers.notation3.BadSyntax: at line 5 of <>:

Would you consider this something that could/should be fixed?