Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-28-2020 11:49 AM
I have set up a MS sql db with all primary foreign key relationship. When I try to import data into net4j it only creates nodes but no relationship.
please advse.
05-30-2020 02:30 AM
Please share the log files from generating the mapping.
10-09-2020 08:25 PM
Same problem, but with MySQL. The mapping creates nodes, but not the relationships. It's a small DB, 20 tables, no complex relationships, basically, all data relates to the core table "person." Everything else is simple 1:1 relationship, IE: A person 'has a' family etc. and the family node (table) contains the properties relevant to 'family.'
This is a basic, normalized schema with no join/union/relationship tables that carries some null data at the field level - null data that are mySQL (NULL) values.
Log extract (relevant section):
10-10-2020 06:17 AM
The data are from my sociology research from my MA. I'm planning on anonymizing the data (removing all personally identifying information) and making it available through suitable academic channels.
It's perfectly accessible in MySQL and up until now I've been using Excel and tools like Power BI etc. for analysis and accessing the data but I felt that a Graph DB might open up the data for further use in the future by myself as well as others working in similar research fields.
Best,
Byron
10-10-2020 06:30 AM
can you share the mapping json files?
10-10-2020 06:39 AM
Hi, would you like the entire log? The mapping fails seemingly because of null data in the tables - there is one 'blank' row (a non-participant) which is data that can't be removed from the data for reasons of accountability and integrity. There are also null data at the field level throughout the data, which is to be expected in survey data as some blocks of answers are for particular demographics.
This is the log from the ETL mapping tool:
mapping.txt (242.4 KB)
Best,
Byron
10-12-2020 12:47 AM
Did you exclude columns from the mapping section?
10-12-2020 06:45 PM
Hi Andrea,
No actually, and for auditing & accountability purposes I can't skip rows as the data are survey data where participants have opted in or out. There is only one blank record in the person table in the database which then echoes across the rest of the tables based on the relationships. Futher to that, there are fields in tables that carry null data since they may be gender, age or specific to a demographic feature.
Byron
10-14-2020 08:31 AM
can you share the DDL of your database?
10-14-2020 05:14 PM
Hi Andrea,
Sure. The original data were in CSV, which is the export format from the digital survey tool I use. As a result, the datatypes are simply left as strings for simplicity; correcting datatypes didn't seem necessary or a good use of time & resources.
Byron
Attached: DDL (No data)
I can't release data at this point as it has not been scrubbed of PII. I can't violate the participant agreements.
This is the schema only.
nepaldata.txt (46.5 KB)
All the sessions of the conference are now available online