I have developed a default style for my network that I would like to automatically apply to all Neo4j Browser instances. The style is specified using a GRASS (graph-style-sheet) file. I read in the 3.0.1 changelog that you can apply a style from a URL with the :style browser command. However, is it possible to configure a Neo4j server with a default GRASS?
I'm using Neo4j 3.0.1. If a custom default style is not possible, are then any workarounds so users so users don't have to mess with any styling commands?
Related
I am trying to edit the settings of my AuraDB hosted neo4j instance, specifically, trying to set the following line:
apoc.import.file.enabled=true
I have looked at the official tutorial and many other places, and for the life of me, I am not able to find out where either the "settings" button is located, or how to locate the neo4j.conf or apoc.conf files. It seems that something has possibly changed in a newer version. I have tried both in the browser at https://console.neo4j.io/#databases and in Neo4J Desktop. For the desktop application, I am running it on Ubuntu via the .appimage. I created my database on the website and connected via remote connection following this guide.
Some things that might help me solve the issue:
Is it possible to open a shell in auradb to let me run normal bash commands?
Is the .conf accessible "within" the .appimage?
From the official description of File locations, I am supposedly able to do the following in Neo4j Desktop to find the configuration file:
From the Open dropdown menu of your Neo4j instance, select Terminal,
and navigate to /conf/neo4j.conf.
Yet, when I press the Open dropdown menu, I do not see a Terminal option. What I get is Neo4j Browser, Neo4j Bloom, and Neo4j ETL Tool.
Aura is a managed database - which is to say that you don't get low-level access to configuration of the kind you're describing. The documentation you're looking at relates to self-hosted instances of Neo4j, where you're the one managing and configuring the instance from scratch and where you have that level of access to the underlying configuration.
To the problem you're trying to solve, the following article entitled Loading data into Neo4j Aura is your best bet for the currently available options for loading data into your managed database.
Per the documentation, APOC is installed in Aura databases, but only a limited set of functions and procedures are enabled (as of May 2022). In particular, only a small subset of apoc.import procedures are available - from what I can see, CSV and GraphML support is enabled via apoc.load.csv and apoc.load.graphml, while you also have access to apoc.load.json and apoc.load.xml.
Lists of the currently supported procedures and functions are available at the foot of that document:
Neo4j Aura Supported APOC procedures (updated).json
Neo4j Aura Supported APOC functions (updated).json
From a Neo4j Aura Knowledge Article:
In Aura, we currently do not support changing any property that may
exist in the Neo4j product and defined in neo4j.conf.
The way I remember Neo4j from prior versions is that could change the style of nodes and relationships in the Neo4j browser by clicking such element and then using the UI to select size of node, color, what property to use for the label etc.
I have access to the :style command, which spits out the GraSS file, which I can modify locally and reupload but this is a very unfriendly experience.
Version: Enterprise 4.4.0 on Aura
I would like to display icons within nodes of Neo4j web browser by using this repo: https://github.com/graphadvantage/neo4j-browser-icons/ but I can't make it work.
Could you help with the installation? (I'm using docker image of Neo4j 3.5)
You can use post_connect_cmd to set the style from the grass file that is available in the above GitHub repo.
No need to run the Cyphers, using the existing grass file will work.
For using above grass file you need to modify the neo4j.conf to whitelist the domain or allow CORS and add the post_connect_cmd to set the style:
Add the following lines at the end of the neo4j.conf file and restart the Neo4j.
#********************************************************************
# Custom Styling for Neo4j Browser
#********************************************************************
browser.remote_content_hostname_whitelist=github.com,githubusercontent.com
browser.post_connect_cmd=style https://raw.githubusercontent.com/graphadvantage/neo4j-browser-icons/master/graphstyle.grass
This works for me. You can verify by creating a node:
CREATE(n:Upload{name:'Upload'}) return n
It is possible to create custom neo4j browser guide and run it.
Ex: :play http://guides.neo4j.com/graphgist/restaurant_recommendation.html.
Also neo4j has default browser guides like :play cypher.
I want to make my neo4j guide as built in guide like :play mycustomguide
How can I do it?
That's only possible for guides that currently reside on guides.neo4j.com
You'd have to patch the browser code for that. github.com/neo4j/neo4j-browser
But you can configure in neo4j.conf a start command that allows you to play your guide automatically at the beginning, see:
https://neo4j.com/developer/guide-create-neo4j-browser-guide/
How to run Neo4j 3.0.6 multiple instances in a single machine using ineo?
How To change port number of Neo4j 3.0.6 version and instance using ineo?
ineo is a third party solution, and based on its github repo it is not maintained recently. Btw, have you checked the Create an instance with a specific port section of its README.md?
ineo create -p8486 my_db_test
Currently neo4j offers a similar solution for this instance handling, it is called Neo4j Desktop, and it can be downloaded from here: https://neo4j.com/download/other-releases/
If you use the native neo4j database, then you should change the following properties in neo4j.conf to be able to have more instance locally:
dbms.connector.bolt.listen_address
dbms.connector.http.listen_address
dbms.connector.https.listen_address