【发布时间】:2019-12-28 01:34:13
【问题描述】:
我正在尝试将 Bloodhound/SharpHound json 文件导入 Neo4j,但遇到以下错误:
{
"Neo4j only supports a subset of Cypher types for storage as singleton or array properties. Please refer to section cypher/syntax/values of the manual for more details.": 1
}
这是我的脚本:
call apoc.periodic.iterate('
call apoc.load.json("file:///sessions/20190822113758_groups.json") yield value
','
create (n:Groups) SET n += value
',{batchSize:10000})
这是JSON文件中的内容:
{"domains":[{"Properties":{"objectsid":"S-1-2-2515432156546548","highvalue":true,"domain":"somethingone.COM"},"Name":"somethingone.COM","Links":null,"Trusts":[{"TargetName":"some.somethingtwo.COM","IsTransitive":true,"TrustDirection":2,"TrustType":"External"},{"TargetName":"something-three.COM","IsTransitive":true,"TrustDirection":2,"TrustType":"ParentChild"},{"TargetName":"somethingfour.COM","IsTransitive":true,"TrustDirection":0,"TrustType":"External"}],"Aces":null,"ChildOus":null,"Computers":null,"Users":null}],"meta":{"count":1,"type":"domains"}}
【问题讨论】:
-
错误表明,您的 JSON 中的值不属于受支持的类型。你能分享示例 JSON 吗?
-
我在@Raj上面添加了json文件的内容
标签: neo4j cypher neo4j-apoc bloodhound