Giter Club home page Giter Club logo

project's Introduction

高级数据库 DEMO 展示

2021 年 12 月 22 日

使用 popoto 来将Neo4j的代码知识图谱在html前端显示出来,包括调用关系和节点等等 (数据库已有,前端可视化 + 可cql查询即可)

1. neo4j 导入数据

(1) 将数据库 codeapi_class.db.zip 解压后放到 neo4j 的 data/database 目录下。

(2) 将 conf/neo4j.conf 文件的 dbms.default_database 的值改为 codeapi_class.db

# The name of the default database
#dbms.default_database=neo4j
dbms.default_database=codeapi_class.db

(3) 启动 neo4j 检查数据库是否可以正常访问。

运行 neo4j.bat console 的命令,打开 http://localhost:7474/ 检查数据是否可以正确获取。

如果在 neo4j 启动后报错提示 database 的名称中含有 illegal charactrs,说明版本太高,需要 jvm11及以上,因此建议下载 3.5 版本的 commmunity neo4j。

2. 使用 popoto

我已经使用 popoto 写好大致的框架,并将 driver 改成了本地数据库。使用浏览器打开本文件夹下的 demo/index.html 文件(需要修改为自己的 neo4j 密码),可以看到我们需要做的部分。

目前的任务需求:

  • 添加节点:有三个节点,class,method,field。
  • 添加类似 neo4j 的命令行,即:可以像 neo4j 一样通过输入命令行得到节点,进行展示。[需求修改为添加 save 模型]

docs 如下: https://github.com/Nhogs/popoto/wiki

3. 系统使用

step 1: 启动 neo4j;

step 2: 在浏览器打开 demo/index.html 文件即可。

如果无法打开文件,可能原因是需要修改 html 文件中 neo4j 的登录密码,目前是 123456。

project's People

Contributors

luorongluorong avatar olallaland avatar

Watchers

 avatar  avatar

Forkers

olallaland

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.