skaiworldwide-oss/agensgraph 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,采用 Other 许可证,目前获得 1.5k 个 Star、159 次 Fork。
仓库全名
skaiworldwide-oss/agensgraph
开源许可证
Other
Star 数
1.5k
Fork 数
159
未关闭 Issue
145
README 摘要
A high-performance graph database built on PostgreSQL. Graphs and tables in one database. SQL, openCypher and ISO GQL in one query. AgensGraph is developed by SKAI Worldwide, formerly Bitnine. Documentation · Quick start · AI and agents · Discussions · Releases What AgensGraph is PostgreSQL with the property graph model built in. A fork of PostgreSQL, not an extension. A graph is a schema, a label is a table, a…
A high-performance graph database built on PostgreSQL.
Graphs and tables in one database. SQL, openCypher and ISO GQL in one query.
AgensGraph is developed by SKAI Worldwide, formerly Bitnine.
MATCH (:person {name: 'Carrie-Anne Moss'})-[:acted_in]->(m:movie)<-[:acted_in]-(co:person)
RETURN co.name AS co_star, m.title AS movie;
co_star | movie
----------------+--------------
"Keanu Reeves" | "The Matrix"
(1 row)
4. Follow a path of any length
MATCH (:person {name: 'Carrie-Anne Moss'})-[:acted_in*1..3]-(m:movie)
RETURN DISTINCT m.title AS reachable ORDER BY reachable;
reachable
--------------
"John Wick"
"The Matrix"
(2 rows)
5. Join the graph to a table
CREATE TABLE my_ratings (title text, stars int);
INSERT INTO my_ratings VALUES ('The Matrix', 5), ('John Wick', 4);
SELECT f.title, r.stars
FROM (MATCH (:person {name: 'Keanu Reeves'})-[:acted_in]->(m:movie)
RETURN m.title AS title) AS f
JOIN my_ratings r ON r.title = f.title #>> '{}'
ORDER BY r.stars DESC;
title | stars
--------------+-------
"The Matrix" | 5
"John Wick" | 4
(2 rows)
评论