Developer Center

Build Smarter Apps, Easier, with Graph Tools For Your Language

Java
Cypher [source,cypher] —- MATCH (j:JavaVersion)-[rel:INCLUDES]->(f:Feature)-[rel2:BELONGS_TO]->(c:Category {name: "lang"}) WHERE toInteger(j.version) >= 24 RETURN *; —- Java [source,java] —- public class App { public static void main(String[] args) { // Create a new Neo4j driver instance try (var driver = GraphDatabase.driver( "bolt://localhost:7687", AuthTokens.basic("javaversions","javaversions") ) { driver.verifyConnectivity(); // Return orders mapped to JavaVersion domain record var javaVersions = driver.executableQuery(""" MATCH (j:JavaVersion)-[rel:INCLUDES]->(f:Feature)-[rel2:BELONGS_TO]->(c:Category {name: "lang"}) WHERE toInteger(j.version) >= 24 WITH j, collect(f.title) as features, c.name as category RETURN j {.*, features: features, category: category} as javaVersion; """) .execute() .records() .stream() .map(record -> record.get("javaVersion").as(JavaVersion.class)) .toList(); for (var javaVersion : javaVersions) { System.out.println(javaVersion); } } record JavaVersion(String version, String status, LocalDate gaDate, LocalDate eolDate, @Relationship("INCLUDES") List features) { } record Feature(String title, @Relationship("BELONGS_TO") Category category) { } record Category(String name) { } }
Neo4j java graph preview

Build Graph + AI Powered Apps

Build AI Agents

Design your agents long-term memory and contextual reasoning by storing knowledge in a Neo4j graph. Query relationships directly so agents can ground responses in connected data, with runnable code samples to get started fast.

Get Started

Graph Retrieval-Augmented Generation
(GraphRAG)

Retrieve relationship-aware answers grounded in your LLM’s entities and connections

Get Started →

Model Content Protocol
(MCP)

Enable LLMs with MCP to reason over entities and relationships, not unstructured, disconnected data.

Get Started →

Connect Your Stack

Integrate with your existing cloud, containers, and frameworks

Graph Academy

Become a subject expert, or browse our learning pathways, to find the right course for you.

Graph Academy Courses

Are you a beginner or just getting started? Build your Neo4j foundation with an some of these courses.

Neo4j Certifications

Are you a beginner or just getting started? Build your Neo4j foundation with an some of these courses.

Generative AI
Cypher
Development
Processing
Analytics
Start Learning

Community Forum

Join in-depth technical  Q&As and discussions, and connect with fellow Neo4j Developers in real-time

Join the Discussion

Neo4j Documentation

Join in-depth technical  Q&As and discussions, and connect with fellow Neo4j Developers in real-time

View Docs
Cypher & GQL

Neo4j Text2Cypher: Analyzing Model Struggles and Dataset Imporvements

5 Min Read

Cypher & GQL

Neo4j Text2Cypher: Analyzing Model Struggles and Dataset Imporvements

5 Min Read

Cypher & GQL

Neo4j Text2Cypher: Analyzing Model Struggles and Dataset Imporvements

5 Min Read

Learn: How to Get Your Data AI‑Ready with Knowledge Graphs & GraphRAG

Wednesday, June 11 · 10:00 a.m. IST | 12:30 p.m. SGT/HKT/CST | 1:30 p.m. JST | 2:30 p.m. AEST · 30 minutes

As teams move GenAI from prototype to production, they hit real‑world challenges — like boosting accuracy, making outputs explainable, and connecting LLMs to internal data and systems.

This session calls for AI‑ready data — connected data that’s contextual, flexible, and standardized. Learn how to get your data ready to build more reliable AI agents and apps by pairing a knowledge graph with RAG to create a GraphRAG architecture.

Register

Learn: How to Get Your Data AI-Ready with Knowledge Graphs & GraphRAG

  • Understand the fundamentals of nodes, relationships, and properties.
  • See how knowledge graphs improve retrieval and grounding for LLMs.
  • Explore patterns for ingestion, modeling, and query (Cypher).
Read more

Learn: What Is a Knowledge Graph, and the Core Skills to Integrate It into Your AI Stack

  • Understand the fundamentals of nodes, relationships, and properties.
  • See how knowledge graphs improve retrieval and grounding for LLMs.
  • Explore patterns for ingestion, modeling, and query (Cypher).
Read more