strehle-de/topiccards-lib

TopicCards Neo4j后端

v0.8.0 2022-04-10 19:18 UTC

This package is auto-updated.

Last update: 2024-08-30 01:17:55 UTC


README

TopicCards Neo4j后端 (PHP)

安装

使用Composer将此库添加到项目的composer.json文件中

$ composer require strehle-de/topiccards-lib

使用Docker进行快速测试

构建符合此库要求的PHP镜像

$ docker build docker/php -t strehle-de/topiccards-php

安装依赖

$ docker run --rm --interactive --tty \
  --volume $PWD:/app --volume ${COMPOSER_HOME:-$HOME/.composer}:/tmp \
  --workdir /app strehle-de/topiccards-php composer install

将XML转换为Cypher

$neo4jClient = (new StrehleDe\TopicCards\Configuration\Configuration('config/config.yaml'))->getNeo4jClient();
$script = new StrehleDe\TopicCards\Import\SimpleImportScript($neo4jClient);
$script->convertFileToCypher($argv[1]);