public KnowledgeGraphLayerCreationParams( KnowledgeGraph knowledgeGraph )
Public Function New( _ ByVal knowledgeGraph As KnowledgeGraph _ )
Parameters
- knowledgeGraph
- A ArcGIS.Core.Data.Knowledge.KnowledgeGraph object.
public KnowledgeGraphLayerCreationParams( KnowledgeGraph knowledgeGraph )
Public Function New( _ ByVal knowledgeGraph As KnowledgeGraph _ )
QueuedTask.Run(() => { //With a connection to a KG established or source uri available... //Create a KnowledgeGraphLayerCreationParams var kg_params = new KnowledgeGraphLayerCreationParams(kg) { Name = "KG_With_All_Types", IsVisible = false }; //Or var kg_params2 = new KnowledgeGraphLayerCreationParams(new Uri(url)) { Name = "KG_With_All_Types", IsVisible = false }; //Call layer factory with map or group layer container. //A KG layer containing a feature layer and/or standalone table per //entity and relate type (except provenance) is created var kg_layer = LayerFactory.Instance.CreateLayer<KnowledgeGraphLayer>( kg_params, map); });
Target Platforms: Windows 11, Windows 10