Skip to main content

From Taxonomies to Ontologies: Choosing the Right Knowledge Model for Enterprise AI

Explore how taxonomies, ontologies, knowledge graphs and semantic models support enterprise AI, including integration approaches, benefits and trade-offs.

Written by Alex TjahjanaPublished

Illustration showing how knowledge taxonomies evolve into interconnected ontologies and knowledge graphs to support enterprise AI and intelligent decision-making.

An ontology can help AI understand how a business works. But how should organisations build one, which technologies should they use, and how much complexity is actually necessary?

Imagine asking an enterprise chatbot:

Which supplier agreements require renewal within the next 90 days, and who is responsible for them?

The chatbot may find hundreds of relevant documents. Some refer to suppliers, others to vendors, service providers or contractors. One system records the original agreement, another records an amendment, and a third identifies the person responsible for renewal.

An LLM may understand these terms, but understanding language is not the same as knowing which records refer to the same organisation, which agreement is currently effective, or who is authorised to act.

An ontology can help make these distinctions explicit.

However, an enterprise does not necessarily need a sophisticated knowledge graph, a specialised graph database or thousands of formally defined relationships to achieve this.

There are several approaches to describing business knowledge, each with different capabilities, costs and trade-offs.

The challenge is choosing the right level of sophistication.

1. Taxonomy, ontology and knowledge graph: Understanding the differences

Before exploring implementation options, we should distinguish three commonly confused concepts.

A taxonomy organises knowledge. An ontology describes its meaning and relationships. A knowledge graph represents interconnected knowledge and facts.

Consider an organisation managing supplier agreements.

Taxonomy: Organising what we know

A taxonomy might classify documents as:

  • Supplier Agreements
    • Technology Agreements
      • Cloud Services
      • Software Licensing
    • Professional Services
    • Facilities Management

A taxonomy helps people and systems identify where information belongs.

An AI chatbot can use this hierarchy to narrow its search, recognise related categories and retrieve documents more accurately.

However, the taxonomy does not necessarily explain who signed an agreement, which amendment changes its terms, or who must approve its renewal.

Ontology: Describing what things mean

An ontology goes further by defining concepts and relationships.

For example:

  • A Supplier is a type of Organisation.
  • A Supplier may enter into an Agreement.
  • An Agreement may have one or more Amendments.
  • An Amendment may change an Agreement’s expiry date.
  • An Agreement has a Renewal Owner.
  • An Agreement may contain a Notice Period.

These definitions give an AI application a more explicit representation of how the business operates.

Instead of relying entirely on linguistic similarity, the application can use those relationships to retrieve relevant records and check their meaning.

Knowledge graph: Connecting actual facts

A knowledge graph can represent instances of these concepts.

For example:

  • Contoso Ltd is a Supplier.
  • Contoso Ltd signed Agreement A123.
  • Amendment M456 modifies Agreement A123.
  • Amendment M456 changes the expiry date to 31 December 2026.
  • Jane Smith is the Renewal Owner of Agreement A123.

The ontology provides the semantic structure. The knowledge graph contains connected facts using that structure, although knowledge graphs can also exist without a formally defined ontology.

Why does this distinction matter?

Because not every AI application needs all three.

A chatbot answering questions about employee policies may only need a well-maintained taxonomy and document metadata.

An AI system analysing contractual obligations across multiple departments may benefit from an ontology and an associated knowledge graph.

An automated compliance system may additionally require formal constraints, validation and business rules.

The appropriate approach depends on the decisions the AI must support.

2. Option One: Business glossaries, taxonomies and controlled vocabularies

The simplest approach is to start with business terminology and classification.

Organisations can maintain this knowledge using spreadsheets, YAML, JSON, databases, data catalogues or dedicated taxonomy-management tools.

A more standardised implementation can use the W3C’s Simple Knowledge Organization System (SKOS), which represents concepts, preferred labels, alternative labels and broader or narrower relationships.

For example, an organisation could define Vendor as an alternative label for Supplier and establish Cloud Services as a narrower category within Technology Services.

Integration with AI

The taxonomy can be integrated into an AI system through its search and retrieval components.

For instance, when someone asks about “vendor contracts”, the application can:

  1. Recognise that Vendor is an alternative term for Supplier.
  2. Expand the search to include supplier agreements.
  3. Use taxonomy categories as retrieval filters.
  4. Retrieve relevant documents before passing evidence to the LLM.

This can improve retrieval without modifying or retraining the underlying language model.

The same taxonomy can support search, document classification, recommendation systems and traditional machine-learning applications.

Benefits

  • Relatively inexpensive to develop and maintain.
  • Easy for business stakeholders to understand.
  • Can reuse existing document categories and business glossaries.
  • Supports semantic search, query expansion and metadata filtering.
  • Provides a foundation for more sophisticated knowledge modelling.

Trade-offs and pitfalls

Taxonomies have limited expressive power.

A hierarchy can explain that Cloud Services is a type of Technology Service, but it cannot adequately express every contractual, organisational or operational relationship.

There is also a subtle modelling problem: a classification hierarchy is not necessarily a logical class hierarchy.

For example, placing Supplier Agreements beneath Technology may mean those documents are filed under Technology. It does not imply that a Supplier Agreement is itself a type of Technology.

Confusing categorisation with formal semantics can create incorrect assumptions when a taxonomy is later converted into an ontology.

Best suited for: Enterprise search, document management, knowledge portals, customer-service FAQs and chatbot applications with relatively straightforward knowledge requirements.

3. Option Two: Conceptual and domain models using UML, ER diagrams and API schemas

Many organisations already possess useful semantic models without calling them ontologies.

Enterprise architecture repositories, UML class diagrams, entity-relationship models, domain-driven design models and API contracts describe business entities and their associations.

For example, an existing procurement application may define:

  • Supplier
  • Agreement
  • Amendment
  • Renewal Assignment

These models can form the starting point for a lightweight ontology or shared domain model.

Integration with AI

An AI application can use these definitions through APIs, application services, database views or a semantic service layer.

For example, instead of asking an LLM to infer which agreement expiry date is correct, the chatbot could call a GetEffectiveAgreement operation.

That operation would apply the organisation’s rules for identifying the current agreement and its applicable amendments.

The LLM would then receive structured, authoritative information rather than attempting to reconcile documents independently.

JSON Schema and OpenAPI can help define and validate the structures exchanged between services and AI tools.

However, API and database schemas are not automatically formal ontologies. They describe data structures and application contracts, but may not capture shared business meaning or support logical inference across systems.

Benefits

  • Reuses familiar enterprise architecture and software engineering practices.
  • Integrates naturally with existing enterprise applications.
  • Can avoid introducing an additional database or technology platform.
  • Supports strong typing, API validation and maintainable application logic.
  • Often provides a practical foundation for AI agents interacting with operational systems.

Trade-offs and pitfalls

Application models tend to reflect individual system boundaries.

A Supplier in an ERP system may not mean precisely the same thing as a Vendor in a contract-management platform.

Joining the two requires explicit semantic mappings and identity resolution.

Another danger is assuming that an API schema captures all relevant business rules. A field named expiryDate does not explain whether it is the original date, the amended date or the effective date.

The same business concept may also be duplicated across many services, creating semantic inconsistencies.

Best suited for: Organisations with established domain models, API-driven applications and AI assistants that retrieve or act on structured operational data.

4. Option Three: Formal ontologies using RDF, RDFS and OWL

When business relationships become complex, organisations may require a more expressive, formally defined model.

Several W3C standards support this approach:

  • RDF (Resource Description Framework): Represents information as subject-predicate-object statements.
  • RDFS (RDF Schema): Defines basic classes, properties and class relationships.
  • OWL (Web Ontology Language): Supports richer logical relationships, restrictions and inference.
  • SHACL (Shapes Constraint Language): Validates RDF data against defined constraints.

These technologies serve different purposes and are frequently used together.

For example, OWL can define that every Cloud Supplier is also a Supplier.

A reasoner may then infer that a particular Cloud Supplier belongs to the broader Supplier class, even when that classification was not explicitly recorded.

SHACL can separately check whether an agreement record contains the required fields and relationships.

Tools such as Protégé and WebProtégé can help architects and domain specialists develop these models.

Integration with AI

A common implementation uses an RDF-based knowledge graph, queried through SPARQL or an application service.

An LLM-powered chatbot can:

  1. Interpret a user’s question.
  2. Identify relevant entities and ontology concepts.
  3. Retrieve related facts from the knowledge graph.
  4. Apply appropriate reasoning or validation.
  5. Generate an answer grounded in the retrieved evidence.

This approach can be particularly useful when the AI must integrate information from systems that use different terminology.

Benefits

  • Explicit, machine-interpretable business semantics.
  • Standardised representation and exchange of knowledge.
  • Support for logical inference and consistency checking.
  • Potentially better interoperability between independently developed systems.
  • Reusable semantic definitions across AI, analytics and enterprise applications.

Trade-offs and pitfalls

Formal ontology development demands specialised knowledge and careful modelling.

Designers must consider logical consistency, identity, inheritance, property restrictions, versioning and reasoning performance.

A particularly important consideration is OWL’s open-world assumption.

If an agreement has no recorded Renewal Owner, OWL does not automatically conclude that no owner exists. The fact may simply be unknown.

This distinction is appropriate for many knowledge-representation scenarios but can conflict with operational workflows that require complete records.

SHACL validation or application-level controls may therefore be necessary.

There is also a risk of over-engineering.

An organisation can spend considerable effort building an elegant enterprise ontology that provides little improvement to the AI application it was intended to support.

Best suited for: Regulated industries, complex cross-system integration, semantic interoperability, compliance analysis and AI applications requiring explicit logical relationships.

5. Option Four: Property graphs and graph-oriented domain models

Not every knowledge graph uses RDF or OWL.

Property graphs offer another approach, representing information as nodes, relationships and associated properties.

For example:

Supplier → SIGNS → Agreement → AMENDED_BY → Amendment

A property graph can make this relationship straightforward to traverse and query.

Platforms such as Neo4j support this model, while graph query languages such as Cypher and GQL support graph-oriented operations.

Integration with AI

Property graphs can be integrated with LLMs through graph queries, retrieval services and GraphRAG architectures.

A chatbot might first identify an agreement and then traverse relationships to retrieve its supplier, amendments and renewal owner.

This can complement vector search.

Vector search may find documents containing relevant language. Graph traversal can then connect the identified entities to related facts that a similarity search might overlook.

However, GraphRAG is not automatically ontology-driven.

Some GraphRAG implementations generate knowledge graphs from documents using LLM-based entity and relationship extraction without a formal domain ontology.

Microsoft’s GraphRAG is one example of a framework that extracts structured information from unstructured text.

Benefits

  • Natural representation of connected business information.
  • Efficient relationship traversal for suitable graph workloads.
  • Practical integration with graph-based retrieval architectures.
  • Flexible modelling of entities and relationships.
  • Useful for dependency analysis, fraud detection and interconnected operational data.

Trade-offs and pitfalls

A property graph does not automatically provide the formal semantics of OWL.

For example, a relationship labelled IS_A has no guaranteed logical interpretation unless the application or reasoning layer defines one.

This means an organisation may have a richly connected graph without a consistent understanding of what those connections mean.

Different teams may also adopt inconsistent relationship names or data structures.

Migrating between graph platforms, maintaining large graphs and mapping property graph models to RDF/OWL can introduce additional complexity.

Generated graph queries must also be validated and restricted before execution, particularly when an LLM can propose queries against sensitive enterprise information.

Best suited for: GraphRAG, relationship-heavy retrieval, impact analysis, fraud detection, dependency mapping and AI systems working with highly interconnected data.

6. Option Five: JSON-LD and lightweight semantic integration

Another option is to introduce semantic meaning into existing JSON-based applications.

JSON-LD (JavaScript Object Notation for Linked Data) allows JSON documents to reference shared vocabularies and identify concepts using globally meaningful identifiers.

For example, a procurement API could return an Agreement object with properties linked to a shared enterprise vocabulary.

The same concept could be reused across contract-management, procurement and finance services.

Unlike OWL, JSON-LD is not an ontology language in its own right. It is a way to represent linked data.

Organisations can combine it with established vocabularies such as Schema.org, their own semantic models or formal ontologies.

Integration with AI

A chatbot or agent can consume JSON-LD through APIs or a retrieval pipeline.

Because properties can reference shared concepts, middleware can interpret and connect information from different sources more consistently.

For example, two systems could use different JSON property names but map them to the same agreed business concept.

JSON-LD can also help transform API responses into RDF representations for use in semantic knowledge graphs.

Benefits

  • Fits naturally into existing JSON and web technology ecosystems.
  • Supports incremental adoption of shared semantics.
  • Can improve interoperability without replacing current APIs.
  • Allows semantic definitions to be reused across multiple systems.

Trade-offs and pitfalls

Adding JSON-LD does not automatically create meaningful interoperability.

The participating systems must agree on the vocabulary, identifiers and relationship definitions.

Likewise, using JSON-LD does not mean applications automatically gain OWL reasoning capabilities.

There is a risk of adding semantic annotations without any downstream service that actually understands or uses them.

Best suited for: API-centric enterprises, incremental semantic integration, linked-data applications and organisations looking to introduce shared business semantics without significant infrastructure changes.

7. Should AI help build the ontology itself?

The methods used to construct an ontology are another important decision.

There are three broad approaches.

Top-down development starts with business requirements, domain experts, existing standards and agreed conceptual models.

It offers stronger governance and consistency, but requires more initial effort.

Bottom-up development discovers concepts and relationships from existing documents, databases, APIs and other information sources.

This can reveal relationships that were never formally documented, but may also reproduce inconsistent terminology and historical data problems.

Hybrid development combines the two.

Business experts establish the important concepts and boundaries, while automated discovery helps populate and refine the model.

Generative AI can accelerate this work by proposing classes, relationships, aliases, mappings and candidate knowledge graph facts.

However, an LLM may invent relationships, confuse correlation with causation or treat an ambiguous term as an established fact.

For example, an LLM extracting an agreement might incorrectly associate a notice period with the latest amendment when it actually applies to the original contract.

AI-generated ontology content should therefore be treated as proposed knowledge, not automatically accepted business truth.

Domain experts should review critical definitions, and automated tests should check the resulting model.

A useful implementation principle is to apply more scrutiny to knowledge that influences financial, legal, security or regulatory decisions.

8. Bringing it together: Integrating ontologies into enterprise AI

These options are not mutually exclusive.

An organisation might use a taxonomy for document classification, a domain model for APIs, an ontology for shared meaning and a property graph for relationship retrieval.

A practical AI architecture could contain the following layers.

Layer Responsibility
Business knowledge Taxonomies, glossaries, ontologies and agreed definitions
Source integration Documents, applications, databases and external services
Knowledge representation Metadata indexes, structured records and knowledge graphs
Retrieval Keyword search, vector search, graph queries and API operations
Validation and controls Data quality, reasoning, business rules, access control and provenance
AI application LLMs, chatbots, AI agents, predictive models and automated workflows

The key architectural principle is that the ontology does not have to live inside the LLM.

In many cases, it is better maintained independently as a shared business asset.

An AI system can access relevant parts of it through retrieval tools, semantic services or structured APIs.

This also avoids tying the organisation’s business definitions to one particular language model.

A practical example: Supplier renewal intelligence

Consider our earlier supplier-agreement question.

An effective solution could combine several approaches.

First, taxonomy-based retrieval identifies documents related to supplier agreements and renewal processes.

Second, an ontology distinguishes suppliers, agreements, amendments, renewal responsibilities and notice obligations.

Third, a knowledge graph or structured application service connects the specific supplier to its agreements and amendments.

Fourth, application rules calculate deadlines from the effective contract terms. This is particularly important when amendments override previous conditions, because precedence and temporal rules may be better handled by explicit application logic than OWL inference alone.

Finally, the LLM produces an answer supported by the retrieved records, including the relevant dates, responsible people and source references.

This design separates several responsibilities:

  • The ontology describes meaning.
  • The sources provide evidence.
  • The retrieval components find relevant facts.
  • Business rules determine operational outcomes.
  • The LLM communicates the results.

That separation can make the application easier to test, explain and govern.

9. The hidden costs: Where ontology-enabled AI projects fail

The technical approach is only part of the challenge.

Several problems can undermine even a well-designed solution.

Knowledge ownership

Who decides what Active Supplier means?

Procurement, Finance, Legal and Risk may use different definitions for legitimate reasons.

An ontology should make those distinctions visible rather than forcing incompatible business meanings into a single definition.

Maintenance and change

Business concepts evolve.

New contract types, organisational structures, regulatory requirements and application changes can invalidate established relationships.

An ontology without ownership, version control and change management can gradually become another outdated enterprise repository.

Incorrect or incomplete information

Formal models can make incorrect information appear more credible.

A logically valid relationship can still describe the wrong supplier, an outdated contract or an inaccurate business assumption.

