O'Reilly logo

Learning Neo4j 3.x - Second Edition by Rik Van Bruggen, Jérôme Baton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Importing all the systems

To sum up, this method is similar to importing from a JSON data source apart from a few differences. This effort toward consistency is the mark of top-level professionals and is to be saluted.

So, now that we have a MySQL database named learning running on the same server, using default ports, we want to import the operating systems into nodes with the Os label and a FROM relation that goes to a node labeled OsFamily.  The ID column will not be reused. This means that we have a pair of constraints to create, as follows:

CREATE CONSTRAINT ON (o:Os) ASSERT o.name IS UNIQUECREATE CONSTRAINT ON (of:OsFamily) ASSERT of.name IS UNIQUE

Creating these constraints is not mandatory unless you run the import that follows several ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required