Browse Source

Script used to import data and a simple readme, noting the tools used.

master
Erle Pereira 5 years ago
parent
commit
2174e4f3cc
2 changed files with 17 additions and 0 deletions
  1. +11
    -0
      Neo4j scripts/Readme
  2. +6
    -0
      Neo4j scripts/convert.sh

+ 11
- 0
Neo4j scripts/Readme View File

@ -0,0 +1,11 @@
Helper Scripts.
In order to import the set of data, from the xml into Neo4j,
xml2neo[1] was used to import the set of data into cyper queries. This script bascially replicates the xml structure into the graph. The structure itself can be adapted later.
[1] xml2neo available here
https://github.com/moxious/xml2neo
convert.sh was used along with xml2neo to convert xml files into an importable format

+ 6
- 0
Neo4j scripts/convert.sh View File

@ -0,0 +1,6 @@
#!/bin/sh
for f in ./*/*.xml;
do
../xml2neo/xml2neo.py $f > $f.cypher
done

Loading…
Cancel
Save