我是Neo4j和Python的新手.我试图使用Python驱动程序将一些数据填充到Neo4j中.
我想知道是否可以将Python字典作为Neo4j文档中描述的Literal映射传递.
这将使我能够立即设置应用程序节点属性.属性因节点而异,因此代码会变得很难看.
下面给出一个例子
node1 = {
'def': '"A protein transport process that contributes to protein import into the nucleus, and that results in the vectorial transfer of a cargo-carrier protein complex through the nuclear pore complex from the cytoplasmic side to the nucleoplasmic side of the nuclear envelope." [GOC:curators, ISBN:019 8506732, PMID:14570049, PMID:9126736]',
'id': 'GO:0000060',
'is_a': ['GO:0006886'],
'name': 'protein import into nucleus, translocation',
'namespace': 'biological_process',
'relationship': ['part_of GO:0006606'],
'synonym': [ '"protein import into cell nucleus, translocation" EXACT []' ] …Run Code Online (Sandbox Code Playgroud)