Git Product home page Git Product logo

graph's Introduction

技术栈

前台是基于vue + d3.js ,后台是springboot配合Neo4j.

实现的基本功能:

  1. 新增节点,添加连线,快速添加节点和关系
  2. 节点的颜色和大小可修改
  3. 节点和关系的编辑,删除
  4. 导出成图片
  5. csv导入
  6. 导出csv
  7. 添加图片和富文本
  8. 节点之间多个关系
  9. 增加直接执行cypher功能

运行与启动

安装jdk

可参考:https://blog.csdn.net/qq_42003566/article/details/82629570

安装Neo4j

可参考:https://www.cnblogs.com/ljhdo/p/5521577.html,注意开放外网访问 0.0.0.0

IDEA 导入项目

导入成功后对着项目根目录,右键->maven->reimport,等待其执行完成,倘若下载jar包太慢, 自己配置外部maven仓库https://blog.csdn.net/liu_shi_jun/article/details/78733633 以上配置在linux下配置自行百度

找到目录 src/main/resources

修改application.yml,neo4配置url,password,改成自己的,同理修改mysql(mysql脚本在根目录下,graph.sql)

打包发布

在idea 右侧 有 maven project 工具栏,点击展开lifecycle-clean,然后install,等待完成后在控制台可以看见打包的目录,例如:[INFO] Installing \graph\target\graph-0.0.1-SNAPSHOT.jar 复制jar包,去windows 或者linux下 切换到jar包目录执行 jar包 java -jar xxx.jar 即可启动,想部署到tomcat自行百度,springboot配置外部tomcat

访问路径

启动后访问http://localhost:port

打开文件夹,找到 /src/main/resources/templates/kg/demoforfont-end.html

图谱三元组导入

支持,.xlsx,.xls,.csv,编码格式一定要是utf-8 无bom格式的,格式:节点-节点-关系,在本地测试时上传下载的文件要和neo4j在同一台电脑,当然如果能传到七牛或者hdfs上也是一样的,必须确认neo4j能访问到,否则load不成功

graph's People

Contributors

jiangbin216 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.