Key takeaway
- How graph databases work: nodes, relationships, property graph vs RDF, Cypher, Gremlin and GQL, platforms, enterprise use cases, limits and adoption steps.
A graph database stores data as nodes (the entities) and relationships (the connections between them), and keeps those connections as stored data rather than working them out at query time with joins. Neo4j describes it this way: nodes carry labels and properties, and a relationship has a start node, an end node, exactly one type and a direction. Questions such as "who is connected to whom, through what, and how far away" are answered by following relationships from a starting point.
For enterprise leaders the decision is rarely graph or relational as a whole. It is whether a specific, relationship-heavy workload, such as fraud rings, recommendations, network dependencies or the entity links behind a knowledge graph, justifies a second data store, a new query language and new governance. This guide covers how graph databases work, the models and languages, the current platform landscape, the limits and an adoption sequence. For the analytics side (centrality, communities, GraphRAG), read our companion guide on graph analytics and knowledge graphs.
How does a graph database work?
A graph has two building blocks. A node represents an entity such as a customer, account, device or product. A relationship represents how two nodes are associated, for example "follows", "owns" or "works at". Both can hold properties (key-value pairs), and relationships are directional. In a small social example, P1 and P3 follow each other, P2 and P3 follow each other, but P1 does not follow P2 back. That direction is stored in the graph, so the query can use it.
Neo4j's documentation says relationships are stored natively alongside the nodes they connect, and that this lets a graph avoid the JOIN operations a relational database depends on. A query therefore starts at one or more nodes and traverses relationships outwards, instead of matching keys across tables. Native graph storage and native graph processing are the design choices to ask vendors about. Some graph products sit on top of relational or columnar storage, which means connections are translated between data models at query time.
For a deeper look at the storage and big data side, see our overview of graph databases in big data analytics, and for the wider database landscape see what a database is and how the types differ.
Property graph or RDF: which model fits?
There are two mainstream graph models. The property graph puts properties on both nodes and relationships and suits application queries and analytics. RDF (Resource Description Framework) is a W3C standard for statements about resources, and suits data integration, metadata and master data. The W3C's RDF 1.1 Concepts, a Recommendation dated 25 February 2014, defines an RDF triple as a subject, a predicate and an object, and an RDF graph as a set of triples.
| Model | Building blocks | When it fits | Typical query language |
| Property graph | Nodes, typed directed relationships, properties on both | Application queries, fraud and recommendation paths, network and dependency analysis | Cypher, Gremlin, GQL |
| RDF graph | Triples of subject, predicate and object | Merging data from different schemas, shared vocabularies, published linked data | SPARQL |
Which query languages do graph databases use?
Language support is the most practical lock-in question. Cypher is Neo4j's query language, and openCypher is the open version that Amazon Neptune supports. Gremlin is the traversal language of Apache TinkerPop, a framework covering both graph databases (OLTP) and graph analytic systems (OLAP). SPARQL is the W3C query language for RDF. GQL is the new international standard for property graphs.
| Language | Used for | Current status |
| Cypher | Pattern matching on property graphs (Neo4j) | Neo4j states that Cypher now accommodates most mandatory GQL features, with some mandatory features not yet implemented (vendor documentation) |
| GQL (ISO/IEC 39075) | Standard database language for property graphs | Published April 2024, a corrigendum issued in 2026, and the standard is listed as to be revised (ISO) |
| Gremlin | Graph traversals across TinkerPop-enabled systems | Supported by JanusGraph, Amazon Neptune and Azure Cosmos DB for Apache Gremlin |
| SPARQL | Queries over RDF graphs | Supported by Amazon Neptune for the RDF model |
The same question reads very differently in SQL and Cypher. To list people who work in the IT department, SQL joins a Person table to a Department table through a link table. Cypher writes the pattern directly: MATCH (p:Person)-[:WORKS_AT]->(d:Dept) WHERE d.name = "IT Department" RETURN p.name. The gap widens as the number of hops grows, which is why relationship-heavy questions are the natural graph workload.
Graph database or relational database: what is the difference?
| Aspect | Relational database | Graph database |
| Data format | Tables with rows and columns | Nodes, relationships, labels and properties |
| Relationships | Expressed through foreign keys and resolved with joins at query time | Stored as first-class data and followed by traversal |
| Schema | Defined up front | Flexible, can evolve as the model changes |
| Best suited to | Transactional records, accounting, reporting | Connected data: fraud rings, recommendations, dependencies, knowledge graphs |
| Main trade-off | Deep multi-hop questions need many joins | A different skill set and, usually, a second store beside the system of record |
Which graph database platforms are in use in 2026?
The old "top 10" list on this page was unsourced and mixed databases with a processing framework, so we replaced it with platforms whose own documentation we checked on 11 November 2026.
| Platform | What it is | When it fits | Current status |
| Neo4j | Property graph database using Cypher | Teams that want a native graph store and a large Cypher skill base | Active; documents GQL conformance work |
| Amazon Neptune | Managed graph service supporting property graph (openCypher, Gremlin) and RDF (SPARQL) | AWS estates that need managed operations and both graph models | Active; AWS states it is designed for greater than 99.99 percent availability. Neptune Analytics is a separate in-memory analytics engine |
| Azure Cosmos DB for Apache Gremlin | Managed graph database using Gremlin on Apache TinkerPop | Azure estates with Gremlin skills and global distribution needs | Active. Microsoft's page points analytical (OLAP) graph and migration cases to Graph in Microsoft Fabric, and notes some features differ from Apache TinkerPop |
| JanusGraph | Open source (Apache 2.0) distributed graph database, a Linux Foundation project | Teams that want to choose their own storage backend, such as Cassandra, HBase or ScyllaDB | Active; integrates natively with TinkerPop and Gremlin |
| Apache Giraph | Iterative graph processing system, not a database | Not recommended for new work | Retired to the Apache Attic (September 2023) |
We have removed OrientDB, ArangoDB, Virtuoso, GraphDB and AllegroGraph from the table because we could not confirm their current status and positioning from a primary page for this update. Check each vendor directly if one of them is on your shortlist.
Where do graph databases pay off in the enterprise?
AWS lists recommendation engines, fraud detection, knowledge graphs, drug discovery and network security as the use cases Neptune powers. The common thread is that the answer sits in the connections, not in any single record.
Fraud detection
Traditional controls look at individual accounts, people, devices or IP addresses. Organised fraud often spreads across stolen and synthetic identities that look clean one by one. A graph links accounts, devices and addresses so that shared attributes and hidden clusters become visible. Graph analysis can support work on bank, card, insurance and e-commerce fraud and on money laundering. See our guide on credit card fraud detection using machine learning for the model side.
Recommendation engines
A recommendation needs customers, products, inventory, suppliers and session behaviour connected in one place. Because a new interest in the current visit is simply a new relationship, a graph can use it immediately instead of waiting for a batch job. Our use case on a graph database for recommendation systems shows the pattern.
Knowledge graphs and AI agent context
Enterprise AI agents need to know which entities exist, how they relate and which rules apply to them. A graph is a natural place to hold that structure. ElixirData's Context OS keeps governed context, versioned policy and decision traces in one decision layer above AI agents, and AgentSearch provides enterprise AI search and retrieval on top of it.
What are the limits of graph databases, and when should you not use one?
- Not a replacement for the system of record. If the workload is mostly high-volume transactions or whole-dataset aggregations, a relational or NoSQL store is usually the better primary. Many teams keep the graph as a connected view beside it.
- Not master data management on its own. A graph stores relationships. Match and survivorship rules, data quality controls and a business-facing interface for managing entities come from separate MDM tooling.
- Query language and skills. Cypher, Gremlin and SPARQL are different from SQL, and standards are still moving (GQL is published but listed as to be revised, and Neo4j notes some mandatory GQL features are not yet in Cypher).
- Model quality decides value. A graph built from poorly matched entities only makes the confusion faster to traverse.
What should governance, security and cost cover?
Treat the graph as a data product. Neptune documents encryption at rest and in transit, and Azure Cosmos DB for Apache Gremlin documents encryption, role-based access control and compliance certifications, so confirm the equivalents for your chosen platform. Beyond platform controls, decide who may see which relationships, because a link between two entities can be more sensitive than either entity, and record where each node and edge came from. On cost, compare a managed service (no hardware provisioning, patching or backups for your team, as AWS describes for Neptune) with self-managed open source, where you choose the storage backend but run it yourself.
How should an enterprise adopt a graph database?
- Pick one relationship-heavy question. For example "which accounts share devices with a flagged account" or "what depends on this service".
- Choose the model and language. Property graph for application and analytics queries, RDF where data from different schemas must merge.
- Load a slice and compare. Run the same question in your existing store and in the graph, and measure effort and latency on your own data.
- Add governance. Access rules, provenance and data quality checks before the second use case.
- Integrate. Keep the system of record authoritative and feed the graph from it.
- Scale to AI use. Expose the graph as governed context to analytics and agents.
To map one relationship-heavy decision your agents should make, and the graph, context and policy it depends on, book a Context Workshop. See what happens in the workshop. If you prefer a managed route, see our managed graph database solutions.
FAQ
What is a graph database in simple terms?
It stores entities as nodes and the connections between them as relationships, each with a type and direction, and both can hold properties. Queries follow relationships instead of joining tables.
What is the difference between a property graph and RDF?
A property graph puts properties on nodes and relationships and suits application queries. RDF is a W3C model built from subject, predicate and object triples and suits data integration, usually queried with SPARQL.
Which query languages do graph databases support?
Cypher and openCypher, Gremlin and SPARQL are the main ones. GQL, ISO/IEC 39075, was published in April 2024 as the international standard for property graphs.
When should I not use a graph database?
When the workload is mainly high-volume transactions or whole-dataset aggregations, or when you need master data management on its own. A graph usually complements the system of record rather than replacing it.
Is Apache Giraph still a good choice?
No for new work. It is a graph processing system, not a database, and the Apache Software Foundation moved it to the Attic in September 2023.
Next Steps in Choosing and Implementing the Best Graph Database Solution
Talk to our experts about implementing graph database architecture. How Industries and different departments use Property Graph Models and Knowledge Graph Intelligence to Become Relationship Centric. Utilizes Neo4j to automate and optimize data connections and queries, improving traversal efficiency and node responsiveness.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE