修改密码

请输入密码
请输入密码 请输入8-64长度密码 和 email 地址不相同 至少包括数字、大写字母、小写字母、半角符号中的 3 个
请输入密码
提交

修改昵称

当前昵称:
提交

申请证书

证书详情

Please complete this required field.

  • Ultipa Graph V4

Standalone

Please complete this required field.

Please complete this required field.

服务器的MAC地址

Please complete this required field.

Please complete this required field.

取消
申请
ID
产品
状态
核数
申请天数
审批时间
过期时间
MAC地址
申请理由
审核信息
关闭
基础信息
  • 用户昵称:
  • 手机号:
  • 公司名称:
  • 公司邮箱:
  • 地区:
  • 语言:
修改密码
申请证书

当前未申请证书.

申请证书
Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

ProductName CreateTime ID Price File
ProductName CreateTime ID Price File

No Invoice

搜索
    中文

      属性管理

      showProperty()

      方法及相关类:

      def showProperty(self,
      				 requestConfig: ULTIPA_REQUEST.RequestConfig = ULTIPA_REQUEST.RequestConfig()
      ) -> ULTIPA_RESPONSE.ResponseListProperty
      

      示例:获取 test 图集的所有属性信息

      from ultipa import Connection, UltipaConfig, RequestConfig
      
      # 创建名为 conn 的连接并使用 default 图集,此部分代码省略
      
      req = conn.showProperty(requestConfig = RequestConfig("test"))
      print(req.toJSON())
      

      getProperty()

      方法及相关类:

      def getProperty(self, 
      				request: ULTIPA_REQUEST.GetProperty,
                      requestConfig: ULTIPA_REQUEST.RequestConfig = ULTIPA_REQUEST.RequestConfig()
      ) -> ULTIPA_RESPONSE.ResponseGetProperty
      
      class GetProperty:
      	def __init__(self, type: ULTIPA.DBType, schema: str = None)
      

      示例:获取 test 图集的所有边属性的信息

      from ultipa import Connection, UltipaConfig, RequestConfig
      from ultipa import ULTIPA_REQUEST, ULTIPA
      
      # 创建名为 conn 的连接并使用 default 图集,此部分代码省略
      
      req = conn.getProperty(
        ULTIPA_REQUEST.GetProperty(ULTIPA.DBType.DBEDGE),
        RequestConfig("test"))
      req.Print()
      

      示例:获取 test 图集的点 schema 'customer' 的属性信息

      from ultipa import Connection, UltipaConfig, RequestConfig
      from ultipa import ULTIPA_REQUEST, ULTIPA
      
      # 创建名为 conn 的连接并使用 default 图集,此部分代码省略
      
      req = conn.getProperty(
        ULTIPA_REQUEST.GetProperty(ULTIPA.DBType.DBNODE, "customer"),
        RequestConfig("test"))
      req.Print()
      

      createProperty()

      方法及相关类:

      def createProperty(self, 
      				   request: ULTIPA_REQUEST.CreateProperty,
                         requestConfig: ULTIPA_REQUEST.RequestConfig = ULTIPA_REQUEST.RequestConfig()
      ) -> ULTIPA_RESPONSE.UltipaResponse
      
      class CreateProperty:
      	def __init__(self, 
      				 type: ULTIPA.DBType, 
                       commonSchema: CommonSchema,
                       propertyType: ULTIPA.CreatePropertyType = ULTIPA.CreatePropertyType.PROPERTY_STRING,
                       description: str = ''
          )
      
      class CommonSchema:
      	def __init__(self, schema: str, property: str)
      

      示例:为图集 test 创建边属性 @transfer.amount,类型为浮点型,设置描述为 transaction amount

      from ultipa import Connection, UltipaConfig, RequestConfig
      from ultipa import ULTIPA_REQUEST, ULTIPA
      
      # 创建名为 conn 的连接并使用 default 图集,此部分代码省略
      
      req = conn.createProperty(
        ULTIPA_REQUEST.CreateProperty(
          ULTIPA.DBType.DBEDGE,
          ULTIPA_REQUEST.CommonSchema("transfer", "amount"),
          ULTIPA.CreatePropertyType.PROPERTY_FLOAT,
          "transaction amount"
        ), 
        RequestConfig("test"))
      req.Print()
      

      alterProperty()

      方法及相关类:

      def alterProperty(self, 
      				  request: ULTIPA_REQUEST.AlterProperty,
                        requestConfig: ULTIPA_REQUEST.RequestConfig = ULTIPA_REQUEST.RequestConfig()
      ) -> ULTIPA_RESPONSE.UltipaResponse
      
      class AlterProperty:
      	def __init__(self, 
          			 type: ULTIPA.DBType, 
                       commonSchema: CommonSchema, 
                       newName: str, 
                       newDescription: str = ''
      	)
      
      class CommonSchema:
      	def __init__(self, schema: str, property: str)
      

      示例:将图集 test 的边属性 @transfer.type 改名为 TYPE,描述改为 transfer type

      from ultipa import Connection, UltipaConfig, RequestConfig
      from ultipa import ULTIPA_REQUEST, ULTIPA
      
      # 创建名为 conn 的连接并使用 default 图集,此部分代码省略
      
      req = conn.alterProperty(
        ULTIPA_REQUEST.AlterProperty(
          ULTIPA.DBType.DBEDGE, 
          ULTIPA_REQUEST.CommonSchema("transfer", "type"), 
          "TYPE", 
          "transfer type"
        ), 
        RequestConfig("test"))
      req.Print()
      

      dropProperty()

      方法及相关类:

      def dropProperty(self, 
      				 request: ULTIPA_REQUEST.DropProperty,
                       requestConfig: ULTIPA_REQUEST.RequestConfig = ULTIPA_REQUEST.RequestConfig()
      ) -> ULTIPA_RESPONSE.UltipaResponse
      
      class DropProperty:
      	def __init__(self, type: ULTIPA.DBType, commonSchema: CommonSchema)
      
      class CommonSchema:
      	def __init__(self, schema: str, property: str)
      

      示例:删除图集 test 的点属性 @card.level

      from ultipa import Connection, UltipaConfig, RequestConfig
      from ultipa import ULTIPA_REQUEST, ULTIPA
      
      # 创建名为 conn 的连接并使用 default 图集,此部分代码省略
      
      req = conn.dropProperty(
        ULTIPA_REQUEST.DropProperty(
          ULTIPA.DBType.DBNODE,
          ULTIPA_REQUEST.CommonSchema("card", "level")
        ),
        RequestConfig("test"))
      req.Print()
      
      请完成以下信息后可下载此书
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写