incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

请问,hugegraph支持修改属性名称吗?

Open ChenBinaBGitHub opened this issue 7 years ago • 4 comments

Expected behavior 期望表现

是否有如下类似的方法 schema.changeproperty('phone','dhhm') (changeproperty 假设是修改属性名称的方法) 将属性 phone 的名称 改成 dhhm

Actual behavior 实际表现

{type something here...}

Steps to reproduce the problem 复现步骤

  1. {step 1}
  2. {step 2}
  3. {step 3}

Status of loaded data 数据状态

Vertex/Edge summary 数据量

  • loaded vertices amount: {like 10 million}
  • loaded edges amount: {like 20 million}
  • loaded time: {like 200s}

Vertex/Edge example 数据示例

{type something here...}

Schema(VertexLabel, EdgeLabel, IndexLabel) 元数据结构

{type something here...}

Specifications of environment 环境信息

  • hugegraph version: {like v0.7.4}
  • operating system: {like centos 7.4, 32 CPUs, 64G RAM}
  • hugegraph backend: {like cassandra 3.10, cluster with 20 nodes, 3 x 1TB HDD disk each node}

ChenBinaBGitHub avatar Mar 15 '19 09:03 ChenBinaBGitHub

janusGrpah 修改属性名称如下: mgmt = graph.openManagement() place = mgmt.getPropertyKey('place') mgmt.changeName(place, 'location') mgmt.commit()

hugeGraph 是否也有类似的方法呢

ChenBinaBGitHub avatar Mar 15 '19 09:03 ChenBinaBGitHub

@ChenBinaBGitHub hugegraph目前还不支持PropertyKey changeName,不过如果使用loader导入数据的话可以用mapping方式将别名映射为属性名。changeName的需求如果较多的话我们后续也会考虑支持。

javeme avatar Mar 18 '19 03:03 javeme

好的,谢谢

ChenBinaBGitHub avatar Mar 20 '19 13:03 ChenBinaBGitHub

Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label

github-actions[bot] avatar Jan 23 '22 21:01 github-actions[bot]