2 Star 1 Fork 0

vForce/extract-39net-disease-sympton-department

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
saveToNeo4j.php 682 Bytes
一键复制 编辑 原始数据 按行查看 历史
vForce 提交于 2017-03-07 11:24 . 增加导出
<?php
include_once "vendor/autoload.php";
use GraphAware\Neo4j\Client\ClientBuilder;
$client = ClientBuilder::create()->addConnection("bolt", "bolt://neo4j:admin@127.0.0.1:7687")->build();
include_once "result/alias.php";
include_once "result/department.php";
include_once "result/symptons.php";
include_once "result/totalSympton.php";
/**
* @var array $alias
* @var array $department
* @var array $symptons
* @var array $totalSympton
*/
foreach (array_keys($alias) as $disease) {
$client->run("CREATE (n:`疾病` { `名称`: '{$disease}' }) RETURN n");
}
foreach ($totalSympton as $sympton) {
$client->run("CREATE (n:`症状` { `名称`: '{$sympton}' }) RETURN n");
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/vforce/extract-39net-disease-sympton-department.git
git@gitee.com:vforce/extract-39net-disease-sympton-department.git
vforce
extract-39net-disease-sympton-department
extract-39net-disease-sympton-department
master

搜索帮助