A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/javascript/latest/knowledge-graph/knowledge-graph-intro/ below:

Introduction to knowledge graph service | Overview | ArcGIS Maps SDK for JavaScript 4.33

With the ArcGIS Maps SDK for JavaScript, you can connect to a knowledge graph service. A knowledge graph service is composed of two primary resources. The knowledge graph contains entities and relationships and their associated properties. The data model defines the schema of the knowledge graph by defining the entity types and relationship types in the graph. Through the knowledgeGraphService you can search and query the knowledge graph as well as add, update and delete entities and relationships. A knowledge graph can contain spatial and non-spatial data. Any entities with geometry can be added to a map along with their connected relationships.

Note

ArcGIS Enterprise (11.0) with a Knowledge Graph Server is required to use this service.

For addition information on working with knowledge graph services see:

Fetch knowledge graph

The knowledgeGraphService is its own module that connects to an existing knowledge graph service on ArcGIS Enterprise. The first step is to load the knowledge graph module and fetch the knowledge graph.

Use dark colors for code blocks Copy

1
2
3
4
5
6
7
8
9
10
11
const knowledgeGraphModule = await $arcgis.import("@arcgis/core/rest/knowledgeGraphService.js");

//define url to knowledge graph service
const url =
  "https://myHostName.domain.com/arcgis/rest/services/Hosted/myServiceName/KnowledgeGraphServer";

//fetch knowledge graph
knowledgeGraphModule.fetchKnowledgeGraph(url).then((kg) => {
  //view the knowledge graph data model in the console
  console.log(knowledgeGraph);
});

Once you have loaded a knowledge graph, use executeSearchStreaming() and executeQueryStreaming() to retrieve specific records, or executeApplyEdits() to add, update, or delete records from the graph.

Additional topics Search and query a knowledge graph

Learn how to search and query a knowledge graph.

Edit knowledge graph data

Learn how to add, edit and remove records from a knowledge graph.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4