gjhiggins/rdflib — Issue #174: rdflib Turtle output defines illegal _9 prefix
Author: gjhiggins
Created: 2011-10-19 01:35:34+00:00
State: open

Originally filed by felik...@gmail.com on 2011-07-11T10:44:42

What steps will reproduce the problem?

I used rdfpipe to convert an n3 file to turtle format, resulting in the following:

@prefix _9: .
@prefix rdfs: .

a
;
rdfs:label "Cecil B. DeMille (Director)";
_9:director_name "Cecil B. DeMille" .

However, _9 is not a valid prefix according to the standard:
See http://www.w3.org/TeamSubmission/turtle/#sec-grammar

[26] nodeID ::= '_:' name
[27] qname ::= prefixName? ':' name?
[33] prefixName ::= ( nameStartChar - '_' ) nameChar*

so _9: is illegal

Either
_:BNode
or
abc_def:local
but not a leading _ for a prefix name.

What version of the product are you using? On what operating system?
$ rdfpipe --version
rdfpipe (using rdflib 3.0.0)

any feedback can be sent to feliksik AT gmail DOT com