1.1.1. 1 关系图谱查询

基本信息

Path

POST http://building-bos.rickricks.com/buildingservice/{buildingId}/relation/queryAll

API描述

获取建筑中各种数据类型的关联数据

请求参数

Request Headers

参数名称 介绍 举例
Authorization 用户令牌 abc
Content-Type 内容类型 application/json

Path Param

参数名称 介绍 举例
buildingId 建筑id abc

Request Body

multipart/form-data

{
    "rootKey": "xxxx",    ##根节点数据key
    "rootType": "tag",  ##根节点类型:tag,doc,model,component,bldStructure,customData,assembly
    "level": "5",        ##层级:自定义  
    "relationType": ["tag-ALL","doc-ALL","model-ALL","component-ALL","bldStructure-ALL","customData-ALL","assembly-ALL"]  ##需要返回的关联类型数据:doc-ALL:关联物项全部数据;doc-ALL:关联文档全部数据;model-ALL:关联模型全部数据;component-ALL:关联模型构件;bldStructure-ALL:关联建筑结构数据;customData-ALL:关联自定义数据;assembly-ALL:关联业务构件 (如果存在二级关联类型过滤字段:tag-上游设备,doc-附件),兼容直接传参数"0"
}

返回内容

执行成功

{
    "code": "SUCCESS",
    "data": {
        "level1": {
            "iotProducts": [ // 业务构件
                {
                    "key": "5cfad10f360e4b9fa1c36294fca06650",
                    "关联关系类型": "物项关联业务构件",
                    "名称": "报警按钮",
                    "序号": "1",
                    "所属树节点": "测试建筑表单导出/平台预置构件",
                    "树节点key": "c308fe96bf8b471685aa08b1c43a01ba",
                    "树节点名称": "平台预置构件",
                    "模型KEY": "M1608607912839",
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "版本": "0",
                    "编码": "9430d9270c73405fa100943ee9121d8b"
                }
            ],
            "bldStructureDatas": [ // 建筑结构数据
                {
                    "key": "46fd81c468ef41eda93a095b34ef6fba",
                    "关联关系类型": "建筑结构与物项关系名",
                    "名称": "树节点属性不同",
                    "序号": "1",
                    "所属树类型": "建筑结构树",
                    "所属树节点": "树节点属性不同",
                    "树节点key": "46fd81c468ef41eda93a095b34ef6fba",
                    "树节点名称": "树节点属性不同",
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "编码": "diffcode"
                }
            ],
            "docs": [ // 文档数据
                {
                    "key": "0a94470b790d459ca5033a5f94a5a637",
                    "关联关系类型": "厂家资料",
                    "名称": "模型数据",
                    "序号": "1",
                    "所属树节点": "测试建筑表单导出/文件夹1",
                    "树节点key": "0d25e364e2b542fa8c1fb0e03fe62a09",
                    "树节点名称": "文件夹1",
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "版本": "1.0",
                    "编码": "D_8tr3HeBf5FXB"
                },
                {
                    "key": "1c7e929a71254215bef50703bc49ff9e",
                    "关联关系类型": "厂家资料",
                    "名称": "数字建筑物新环境部署",
                    "序号": "2",
                    "所属树节点": "测试建筑表单导出/文件夹1",
                    "树节点key": "0d25e364e2b542fa8c1fb0e03fe62a09",
                    "树节点名称": "文件夹1",
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "版本": "1.0",
                    "编码": "D_bqL8eXYcq53Y"
                },
                {
                    "key": "ca65026a288d4c1cb25e0a7b73a78240",
                    "关联关系类型": "厂家资料",
                    "名称": "自定义数据",
                    "序号": "3",
                    "所属树节点": "测试建筑表单导出/文件夹3",
                    "树节点key": "9fe3c8e8b06943529e03dc50882a250e",
                    "树节点名称": "文件夹3",
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "版本": "1.0",
                    "编码": "D_CU6NmGRYIUDf"
                },
                {
                    "key": "0d9399fa2974429e81a9a55b36250447",
                    "关联关系类型": "厂家资料",
                    "名称": "自定义数据2",
                    "序号": "4",
                    "所属树节点": "测试建筑表单导出/文件夹3",
                    "树节点key": "9fe3c8e8b06943529e03dc50882a250e",
                    "树节点名称": "文件夹3",
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "版本": "2.0",
                    "编码": "D1"
                }
            ],
            "models": [ // 模型数据
                {
                    "模型编码":"M_44rVRHHypR3z",
                    "所属树节点":"模型数据根节点",
                    "序号":"1",
                    "父级关系节点key":"b808d0998b17413ab6fb5cfe1a7e904f",
                    "版本":"1.0",
                    "树节点名称":"模型数据根节点",
                    "关联关系类型":"模型与文档关联",
                    "模型名称":"污水处理厂等",
                    "模型KEY":"M1618639864108",
                    "key":"2eeef51162994508938a652dd80f0248",
                    "树节点key":"fb93928200ae4d5aab0de5c00acf0545_bim"
                }
            ],
            "modelComponents": [  // 模型构件
                {
                    "key": "M1608708853461_0",
                    "关联关系类型": "物项关联模型构件",
                    "名称": "???072ok",
                    "序号": "1",
                    "所属树节点": "测试建筑表单导出",
                    "树节点key": "k7e5b0505f59486b99b7fadecbab21f1_bim",
                    "树节点名称": "模型数据根节点",
                    "模型KEY": "M1608708853461",
                    "模型名称": "男",
                    "模型编码": "M_eeP1pEwlwwDH",
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "版本": "1.0",
                    "类型": "",
                    "编码": "M1608708853461_0"
                }
            ],
            "tags": [  // 物项数据
                {
                    "key": "dc93a7ee1df04169927101bb09d82125",
                    "关联关系类型": "上游设备",
                    "名称": "???072ok",
                    "序号": "1",
                    "所属树节点": "测试建筑表单导出/测试01",
                    "树节点key": "a28449e926534f4f8418741d9c852fa1",
                    "树节点名称": "测试01",
                    "模型构件-模型": {
                        "M1608623715030_0": "M1608623715030"
                    },
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "编码": "M1608623715030_0"
                },
                {
                    "key": "dce2e7396d27445698dce48db9b41009",
                    "关联关系类型": "下游设备",
                    "名称": "object_17",
                    "序号": "2",
                    "所属树节点": "测试建筑表单导出/测试02",
                    "树节点key": "b3f5946d79d542b78845e0f1f732bd69",
                    "树节点名称": "测试02",
                    "模型构件-模型": {
                        "M1608623775836_90": "M1608623775836"
                    },
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "编码": "M1608623775836_90"
                },
                {
                    "key": "0403d2f775b14dc9bd90bb398dc48355",
                    "关联关系类型": "下游设备",
                    "名称": "object_16",
                    "序号": "3",
                    "所属树节点": "测试建筑表单导出/测试02",
                    "树节点key": "b3f5946d79d542b78845e0f1f732bd69",
                    "树节点名称": "测试02",
                    "模型构件-模型": {
                        "M1608623775836_91": "M1608623775836"
                    },
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "编码": "M1608623775836_91"
                },
                {
                    "key": "6dc55f0a8b914927b8bb6d33eb643614",
                    "关联关系类型": "下游设备",
                    "名称": "object_153",
                    "序号": "4",
                    "所属树节点": "测试建筑表单导出/测试02",
                    "树节点key": "b3f5946d79d542b78845e0f1f732bd69",
                    "树节点名称": "测试02",
                    "模型构件-模型": {
                        "M1608623775836_97": "M1608623775836"
                    },
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "编码": "M1608623775836_97"
                }
            ],
            "customDatas": [  // 自定义数据
                {
                    "key": "fbaaf7965dfe4f10b90aec7322a5520f",
                    "关联关系类型": "物项关联自定义",
                    "名称": "1",
                    "序号": "1",
                    "所属树节点": "测试建筑表单导出",
                    "树节点key": "k7e5b0505f59486b99b7fadecbab21f1_udr",
                    "树节点名称": "自定义数据",
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "编码": "1"
                },
                {
                    "key": "35e058f4eef44d5d9c9ff6e757300fcc",
                    "关联关系类型": "物项关联自定义",
                    "名称": "3",
                    "序号": "2",
                    "所属树节点": "测试建筑表单导出/测试01",
                    "树节点key": "d2696d3e67b642259cf2d8a1d6909894",
                    "树节点名称": "测试01",
                    "父级关系节点key": "e856bf3b41314c7c853909a250c71d6a",
                    "编码": "3"
                }
            ]
        },
        "level2": {
            "iotProducts": [],
            "bldStructureDatas": [],
            "docs": [],
            "models": [],
            "modelComponents": [],
            "tags": [
                {
                    "key": "99d6942be2e14f5faa307af491b42ce5",
                    "关联关系类型": "下游设备",
                    "名称": "object_145",
                    "序号": "4.1",
                    "所属树节点": "测试建筑表单导出/测试02",
                    "树节点key": "b3f5946d79d542b78845e0f1f732bd69",
                    "树节点名称": "测试02",
                    "模型构件-模型": {
                        "M1608623775836_106": "M1608623775836"
                    },
                    "父级关系节点key": "6dc55f0a8b914927b8bb6d33eb643614",
                    "编码": "M1608623775836_106"
                },
                {
                    "key": "b2a5105d812f4b67a470d16c8747361f",
                    "关联关系类型": "下游设备",
                    "名称": "object_113",
                    "序号": "4.2",
                    "所属树节点": "测试建筑表单导出/测试02",
                    "树节点key": "b3f5946d79d542b78845e0f1f732bd69",
                    "树节点名称": "测试02",
                    "模型构件-模型": {
                        "M1608623775836_141": "M1608623775836"
                    },
                    "父级关系节点key": "6dc55f0a8b914927b8bb6d33eb643614",
                    "编码": "M1608623775836_141"
                },
                {
                    "key": "2c3c5886c24343bdb441d61517cd3488",
                    "关联关系类型": "下游设备",
                    "名称": "object_21",
                    "序号": "4.3",
                    "所属树节点": "测试建筑表单导出/测试02",
                    "树节点key": "b3f5946d79d542b78845e0f1f732bd69",
                    "树节点名称": "测试02",
                    "模型构件-模型": {
                        "M1608623775836_85": "M1608623775836"
                    },
                    "父级关系节点key": "6dc55f0a8b914927b8bb6d33eb643614",
                    "编码": "M1608623775836_85"
                }
            ],
            "customDatas": []
        },
        "level3": {
            "iotProducts": [],
            "bldStructureDatas": [],
            "docs": [],
            "models": [],
            "modelComponents": [],
            "tags": [
                {
                    "key": "a50627c900534d5c895d3982bd91e9c9",
                    "关联关系类型": "下游设备",
                    "名称": "Unterzug-004",
                    "序号": "4.3.1",
                    "所属树节点": "测试建筑表单导出/测试03",
                    "树节点key": "073606bb8ddd4c9ead05d8769d6bd78b",
                    "树节点名称": "测试03",
                    "模型构件-模型": {},
                    "父级关系节点key": "2c3c5886c24343bdb441d61517cd3488",
                    "编码": "M1610607801573_0XSSpI66rEPBSA*u00242y9nVmw"
                },
                {
                    "key": "c27efda1498c4856b832368fb0ea5088",
                    "关联关系类型": "下游设备",
                    "名称": "Wind-089",
                    "序号": "4.3.2",
                    "所属树节点": "测试建筑表单导出/测试03",
                    "树节点key": "073606bb8ddd4c9ead05d8769d6bd78b",
                    "树节点名称": "测试03",
                    "模型构件-模型": {},
                    "父级关系节点key": "2c3c5886c24343bdb441d61517cd3488",
                    "编码": "M1610607801573_1romkx9sb2mfYEttxEHWPc"
                }
            ],
            "customDatas": []
        },
        "level4": {
            "iotProducts": [],
            "bldStructureDatas": [],
            "docs": [],
            "models": [],
            "modelComponents": [],
            "tags": [],
            "customDatas": []
        },......
    },
    "message": "请求处理成功"
}
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-11-04 16:43:29

results matching ""

    No results matching ""