Skip to content

Instantly share code, notes, and snippets.

@isteves
Last active October 31, 2021 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isteves/26dd0359ff011b35fed87b4332bfff1b to your computer and use it in GitHub Desktop.
Save isteves/26dd0359ff011b35fed87b4332bfff1b to your computer and use it in GitHub Desktop.
neo4j learnings

Undirected: (a)-[r]-(b) Directed: (a)-[r]->(b) where a and b are nodes and r is the relationship (link) between them

In the following call, the curly brackets are for extra parameters (json form). CALL apoc.import.graphml("file://graph.graphml", {}) CALL apoc.import.graphml("file://graph.graphml", {readLabels: true})

There are properties and labels. Labels are what you can see as different colors in neo4j, and is defined in a graphml file as shown below (see ":Person"). Properties are other attributes that you can query by, such as age ("> 30 years old").

<node id="abc" labels=":Person">
      <data key="d0">abc</data>

A DBMS can have multiple databases -- each database is a separate "environment" with its own set of data / graphs.

The DBMS Settings (triple dots in the upper right corner on the DBMS/database page) has a section at the very end called Other Neo4j system properties, where configuration settings can be added. It's also possible to create a text file (e.g. apoc.conf) for additional configurations.

To see what files are available in a project, you can find it by going to the Terminal from neo4j (triple dots --> Terminal) and then typing the command open .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment