Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

enrich-ontology

Skill by cartography-cncf

Adds Cartography ontology mappings to a node using semantic labels or canonical nodes. Built for developers who extend Cartography's data model.

  • Score 84
  • 4.2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install enrich-ontology

Built from the published package, never by AI.

git clone --depth 1 https://github.com/cartography-cncf/cartography /tmp/cartography && mkdir -p ~/.claude/skills && cp -r /tmp/cartography/.agents/skills/enrich-ontology ~/.claude/skills/enrich-ontology

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install enrich-ontology in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The enrich-ontology skill guides a developer through mapping a Cartography node into the Ontology system. It covers two mechanisms. Semantic labels add labels such as UserAccount and _ont_* properties directly to source nodes during ingestion. Canonical nodes are separate User or Device nodes that aggregate data from several sources. The skill recommends starting with semantic labels.

The skill walks through authoring an OntologyMapping, registering it, marking primary identifiers as required, wiring labels into node schemas, adding cross-entity analysis statements, and writing tests. It also covers documenting the integration through the generated schema docs. It is intended for developers who add or normalise identity and device data across providers in Cartography.

Written from the project's SKILL.md and checked against it.

What it can do

  • Choose label typeDecide between a semantic label and a canonical node for a given need.
  • Author ontology mappingWrite OntologyMapping and OntologyFieldMapping entries for a module.
  • Register mappingAdd a mapping to the module dictionary so it is auto-imported.
  • Wire semantic labelAdd an ontology label constant to a node schema through ExtraNodeLabels.
  • Set required fieldsMark primary identifiers such as email or hostname as required.
  • Set eligible_for_sourceAllow a mapping to link existing ontology nodes without creating new ones.
  • Add cross-entity relationshipsAdd analysis statements that link users to devices, such as an OWNS relationship.
  • Apply special handlingUse transforms such as invert_boolean, or_boolean and coalesce on mapped fields.
  • Write ontology testsAssert that _ont_* properties and canonical User nodes appear after a sync.

What you need

  • Cartography source tree
  • Neo4j, for running the tests
  • uv, for building the docs

Try asking

  • Map my Okta users to the UserAccount semantic label in Cartography
  • Add ontology mapping for CrowdStrike devices with hostname as required
  • Write a test that checks _ont_email on my service's user nodes

Good to know

  • Source records missing a field marked required are excluded from ontology node creation.
  • Do not hand-write schema.md. It is generated from the data model.
  • The entra module name is accepted only as a backward-compatible alias for microsoft.
  • An eligible_for_source value of False links existing nodes but cannot create new ones.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/enrich-ontology/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md9 KB
  • references/semantic-labels.md5 KB

Alternatives to enrich-ontology

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

enrich-ontology: common questions

What is the difference between a semantic label and a canonical node in Cartography?

Semantic labels add an ontology label and _ont_* properties directly to source nodes. Canonical nodes are separate User or Device nodes with the Ontology label that aggregate data from multiple sources.

How do I make a field required for ontology mapping?

Set required=True on the OntologyFieldMapping, for example on email for User. Source records that lack this field are excluded from ontology node creation.

How is the ontology mapping section in the Cartography docs produced?

Sphinx generates it from the data model, including the Ontology Mapping note. Build the docs with uv run ./docs/build.sh and check the generated page instead of editing schema.md.

How do I install enrich-ontology?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is enrich-ontology free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is enrich-ontology safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to enrich-ontology?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

enrich-ontology Install

Add to stack

Loading.