Select to view content in your preferred language

ArcGIS Knowledge Resources for Web Developers (including Sample Code)

3233
4
09-20-2023 09:40 PM
AdamMartin
Esri Contributor
0 4 3,233

Update: 1/30/2026

ArcGIS Knowledge comes with powerful suite of capabilities within the Maps SDK for JavaScript that enables your organization to streamline workflows by creating custom experiences leveraging the power of knowledge graphs and graph queries. These experience can also be integrated with your existing enterprise systems.

Code Samples: Maps SDK for JavaScript 

Five publicly available code samples are now available for key ArcGIS Knowledge classes and methods within the Maps SDK for JavaScript in the ArcGIS Developer site. These samples also provide live knowledge graph services you can hit with the login credentials provided. So no need to spin up your own servers before seeing it in action.

Check them out and let us know what you think! Better yet, share your own samples! 🙂

These samples cover:  

Note that the 'streaming' query and search methods are key to performance when working with large knowledge graphs and provide optimal user experiences. These samples add depth to the existing Knowledge documentation for the Maps SDK for JavaScript.

Check out the 2025 and 2024 technical session videos linked at the bottom of the page, walking through some of the basics, and start in the documentation for the core concepts here: Introduction to Knowledge Graph.

Feature Highlights

Knowledge graph data model editing

Starting with JavaScript 4.33 (Q2 2025), we have added data model editing support for knowledge graph services. You can now add, update and delete entity types and relationship types from your knowledge graph. You can also add, update and delete the properties for those entity and relationship types, as well as the field indexes and the knowledge graph search index.

Web Link Charts

We are excited to announce the release of web link charts in Maps SDK for JavaScript 4.32 out of beta! Web link charts contain a link chart layer with the data from your knowledge graph and are loaded in a link chart view. Web link charts are a new core view (like MapView and SceneView) that are specifically for visually representing and analyzing all or part of a knowledge graph. For those familiar with web maps in teh JS SDK, the analagous components for Link Charts are:

  • Map -> WebLinkChart
  • View -> LinkChartView
  • KnowledgeGraphLayer -> LinkChartLayer 

Web Link Charts are built on the same core technology as a Map that allows you to leverage existing tools and patterns, like symbology for each layer, while also adding some additional link chart specific capabilities for refining your link chart visualizations and conducting graph analysis.

  • Layouts: Apply different layouts to provide different visualizations to better understand the patterns in your data. For example, geographic layout arranges spatial entities using their geometry with their connected nonspatial data clustered around them while chronological layout arranges entities and relationships according to time.

  • Expand: Finds and adds all directly connected entities "one-hop" away from the given entities and adds the entities and their connecting relationships to the link chart.

  • Connect: Adds direct relationships between the given entities to the link chart.

  • Add and Remove Records: Update the data in your link chart by adding or removing entities and relationships.

Link charts also have a new web component for easily displaying a link chart from a portal content item with a layout switcher, handling all the rendering with default layout settings.

Video Resources

NEW! Knowledge Capability by Version of Maps SDK for JavaScript

Note: The ArcGIS Enterprise version only matters if the JS SDK version you have access to is the one INSTALLED with Enterprise, and user does not have access to the latest Maps SDK for JS downloaded via CDN.

Newer versions of the Maps SDK for JavaScript can generally be used against older ArcGIS Enterprise versions with some constraints defined by those Enterprise versions.

 

JS API Version

ArcGIS Enterprise Version

Features Released

v5.0
[COMING SOON]

Enterprise 12.1

  • Data Model: + Domain Support (Create, Assign to Properties, Delete) - impacts viewing values (instead of codes), feature form widgets, map viewer
  • Web Components:
    • Nonspatial Visibility Toggle
    • Enhancement: Streamlined Link Chart Code

v4.34

 

  • Search: Include Search of Provenance values
  • Knowledge Graph Layers: + Layer editing support in Editor Web Component

v4.33

Enterprise 12.0

  • Knowledge Graph Data Model Edits (CUD)

v4.32

Enterprise 11.5

  • Link Charts, layers, views (from BETA)
    • Layouts (+ Chronological Layouts)
    • + Nonspatial toggle/visibility mode
    • + Expand, Filtered Expand, Add records, Remove, Connect
    • LC Capabilities from 4.31 +
  • Web Components
    • Link Charts
    • Link Chart Layout Switcher

v4.31

n/a

Web Link Charts (BETA with Documentation)

  • Link Chart layers 
  • Link Chart View
  • LC Capabilities
    • Layouts (hierarchical, radial, geo)

v4.30

Enterprise 11.4

  • Maps and Link Charts: Moving Knowledge Graph Layer order

v4.29

Enterprise 11.3

  • Add/Remove Records to Knowledge Graph Layers
  • New Selection capabilities
  • New date‑field types (datetimeoffset, date‑only, time‑only)

V4.28

 

No new features. Documentation released for v4.26 features.

v4.27

Enterprise 11.2

Beta release of Knowledge Studio (no new JS enhancements)

v4.26

[BREAKING CHANGES]

Enterprise 11.1

  • Support for KG Layers via Services hosted in Enterprise 11.1
  • Inclusion‑list capability for KG Layers

v4.25

Enterprise 11.1

  • Apply Edits
  • Encoded Streaming Query & Search enhancements (new params, boundaries, quantization)

v4.24

  • Knowledge Graph Read Support (Streaming, Search, Query, Data Model, Fetch Service, Fetch Data model)
4 Comments
Contributors