Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cskardon/neo4jclient.ndp
https://github.com/cskardon/neo4jclient.ndp
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cskardon/neo4jclient.ndp
- Owner: cskardon
- Created: 2015-07-07T11:20:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-19T08:47:38.000Z (almost 9 years ago)
- Last Synced: 2023-04-05T17:54:14.486Z (over 1 year ago)
- Language: C#
- Size: 155 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Neo4jClient.Ndp
The beginnings of an NDP driver for Neo4j
## Information
Packing information and general start up all from https://github.com/nigelsmall/ndp-howto
## Hello World
This uses the default 'Movie' database you can instantiate on the Neo4j database.
With the class:
```C#
public class Movie
{
public string tagline { get; set; }
public string title { get; set; }
public int released { get; set; }
}
```Then in your code:
```C#
var client = new Neo4jNdpClient(new Uri("http://localhost.:7687"));
client.Connect();var results = client.ExecuteCypher("MATCH (n:Movie) WHERE n.released = 2012 RETURN n");
foreach(var record in results)
{
var nodes = record.As();
foreach (var node in nodes)
Console.WriteLine("{0} ({1}) -- '{2}'", node.Data.title, node.Data.released, node.Data.tagline);
}
```### Output
```
Cloud Atlas (2012) -- 'Everything is connected'
```