首页 文章

在Neo4j浏览器中显示Cypher属性:这两个查询之间有什么区别?

提问于
浏览
2

我是Neo4j初学者,感谢Neo4j浏览器展示可视化 . 我正在使用Neo4j 2.2,因为它的版本是used in the book I'm following along with

如果我对如何创建节点的理解存在差距,请帮助我尝试了解我是否有语法错误或更具体 .

我想实现这个目标:

enter image description here

Creating Node - Matthew

如您所见,节点'Matthew'的名称覆盖在其上 . 将鼠标悬停在上方,您会看到属性和标签 . 注意属性'Name'
enter image description here

我使用此Cypher查询来创建它

CREATE (matthew:MALE:STUDENT {Name:'Matthew', surname:'Cooper',age:36, country:'US'});

Creating Node - Lisa

Node Lisa的名字也覆盖在它上面 . 如果你将鼠标悬停在上面,请看
enter image description here

我使用了以下Cypher查询

CREATE (lisa:FEMALE {name:'Lisa', surname:'Adams', age:15, country:'Canada'});

The Question

请注意,Matthew查询中的name属性拼写为Sentence case,即 Name ,Lisa查询拼写为小写 name 如果我创建一个带有句子的Lisa节点,则名称赢得't be overlaid over the top. Why is this? I would have thought they' d是相同的 . 's the difference between '名称' and ' name'密码查询属性区分大小写?

以下是使用相同的名称拼写执行Lisa cypher查询的屏幕截图,该属性未覆盖在可视化中的节点上 .

enter image description here

1 回答

  • 0

    是Cypher属性区分大小写 .

    它使用一种启发式,其中属性显示为 Headers 并将其存储在样式中,您可以使用 :style 查看 .

    您可以再次下载,编辑和上载该文件,或使用这样的命令覆盖它

    :style 
    node { color: ... }
    ...
    

    caption 属性中,您可以看到使用了哪个属性 .

    另见:https://neo4j.com/developer/guide-neo4j-browser/#_styling_neo4j_browser_visualization

相关问题