neo4j

Posts about the Neo4j graphdb (http://neo4j.org/)

New Nuget Package for Neo4j Users - Neo4jClient.Extension

The defacto standard for .net users of Neo4j is the Neo4jClient nuget package, if you don’t have that, you’re basically rolling your own connection code, in some cases you might need to, but most of the time, the client will work well. Today I was adding Neo4jClient to a new project, and searched via the Nuget package UI and up popped Neo4jClient.Extension, so, I went to the github repo, read the .md file and thought - I’ll download that bad boy and give it a go. The general gist is to be able to ......

Install Cypher Highlighting into Sublime Text 3

I’ve had Sublime Text (ST) 2 installed now for quite a while, purely because I use the Cypher highlighting package, and whilst I waited for ST3 to have it in the Package manager, it didn’t matter that I had both for a while. But I finally decided to bite the bullet and install Cypher manually into ST3. Step 1. Go to https://github.com/kollhof/... and Download ZIP of the repo. Step 2. Open ST3, and go to ‘Browse Packages’ (CTRL+SHIFT+P then type ‘browse’) Step 3. In the Explorer window, ......

Neo4jClient with LinqPad

Quite often I want to just try out some code, usually useful when answering a question on StackOverflow, but typically these don’t require a full solution, and it’s a bit heavy handed to whip out Visual Studio for a simple create / match query, so what about LinqPad? One of the most awesome tools for a .NET developer (if you haven’t got it, you should get it). I’m going to assume a few things here: You have got Neo4j running and know the url (if you’ve changed it) You have downloaded and installed ......

Error: Unable to access jarfile d:\Databases\Neo4j

Cryptic. I’ve spent a large proportion of time on this, and straight off the bat – NO this is not the ‘windows-jarfile’ error of the old skool days. No, this is a pretty simple issue, my folder structure was: d:\Databases\Neo4j d:\Databases\Neo4j Trie Inside each a copy of the the ‘zip’ contents, with different configuration properties for the various things (ports etc) so I could run multiple copies of Neo4j at the same time. All good. EXCEPT I get this error from the “Neo4j Trie” folder when I ......

Ninjecting Neo4jClient into MVC5/4/3

First, create your new MVC project (or load your existing one!) Then add the Ninject.MVC nuget package: We’ll also want the Neo4jClient package Now we have those two, we can hook it up, first off we need to tell Ninject how to bind to Neo4jClient, I use a Module for this, so add this class to your project (usually I have them in a sub-folder called ‘Modules’ in the App_Start folder – but it can be anywhere):public class Neo4jModule : NinjectModule { /// <summary>Loads the module into the kernel.</summary> ......

Writing Neo4j Console

So, Neo4j Console is now open sourced at: https://github.com/tournr/n... feel free to branch, fix, edit whatever and issue pull requests, or even just have a gander and code review :) I thought I’d write some notes on what I’ve done and why. Let’s split it into 2 main areas, UI and Backend. The UI Extremely simple WPF front end – I mean – it’s only got 3 text boxes! If I’m honest, it’s not what I want – I want to create a console window like the F# console, something which really does act ......

The Neo4j 1.9 to 2.0 Upgrade

So, with Neo4j 2.0 on the near horizon (RC1 out), it seemed appropriate to upgrade all my current codebase from 1.9 to 2.0. Generally, as a rule of thumb, the conversion has been pretty smooth, there are some pre-2.0 gaffs I’ve made which have made it slightly harder than it needed to be – but the ability to use 1.9 cypher in 2.0 db is incredibly useful. So – I’m (as you can probably tell) a .NET developer, which means I use the excellent neo4jclient to perform pretty much all of my interaction with ......

Neo4j Console

Hey Hey Super Early adopters, if you’re using Neo4j and you’re a Visual Studio developer (which probably means I’ve just lot 99% of the audience :)) please try Neo4j Console, it’s an extension for Visual Studio 2013 that allows you to make calls to your local (or remote) server instance of Neo4j. So, once you’ve downloaded it – the question I guess is HOW DO I USE THAT!!!?? Opening It Once installed, it finds itself in the ‘View->Other Windows’ menu, it’s called ‘Neo4j Console’, just like the ......

Another day, another blog post update

Gist: https://gist.github.com/csk... I know! Another question on StackOverflow leads to yet another blog post being updated to use the newer Neo4jClient. So here goes: Darko Micics has written a post about using Neo4jClient with C#.Net, and a question has arisen on StackOverflow asking about how to (in effect) do this in the new version of the Neo4JClient – the version where ‘CreateRelationship’ et al have been marked as obsolete. Luckily, this is a pretty simple (twitter-ish) data set ......

A Clear DB solution for Neo4j 2.0 RC1

The old skool way (pre RC1) of wiping the database was: //Clear DB START n=node(*) MATCH (n)-[r?]-() DELETE n, r Which worked fine for M06 and previous, but, RC1 doesn’t allow optional relationships (using the ? operator) you’ll need to update to: //Clear DB START n=node(*) OPTIONAL MATCH (n)-[r]-() DELETE n, r ......

Full neo4j Archive