r/semanticweb • • 1d ago

Am I solving the wrong problem by forcing heterogeneous enterprise data into a fixed taxonomy?

I’m a data scientist working on a semantic classification problem involving enterprise performance metrics (KPIs) and learning content, and I’m starting to question my approach.

We have tens of thousands of customer-defined KPIs across different industries and languages. Some are standardized metrics, such as customer satisfaction or sales conversion, while others contain internal abbreviations, ambiguous terminology or highly business-specific concepts. Metadata quality varies considerably.

My initial approach was to build a standardized taxonomy and map each KPI to a family.

I’ve experimented with rule-based methods, multilingual embeddings, LLM classification, contextual enrichment and clustering. While precision is relatively good, coverage remains challenging, and expanding the taxonomy seems to have diminishing returns due to the long tail of customer-specific concepts.

There is a separate but related problem of semantically organizing enterprise learning and training content.

I’m increasingly wondering whether classification into predefined categories is the right formulation for either problem.

Would it make more sense to construct a structured semantic corpus or knowledge base, where taxonomies are just one possible representation of the underlying information?

I’m particularly interested in:

  • How to represent heterogeneous business concepts without forcing everything into predefined categories.
  • Bottom-up ontology discovery versus manually defined taxonomies.
  • Handling ambiguous and customer-specific terminology.
  • Whether knowledge graphs, hierarchical representations or enriched semantic documents are better suited to this problem.
  • How to build something reusable across multiple downstream product applications.
  • How to meaningfully evaluate such a system.

Has anyone worked on a similar problem? Are there research papers, frameworks or alternative approaches you’d recommend?

I’m less interested in trying another LLM or embedding model and more interested in whether there is a fundamentally better way to formulate the problem.

7 Upvotes

33 comments sorted by

5

u/SomehowSomewhy 1d ago

A KPI name is rarely an atomic concept. "Avg. first-response time, tier-2 support, business hours" is a composition. If you classify whole KPIs into families, every new combination looks like a new long-tail concept. If you extract facets, much of the long tail collapses into a small set of facet values.

2

u/False_Secretary_3115 1d ago

This is a really interesting perspective, and I think it might explain some of the diminishing returns I’m seeing from taxonomy expansion. I hadn’t explicitly considered whether the long tail consists of genuinely distinct measurement concepts or simply different compositions of common concepts. How would you approach identifying and normalizing these individual components in practice? Would you define a schema upfront or extract components from the corpus and let the schema emerge from the data? I’m also curious how you would handle the normalization of the underlying measurement concepts themselves, particularly when the terminology is ambiguous or customer-specific. Would that effectively become a smaller ontology-learning problem?

2

u/SomehowSomewhy 1d ago

I would define a schema based on the business problem you are trying to solve, and then use NLP or corpus analysis to look for emergent new values. The danger of doing this is drift though. The schema defines what you are interested in. The problem is you don't want to be perpetually re-extracting. WRT to normalisation, yes, embed the normalised value, esp if the labels are in english.

2

u/False_Secretary_3115 1d ago

That makes sense. So essentially a top-down schema with bottom-up discovery of the vocabulary within each dimension, rather than trying to discover the entire ontology from scratch. I think one challenge I’m facing is distinguishing genuinely novel measurement concepts from synonyms or variations of existing concepts. I encountered this when trying to expand my original taxonomy, where many unmatched metrics belonged to a very long tail of customer-specific concepts. How would you govern the discovery of new values to prevent semantic drift? Would you maintain a canonical vocabulary and periodically consolidate emerging concepts, or would you approach this differently? I’m also interested in whether there are established methods or literature for this kind of compositional representation and vocabulary discovery.

What is your area of expertise? This has been helpful!

1

u/SomehowSomewhy 1d ago

I think that is the right idea. It's only one idea, though, someone else prob has a better one.

> How would you govern the discovery of new values to prevent semantic drift? 
Its not semantic drift it it aligns to your use case you are modelling against.
If it doesn't, I'd probably keep this potentially useful information in a second graph, or at least describe it in a way that makes it obviously non core.

Remember, on one hand is 'semantic drift' on the other is that we should be (within reason, semantic web people go overboard with this sometimes) anticipating the needs of tomorrow when we model today. Do be careful not to try to model the entire universe; I would say that is a trap every semantic modeller has fallen into at one time.

Synonym discovery I would use LLM / NLP for but then record this with a specific labeltype.
Labeltypes are really important, that is a good point actually: don't just use skos alt labels, use subtypes where you can.

US
ISO 3166-1 alpha-2
The States

Are different types of label, they should not all be generic alt label.

My area of expertise is semantic modelling and NLP

1

u/postlapsarianprimate 23h ago

If you are creating your ontology to support llms/agents, then the standard definitions are already well known to them. That's not to say a domain ontology is useless, but it's more important to have what you might call a profile ontology which specifically encodes the user-specific definitions. So user A computes metrics one way, which isn't already predictable via general definitions. An ontology which specifically targets these fine details, or, as you might say, deviations from general knowledge, are the most important things to capture in your graph.

1

u/SomehowSomewhy 23h ago

