diff --git a/ETL.ipynb b/ETL.ipynb index 459b8db..c88e1a7 100644 --- a/ETL.ipynb +++ b/ETL.ipynb @@ -31,7 +31,7 @@ "source": [ "nodefile = \"vertex/vertex.csv\"\n", "edgefile = \"edge/edge.csv\"\n", - "jsonfile = \"geojson/multigraph.json\"\n", + "jsonfile = \"geojson/multigraph.geojson\"\n", "graphmlfile = \"graphml/multigraph.graphml\"\n", "gmlfile = \"gml/multigraph.gml\"\n", "\n", @@ -78,17 +78,17 @@ " direction = \"OneWay\"\n", " \n", " edge.writerow([\n", + " jsentry['_id']['$oid'], \n", " jsentry['properties']['mongo_org_id'],\n", " jsentry['properties']['mongo_dest_id'],\n", - " jsentry['_id']['$oid'], \n", " direction,\n", " jsentry['properties']['layer'], \n", " jsentry['properties']['name']])\n", " else:\n", " edge.writerow([\n", + " jsentry['_id']['$oid'], \n", " jsentry['properties']['mongo_org_id'],\n", " jsentry['properties']['mongo_dest_id'],\n", - " jsentry['_id']['$oid'],\n", " \"TwoWay\",\n", " jsentry['properties']['layer'], \n", " jsentry['properties']['name']])"