Ontology consistency is not equivalent to factual correctness.

Security and confidentiality

Knowledge graphs can expose sensitive relationships even when individual records appear harmless.

AI applications must enforce authorisation over source records and derived information before presenting evidence to the LLM.

A semantic layer is not a replacement for identity, access control or information-governance policies.

Performance and complexity

Graph traversal, entity resolution, logical inference and additional validation can increase latency and operating costs.

There is no guarantee that introducing an ontology will make an LLM faster or its answers more accurate.

Performance improvements depend on the use case, retrieval design, data quality and effectiveness of the implementation.

Measuring the wrong outcomes

A highly detailed ontology is not automatically a successful business investment.

Teams may celebrate the number of concepts, relationships or documents processed while overlooking whether the AI application actually produces better decisions.

The relevant measures are more likely to include answer correctness, evidence quality, missed relationships, unsupported claims, response time, operating cost and the amount of human review required.

10. Choosing the right approach

A practical selection guide is:

Business requirement Recommended starting point
Improve FAQ and document search Taxonomy, glossary and metadata
Standardise terminology across existing applications Shared domain model and semantic mappings
Expose meaningful data through APIs Domain model, JSON Schema and optionally JSON-LD
Connect entities across many systems Ontology and/or knowledge graph
Support complex relationships and logical inference RDF, RDFS, OWL and appropriate reasoning tools
Validate structured semantic data SHACL and complementary application controls
Improve retrieval across interconnected documents Hybrid vector retrieval and graph-based retrieval
Extract knowledge from large document collections AI-assisted extraction with schema constraints and human validation

These are starting points rather than fixed prescriptions.

A mature enterprise AI platform may combine several approaches. A smaller chatbot may need only one.

The deciding factor should be the complexity of the knowledge problem, not the sophistication of the technology available.

11. Start small, measure, then expand

Before investing in a comprehensive enterprise ontology, select one business problem where inconsistent definitions or missing relationships cause measurable errors.

For example, supplier renewal analysis could provide an initial pilot.

Start with a glossary and taxonomy, then build a baseline chatbot using established search techniques.

Introduce a lightweight domain model and entity mappings, followed by richer graph relationships or formal semantics only where the baseline demonstrates limitations.

Compare the solutions using the same representative questions and underlying LLM.

Measure the quality of retrieved evidence, correctness of answers, latency, operational cost and ongoing maintenance effort.

Most importantly, determine whether the additional semantic complexity provides enough business benefit to justify its lifecycle cost.

Organisations should also reuse established vocabularies where appropriate instead of inventing every concept from scratch. For example, the Financial Industry Business Ontology (FIBO) provides a substantial reference model for financial business concepts.

Conclusion: Build the knowledge model your AI actually needs

Ontologies can help enterprise AI move beyond matching words towards working with explicit business meaning.

But there is no universal implementation.

A taxonomy may be sufficient to improve knowledge discovery. A shared domain model may support an AI assistant operating through APIs. A formal ontology may be justified when relationships, interoperability and inference become critical.

A knowledge graph can connect facts, while an LLM can turn retrieved evidence into useful explanations.

The greatest value often comes from combining these capabilities, not treating any one of them as the complete solution.

More importantly, ontology engineering should not become an exercise in modelling everything the organisation knows.

It should focus on making the specific knowledge needed for important business decisions sufficiently clear, consistent and usable.

The goal is not to build the smartest ontology. It is to build an AI system that makes better-informed decisions at a justifiable cost.

Three questions worth asking

  1. How much of our AI’s apparent intelligence is actually compensating for inconsistent business definitions and fragmented knowledge?
  2. Would a lightweight taxonomy and domain model solve most of our problems, or do we have evidence that formal ontology and logical inference are necessary?
  3. If we change our LLM provider tomorrow, will our organisation retain control of the business knowledge and semantics that make our AI systems valuable?

These questions help shift the conversation from technology selection to long-term business capability.

If your organisation is exploring enterprise AI, semantic architecture or knowledge-driven automation, the first step is identifying where business meaning is being lost, and which modelling approach can recover it without introducing unnecessary complexity.


Further reading

    ontologyenterprise-aiknowledge-taxonomyknowledge-graphsenterprise-architectureknowledge-managementsemantic-weblarge-language-modelsllmretrieval-augmented-generationragai-architecture