Janusgraph查看属性和边
Date: 2019/07/04 Categories: 工作 Tags: janusgraph
Jnausgraph把PropertyKey和EdgeLabel统称为RelationType, 所以需要用下面的api来列出所有的属性和边.
mgmt=graph.openManagement()
mgmt.getRelationTypes(PropertyKey.class) // 列出属性
mgmt.getRelationTypes(EdgeLabel.class) // 列出边
mgmt.getRelationTypes(RelationType.class) // 列出属性和边