Beginning Neo4j

Beginning Neo4j

Language: English

Pages: 153

ISBN: 1484212282

Format: PDF / Kindle (mobi) / ePub

Beginning Neo4j

Language: English

Pages: 153

ISBN: 1484212282

Format: PDF / Kindle (mobi) / ePub


Beginning Neo4j is your introduction in the world of graph databases, and the benefits they can bring to your applications. Neo4j is the most established graph database on the market, and it's always improving to bring more of its benefits to you. This book will take you from the installation of Neo4j through to building a full application with Neo4j at its heart, and everything in between.

Using this book, you'll get everything up and running, and then learn how to use Neo4j to build up recommendations, relationships, and calculate the shortest route between two locations. With example data models, best practices, and an application putting everything together, this book will give you everything you need to really get started with Neo4j.

Neo4j is being used by social media and ecommerce industry giants. You can take advantage of Neo4j's powerful features and benefits - add Beginning Neo4j to your library today.

Programming for Musicians and Digital Artists: Creating music with ChucK

Beginning iOS Cloud and Database Development: Build Data-Driven Cloud Apps for iOS

iOS Apps with REST APIs

Real World Haskell

 

 

 

 

 

 

 

 

 

 

 

 

 

if it’s something new for you. 11 Chapter 2 Getting to Know Neo4j Now that we’ve been over the theory of the various types of database, and even had a bit of a history lesson on the origins of graph theory, it’s time to get into the good stuff, Neo4j. This chapter will give you a full overview on Neo4j, how it works, who’s using it, and of course, why you should be using it. To kick things off, let’s get a bit of information about Neo4j, and have a look at why you should be using it. Neo4j is

installing on clean version of Windows 10, but these instructions should also work on other versions, too. If in doubt, check the Neo4j website. Anyway, back to business, this easy installation results in you being able to double click the .exe file to install everything, which is brilliant. You’ll be guided through the installation process and you’ll be prompted to pick an installation location, and after the process is complete, you’ll get the option to run Neo4j. When you run Neo4j, you’ll see

relationships have been assigned to the `r` variable, which means they can be returned from the query, so if you need the relationship (or any of its properties) then it can be returned easily enough. MATCH (a)-[:RELATED]->(b) RETURN a, b; When you don’t want to wildcard everything, you may want to have a certain type of relationship, which is added with the `:TYPE` pattern. In this case, the type is RELATED and since the relationship isn’t needed later the alias has been dropped. 40 Chapter 4

nodes/relationships When you see a function called `nodes` or `relationships` you can assume (given the names) its use has something to do with nodes or relationships (depending on which one is used), and you’d be right. The `nodes` function is used to return the nodes within a supplied path, with the `relationships` function being used to return the relationships present in a path. Both functions require a path to be supplied as an argument in order for them to work. An example of the `node`

uuid: "d8d177cc-1542-11e5-b60b-1697f925ec7b", "d8d17b28-1542-11e5-b60b-1697f925ec7b", "d8d17c72-1542-11e5-b60b-1697f925ec7b", "d8d1b958-1542-11e5-b60b-1697f925ec7b", "d8d1bade-1542-11e5-b60b-1697f925ec7b", price: price: price: price: price: 10}) 20}) 30}) 40}) 50}) 59 Chapter 5 ■ Managing Your Data in Neo4j Here we just have some products being added, with various names, prices, and unique UUIDs, nothing too crazy here. Next up are the categories: CREATE (category1:Category {name:

Download sample

Download