Neo4j 2.0.1 graphstyle.grass stylesheet issue - neo4j

I've somehow managed to import a bad/malformed graphstyle.grass file and now nothing gets displayed in the new (http://< server >:7474/browser/) graph view. In the table view I can see the nodes, so I know the query is hitting (I'm just using 'match n return n limit 25').
So here's where the rub comes.. because the nodes aren't showing up.. I can't click on them to open the properties where I could say 'View Stylesheet' and hit load default or import a fixed stylesheet. I poked around Neo4j files a bit to see if graphstyle.grass was stored within the files but didn't find anything. Any help is greatly appreciated because I ^think^ the nuclear option is reinstalling the server (which isn't a huge deal but trying to avoid that if I can).

Assuming you're on chrome browser. Press F12 to open web developer, tab Resources, Local storage and remove all the stuff from <server>:7474.
Other browser should offer a similar way.

Related

cyBrowser for cytoscape can't loading any graph plots

I have any problem with cytoscape, actually cyBrowser. It doesn't work correct.
There are 3 different shapes:
I actually work at my windows 10 PC and cyBrowser during create any graph plots (specifically heat map) isn't loading (I can see 100% processing, but but nothing happens);
In addition I use MacOS PC on work and and everything is fine there;
Actually I use MacAir and I have problem with cytoscape work when I use cy browser - it's just crushing
If you can help me, I will be extremely grateful
OK, there are a couple of quick work-arounds. First, when you create your plots, you should see an html file in your home directory. This is created by cyPlot when you request the plot to be created as a debugging aid. You should just be able to open that in any browser and you'll have your plot. Second, you should be able to disable the use of cyBrowser and use a native browser instead, although certain things won't work (e.g. selection in the browser won't be reflected in Cytoscape). To do this, go to Edit->Preferences->Properties and look for "useCyBrowser" and set that to false.
-- scooter

neo4j can't see database from terminal

this might be a stupid question but I'm new to neo4j.
I'm using the desktop version and from there I created a new database from a new project. I also can see it from the browser and I can see data and stuff.
But if I go on my terminal and run
cypher-shell
and from there I type
SHOW DATABASES;
I can only see the default dbs:
Does anyone know what I am doing wrong?
From the Neo4j desktop, you'll see the Start/Stop and Open buttons for a project database. Just to the right of these are 3-dots. Click on that and then open folder. This will get you to the various folders for the database. It's useful for seeing the size of the database, working with the config file, managing transaction logs, etc.

Why doesn't Neo4j show any system information (:sysinfo) in the browser?

I recently upgraded to Neo4j 4.0.6. (Community Edition)
After upgrading my "old" Neo4j database the browser :sysinfo command (Chrome and Safari) doesn't show any information. It just displays the empty tables for Store Size, id Allocation etc.
All the tables and labels are shown as in Neo4j 3.x but no values are prompted. It doesn't matter if I change the "Use Database" settings (switch to system and back) or if stop and restart the server. No entries for :sysinfo show up.
Any idea how to reactivate the DB :sysinfo in the browser interface again is greatly appreciated.
Krid
I tend to think its an issue with recent versions.
It caused me to believe a multi upgrade store was incorrect.
So I went the long 'dump to cypher and reimport' route.
After node import, sysinfo was working (4.1 CE)
This behaviour appeared when I added relations
CALL db.schema.visualization() is broken too (no graph tab)
What a time loss, I tell you.
Wont count the days
Somewhere I read to reset the indexes, be sure btree was used.
No, it didnt work.
your next move is to file an issue
It seems ppl also have this issue since 3.5 w/ clusters
https://github.com/neo4j/neo4j/issues?q=is%3Aissue+sysinfo

empty content tree pickers in Umbraco 6.2.4

I am experiencing some problems concerning empty content tree pickers. I'm running umbraco 6.2.4 in IIS7 (sql server 2008). I have a page with several content tree pickers (with the same dataType) and one of them is not showing any content (not always the same contentPicker interestingly).
In my debuggers network section the call to get the data for the content picker keeps pending (/umbraco/webservices/treeclientservice.asmx/getinitapptreedata) Deleting the TEMP directory, recycling the app pool, changing the doc type or dataType does not solve the problem. Is anyone experiencing similar problems or know how to solve this issue?
Thanks in advance
It's possible your content cache is corrupted somehow? Right click on the content folder in the CMS and select "Republish site" that should clear the cache. See if that solves your problem.

Change Or Delete Label with Cypher in Neo4j

In a Test, I made many types of nodes and relationships with Cypher syntax.
After all, I delete all of unneccessary nodes and their relations.
Actually, there are Types and Labels still there in my Browser
Are there any method to clear Or change name of unneccessary Type, Label with Neo4j and Cypher..??
Best regards
All the information is stored in the browser local storage. So If you are using chrome browser, once you are in localhost:7474/browser. right click your mouse and select "Inspect Element", this will open a chrome developer tool, then go to Resources and under resources, go to "Local Storage", you should see "http: //localhost:7474". select it. and select the key neo4j.grass, you can modify the value, by copying out and copying it back. or you can just delete the whole record (key and value) and close your browser. Open your browser again. start clicking on the labels. you will only see the labels you want. You can repeat this to clean up until neo4j come out with a better way.
if you are using firefox, you can install firebug, and click on the firebug then dom then local storage. then you can do the similar thing
for other browser I am sure that you can figure out ways(google) to clear the local storage
This cypher query deletes all nodes and relationships:
start n=node(*) match n-[r?]-() delete n, r;
You can customize it adding index or asking if it has attributes:
start n=node:users(':') match n-[r?]-() delete n, r;
If you've removed the labels from all nodes you should be able to get a clean result visualization stream by clearing your web browser's cache/cookies. This will not remove them from the info bar on your left, only from the graph vis. frame. Since labels and relationship types are database global constructs, unlike properties, they can exist in the database also after all their instances have been deleted. That may be the intended behavior, but I would expect there to also be a way to remove them completely from the database when 2.0 is released (if there isn't a way already that I've missed). If you want a clean start you can always stop your server, delete your database directory, and restart the server. You may still have to clear your browser or you may see ghost labels from your old database still haunt your visualization stream.
Searching for a removed label, I found that they are still left in data/graph.db/neostore.labeltokenstore.db.names, wh.
Remove nodes you don't want, backup DB, purge DB data dir, stop / start server, reinsert DB, enjoy.
I tried following on both Firefox and Chromium and it didn't work:
removing all nodes of types I no longer used
clearing localStorage neo4j.grass key - it does contain labels, but this doesn't help
clearing whole localStorage (completely)
stopping / killing server and bringing it back after points above
removing files with labels in their names from DB data dir
removing all neo4j cookies (in fact, later, whole browser cache as well)
Since purging DB and reinserting data worked, and since clearing local storage and launching another browser gets you same labels you had, I'm guessing the info is held partially in localStorage AND partially in files in graph.db dir (or however your DB dir is called). Files there are often binary, so I picked redoing whole DB (since it wasn't big anyway) over blind edits or decoding binaries - simply faster.
EDIT:
You may try something I've just spotted:
label > properties > view Stylesheet > click on drop icon (looks like extinguisher). This should drop the grass key.
You may need to have at least one node of given type for that, to open a view where you actually set up node display (colors and other properties) to get to it's stylesheet.

Resources