Tevpro insights
Ontologies and Knowledge Graphs: Giving AI Business Context
AI can find company documents, but connecting people, projects, and systems is a different challenge. A practical guide to ontologies, knowledge graphs, GraphRAG, and when a governed knowledge layer is worth building.
Key takeaways
- An ontology defines business concepts and relationships; a knowledge graph connects actual records.
- Use a graph for relationship-heavy questions, not as a replacement for every database or search index.
- GraphRAG can combine connected entities with supporting evidence, but quality, freshness, and permissions still determine trust.
- Pilot one important business question before building an enterprise-wide knowledge layer.
Your AI assistant can find a document that mentions Azure. Can it tell you which available employees have delivered Azure projects for healthcare clients? That answer may live across a skills directory, a project database, a CRM, and a staffing system. A search result from each system is useful, but the relationships between them are the real answer.
This is the gap that ontologies and knowledge graphs can help close. They do not make a language model inherently truthful or require a company to replace its databases. They give applications a way to represent what things mean in the business and how actual people, projects, customers, and systems connect.
What is an ontology in AI?
An ontology is a model of the concepts in a domain, the relationships among them, and sometimes rules about what those relationships mean. Think of it as a blueprint for organizing knowledge, not an inventory of your company's records. The W3C's OWL primer describes a formal way to represent classes, properties, and individuals; a business ontology can begin much more simply.
In a consulting firm, the concepts might be Client, Project, Employee, Skill, Technology, and Industry. A client has projects. Employees work on projects and have skills. Projects use technologies. Clients operate in industries. A useful rule might say that one project can have several employees. The ontology tells us which connections are meaningful; it does not tell us that Sarah worked on the Patient Portal project.
The labels matter. "Worked on a project using Azure" is evidence of project experience; "has Azure as a skill" is a different claim. Treating them as interchangeable could give a staffing manager the wrong answer.
What is a knowledge graph?
A knowledge graph contains actual entities and their connections. Its nodes represent things, its edges represent relationships, and properties describe those things or relationships. In one illustrative record, Sarah is an employee node, Patient Portal Modernization is a project node, and Azure is a technology node. An edge says Sarah worked on that project. Another says the project used Azure. Sarah might separately have an Azure skill record with a verification date.
A query can follow Sarah to the project, from the project to Acme Healthcare and Azure, and from the client to the healthcare industry. A property such as assignment end date can help determine availability, but only if the staffing source is current. Neo4j's graph database documentation explains the underlying node, relationship, and property model.
Ontology versus knowledge graph: the ontology defines the kinds of things and connections; the graph records particular things and connections. You can build a useful graph without adopting a formal ontology standard. A shared model becomes more valuable as more systems and teams need to agree on what a "client," "owner," or "available employee" means.
Isn't this just a relational database?
A relational database can represent all of these facts. Employees, projects, assignments, clients, and technologies can live in tables connected by keys, and SQL JOINs can answer sophisticated questions. Many organizations should leave that transactional data where it is.
A graph represents those connections directly and makes relationship-heavy queries and exploration natural. Ask who worked on projects for customers in a given industry, then extend the question to the services those projects depend on and the people who own those services. The difference is in the model and query pattern, not a universal performance advantage. SQL may be the better fit for reliable transactions, structured reporting, or a question already answered by a straightforward join. A graph may earn its additional operating cost when the questions repeatedly cross many kinds of relationships and systems.
Nor does a knowledge graph have to be a separate graph database on day one. You can first establish identifiers, relationship definitions, and tested queries over existing systems, then decide whether a dedicated store improves the workload. The same incremental logic applies to modernizing data architecture without replacing legacy systems.
Why do these relationships matter to AI?
Language models interpret questions and compose useful answers, but they do not automatically know a company's current customers, assignments, dependencies, and permissions. A document-based AI assistant might search for "Azure healthcare consultant" and find a proposal, a résumé, and an old staffing spreadsheet. It still has to infer who actually worked on what and whether anyone is available now.
A graph-backed application can retrieve known links among employees, projects, industries, and technologies. The model can then explain the result in plain language, with links to the underlying records. This can improve multi-step discovery and make a claim easier to audit. But if a relationship was extracted incorrectly, a source went stale, or a user lacks access, a fluent answer can still be wrong. Graphs move part of the burden from model inference to data engineering and governance; they do not eliminate it.
For a trustworthy answer, show the path: Sarah → worked on Patient Portal Modernization → project used Azure → Acme Healthcare is in healthcare. Then separately check Sarah's current availability against the staffing system. The graph should not silently substitute project history for present capacity.
What is GraphRAG?
Retrieval-augmented generation, or RAG, retrieves external information before an LLM writes an answer. A common approach embeds documents, uses vector search to find semantically similar passages, and supplies those passages to the model. It works well when the answer is in a few relevant pieces of text.
GraphRAG is a family of approaches that adds graph-based retrieval or graph-derived context. Some systems traverse explicit entities and relationships. Others build graph communities and summaries to support broader questions. Microsoft's GraphRAG documentation describes indexing and several query approaches, including local and global search. The term is not one standard product or a guarantee of better answers.
Suppose someone asks, "Which projects were delayed by Vendor X, and which customers were affected?" Vector search might find meeting notes mentioning the vendor and a delay. A graph-based route could connect Vendor X to contracts, contracts to projects, delay events to those projects, and projects to customers and account managers. The application still needs source documents to establish what caused each delay. A connection is not proof of causation.
This is why the most useful design is often hybrid: vector search for unstructured evidence, SQL or APIs for current facts, and graph queries for multi-hop relationships. Evaluate it against real questions and expected answers before calling the added architecture worthwhile.
An enterprise AI knowledge layer is an architecture, not a product
A knowledge layer is a governed way for applications to retrieve business context across systems. It may include an ontology, a graph, vector indexes, existing databases, APIs, identity controls, and source attribution. The AI agent is a consumer of that layer, not a license to bypass the underlying permissions.
The distinction is practical. The ontology defines the vocabulary. The graph stores connections among actual entities. Vector search finds relevant language in documents. Source systems remain the authority for facts such as current availability or contract status. The knowledge layer orchestrates access to all of them, with evidence, freshness, and user permissions carried into the answer.
How do you build one without boiling the ocean?
Start with a question and a measurable failure in the current workflow. "Which consultants have delivered Azure projects for healthcare clients and are available next month?" is better than "model all company knowledge." Identify who needs the answer, how quickly, what counts as proof of delivery experience, and which system owns availability.
1. Define a small vocabulary. Model Client, Project, Consultant, Technology, Assignment, and Industry. Decide what "worked on" means, whether a skill is self-reported or validated, and how dates affect the answer. Review the terms with the people who own staffing and delivery data.
2. Connect authoritative sources. Map customer records from a CRM, assignments from a project system, skills from an HR directory, and descriptions from documents or SharePoint. Prefer stable source IDs to names as keys. Do not copy every field merely because an API exposes it. Tevpro's data solutions and API integration work address this foundational source-to-application plumbing.
3. Extract and reconcile. Structured tables and APIs can create deterministic relationships. Named-entity recognition, document parsing, and LLM-assisted extraction can propose links from unstructured text. These proposals need confidence rules and human checks: "Microsoft," "MSFT," and "Microsoft Corporation" may describe one organization, while a project named "Microsoft migration" is not that organization. Entity resolution and duplicate handling are core work, not cleanup after launch.
4. Store and query the connections. Match the store to the questions and operating environment. Neo4j supports a property-graph approach; Amazon Neptune documents Gremlin, openCypher, and SPARQL access; RDF/OWL platforms are another option when standards-based semantics and interoperability matter. A pilot can also use existing relational infrastructure if it answers the question reliably. There is no universal winning graph platform.
5. Add evidence and permission checks. Keep a source identifier, extraction method, observation time, and review state for important edges. Enforce the requesting user's authorization when retrieving both the graph path and its supporting documents. A useful answer says why a person or customer appears and when the information was last checked.
6. Keep it current. Use change data capture, events, or scheduled sync according to the source. Detect broken identifiers, stale assignments, duplicate entities, and relationships that no longer have supporting records. Test a representative question set after each ingestion change. A graph that was accurate at launch but not maintained becomes a persuasive source of outdated answers.
A bounded pilot should compare graph-assisted results with the current search or SQL approach. Track answer correctness, evidence coverage, freshness, permission failures, review time, and maintenance effort. Stop or simplify if a small SQL query and a better document index solve the problem.
Four useful business questions
Professional services: "Which consultants have implemented Azure solutions for healthcare customers?" Follow consultant → assignment → project → customer → industry, then verify the technology from project records. The payoff is faster staffing discovery, not an automatic staffing decision.
Healthcare: "Which patients with a particular diagnosis missed a recommended follow-up?" A care team could connect diagnosis, care plan, appointment, and provider records. This involves sensitive patient data; clinical definitions, consent or lawful access, auditability, and clinician review are essential. A graph result is a coordination lead, not a diagnosis or treatment instruction.
Manufacturing: "Which production lines could be affected if Supplier X stops shipping?" Follow supplier → component → product → line → facility. Include approved substitute components and inventory status from their authoritative systems. The graph helps scope an investigation; operations confirms actual exposure.
Enterprise IT: "What depends on this database?" Follow database → API → application → service → business process → owner. That can inform change reviews and incident response, provided the dependency map is tested against real configuration and updated when deployments change.
When is a knowledge graph worth it?
Use a basic RAG pipeline for a small PDF collection where answers are usually stated in a few passages. Use vector search when meaning-based document discovery is the main need. Use SQL or an analytics platform for stable structured reporting. Add a graph when connected entities, multi-step questions, and cross-system identity are the hard part. Consider GraphRAG when relationship-aware retrieval improves answers over a simpler RAG baseline. An enterprise-wide knowledge layer is a later architectural choice, not the required starting point.
The deciding test is not "Can we draw a graph?" It is "Do the relationships improve a specific decision enough to justify modeling, synchronization, access enforcement, and ongoing validation?" Start with a narrow domain, compare approaches on the same questions, and expand only when the improvement is visible to the people doing the work.
From search to useful, governed action
Imagine an agent asked to draft a customer impact summary after an Azure service incident. It could retrieve the affected services from an approved source, identify dependent internal applications, follow those applications to customer projects, find account managers, and gather supporting runbooks. It should mark uncertain dependencies, respect each user's permissions, and produce a reviewable draft. A person confirms exposure and owns external communication.
The goal is not to make enterprise AI sound more certain. It is to give it better-grounded context. Ontologies define the language of the business. Knowledge graphs connect real entities. Vector search retrieves relevant text. A governed knowledge layer lets applications combine them without discarding existing systems.
At Tevpro, we help organizations connect enterprise systems, modernize data architecture, and build custom AI-enabled applications. If your team has one relationship-heavy question that today's tools cannot answer reliably, that is the right place to start a conversation, not a mandate to build a graph of everything. Talk with Tevpro about the sources, permissions, and pilot that would make the answer trustworthy.
Sources
Why work with us
Why Tevpro?
Whether you’re a startup with a bold product idea or an established company seeking a stronger delivery partner, Tevpro delivers results. Our expert consultants specialize in building secure, scalable applications that simplify operations and drive real ROI.
FAQ
Common questions about knowledge graphs and enterprise AI
Use the simplest architecture that can answer the business question accurately.
An ontology defines the types of things in a domain and the relationships that make sense between them. A knowledge graph connects actual records, such as a named employee, project, client, and technology. A graph can be useful without a formal ontology, but a shared vocabulary helps keep data from different systems consistent.


