Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Neo4j Cookbook

You're reading from   Neo4j Cookbook Harness the power of Neo4j to perform complex data analysis over the course of 75 easy-to-follow recipes

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781783287253
Length 226 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ankur Goel Ankur Goel
Author Profile Icon Ankur Goel
Ankur Goel
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Getting Started with Neo4j FREE CHAPTER 2. Connecting to Neo4j 3. The Cypher Query Language 4. Data Modeling and Leveraging with Neo4j 5. Mining the Social Treasure 6. Developing Location-based Services with Neo4j 7. Visualization of Graphs 8. Industry Usages of Neo4j 9. Neo4j Administration and Maintenance 10. Scaling Neo4j Index

Accessing Neo4j from the Java libraries


Java is at the sweet spot when it comes to the Neo4j language bindings, as Neo4j itself is implemented in Java. Most of the other language bindings, which access Neo4j as an embedded application, have been built on Java. In this recipe, we will take a look at the various ways to connect to Neo4j in Java.

In this recipe, we will learn how to access Neo4j in the most powerful way.

Getting ready

Neo4j can be embedded into the Java application, which can provide you with high-performance query results. Follow these steps to embed it into the application:

  1. Neo4j JAR files can be found in the lib directory of the source code. Include all the JAR files present in this directory. Alternatively, the JAR files are also present in the Maven repository.

  2. Add Neo4j to the build path and also add it as a dependency. Detailed information on this can be found at http://docs.neo4j.org/chunked/milestone/tutorials-java-embedded-setup.html.

How to do it...

Let's create our first...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime