# Build a Knowledge Layer: Map Your Data with an Ontology

DevFeed: [Build a Knowledge Layer: Map Your Data with an Ontology](<https://devfeed.tech/articles/build-a-knowledge-layer-map-your-data-with-an-ontology-127287.md>)

Original publisher: [Read original article](<https://neo4j.com/blog/graph-database/build-a-knowledge-layer-map-your-data-with-an-ontology/>)

Author: corydon baylor

Published: 2026-11-10T14:00:00Z

Content type: article

Language: en

Sources: [Neo4j](<https://devfeed.tech/sources/graph-database-technology-neo4j-blog.md>)

Topics: [semantic-layer](<https://devfeed.tech/topics/semantic-layer.md>), [knowledge-engineering](<https://devfeed.tech/topics/knowledge-engineering.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Neo4j](<https://devfeed.tech/topics/neo4j.md>), [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [build](<https://devfeed.tech/tags/build.md>), [context](<https://devfeed.tech/tags/context.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [graph-database](<https://devfeed.tech/tags/graph-database.md>), [knowledge-layer](<https://devfeed.tech/tags/knowledge-layer.md>), [map](<https://devfeed.tech/tags/map.md>), [ontology](<https://devfeed.tech/tags/ontology.md>), [sources](<https://devfeed.tech/tags/sources.md>)

## AI overview

An ontology gives an AI agent a map of multiple data sources so it can locate information and understand how sources relate before querying. The example uses generic `DataProduct` and `SchemaEntity` nodes, with `RELATES` storing source-specific relationship names as properties; four links describe source roles: `RESOLVES`, `SUPPLEMENTS`, `GOVERNS` and `CITES`. Agents first call `get_schema_help` to inspect the map and confirmed labels, then `ontology_guided_query` to run a guarded, read-only query. The approach keeps source details out of repeated prompts, which the article says can grow large, become stale and consume tokens. For larger-scale ontology management, it describes Neo4j Context Engine as in private preview, with a six-layer business ontology managed through Context Studio.

## Source excerpt

In this series 1. Give Your AI Agents the Shared Context to Succeed 2. Map Your Data with an Ontology 3. Turn Your Existing Data into Context 4. Connect Your Data Sources with a Composite Database 5. Ground Decisions in... Read more ->