I have done a lot of work on definitions and LLMs, and what it takes to provoke claude into a hallucination.

> then the standard definitions are already well known to them
I would be very wary of statements like that based on this work. LLMs can misuse definitions very easily.

>a profile ontology

I have not heard this term before, I think application ontology is the common phrasing.

1

u/postlapsarianprimate 23h ago

Hallucinations these days are much less common. I remember experimenting with gpt-j years ago. It was nearly useless. In my recent experience, frontier models tend to be fairly reliable unless you coerce them. If you insist they do something a specific way, they will "hallucinate" in order to match your demands, whether it makes any sense or not.

1

u/SomehowSomewhy 22h ago

That's not my experience at all in the research we've been doing. We're using Claude Sonnet and...I forget but whatever the second newest gemini is named.

Definitions are not easy. They tend to be the results of tortuous discussions between groups of people; SMEs from different units, BAs and curators. You can infer exhaustion and compromise with some of them. Things like specific examples, hedge language, not distinguishing from siblings or peers are extremely common traits in definitions. Once you have this uncertainty and compromise from human groups expressed linguistically, it is easy to make Claude make mistakes or 'assumptions' when it uses them.

I would love to move to a model of definition free ontologies, unfortunately, our research is that we do need the definitions. Whether this is true in future, I do not know.

1

u/postlapsarianprimate 22h ago

I've been building a practical application for some time, so this is applied work, not research. So, shrug, I guess.

Anyway, I think we are talking past each other a bit. I'm not talking about definition free ontologies. I'm not really sure what that would look like. But at least on certain domains modern llms know the general meanings of concepts very well. As I said, domain ontologies are still useful, augmented with "profile" ontologies. Call them what you like.

If you're just asking Claude to make something for you, it will be useless. They require careful handling and guidance. There are some open source projects for this, but none work very well from what I've seen.

I should also clarify thaty work is not completely bottom-up. It's best to start with a good upper ontology. I use gist and find it excellent for my needs.

3

u/SomehowSomewhy 21h ago

I don't think we're talking past each other. Anyone who says you can't do it all with claude (and also domain ontologies are pointless), I agree wholeheartedly with.

2

u/postlapsarianprimate 23h ago

This person knows what they are talking about.

1

u/boring_thinker 1d ago

I saw the OP's post this morning and meant to come back later to make this exact point.

2

u/Environmental-Web584 1d ago

Bottom-up semantics is a broad subject with lots of techniques.

Something relatively easy to test is to annotate each element with attributes without assigning categories upfront. You can then use those attributes to generate a concept lattice. If a node in the lattice looks like a useful 'container', you can give it a name and use it as category.

1

u/False_Secretary_3115 1d ago

This is really interesting, thank you! My background is actually in mathematics, so the lattice-based formulation is particularly appealing to me.

I like the idea of discovering categories through shared attributes rather than assigning them upfront. It seems like this could also accommodate overlapping concepts and different levels of granularity much more naturally than my current classification approach.

Have you worked with formal concept analysis on large, noisy datasets where attributes are extracted rather than explicitly given?

I'm particularly curious about handling incomplete or uncertain attributes, normalizing synonymous attributes, and controlling the size of the resulting lattice.

I'll definitely look into the resources you shared!

1

u/Environmental-Web584 9h ago

I haven't used it on large datasets, I use this mainly to maintain my own knowledge base and 'memory' while I work with agents. Sometimes I use LLMs to generate attributes that can divide the groups into sizes that allow to navigate into the concepts with few steps.

I use it to optimize patterns of access.

If you try this in noisy datasets please feel free to share!

2

u/Complete-Ebb-1035 1d ago

I would take a different approach from ones discussed here. They are not wrong. IMHO you are thinking at the wrong level - a KPI as you express it. Instead, you should think at the atomic level; how is the KPI constructed? I won't go into detail here unless asked, but I point you to a fundamental concept: an RDF triple. A triple is ?s ?p? ?o. The context for every triple is a namespace (an ontology or taxonomy). Without going into an ontology discussion, I think you will quickly see that this structure is easily and frequently implemented in javascript. you define a specific namespace; you define the target object in the namespace; you assign a property and an argument.

If the above make sense, try to deconstruct you exercise using conventional (JavaScript of TypeScript) techniques. When you get that working, it's far easier to generalize the examples into a structured data format.

1

u/False_Secretary_3115 1d ago

This is very interesting, and I'd definitely appreciate more detail if you're willing to share.

Another commenter suggested decomposing KPIs into semantic components, and someone else suggested using Formal Concept Analysis to discover categories from shared attributes. Your RDF suggestion seems like a potential way to formally represent those atomic components and relationships.

My main question is how you would go about discovering and defining those atomic properties from a large, heterogeneous and noisy corpus.

Would you define the predicates upfront based on the business problem, then use NLP or LLMs to extract the corresponding objects? Or would you also discover the predicates themselves from the data?

I'm particularly curious how you would handle incomplete information, uncertain relationships and customer-specific terminology.

I'd love to hear more about how you would deconstruct this problem in practice.

1

u/SomehowSomewhy 1d ago

