# Neo4j

**Neo4j**是一个图数据库管理系统，将数据存储为由带类型的关系连接的节点所构成的属性图，由在瑞典创立的同名公司开发。该公司称其为2007年发布的首个开源图数据库，并推出了Cypher——一种面向属性图的声明式查询语言。<sup>[1](https://neo4j.com/company/)</sup><sup> • </sup><sup>[2](https://neo4j.com/open-source-project/)</sup>

| 关键事实 | 详情 |
|---|---|
| 数据模型 | 属性图：节点带有标签和属性，关系有类型且有方向；该模型由联合创始人们于2000年发明<sup>[2](https://neo4j.com/open-source-project/)</sup> |
| 查询语言 | Cypher，2011年由Neo4j工程师创建，是一种与SQL等价的声明式语言，使用ASCII艺术式的模式语法，如`(nodes)-[:CONNECT_TO]→(otherNodes)`<sup>[3](https://neo4j.com/docs/cypher-manual/5/introduction/cypher-overview/)</sup> |
| 事务 | 完整的ACID支持，配有预写式事务日志；所有涉及图、索引或模式的操作都在事务内运行，默认隔离级别为读已提交<sup>[4](https://neo4j.com/docs/operations-manual/current/database-internals/)</sup> |
| 版本 | 社区版采用GPLv3许可；企业版自Neo4j 3.5起采用商业许可；Infinigraph是2025年新增的专门化企业版，具备自动分片功能<sup>[5](https://neo4j.com/open-core-and-neo4j/)</sup><sup> • </sup><sup>[6](https://neo4j.com/docs/operations-manual/current/introduction/)</sup> |
| 采用情况 | 超过1700家机构；财富100强中有84家、财富500强中有58%是其客户<sup>[7](https://neo4j.com/customer-stories/)</sup> |
| 融资 | 2021年由Eurazeo领投的3.9亿美元F轮融资，公司称其为数据库史上最大的一笔投资<sup>[1](https://neo4j.com/company/)</sup> |
| 近期方向 | 1亿美元的生成式AI投资（2025年10月）以及收购GraphAware（2026年6月宣布，2026年8月完成），以构建情报分析产品<sup>[8](https://neo4j.com/press-releases/)</sup><sup> • </sup><sup>[9](https://neo4j.com/press-releases/neo4j-acquires-graphaware/)</sup> |

## 历史

开发工作始于2000年，当时联合创始人们正在开发一个内容管理系统，遇到了关系数据库的性能问题，于是围绕他们为此问题设计的属性图模型构建了第一个Neo4j原型。<sup>[1](https://neo4j.com/company/)</sup><sup> • </sup><sup>[2](https://neo4j.com/open-source-project/)</sup> 第一个版本于2002年开发完成，随后在2003年首次实现了7×24小时生产部署。<sup>[1](https://neo4j.com/company/)</sup>

2007年，创始人们成立了一家瑞典公司，并以GPL许可发布Neo4j，公司称其为首个开源的图数据库；同年，Neo4j 1.0以开源和商业两种形式面世，该数据库成为首个具备原生图存储和处理能力的“原生”图数据库。<sup>[1](https://neo4j.com/company/)</sup><sup> • </sup><sup>[2](https://neo4j.com/open-source-project/)</sup> 1.0版本于2010年发布，2011年Cypher作为面向属性图的声明式查询语言推出。<sup>[1](https://neo4j.com/company/)</sup><sup> • </sup><sup>[2](https://neo4j.com/open-source-project/)</sup>

**成长与融资。** 2009年，Sunstone和Conor提供了250万美元的种子轮融资，随后2012年富达（Fidelity）、Sunstone和Conor参与了1100万美元的B轮融资，2015年完成2000万美元的C轮，2016年完成3600万美元的D轮，2018年由摩根士丹利扩张资本（Morgan Stanley Expansion Capital）和[One Peak Partners](https://www.edgepedia.org/zh/one-peak-partners)领投了8000万美元的E轮。<sup>[1](https://neo4j.com/company/)</sup> 2021年由Eurazeo领投、GV和Inovia Capital参与的3.9亿美元F轮融资，被公司称为数据库史上最大的一笔投资。<sup>[1](https://neo4j.com/company/)</sup> 产品里程碑包括Neo4j Desktop（2017年）、Neo4j Bloom可视化工具（2018年）、托管云服务AuraDB（2019年）和图数据科学库（Graph Data Science Library，2020年）；2020年第四季度，Forrester在其图数据平台Wave报告中认定Neo4j为领导者。<sup>[1](https://neo4j.com/company/)</sup>

## 数据模型与查询语言

一个Neo4j图由节点、关系和路径组成。节点是数据实体，用诸如`Person`之类的标签来标记（一个节点可以带有多个标签），并通过带类型、有方向的关系连接。<sup>[10](https://neo4j.com/docs/cypher-manual/25/queries/concepts/)</sup> 该模型模式灵活：节点和关系不会仅仅因为同一图中的其他节点带有某个属性就必须也带有该属性，除非创建了属性存在约束。<sup>[3](https://neo4j.com/docs/cypher-manual/5/introduction/cypher-overview/)</sup>

Cypher是Neo4j的声明式查询语言，让用户说明要检索什么，而不是如何检索，就像SQL之于关系数据那样。它的模式语法直接在查询中描绘图结构：圆括号表示节点，箭头表示关系。<sup>[3](https://neo4j.com/docs/cypher-manual/5/introduction/cypher-overview/)</sup> Neo4j服务器是一个可以容纳多个数据库的数据库管理系统；在Neo4j 4.0中，每个数据库包含一个图，事务特定于单个数据库。<sup>[11](https://neo4j.com/docs/cypher-manual/4.0/introduction/neo4j-databases-graphs/)</sup>

## 架构与运维

Neo4j支持具有完整ACID属性的事务，并使用预写式事务日志来保证持久性；所有涉及图、索引或模式的操作都必须在事务内运行，默认隔离级别为读已提交。<sup>[4](https://neo4j.com/docs/operations-manual/current/database-internals/)</sup> 数据文件持久化到磁盘以保证持久性，存储引擎支持多种存储格式，其中`block`格式因其性能和可扩展性被推荐用于企业版。<sup>[12](https://neo4j.com/docs/operations-manual/current/database-internals/store-formats/)</sup>

**扩展。** 对于更大规模的部署，Neo4j在企业版中提供集群和故障转移功能，并通过复合数据库实现数据联邦和分片——在复合数据库中，单个联邦查询可以访问多个Neo4j数据库，这些数据库的分片分布在不同的服务器或位置。<sup>[6](https://neo4j.com/docs/operations-manual/current/introduction/)</sup><sup> • </sup><sup>[13](https://neo4j.com/docs/operations-manual/current/scalability/scaling-with-neo4j/)</sup> 2025年，公司推出了Infinigraph，这是一个专门化的企业版，具备无限水平扩展和自动分片能力，面向统一的业务操作和分析工作负载，宣称可支持100TB以上的规模。<sup>[6](https://neo4j.com/docs/operations-manual/current/introduction/)</sup><sup> • </sup><sup>[8](https://neo4j.com/press-releases/)</sup>

## 版本与许可

自管理版本有两种。社区版是一个功能完整的单实例数据库，以GPLv3开源，支持ACID事务、Cypher和编程API。企业版增加了集群、在线备份、基于角色的访问控制和LDAP支持，面向需要规模和可用性的生产系统。<sup>[5](https://neo4j.com/open-core-and-neo4j/)</sup><sup> • </sup><sup>[6](https://neo4j.com/docs/operations-manual/current/introduction/)</sup>

许可历史几经变化。企业版源代码此前在GitHub上以AGPLv3双重许可，从Neo4j 3.4起采用AGPLv3加Commons Clause；从Neo4j 3.5候选版本开始，公司转向开放核心模式，企业版仅以商业许可提供，源代码不再发布。<sup>[5](https://neo4j.com/open-core-and-neo4j/)</sup> 公司表示，企业版超过99%的代码由其自己的员工或承包商编写，这一变化对现有版本没有影响。<sup>[5](https://neo4j.com/open-core-and-neo4j/)</sup> 相关的开源项目包括openCypher规范（Apache 2.0）和APOC过程库。<sup>[5](https://neo4j.com/open-core-and-neo4j/)</sup>

## 采用情况与用例

Neo4j报告拥有超过1700家客户机构，其中包括财富100强中的84家和[财富500强](https://www.edgepedia.org/zh/fortune-500)中的58%。<sup>[7](https://neo4j.com/customer-stories/)</sup> 已发布的案例研究涵盖：[吉利德科学](https://www.edgepedia.org/zh/gilead-sciences)（Gilead Sciences）和法国巴黎银行个人金融（BNP Paribas Personal Finance）的欺诈检测——后者报告欺诈减少了20%；Intuit、思科（Cisco）和拜耳（Bayer）的知识图谱；以及意大利国家电力公司（Enel）电网的数字孪生。<sup>[7](https://neo4j.com/customer-stories/)</sup>

**欺诈检测**是一个旗舰用例。由于欺诈者以团伙而非孤立方式运作，Cypher图模式匹配、路径查找算法和实体解析被用来揭露隐藏的中间人和虚假档案，并检测洗钱模式，如资金循环流动和结构化存款。Neo4j声称欺诈模式查询比关系数据库快达1000倍，且无需JOIN。<sup>[14](https://neo4j.com/use-cases/fraud-detection/)</sup>

**GraphRAG与AI。** 自2025年以来，公司将Neo4j定位为面向生成式AI的图智能平台。2025年10月，公司宣布在生成式AI和智能体产品上投资1亿美元，包括Aura Agent、MCP服务器，以及一个已有700多家公司注册的AI初创企业计划。<sup>[8](https://neo4j.com/press-releases/)</sup><sup> • </sup><sup>[9](https://neo4j.com/press-releases/neo4j-acquires-graphaware/)</sup> 2026年6月，公司同意收购GraphAware——一家长期为政府机构提供情报分析软件的合作伙伴，将合并后的Hume平台定位为Palantir Gotham的开放标准替代方案，并具备数据主权功能；交易于2026年8月完成，2026年9月公司推出了基于实体解析知识层的Neo4j GraphAware金融犯罪情报产品。<sup>[9](https://neo4j.com/press-releases/neo4j-acquires-graphaware/)</sup><sup> • </sup><sup>[15](https://neo4j.com/press-releases/financial-crime-intelligence/)</sup> Neo4j虚拟图功能截至2026年7月处于公开预览阶段，可就地查询[Snowflake](https://www.edgepedia.org/zh/snowflake-inc)、Databricks或BigQuery中的数据，适用于能容忍数据仓库级延迟的工作负载。<sup>[16](https://neo4j.com/blog/auradb/neo4j-virtual-graph-is-now-in-public-preview/)</sup>

## 独立基准测试中的性能

基准测试结果因工作负载而异，但差异足够一致，对系统选型有参考意义。在针对[PostgreSQL](https://www.edgepedia.org/zh/postgresql)和[ArangoDB](https://www.edgepedia.org/zh/arangodb)的TPC-H对比中，Neo4j和ArangoDB在22个关系查询上的处理时间显著长于PostgreSQL，尽管Neo4j在研究和工业界被广泛使用；同一研究发现，采用原生图存储的Neo4j性能优于运行在RocksDB上的HugeGraph。<sup>[17](https://link.springer.com/article/10.1007/s41019-019-00110-3)</sup> 在LDBC社交网络基准测试中，一项覆盖从1GB到1TB四个规模因子的学术实现发现，TigerGraph在46个查询中的绝大多数上优于Neo4j，在某些交互式复杂查询和商业智能查询上领先两个数量级以上。<sup>[18](https://arxiv.org/abs/1907.07405)</sup> 2023年一项使用LDBC SNB对四种图数据库（JanusGraph、Nebula Graph、Neo4j和TigerGraph）的研究发现，Neo4j在该对比中所有指标上表现最佳。<sup>[19](https://www.mdpi.com/2076-3417/13/9/5770)</sup> 2024年一项关于关联数据查询的研究发现，MySQL检索图数据需要比所测试的图数据库更复杂的查询。<sup>[20](https://arxiv.org/abs/2401.17482)</sup> 2026年一项针对LLM智能体记忆的图引擎基准测试测得，Neo4j在102万节点规模下的查询延迟几何平均为6.92毫秒，正确完成了全部20种查询形态，落后于若干较新的引擎，但领先于HugeGraph。<sup>[21](https://arxiv.org/abs/2609.23315)</sup>

## References

1. [Neo4j company history and milestones, Neo4j](https://neo4j.com/company/)
2. [The history of Neo4j, Open Source graph database project, Neo4j](https://neo4j.com/open-source-project/)
3. [Cypher Manual: Overview, Neo4j](https://neo4j.com/docs/cypher-manual/5/introduction/cypher-overview/)
4. [Database internals and transactional behavior, Neo4j Operations Manual](https://neo4j.com/docs/operations-manual/current/database-internals/)
5. [FAQ: Neo4j Enterprise Edition is moving to an open core licensing model, Neo4j](https://neo4j.com/open-core-and-neo4j/)
6. [Introduction, Neo4j Operations Manual](https://neo4j.com/docs/operations-manual/current/introduction/)
7. [Neo4j customer success stories, Neo4j](https://neo4j.com/customer-stories/)
8. [Neo4j Press Releases, Neo4j](https://neo4j.com/press-releases/)
9. [Neo4j Acquires GraphAware to Launch Intelligence Analysis Alternative to Palantir Gotham, Neo4j](https://neo4j.com/press-releases/neo4j-acquires-graphaware/)
10. [Core concepts, Cypher Manual, Neo4j](https://neo4j.com/docs/cypher-manual/25/queries/concepts/)
11. [Neo4j databases and graphs, Cypher Manual, Neo4j](https://neo4j.com/docs/cypher-manual/4.0/introduction/neo4j-databases-graphs/)
12. [Store formats, Neo4j Operations Manual](https://neo4j.com/docs/operations-manual/current/database-internals/store-formats/)
13. [Scaling with Neo4j, Neo4j Operations Manual](https://neo4j.com/docs/operations-manual/current/scalability/scaling-with-neo4j/)
14. [Fraud detection & analytics use case, Neo4j](https://neo4j.com/use-cases/fraud-detection/)
15. [Neo4j GraphAware Financial Crime Intelligence debuts, Neo4j](https://neo4j.com/press-releases/financial-crime-intelligence/)
16. [Neo4j Virtual Graph is now in public preview, Neo4j blog](https://neo4j.com/blog/auradb/neo4j-virtual-graph-is-now-in-public-preview/)
17. [Which Category Is Better: Benchmarking Relational and Graph Database Management Systems, Data Science and Engineering](https://link.springer.com/article/10.1007/s41019-019-00110-3)
18. [In-Depth Benchmarking of Graph Database Systems with the LDBC Social Network Benchmark, arXiv](https://arxiv.org/abs/1907.07405)
19. [Experimental Evaluation of Graph Databases: JanusGraph, Nebula Graph, Neo4j, and TigerGraph, Applied Sciences (MDPI)](https://www.mdpi.com/2076-3417/13/9/5770)
20. [Performance Comparison Analysis of ArangoDB, MySQL, and Neo4j, arXiv](https://arxiv.org/abs/2401.17482)
21. [Graph Memory for LLM Agents: At What Cost?, arXiv](https://arxiv.org/abs/2609.23315)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Database engines and systems › Graph databases

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/neo4j

English original: https://www.edgepedia.org/neo4j
