本文簡要介紹 python 語言中 arcgis.graph.KnowledgeGraph.graph_property_adds
的用法。
用法:
graph_property_adds(type_name, graph_properties)
返回:
dict
顯示屬性添加的結果。
將屬性添加到數據模型中的命名類型
Parameter
Description
type_name
必需的字符串。將添加屬性的實體或關係類型。
graph_properties
所需的字典列表。要添加到命名類型的屬性列表,以字典格式表示。
# example of a shape property to be added to a named type { "name": "MyPointGeometry", "alias": "MyPointGeometry", "fieldType": "esriFieldTypeGeometry", "geometryType": "esriGeometryPoint", "hasZ": False, "hasM": False, "nullable": True, "editable": True, "visible": True, "required": False, "isSystemMaintained": False, "role": "esriGraphPropertyRegular" } # example of an integer property to be added to a named type { "name": "MyInt", "alias": "MyInt", "fieldType": "esriFieldTypeInteger", "nullable": True, "editable": True, "defaultValue": 123, "visible": True, "required": False, "isSystemMaintained": False, "role": "esriGraphPropertyRegular", "domain": "MyIntegerDomain" }
相關用法
- Python ArcGIS KnowledgeGraph.graph_property_delete用法及代碼示例
- Python ArcGIS KnowledgeGraph.graph_property_update用法及代碼示例
- Python ArcGIS KnowledgeGraph.named_object_type_delete用法及代碼示例
- Python ArcGIS KnowledgeGraph.apply_edits用法及代碼示例
- Python ArcGIS KnowledgeGraph.named_object_type_adds用法及代碼示例
- Python ArcGIS KnowledgeGraph.named_object_type_update用法及代碼示例
- Python ArcGIS KnowledgeGraph.query用法及代碼示例
- Python ArcGIS KnowledgeGraph.search用法及代碼示例
- Python ArcGIS KnowledgeGraph用法及代碼示例
- Python ArcGIS Kafka用法及代碼示例
- Python ArcGIS power用法及代碼示例
- Python ArcGIS APIKeyManager.get用法及代碼示例
- Python ArcGIS ContentManager.unshare_items用法及代碼示例
- Python ArcGIS ImageryLayer.thumbnail用法及代碼示例
- Python ArcGIS FormFieldElement用法及代碼示例
- Python ArcGIS Geometry.true_centroid用法及代碼示例
- Python ArcGIS Site.delete用法及代碼示例
- Python ArcGIS GeoAccessor.bbox用法及代碼示例
- Python arcgis.apps.hub.Initiative.update用法及代碼示例
- Python ArcGIS generate_service_areas用法及代碼示例
- Python ArcGIS build_overview用法及代碼示例
- Python ArcGIS RunInterval用法及代碼示例
- Python ArcGIS describe_dataset用法及代碼示例
- Python ArcGIS acos用法及代碼示例
- Python ArcGIS Item.publish用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.graph.KnowledgeGraph.graph_property_adds。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。