From 5be0c0e915b9d106413f03113497f009693141be Mon Sep 17 00:00:00 2001 From: wanghe Date: Mon, 20 May 2024 11:34:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20Neo4j=20(#1427)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/neo4j/5.19.0/data.yml | 16 ++++++++++ apps/neo4j/5.19.0/data/data/.gitkeep | 0 apps/neo4j/5.19.0/data/logs/.gitkeep | 0 apps/neo4j/5.19.0/docker-compose.yml | 18 +++++++++++ apps/neo4j/5.19.0/scripts/init.sh | 3 ++ apps/neo4j/README.md | 46 +++++++++++++++++++++++++++ apps/neo4j/data.yml | 19 +++++++++++ apps/neo4j/logo.png | Bin 0 -> 2331 bytes 8 files changed, 102 insertions(+) create mode 100644 apps/neo4j/5.19.0/data.yml create mode 100644 apps/neo4j/5.19.0/data/data/.gitkeep create mode 100644 apps/neo4j/5.19.0/data/logs/.gitkeep create mode 100644 apps/neo4j/5.19.0/docker-compose.yml create mode 100644 apps/neo4j/5.19.0/scripts/init.sh create mode 100644 apps/neo4j/README.md create mode 100644 apps/neo4j/data.yml create mode 100644 apps/neo4j/logo.png diff --git a/apps/neo4j/5.19.0/data.yml b/apps/neo4j/5.19.0/data.yml new file mode 100644 index 00000000..b7666fc2 --- /dev/null +++ b/apps/neo4j/5.19.0/data.yml @@ -0,0 +1,16 @@ +additionalProperties: + formFields: + - default: 7474 + envKey: PANEL_APP_PORT_HTTP + labelEn: Http Port + labelZh: http 端口 + required: true + rule: paramPort + type: number + - default: 7687 + envKey: PANEL_APP_PORT_BOLT + labelEn: Bolt Port + labelZh: bolt 端口 + required: true + rule: paramPort + type: number \ No newline at end of file diff --git a/apps/neo4j/5.19.0/data/data/.gitkeep b/apps/neo4j/5.19.0/data/data/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/neo4j/5.19.0/data/logs/.gitkeep b/apps/neo4j/5.19.0/data/logs/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/neo4j/5.19.0/docker-compose.yml b/apps/neo4j/5.19.0/docker-compose.yml new file mode 100644 index 00000000..88d89432 --- /dev/null +++ b/apps/neo4j/5.19.0/docker-compose.yml @@ -0,0 +1,18 @@ +services: + neo4j: + image: neo4j:5.19.0 + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:7474 + - ${PANEL_APP_PORT_BOLT}:7687 + volumes: + - ./data/data:/data + - ./data/logs:/logs + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/apps/neo4j/5.19.0/scripts/init.sh b/apps/neo4j/5.19.0/scripts/init.sh new file mode 100644 index 00000000..36ac55e5 --- /dev/null +++ b/apps/neo4j/5.19.0/scripts/init.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +chown -R 7474:7474 data \ No newline at end of file diff --git a/apps/neo4j/README.md b/apps/neo4j/README.md new file mode 100644 index 00000000..36a931dd --- /dev/null +++ b/apps/neo4j/README.md @@ -0,0 +1,46 @@ +# 默认账户密码 + +``` +username:neo4j +password:neo4j +``` + +# Neo4j + +**Neo4j** 是世界领先的图数据库。它是一个高性能图形存储,具有成熟且强大的数据库所需的所有功能,例如友好的查询语言和 ACID 事务。程序员使用灵活的节点和关系网络结构而不是静态表进行工作,但可以享受企业级数据库的所有好处。对于许多应用程序来说,与关系数据库相比,Neo4j 提供了数量级的性能优势。 + +## 核心功能 + +### 1. 图形数据模型 + +- **节点(Nodes)**:图数据库的基本单元,表示实体。 +- **边(Relationships)**:连接节点的有向连接,表示实体间的关系。 +- **属性(Properties)**:节点和边可以附带的键值对,用于描述节点和边的特性。 + +### 2. Cypher 查询语言 + +- **声明性查询语言**:类似 SQL,但专为图形数据库设计。 +- **模式匹配**:基于图模式进行查询,简洁高效。 +- **读写操作**:支持复杂查询、插入、更新和删除操作。 + +### 3. ACID 事务支持 + +- **原子性(Atomicity)**:确保所有操作都成功,或者在失败时回滚。 +- **一致性(Consistency)**:数据库从一个一致状态转换到另一个一致状态。 +- **隔离性(Isolation)**:并发事务互不干扰。 +- **持久性(Durability)**:事务提交后,数据持久化保存。 + +### 4. 高性能和可扩展性 + +- **内存中图处理**:大部分操作在内存中完成,速度快。 +- **水平扩展**:支持分片和复制,处理大规模数据。 + +### 5. 可视化工具 + +- **Neo4j Browser**:内置的交互式可视化工具,方便查询和结果展示。 +- **Neo4j Bloom**:高级数据可视化和探索工具,适合商业用户。 + +### 6. 安全和访问控制 + +- **身份验证和授权**:基于角色的访问控制,确保数据安全。 +- **SSL/TLS 加密**:保护数据传输安全。 \ No newline at end of file diff --git a/apps/neo4j/data.yml b/apps/neo4j/data.yml new file mode 100644 index 00000000..e383fb12 --- /dev/null +++ b/apps/neo4j/data.yml @@ -0,0 +1,19 @@ +name: Neo4j +tags: + - 数据库 +title: 世界领先的图数据库 +description: 世界领先的图数据库 +additionalProperties: + key: neo4j + name: Neo4j + tags: + - Database + shortDescZh: 世界领先的图数据库 + shortDescEn: The world’s leading Graph Database + type: runtime + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://neo4j.com/ + github: https://github.com/neo4j/neo4j + document: https://neo4j.com/docs/ diff --git a/apps/neo4j/logo.png b/apps/neo4j/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..5f31031970df331c9092107722ba751092e00ca4 GIT binary patch literal 2331 zcmV+$3FP*PP)iUj0001-P)t-s|Ns90 z0004t|L*SY`T6;+t*z_p>tA1AczAfCqM{re9GIAx)z#JG*H%CWD#>U0~g#Nj?xk5rhgM)+Y_5ULyBae@d z(dYlP*#E}i|09(De!2hJ?EkUT{{Vpgk;DH%p#LA3|8TSaqR#(fs{cZz{(7(eBE%N| z000O&Nkl&Qy%* zo?g8QY~Puf=<@1$wtf4D#O#E~yi}SYGuE`ZUivM&umbS*LInVMK__QrSmMt+nrE-H z&~(!dLlg7q_^!Gx7W6_|kioTd27OV@ZhtXwd7H`1KCMo$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