I think you should focus on SKOS-XL rather than RDF

1

u/postlapsarianprimate 23h ago

Skos XL is rdf...

1

u/SomehowSomewhy 22h ago

I know mate.

2

u/postlapsarianprimate 23h ago

As others have mentioned, semantic decomposition is the right basic answer. I have been working on a bottom-up ontology creator. Results look good so far. This is probably the future of ontologies, at least in enterprise/AI contexts.

3

u/SomehowSomewhy 23h ago

>his is probably the future of ontologies, at least in enterprise/AI contexts.

Not to be rude, but no-one knows the future of ontologies at the moment. Probably is doing a lot of lifting there.

My own depressing conclusions is that LLMs are going to get good enough to make us largely obsolete. Having said that, I have spent most of this year researching about what LLMs can and cannot do well. For instance, take a hieararchy, collapse it and ask Claude to re-build it. The results are not good. Same as ask it to define a class. But ask it to mine its corpus for a definition based on a writer the SME thinks is an expert in the field, and the definitions get a lot better

All of that is a hundred needless words to say its not that I necessarily disagree with you, I am just wary of people making assertions on what is going to happen in this space next.

2

u/postlapsarianprimate 23h ago

Yeah, I mean, "probably" is doing exactly the lifting you think it does. As in, I don't know for sure. That's normal usage I think. :)

But I'm pretty sure I'm right. Given the long tortuous history of ontologies, there is only one way they will become critical parts of agentic frameworks. Either they can be at least significantly bootstrapped or they will be as relevant as they have been since 2013...

My experiments are looking pretty decent. It's not easy to do, but you can get a lot out of judicious use of llms.

3

u/SomehowSomewhy 22h ago

I think its a lot more 'possibly' than 'probably'
> Given the long tortuous history of ontologies, 

Have they been tortuous? Really? I know we can all argue about the adoption of Semantic Web, esp outside life science and some financial services, but I have a lot more positive thoughts on this than most, it seems. Like v1 of the semantic web failed, because it was not as profitable as silos, but in general, I really don't think it has failed as a whole, nor that the history of ontologies is particularly tortuous.

2

u/Traditional_Air_4639 22h ago

the optimistic counter-argument is that as ontologies become both essential and cheap, every organization will need ontology skills to keep the LLM's aligned with the business. But like every job in an AI world, they will look very different.

2

u/postlapsarianprimate 22h ago

Well, if you look at the publication record, or at the last update of many common ontologies, it falls off a cliff around 2013. Since then (correct me if I'm wrong), ontologies have occupied a tiny niche in, as you say, life sciences and largely academic projects.

Look at FIBO. A hot mess that is rarely used anymore, even with (or perhaps because of) big industry backing.

And still to this day people have to ask basic questions on subreddits because there is a real dearth of information out there. Only recently are we seeing good books being published again in this area, and it's all because of the notion that llms need them.

I think the problems with the semantic web movement were deeper than you suggest. As long as ontologies remain inscrutable to all but experts, nothing like the semantic web dream can possibly be realized. Possibly. :)

2

u/SomehowSomewhy 21h ago

This is a fair point. I've consulted across maybe 100 organisations of the last cough years, and what I have found is that there are a ton of ontologies out there which - I have to admit I find wrly amusing - are not shareable cos of IP.

I think the failure to whatever extent of the semantic web was to do with money, politics and naivite from the early days of web utopia. Fairly substantial problems, probably, possibly :-)

2

u/SomehowSomewhy 22h ago

I hope I’ve not come across as overly negative here, I’d be very interested indeed to see your work on this

2

u/postlapsarianprimate 22h ago

No worries, glad to have this conversation, as I don't think at this moment anyone can see the complete picture. We are in a revival that only came about a year or so ago. Lots of open questions and, ironically, heavy silo-ing of knowledge in this area.

2

u/postlapsarianprimate 22h ago

Unfortunately my work is not open source. I am talking to people about it but I'm not sure if/when that will happen. But happy to share whatever I can.

1

u/DeepLogicNinja 18h ago

It’s always MORE difficult to do top down, rather than bottom up.

Bottom-up is more natural. Allowing each system / department to define their current vernacular and document it in a glossary. Using the right tooling you can generate a knowledge graph/ontology from the glossary. More importantly you can fix the anomalies before visually showing a glossary to glossary mapping.
When people can see how their terms/ knowledge graph maps (or doesn’t map) to an enterprise (or industry ontology) visually, it will be a more pleasant conversation and less of an attack on their current vernacular, experience, and methods.

Initially capturing their terminology ensures they are heard, and all requirements are captured. When it’s mapped to new terms, most people will be MORE accepting of the future state when they can see the entire context for the reason for the change.

All the additional information is also useful for semantic awareness. All the synonyms/related term info will be very useful for the LLM/NLP.

1

u/CapitalLog7599 10h ago

I’d test whether the mapping helps people compare metrics correctly, not just whether it covers more labels. Two teams can both say “conversion rate” but use leads and website visits as their denominators. I’d keep the original name and definition, then test on customers you didn’t use to build the taxonomy: can the system find comparable metrics and say “not enough information” when the denominator is missing?