小编And*_*tch的帖子

在OrientDB Studio中显示节点标签

我正在尝试让OrientDB Studio显示一个字符串作为每个节点的标签,就像Susheel Kumar的截图一样

但是,当我运行Susheel的代码(下面发布的后代代码)时,所有节点都显示为其@rid字段标记,如此屏幕截图:

问题:是否有自动显示所有这些标签的方法?

我可以通过单击(1)节点,(2)"眼睛"符号,(3)设置符号,然后从下拉菜单中选择"名称",告诉单个节点将其"名称"字段显示为标签,但是当我拥有大量节点时,这是不可能的.这似乎是在定义"Person"节点类时你要做的事情,但我在Susheel的代码(下面发布)中没有看到这个,并且我无法联系到他.

对于我的应用程序,如果我无法可视化节点标签,可视化基本上是无用的,所以任何帮助将非常感激:)

下面是我从Susheel的OrientDB简介中获取的代码,用于制作我的截图:


    -- Create a class Person and add two properties lastName & firstName using below commands
    create class Person extends V;
    create property Person.lastName string;
    create property Person.firstName string;

    -- Create a class Employee which extends from Person & add few properties to it
    create class Employee extends Person;
    create property Employee.empno integer;
    create property Employee.sal integer;

    -- Create a class Department extends from V
    create class Department extends V;
    create …

orientdb

24
推荐指数
1
解决办法
1151
查看次数

标签 统计

orientdb ×1