-1

i exported my data into graphML format, and want to import them into neo4j via gremlin's graphML.import() function. i need to create indexes to index all my imported data. is it even possible in the graphML format?

my export xml looks like this:

<graphml xmlns="http://graphml.graphdrawing.org/xmlns"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns
        http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">

<key id="user" for="node" attr.name="user" attr.type="int" />
<key id="item" for="node" attr.name="item" attr.type="int" />
<graph id="G" edgedefault="directed">
....
</graph>
</graphml>
ulkas
  • 5,748
  • 5
  • 33
  • 47

1 Answers1

0

No, GrapmML does not contain this. You could enable autoindexes on the fields you want before you start the import, so they are recording the changes fro you? http://docs.neo4j.org/chunked/snapshot/auto-indexing.html

Peter Neubauer
  • 6,311
  • 1
  • 21
  • 24
  • yes, i was thinking about the autoindexing, but my point was to have an easy way of export/import data without additional setup. but thanks, at least i'll not spend time with graphML anymore. – ulkas Nov 15 '12 at 09:40