Git Product home page Git Product logo

ase_knowledge_graph's Introduction

ASE_Knowledge_Graph

A knowledge graph of aviation safety event.

任务分工

@onlyone 负责数据库建立。

恢复数据库:

./neo4j-admin load --from=/home/database.dump --database=graph.db --force

数据库备注:所有事件名称与 Excel 表格里面数据有所差别,如原始记录为 12.20AS-73 的事件名称数据库中将会存为 1220AS_73。已存入数据库的数据存放在 sheet2 中,还未存的数据存放在 sheet1 中。

@marsvet 负责前端设计。

@xingxingyxx 负责后端逻辑。

项目预览

在线演示地址:http://47.94.94.136:5000

如何贡献

步骤(注:前两步只在第一次运行时执行):

  1. 安装用于管理 python 虚拟环境的包 pipenv

    pip install pipenv
  2. 进入项目目录,创建虚拟环境并安装依赖包:

    cd ASE_Knowledge_Graph
    pipenv install	# 这一步如果失败,将 Pipfile 和 Pipfile.lock 中的 python_version 改为你电脑里安装的 Python 版本即可
  3. 进入虚拟环境:

    pipenv shell
  4. 配置临时环境变量(临时环境变量仅在当前 shell 中有效):

    Linux / Mac OS:

    export FLASK_APP=app/app.py  # 指定次应用的入口文件
    export FLASK_DEBUG=1	# 开启 debug 模式

    Windows cmd:

    set FLASK_APP=app/app.py
    set FLASK_DEBUG=1

    Windows powershell:

    $Env:FLASK_APP=app/app.py
    $Env:FLASK_DEBUG=1
  5. 启动应用程序:

    flask run    # 或 python -m flask run
  6. 启动 neo4j 数据库

  7. 浏览器输入 http://localhost:5000 即可访问。

ase_knowledge_graph's People

Contributors

marsvet avatar n1n9zhang avatar onlyone2019 avatar xingxingyxx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.