如何删除neo4j中的标签? [英] How to delete labels in neo4j?

查看:2003
本文介绍了如何删除neo4j中的标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何删除neo4j中的标签?实际上,我删除了所有节点和关系,然后重新创建了影片数据库,仍然创建了以前创建的标签,该标签出现在Web界面上.我还尝试为数据库使用其他位置,即使在卸载并重新安装后,标签仍会出现.为什么?标签存放在哪里?卸载程序后,将删除数据库文件夹和appdata文件夹.

How to delete labels in neo4j? Actually I deleted all nodes and relationships, then I recreated the movie database and still the labels I created before appeared on the webinterface. I also tried to use a different location for the database and even after an uninstall and reinstall the labels still appeared. Why? Where are the labels stored? After the uninstall the programm, the database folder and the appdata folder were deleted.

如何复制?安装neo4j->使用电影数据库示例->创建(l:SomeLabel {name:"A freaky label"})->删除节点->停止neo,创建新文件夹->启动neo->创建电影shema->匹配(n)返回(n)->即使您更改了文件夹或进行了卸载/安装,也会出现SomeLabel.

How to reproduce? Install neo4j -> use the movie database example -> create (l:SomeLabel {name:"A freaky label"}) -> delete the node -> stop neo, create new folder -> start neo -> create movie shema -> match (n) return (n) -> SomeLabel appears, even if you changed the folder or make an uninstall / install.

即使没有节点,也可以删除标签吗?

Is there a way to delete labels even if there is no node with it?

推荐答案

目前(Neo4j 2.0.1)还没有一种方法可以在创建标签后显式删除标签. Neo4j浏览器将显示REST端点报告的所有标签:

There isn't at the moment (Neo4j 2.0.1) a way to explicitly delete a label once it has been created. Neo4j Browser will display all labels which are reported by the REST endpoint at:

http://localhost:7474/db/data/labels

另外,显示标签的Neo4j浏览器侧栏在失去与Neo4j的连接时无法正确刷新列表. Web浏览器重新加载应该可以正常工作.

Separately, the Neo4j Browser sidebar which displays labels doesn't properly refresh the listing when it loses connection with Neo4j. A web browser reload should work.

最后,Neo4j Browser的可视化中存在一个错误,该错误会显示所有为其创建样式的标签.如果使用带有错误的Neo4j版本,则可以通过在属性检查器中单击查看样式表",然后单击灭火器图标来清除样式.诚然,所有这些都需要提高可用性.

Lastly, there was a bug in Neo4j Browser's visualization which would display all labels for which a style had been created. If using a version of Neo4j which has the bug, you can clear the styling by clicking on "View Stylesheet" in the property inspector, then clicking the fire extinguisher icon. All of that needs usability improvement, admittedly.

干杯, 安德烈亚斯(Andreas)

Cheers, Andreas

这篇关于如何删除neo4j中的标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