r/semanticweb • • 27d ago

# Semalith: yet another tool for your ontology graph

Semalith: yet another tool for your ontology graph

Semalith is our edge ontology engine. I call it yet another tool for building the ontology, or semantic layer, of your business data. It has proved powerful in a few pilot projects.

Edge ontology graph

  • Structure: entities, attributes, relationships
  • Meaning: definitions, terms, metrics
  • Action: writes and row security
  • Knowledge base: for each graph, add your own domain rules and business logic.

Build in hours

I built it with a powerful MCP, so you can build your semantic graph in hours and polish it in days. My ERP demo graph was built this way: 41 entities, 28 saved queries and 39 knowledge articles.

  • Set the goal: set your business goals, based on your business agent's instructions.
  • Write golden cases: work out a few dozen typical business questions you want to answer with your data.
  • Let AI build to the goal: Claude Code or Codex connects to the data, builds the graph and drafts knowledge over MCP. Then it tests and judges the graph against your golden cases, and improves it step by step.

During this time, your AI generates the graph, uploads it, tests it and judges the results, until the cases pass.

In my experience, the first version of a graph takes about an hour, and optimising it takes days. It really depends on your golden cases.

Compared with a traditional API MCP

  • Safe and efficient: it exposes only the mapped data, and returns only the data requested.
  • Fewer tokens, higher performance, stronger semantics.

I tested it: 44 business questions on public ERP data (Microsoft's AdventureWorks), three runs each, with the same AI model and prompt.

Measure |Plain REST API |Graph |Graph + knowledge
Cost (132 answers) |$35.23 |$13.07 |$13.34
Time per answer |29.8 s |19.1 s |18.9 s
Accuracy, all questions |0.874 |0.916 |0.956
Accuracy, rule-based questions |0.818 |0.833 |0.919
Overall score (of 100) |83.0 |91.9 |92.9 Overall, graph + knowledge was about 2.6 times cheaper and about 37% faster than plain REST, and its overall score was 9.9 points higher (92.9 vs 83.0).

To be fair: the data is fictional, we used one model and one REST design, AI did the scoring, and we fixed the graph between rounds. The report explains the method and limits.

Try it

One Docker command starts Semalith, a demo ERP and a ready-made graph:

curl -fsSL https://raw.githubusercontent.com/rosetta-oss/semalith-runtime/main/compose.yaml -o compose.yaml
docker compose up -d

Semalith is early software. It is free for demos, evaluation and personal research, but it is not open source. We'd love your feedback.

5 Upvotes

2 comments sorted by

1

u/Sorry_Performance577 21d ago

I think the problem is where to put those 39 notes. I had ever tested them as skill but not good, since hard to guarantee those notes will be triggered every time.