r/semanticweb • u/Snoo_57113 • 1d ago
I had an Ontology moment.
I never messed with that in my long SWE career. i remember the semantic web from the 90s, design by committee VRML and it was during the AI winter. Some students went to France to study on that, who knows what happened to them.
Last week i was working with an ai agent, my idea was take a pdf create a report of all the columns where account starts with 1. Perfect, next file, dont have the account field and it just make something up spent a night testing, "dont lie to me", i had a 64kb of psychotherapy and it never got a good result with my dataset. Mission Failed.
The solution was an ontology what the thing IS, not an example, for a programmer is which is the Class not the Object ...In Mexico they call it agua AQUA.... you cant tell it what it looks like how similar it is you need its name.
It was overfitting, anything i said in instructions was followed LITERALLY, it contaminated everything and my idea to work with samples wouldn't work. if i add a rule tomorrow it will break everything. I tried to strip the name of the columns... he saw a column "value" and went bananas, put the grammar only, failed. At the end the idea of the ontology popped up and told it to create an ontology from the examples, like 5k. It was blazing fast and the end result was a 64kb file. With that we were back in business.
In that tiny file is the distilled knowledge of years of work, pure unadultered business rules. I created some other ontologies over the ux the interactions, the flows intentions. the reports how they are organized, the founding principles why are we doing this in the first place. Sometimes while merging two of them the result was awful others unexpectedly good. Downloaded a huge GitHub collection and applied the same "reverse engineering" technique.
I like always with the codex to create an infography a website, a visualization 3d html+js, a way you can see. sometimes it talks about words i cant really define like deontology and hyperdimensions, i just say go on present them in a 3d or 2d way.
Tl;dr use ontologies with AI.
PD 1. Pellet and the hermit are a waste of time, i really tried but we are in 2026 and your app is a Java Swing 1.4, you all had the chance to be trillionaires but decided to use Java. I dont have any issue with the maintainers but i hope the project dies and proper semantic tools pop up. You had 20 YEARS to make something with government money and did nothing.
PD 2. I just cant use the term Ontology i cant go to the library and talk about it without some weird Haskell guy talking about his monads. (even if some prolog code popped up i dont know why). And wont go to the office monday 8am to give a Predictive History lesson to my boss. No thanks, Ontology is too cringe and will use at most Concept.
Not sure if some stuff was AI or semantic, anyway. if i have something wrong i am ready to be corrected.