User Tools

Site Tools


software:neo4j

This is an old revision of the document!


Python Py2Neo

From: https://medium.com/labcodes/graph-databases-talking-about-your-data-relationships-with-python-b438c689dc89

Creating Nodes and Relationships

The Graph class from Py2Neo is used to access the database given the password as a parameter. From
an object from Graph class, we can begin a new transaction and create nodes and relationships,
recording these actions in the database at once.

Importing CSV Data into Neo4j

From: https://neo4j.com/developer/guide-import-csv/

Tools
There are a number of tools that help you check and validate your CSV data files.

Webinar “LOAD CSV in the Real World” Goov video

CSVKit
CSVKit is a set of Python tools that provide statistics (csvstat), search (csvgrep), …​ and more for
your CSV files. Especially csvstat is very helpful to get an overview and statistic over your file, 
if you know your domain and data you can immediately spot inaccuracies. Field length is important 
as excess field length indicates stray quotes.

neo4j load csv null values

From: https://stackoverflow.com/questions/46907116/import-a-csv-file-with-null-values-in-neo4j

CREATE (m:Employee {name: toUpper(row.Lastname), firstname: toUpper(row.Name)})
FOREACH (n IN (CASE WHEN row.Room IS NULL THEN [] ELSE [1] END) |
    MERGE (r:Room { name:row.Room})
    CREATE (m)-[:WORKS_IN]->(r)
)
FOREACH (n IN (CASE WHEN row.Team IS NULL THEN [] ELSE [1] END) |
    MERGE (t:Team {name:row.Team})
    CREATE (m)-[:WORKS_WITH]->(t)
)

How do I enable remote HTTPS access with Neo4j 3.0.x

From: https://neo4j.com/developer/kb/how-do-i-enable-remote-https-access-with-neo4j-30x/

The change from localhost:7473 to 0.0.0.0:7473 will allow for remote connections to https://<Neo4j_Host_IP>:7473

From: https://neo4j.com/docs/operations-manual/current/configuration/connectors/

Connector name 	Protocol 	Default port number
dbms.connector.bolt
Bolt
7687

dbms.connector.http
HTTP
7474

dbms.connector.https
HTTPS
7473

Install Neo4j on SUSE

From: https://neo4j.com/docs/operations-manual/current/installation/linux/rpm/

2.2.2.2. SUSE
	

SUSE is not certified for production use. These instructions are provided for convenience for those wishing to use Neo4j in non-production environments.

For SUSE-based distributions the steps are as follows:

    Use the following as root to add the repository:

    zypper addrepo --refresh http://yum.neo4j.org/stable neo4j-repository

    Install Neo4j.

        To install Neo4j Community Edition as root:

        zypper install neo4j-3.4.0

        To install Neo4j Enterprise Edition as root:

        zypper install neo4j-enterprise-3.4.0

software/neo4j.1530339307.txt.gz · Last modified: 2018/06/30 06:15 by superwizard