ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.Knowledge Namespace / KnowledgeGraphUniformIdentifier Class
Members Example

In This Topic
    KnowledgeGraphUniformIdentifier Class
    In This Topic
    Represents a unique identifier information object for a knowledge graph that uses a uniform property as the unique identifier for entities and relationships.
    Object Model
    KnowledgeGraphUniformIdentifier ClassKnowledgeGraphIdentifierGeneration Class
    Syntax
    public sealed class KnowledgeGraphUniformIdentifier : KnowledgeGraphIdentifierInfo, System.IDisposable  
    Public NotInheritable Class KnowledgeGraphUniformIdentifier 
       Inherits KnowledgeGraphIdentifierInfo
       Implements System.IDisposable 
    Example
    Get Data Model Identifier Info
    QueuedTask.Run(() =>
    {
      //Create a connection properties
      var kg_props =
          new KnowledgeGraphConnectionProperties(new Uri(url));
      using (var kg = new KnowledgeGraph(kg_props))
      {
        //Get the KnowledgeGraph Data Model
        using (var kg_dm = kg.GetDataModel())
        {
          var kg_id_info = kg_dm.GetIdentifierInfo();
          var kg_id_gen = kg_id_info.GetIdentifierGeneration();
          if (kg_id_info is KnowledgeGraphNativeIdentifier kg_ni)
          {
            System.Diagnostics.Debug.WriteLine(
              $"IdentifierInfo: KnowledgeGraphNativeIdentifier");
          }
          else if (kg_id_info is KnowledgeGraphUniformIdentifier kg_ui)
          {
            System.Diagnostics.Debug.WriteLine(
              $"IdentifierInfo: KnowledgeGraphUniformIdentifier");
            System.Diagnostics.Debug.WriteLine(
              $"IdentifierName: '{kg_ui.GetIdentifierName()}'");
          }
          System.Diagnostics.Debug.WriteLine(
            $"Identifier MethodHint: {kg_id_gen.GetMethodHint()}");
        }
      }
    });
    
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CoreObjectsBase
          ArcGIS.Core.Data.Knowledge.KnowledgeGraphIdentifierInfo
             ArcGIS.Core.Data.Knowledge.KnowledgeGraphUniformIdentifier

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also