またのNeo4jデータベースでそれを再インポートするファイルにクエリの結果を抽出するためにneo4j-shell
を使用して、この同じファイルを使用することができます。
[email protected] ~/d/_/310> ./bin/neo4j-shell -c 'dump MATCH (n:Product)-[r*2]->(x) RETURN n, r, x;' > result.cypher
チェックファイル
[email protected] ~/d/_/310> cat result.cypher
begin
commit
begin
create (_1:`Product` {`id`:"product123"})
create (_2:`ProductInformation` {`id`:"product123EXCEL"})
create (_3:`ProductInformationElement` {`id`:"product123EXCELtitle", `key`:"title", `value`:"Original Title"})
create (_5:`ProductInformationElement` {`id`:"product123EXCELproduct_type", `key`:"product_type", `value`:"casual_bag"})
create (_1)-[:`PRODUCT_INFORMATION`]->(_2)
create (_2)-[:`INFORMATION_ELEMENT`]->(_3)
create (_2)-[:`INFORMATION_ELEMENT`]->(_5)
;
commit
は別のNeo4jを供給するため、このファイルを使用します。
[email protected] ~/d/_/310> ./bin/neo4j-shell -file result.cypher
Transaction started
Transaction committed
Transaction started
+-------------------+
| No data returned. |
+-------------------+
Nodes created: 4
Relationships created: 3
Properties set: 8
Labels added: 4
52 ms
Transaction committed
私はAPOCをインストールし、私がテストしようとしています私が初めて使って以来、それがどのように働いているのかわからない例 ありがとう – MAYA
私はこれを試して、それは完全に動作します。しかし、私はこのパラメータの意味を知りたいです:MaxLevelと一意性: "Node_global"? – MAYA
'maxLevel'と' minLevel'は、トラバースする際のトラバーサルの最小数と最大数を定義します。パス長は、パスの長さ(開始ノードからのトラバースの数)が与えられたレベルの間である場合にのみ返されます。 – InverseFalcon