Hi Rich, The problem is, that the batch-importer currently uses colons to separate name:type:index and currently that's not configurable.
I think doing that, will only add to the complexity of your queries later on as you have to escape all the property names with batckticks, that makes it much harder to read. Why not replacing the colon, with say an underscore? For UTF-8, if you look into the shell script, it already does that. That system property is only needed if you run it with java directly. Cheers, Michael On Mon, May 19, 2014 at 6:39 AM, Rich Morin <[email protected]> wrote: > I'm having some problems with the Batch Importer (BI) for Neo4j 2.0.0: > > https://github.com/jexp/batch-import/tree/20 > > I'd like to use Turtle-format names (eg, owl:disjointWith) as property > names. > I understand that a colon isn't a valid part of a Neo4j identifier unless > it is > escaped with backquotes (eg, `owl:disjointWith`). However, I don't see > anything in the BI web page that seems relevant to this. > > I've tried creating nodes.csv header lines in two ways: > > name owl:disjointWith owl:equivalentClass ... > name `owl:disjointWith` `owl:equivalentClass` ... > > Neither version works. They give, respectively, the nastygrams: > > java.lang.IllegalArgumentException: Unknown Type disjointWith > java.lang.IllegalArgumentException: Unknown Type disjointWith` > > Suggestions? > > > I also need to tell the BI that my data has Unicode in it. The web page > says > that I need to add "-Dfile.encoding=UTF-8" to the command line arguments, > but when I tried that, I got a nastygram: > > import.sh -Dfile.encoding=UTF-8 test.db ../tmp/nodes.csv ../tmp/rels.csv > ... > Exception in thread "main" java.lang.IllegalArgumentException: > ElementType has to be node_index or relationship_index, but is > ../tmp/rels.csv > > I assume I'm adding the flag incorrectly; what is the right syntax? > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
