Need help with neo4j-python-pandas-py2neo-v3?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Skyellbin
352 Stars 148 Forks 35 Commits 12 Opened issues

Description

利用pandas将excel中数据抽取,以三元组形式加载到neo4j数据库中构建相关知识图谱

Services available

!
?

Need anything else?

Contributors list

# 186,805
Python
33 commits

neo4j-python-pandas-py2neo-v3

利用pandas将excel中数据抽取,以三元组形式加载到neo4j数据库中构建相关知识图谱

Neo4j知识图谱构建

1.运行环境:

python3.6.5
windows10
具体包依赖可以参考文件requirements.txt

pip install -r requirements.txt

2.Pandas抽取excel数据

Excel数据结构如下

通过函数dataextraction和函数relationextrantion分别抽取构建知识图谱所需要的节点数据以及联系数据,构建三元组。
数据提取主要采用pandas将excel数据转换成dataframe类型
invoice_neo4j.py

3.建立知识图谱所需节点和边数据

DataToNeo4jClass.py


2019.2.15更新

更新neo4j_matrix.py代码,将知识图谱中数据抽取转化成矩阵,为机器学习模型提供数据

感谢大家的支持,以后有关于知识图谱的分享会同步到我的公众号【云将数据】

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.