Parameters
- uri
- A System.Uri represents the path or url to a knowledge graph.
Some sample paths to:
A uri to a knowledge graph. | https://someServer.domain.com/server/rest/services/Hosted/SomeKG/KnowledgeGraphServer |
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