WikiData Processing

Data Accessing

To download latest-all.json.bz2 on the page https://dumps.wikimedia.org/wikidatawiki/entities/ .

wget is the best tool to download huge file:

wget -c -t 0 https://dumps.wikimedia.org/wikidatawiki/entities/latest-all.json.bz2

Installing Neo4j on Ubuntu

From Repositories (Not recommended)

This way needs supervisor authority, which is inconvenient.

Step 1. (Optional) To install OpenJRE and OpenJDK firstly, if there are no Java runtime environment on the computer.

$ sudo apt-get update
$ sudo apt-get install default-jre
$ sudo apt-get install default-jdk

Step 2. Installing Neo4j.

To use the repository add it to the list of sources:

$ wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
$ echo 'deb https://debian.neo4j.org/repo stable/' | sudo tee /etc/apt/sources.list.d/neo4j.list
$ sudo apt-get update

To install the latest Neo4j Community Edition:

$ sudo apt-get install neo4j

User Installation

To extract files from neo4j-community-3.5.8-unix.tar.gz

$ tar zxvf neo4j-community-3.5.8-unix.tar.gz

Adding follow lines to ~/.bashrc, and 'source' it.

# neo4j
export NEO4J_HOME="/home/fyb/neo4j-community-3.5.8"
export PATH=$PATH:$NEO4J_HOME/bin

To open remote accessing authority.

$ vi neo4j-community-3.5.8/conf/neo4j.conf

change #dbms.connector.http.listen_address=:7474
to dbms.connector.http.listen_address=0.0.0.0:7474 change #dbms.connector.bolt.listen_address=:7687
to dbms.connector.bolt.listen_address=0.0.0.0:7687

To start service, <NEO4J_HOME> is the top level directory referred to neo4j-community-3.5.8

$ neo4j console

Installing NodeJs

Node.js v12.x:

$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo apt-get install -y nodejs

Importing

We employ wikidata-neo4j-importer to import wikidata into neo4J.

https://github.com/findie/wikidata-neo4j-importer

some requirements need to be installed.

$ npm install neo4j-driver async n-readlines cli-color slugify

Now, we can run index.js to import WikiData into neo4j !

$ node index.js

Bibliography

http://debian.neo4j.org/

https://github.com/nodesource/distributions/blob/master/README.md#deb

https://neo4j.com/download-thanks/?edition=community&release=3.5.8&flavour=unix

最新文章

  1. java类的初始化顺序
  2. VIM编辑器常用命令
  3. 从零开始学习Android(二)从架构开始说起
  4. [Exchange]使用EWS托管API2.0同步邮箱
  5. SqlServer 还原他服数据库只建立发布却删除不了
  6. Android -- ids.xml文件的使用
  7. [ACM_暴力] ZOJ 3710 [Friends 共同认识 最终认识 暴力]
  8. openstack中运行定时任务的两种方法及源代码分析
  9. 电容值E系列标称方法
  10. git提交时的冲突处理
  11. JUnit3 结合一个除法的单元测试说明Assert.fail()的用法
  12. phpStorm打开提示 failed to create JVM 的解决的方法
  13. SSH—Struts(三)—跑步者(Action)
  14. 【bzoj1458】士兵占领
  15. ctf常见php弱类型分析
  16. 9.app后端选择什么服务器
  17. CRT破解版
  18. Scrapy案例02-腾讯招聘信息爬取
  19. java多线程探究
  20. MVC 视图助手书写规范及注意点

热门文章

  1. 精确率与回召率与 F1-Meature
  2. upupw : Apache Php5.5 的使用
  3. oracle 使用问题
  4. xml_dom解析之二
  5. vi 必须要学会的技能
  6. Fatal Error: Out of memory php内存溢出处理三种方法
  7. Python核心技术与实战——二十|Python的垃圾回收机制
  8. visudo修改编辑器vim
  9. fixed固定时弹窗上的input被软键盘遮住的问题
  10. python进阶ing——创建第一个Tornado应用