Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-13-2022 08:14 AM
Good morning,
I ran the files according to instructions (born and died are dates).
I can not validate the results (I used the cleaning procedure ("MATCH (n) DETACH DELETE n) and imported the initial graph again
What did I wrong?
Thanks for your help.
06-13-2022 12:49 PM
Hello @Tartar1 ,
After the Data Import using the Data Importer app, this Cypher should return true:
MATCH ()-[r]->()
WITH count(r) AS Relationships
MATCH (n)
WITH count(n) as Nodes, Relationships
CALL apoc.meta.nodeTypeProperties( ) yield propertyTypes, totalObservations
with Relationships, Nodes, sum(totalObservations) AS numProperties
CALL apoc.meta.nodeTypeProperties( ) yield propertyTypes, totalObservations
with * where propertyTypes = ["Long"] OR propertyTypes = ["Double"]
with Relationships, Nodes, numProperties, sum(totalObservations) AS numNumericProperties
RETURN Relationships + Nodes + numProperties + numNumericProperties = 12417 as outcome
If your Cypher does not return true, then you have some extra labels, property keys etc. in the graph.
MATCH (n) DETACH DELETE n will remove all nodes and relationships in the graph, but does not remove property keys and constraints. If you want to really start from nothing for the data import, try this command:
CREATE OR REPLACE DATABASE neo4j
Then do the import.
Elaine
All the sessions of the conference are now available online