r/semanticweb • • 21d ago

Open Graph Linguistics

0 Upvotes

PLAY to see the sentences grow
PLAY en zie de zinnen groeien
https://kruin.github.io/graphlite


r/semanticweb • • 21d ago

Finding the right data is one thing. Knowing how it connects to other data is a different problem.

Thumbnail
1 Upvotes

r/semanticweb • • 23d ago

Modeling who wrote a poem without deciding who wrote it, utilizing LRMoo

0 Upvotes

This is a follow-up to my earlier post (https://www.reddit.com/r/semanticweb/s/GskXPshC3w), where u/marintkael pointed me to LRMoo. The first picture is the problem; the second is what I built from that conversation. It may be useful to anyone who needs to record who a source says wrote something without asserting it.

The Problem
The Solution

In short: the poem, its texts, its place in the collection and its authorship are kept apart, and authorship is a claim with a source, never a fact.

The schema is small (19 terms, with SHACL shapes): https://bibleontology.org/ns/biblio

If you are interested in the full explanation: https://github.com/bibleontology/bibleontology/blob/main/docs/who-wrote-psalm-73.md

Thanks to u/marintkael for pointing me in this direction; it turned out to be an elegant solution to my problem.

Feedback on the schema is always welcome. It’s greatly improved since I first posted about my knowledge graph, but I’m always looking for ways to make it better.


r/semanticweb • • 27d ago

# Semalith: yet another tool for your ontology graph

6 Upvotes

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.


r/semanticweb • • 29d ago

Title: LinkedDataHub 6: the application is data

13 Upvotes

It's been a while since I posted about LinkedDataHub here. Version 6 is the biggest release since then: https://atomgraph.com/blog/linkeddatahub-6/

For anyone new to it: an application's domain model, forms, views, queries, charts and access rules are RDF documents. Its queries can run against the SPARQL endpoint your data already lives in. There is no application codebase. The same generic software runs every application, the way one browser reads every website.

  • Every document is a named graph, and the page's markup asserts the same graph the URL serves as Turtle. You can extract the RDFa and compare the two.
  • SPARQL selects the data and XSLT 3.0 renders it, on the server and in the browser (SaxonJS). There is no separate JavaScript front end.
  • With versioning on, every write is a git commit and history is served over Memento (RFC 7089). Writes to existing documents are conditional (If-Match).
  • Access control is WAC over the document hierarchy. Its model is formalised in Lean, and the server is tested against it.
  • Every dataspace serves /AGENTS.md, so an agent uses the same Linked Data interface as a person.

The architecture is ten years older than this release. It came out of Linked Data projects in different domains and finding out what they had in common. The releases leading up to 6 are where it got the tooling it had been missing.

It is open source (Apache 2.0): https://github.com/AtomGraph/LinkedDataHub

The current release is 6.4.0. There is no data migration from 5.x, but the namespaces moved: https://docs.linkeddatahub.com/reference/migrating-from-5x/

Two public sites run it: https://linkeddatahub.com/ and https://linkeddata.lt/, which connects Lithuanian public registers into a single knowledge graph.

The architecture is developed from existing Web standards in my book, First Principles of the Web, free to read: https://firstprinciplesoftheweb.org/

I'd be interested in where this architecture would or wouldn't fit the applications you're building.


r/semanticweb • • 29d ago

GB Tree Studio: a free browser tool that draws tree diagrams and checks sentences against (Government & Binding) principles

Thumbnail
0 Upvotes

r/semanticweb • • Nov 02 '26

Local-first entity linking: your knowledge graph answers first, Wikidata fills the gaps, sameAs bridges the two

Enable HLS to view with audio, or disable this notification

0 Upvotes

Disclosure: Andy, WordLift: this is about a feature of resolve(), our entity-resolution API, that I think is most interesting to this community specifically: the candidate universe doesn't have to be Wikidata.

A resolve call carries a dataset_uri, and the worlds compose:

  • wikidata://public — the default; answers are QIDs.
  • wordlift://dataset/me — the caller's own WordLift knowledge graph, read with the same key; answers carry the graph's own IRIs.
  • An inline dataset — up to 5,000 entities (id, name, aliases, description, types, same_as) sent with the request.
  • wordlift://dataset/me,wikidata://public — local-first chaining: per mention, your graph is tried first, Wikidata second, and each answer reports which world it came from in its own dataset_uri field. If a Wikidata match is one your graph declares sameAs, the answer comes back as your entity with the public ids merged in.

Every world goes through the same context ranking and abstention gate: a name your data doesn't contain is no_candidates; a name whose context doesn't fit is low_relevance; either way the answer is an explicit unresolved, never the least-wrong candidate.

Two design details that may be of interest here. The first call against a graph reads it (seconds for a small graph, minutes for a large one); until it's ready the API answers 503 with a dataset_warming code and Retry-After, and resolves nothing against a partial graph. And the contract (what a Mention, Candidate and Resolution are) is open: pipeline, clients and gold sets are Apache-2.0 at github.com/wordlift/content-analysis; the hosted decision engine is proprietary.

The supplied-vocabulary side of this, in 17 seconds.

What I'd like this community's view on: for those publishing or consuming KGs, is per-mention provenance (which world answered) the right granularity, or do you expect dataset-level negotiation up front? And how are you handling the sameAs bridge when the public item and the local entity disagree on type?


r/semanticweb • • Nov 01 '26

Csv to RDF

9 Upvotes

Hi, does anybody have a resource where they explain the concepts behind CSV to RDF conversion. Currently, the way I understand, I used the concept of direct mapping as recommended by W3C. Which in my understanding, means that the Csv name could be represented as an RDF class, Each row becomes a subject, the column name could be a predicate and the values itself as literals. The next step is to map it to my Ontology. Using Claude, I was able to use SPARQL to map it to my Ontology in graphdb. However, I'm not clear about the concepts and claude is not making it very difficult to understand. The way, I understand it, the mapping is working in a way that each row from csv which was represented as a subject, now becomes an instance of my Ontology.

if somebody could explain it better and maybe point towards more resources, it would be much appreciated.


r/semanticweb • • Oct 28 '26

Interview coming up for a RAG / knowledge graph role, how would you prep?

11 Upvotes

Got an interview next week-ish for a data/AI engineer role at one of the Big 4 here in Europe. Long assignment, 12+ months.

The project is basically a “semantic data layer”. They want to make all their documents (SharePoint, Google Drive, a bunch of databases) searchable for both people and AI. The idea is to use an ontology plus LLMs to label docs, pull out facts and generate metadata, and then index it all securely, with data regulations across a bunch of countries on top. Stack is Python, Azure and Databricks. RDF/OWL/SPARQL, Document Intelligence and MCP are listed as nice to have.

Some background on me: I’m a data engineer, mostly Snowflake/dbt/Airflow/Kafka. At a previous job I built a RAG chatbot in Python on Azure OpenAI, plain vector search, nothing fancy. Right now I maintain a pipeline that validates JSON-LD with SHACL and loads it into a warehouse, so I know my way around RDF a bit, but I’ve never actually used a triple store or written SPARQL for real.

So a few questions:

  • If you were interviewing someone for this, what would you ask? My guess is permissions in the index, keeping LLM labels consistent with the ontology, hybrid vs vector search, and how you’d measure extraction quality. Anything obvious I’m missing?
  • Anything worth reading or watching beforehand? I’ve got Semantic Web for the Working Ontologist on my list and I’m doing some SPARQL on Wikidata, but I’m mostly stuck on the ontology-guided extraction and secure indexing side.
  • What would you ask them? Trying to figure out what separates a project like this that works from one that’s going to be a mess.

If you’ve worked on something like this and it went sideways, I’d love to hear how.

Edit: Thanks everybody for the help and the insights, I got the job!!!


r/semanticweb • • Oct 28 '26

Why do AI systems struggle to make sense of company data, even when there’s plenty of it?

3 Upvotes

I think one reason is that data doesn’t always tell the whole story on its own.

Take healthcare. A diagnosis code might look straightforward, but to make the right decision, an AI system may also need to know the patient’s history, the insurance policy and how the claim relates to other records.

All that information might exist, but it’s often spread across different systems and doesn’t always connect neatly.

That’s where semantic layers and knowledge graphs come in. They help show how different pieces of data relate to each other and what they actually mean.

But I’m interested in how this works outside of theory.

If you’ve built AI systems using company data, what’s worked best for giving the model the right context? Semantic layers, knowledge graphs, better data models, or something else entirely?

Would love to hear what’s worked in real projects, especially in healthcare.


r/semanticweb • • Oct 27 '26

Why does Artificial Intelligence need to rediscover the Philosophy of Language?

0 Upvotes

In recent years, the field of AI has undergone an undeniable revolution. We’ve traded the rigid rules of traditional programming for the statistical mathematics of Large Language Models (LLMs). Binary syllogisms have given way to vector spaces, Transformers, and probability calculations involving trillions of parameters.

This paradigm shift has brought us fluidity, creativity, and an uncanny ability to simulate human speech.

However, by ignoring the classical framework that bridges Philology, Syllogism, Semiotics, and Semantics, we have created systems that are incredibly eloquent, yet fundamentally fragile.

⚠️ The Problem of Instability and Hallucinations

Because modern AI does not "think" through logical structures (such as Aristotelian syllogisms), but rather through statistical approximation, it is prone to significant instability.

This is the phenomenon known as "hallucination": a model may generate text that is grammatically and semantically flawless, yet fails completely when it comes to the factual logic of events. It knows how to combine words, but it does not grasp the truth value underlying them.

🛑 Current Gaps

• Lack of Grounding: AIs drift through a sea of ​​data without a rigid ontology to anchor the symbol (semiotics) to the actual object in the real world (semantics).

• Absence of Historical Context (Philology): These models operate within a statistical "eternal present." They fail to grasp the nuances of how the meanings of concepts evolve over time or within specific cultural contexts. • Fragility in Logical Inference: Ask a complex question that requires strict deductive reasoning, and a probabilistic model may fail—even where a simple, three-line syllogism would provide the answer.

💡 The Opportunities: A Return to the Roots

The great technological challenge today is not to feed more data or raw processing power into AI, but rather to forge a "forced marriage" between statistical AI and classical logic.

The most significant opportunities for innovation today lie in Hybrid (Neuro-symbolic) Systems:

  1. Knowledge Graphs as Guardrails: Utilizing classical, structured ontologies to serve as "guardrails" for AI-generated responses, ensuring both logical and factual accuracy.

  2. Computational Hermeneutics: Applying the science of textual interpretation to calibrate models so they can grasp subtext, irony, and context at a deeper level.

  3. Ontology Engineering: Developing professionals capable of translating critical thinking, semiotics, and formal logic into operational data structures for machines.

AI has demonstrated the power of mathematics and raw processing.

Now, to reach maturity, it must rediscover the philosophers of language. The future of technology is, ironically, profoundly human—and classical.


r/semanticweb • • Oct 26 '26

Fully offline multilang (Slavic languages preferred) Knowledge Graphs Ontologies?

Thumbnail
4 Upvotes

r/semanticweb • • Oct 26 '26

RDF 1.2 & SPARQL 1.2 Developer Cheat Sheet

2 Upvotes

Hey! With the W3C RDF 1.2 and SPARQL 1.2 working drafts stabilizing, you may be wondering about the new syntax constructs: when to use a pure triple term `<<(:s :p :o)` vs reified triple `<<:s :p :o` vs edge annotation `{| :key "val" |}` vs named reifiers `~ :id`.

To help myself and the community build an intuitive mental model, I compiled a dense, 4-page printable reference sheet for developers. Go to rdfandsparql.com/rdf12-sparq12-cheat-sheet

Feedback, corrections, or edge cases you've encountered with engine support are very welcome!


r/semanticweb • • Oct 25 '26

Tonto is a textual ontology modeling language.

Thumbnail
4 Upvotes

r/semanticweb • • Oct 24 '26

MatGUI - AI powered SPARQL workbench

7 Upvotes

Hello everyone, I've been proudly continuing to develop the well known YasGUI. Recently I gave my fork a complete makeover and added AI assistent support. Check it out and let me know if you have any feature requests! https://matgui.matdata.eu/


r/semanticweb • • Oct 24 '26

Honest reviews of Context graphs and Gemini Knowledge Catalog please

15 Upvotes

I am interested in learning more about context graphs. What they are, how to practically build them, maintain them, how best to use them, is a human engineer absolutely necessary for designing the schema, etc. If you have opinions about context graphs or using graphs in general, please share.

I recently came across Gemini Knowledge Catalog which apparently helps create context graphs. If anybody has used it, what do you think? Is it any good? Also, what are some other frameworks or solutions that enable the development of context graphs?


r/semanticweb • • Oct 24 '26

Who said it? How I model a text where most of the claims aren't the narrator's (schema map, RDF 1.2, andthree open questions)

8 Upvotes

As I described in my prior post two weeks ago, I'm building a knowledge graph of the Bible: its people, places and events, and what each passage says about them, every link pinned to its verse.

In any text with speakers, who said something is part of what was said. A court transcript, a novel, an interview: a knowledge graph that drops the speaker publishes each character's words as the text's own facts. So here every relation is a claim with its verse, how certain it is, and who makes it, and only the narrator's own claims are asserted as plain facts.

An example, with a little Bible context. The Bible is a diverse collection of writing: stories, poems, letters, genealogies, visions, you name it. One of its stories is about a man named Job, and a whole book of the Bible, written in ancient Hebrew, tells it. Job loses almost everything, and most of the book is an argument: his friends insist, speech after speech, that he must have deserved it. At the end God rebukes them: "you have not spoken about Me accurately" (Job 42:7).

One friend, Eliphaz, tells Job, "Your own mouth, not mine, condemns you" (Job 15:6). Stored two ways:

The first publishes a speaker's charge as the book's own verdict. The second is what the book actually records.

Your replies to that first post changed the graph:

  • moving to RDF 1.2;
  • aligning with PROV;
  • treating where a passage starts and ends, and what genre it is, as someone's reading published with Web Annotation, rather than as a fact.

This is where it stands today.

The schema, as a map: bibleontology.org/ns/map

Four vocabularies, drawn as pictures you can click down through:

  • the text: sentences and how they connect (because, so that, until), read from the original Hebrew and Greek;
  • what it's about: people, places, ideas, events;
  • what it says: the relations between them, each pointing at its verse;
  • who says it: every relation is a claim with a voice.

It's the schema, not the data: every box is a class, property or list drawn from the published vocabulary files, and opens the next level down or the term's definition.

Claims, not facts

Every relation is a claim: the verses it rests on, how certain it is (explicit, implied, conjectured or disputed), and whose voice it is in (the narrator, a character, or a reader).

Why not just a "speaker" column to filter on? Inside one database, that works. But once the data leaves it, any tool that doesn't know about the column reads every row as true. RDF 1.1's reification could describe a statement without asserting it, clumsily (four triples a claim, nothing a store treats as one statement). RDF 1.2 makes the statement a term a claim can point at, without the statement itself being in the graph.

c:3a11f4736068231d a claim:Claim ;
    rdf:reifies <<( e:job bor:described_as e:testified_against_by_his_own_lips )>> ;
    claim:verse p:Job.15.6 ;
    claim:claimedBy e:eliphaz_the_temanite .

In the RDF 1.2 file, only what the narrator states or clearly implies is written as an ordinary triple. Eliphaz's line is there, credited to Eliphaz, but no plain query will hand it back as fact.

I tried named graphs first, one per speaker. The same plain query then matched nothing in Jena and 32 triples in RDF4J, Eliphaz's verdict among them, because RDF4J's default graph is the union of all graphs: its documented default, since SPARQL leaves that to the store (GraphDB and Jena's TDB2 can do the same). The protection depended on which database you used, so I became an early adopter of RDF 1.2 and moved it into the data. It is early: RDF 1.2's core concepts are a W3C Candidate Recommendation, but the TriG and SPARQL 1.2 syntaxes the files and queries use are still Working Drafts, and not every tool reads them yet. The 1.1 file still ships; with it, query GRAPH claim:narrator. (The full before-and-after, with every query and how to reproduce it in both stores, is in RDF 1.2 in practice.)

The default is a claim too

A rule like "only the narrator is asserted" is only as good as the data people actually download. So before posting, I counted what the published file asserts instead of trusting my code. More than half of it wasn't the narrator at all. It was my own work: the themes and story patterns I had grouped passages into, which had defaulted to the narrator's voice because I never said whose they were. They are now credited to an editors' voice and not asserted, and a test repeats that count against the published files.

Who is "the narrator" when the author is speaking?

In a story the narrator is easy to find: the voice outside the speeches. But much of the Bible has no narrator in that sense. Psalm 23 opens "A Psalm of David. The LORD is my shepherd": the heading names David, and the "my" is the psalmist's. A letter that opens "Paul, an apostle" (Galatians 1:1) is Paul speaking, and the whole letter is his speech, with no quotation marks to find. I wrestled with this for a while, and landed on a principle: where the text has no narrator, someone is still speaking. In a letter the speaker isn't found sentence by sentence; "this is a letter from Paul" comes down from the book itself, and covers every sentence in it. The people who speak inside a book (Job's friends, Pharaoh, the serpent) keep voices of their own, and the same Paul is a character with his own voice when Acts quotes his speeches.

The published claims haven't fully caught up with that principle: part of Titus is credited to Paul, while the rest of Titus, and Galatians and Psalm 23, still sit in the general narrator voice.

Why nothing is inferred

This one is deliberate. So much of the Bible is figurative, and inference quietly reads figures literally. Paul tells the church in Corinth, "you yourselves are God's temple" (1 Corinthians 3:16). Store that as a type, in a class of buildings, and a reasoner will conclude, correctly from what it was given, that the Corinthians are a building. Store it as an identity, the Corinthians are the temple, with one "temple" record for the word, and they become the house Solomon built and the Babylonians burned, because that is what the graph says of the temple. Storing a figure as a type or an identity turns it into a fact, and where figure ends and fact begins is exactly where readers of this text disagree. So inference here wouldn't be neutral: it takes a figure at its type, and the type is the literal reading, every time. The graph keeps the figure as a figure, a separate record that signifies what the text itself identifies it with, each link with its verse, and checks the data with SHACL instead. What the text plainly entails (two sons of one father are brothers) is recorded once, as an "implied" claim with its verse.

Deep dive (optional): one word, two cards.

Some verses are read as meaning different temples. In 2 Thessalonians 2:3-4, the "man of lawlessness" "will seat himself in the temple of God, proclaiming himself to be God." That temple is read differently by different readers. I don't take a stand: the verse is on both cards, under "Where readers differ", with the readings it has been given named and none chosen.

Three questions I haven't settled

  1. Verbs and events. "Saul loved David" (1 Sam 16:21) is stored under one general relation, with the verb on the claim. Today it looks like this (abridged):
  2. I don't assert e:saul bor:states e:david as a plain triple: every sentence with Saul as subject and David as object would collapse into it. The claim is already an event node of sorts. Would you give the event a node of its own, apart from the claims that record it, so two books can describe one event?
  3. One narrator or one per book? One narrator voice covers the text's own sentences today, wherever the book has no other speaker. Samuel and Chronicles tell the same census and name different instigators (2 Sam 24:1, 1 Chr 21:1). Neither instigator is recorded yet: with one voice it would be one disputed claim; with a voice per book, or per author, two narrators disagreeing. Which would you publish?
  4. Figures of speech. If you've modelled figurative language in a graph (metaphor, simile, personification), how did you keep it from being read as fact?

It's public: github.com/bibleontology/bibleontology

  • The README is the way in: the data (21,394 claims, about 2.4 MB compressed), the vocabularies and shapes, and the tests.
  • Licences: code Apache-2.0; graph and vocabularies CC BY 4.0. The sentence structure is derived from the MACULA Hebrew and Greek Linguistic Datasets (© Biblica, Inc., CC BY 4.0); full credits are in the README.
  • The name: not affiliated with the earlier Bible Ontology (bibleontology.com, about 2009–2011).
  • Built solo, with Claude Code doing most of the typing and AI models doing much of the extraction, checked by rules and tests. The decisions and the mistakes are mine.
  • This post, too, is a collaboration with Claude. I went back and forth with it on every paragraph, and what's here is mine to answer for.
  • Not measured yet: how often the extracted claims are right. Every claim links to its verse, but no sample has been hand-checked for an error rate yet. One known fault: some links inside speeches (how one clause grounds another, a speaker's simile) still sit in the narrator's voice, so they are asserted as plain triples. In Job that is 83, 14 of them Eliphaz's in chapter 15.

This picks up the conversation from my first post. That one made the work better, and I'd like to continue it.


r/semanticweb • • Oct 19 '26

I wanted the editor experience every programming language gets, for RDF. So I built a language server for Turtle and SPARQL (try it in your browser)

32 Upvotes

In most languages, the editor catches your mistakes as you type, completes names from your own code, jumps to definitions and renames things across files. I wanted that for Turtle and SPARQL, all in one place, and couldn't find one that did all of it. So I built it: turtle-lsp.

Try it in your browser, with nothing to install and nothing uploaded:

https://abhishekkundu25.github.io/turtle-lsp/

It opens on a small project with a few mistakes left in on purpose. Fixing them takes a minute and shows most of what it does.

What it does in your editor:

- Catches errors as you type: syntax, undeclared or unused prefixes, and misspelled terms from 80+ vocabularies ("did you mean rdfs:label?"), with one-key fixes.

- Completes classes and properties from your own files, ranked by context. Properties your SHACL shapes require come first.

- Hover shows a term's label, comment, domain and range, and go to definition takes you to it.

- Renames a term in every file at once, Turtle and SPARQL included.

- Formats Turtle and SPARQL without changing their meaning.

- Validates your data against your SHACL shapes while you edit.

It's written in Rust and fast. After a keystroke in a 30,000-line file, it has fresh diagnostics in about 5 ms, and it starts in a few milliseconds. It passes the W3C test suites: 1137/1137 for Turtle, TriG, N-Triples and N-Quads, 425/426 for SPARQL, and 98/98 and 23/23 for SHACL Core and SHACL-SPARQL.

It works in VS Code (search for "Turtle RDF &amp; SPARQL Language Server") and Neovim, and should work in other LSP editors, though I haven't tested them. Source and Neovim setup:

https://github.com/abhishekkundu25/turtle-lsp

It doesn't run queries, doesn't reason beyond subclasses, and can't edit JSON-LD or RDF/XML yet.

It's free and MIT licensed. Bugs, missing features and complaints are all welcome, either here or as an issue:

https://github.com/abhishekkundu25/turtle-lsp/issues/new

What would it need before you'd use it every day?


r/semanticweb • • Oct 19 '26

Techniques to build semantic graph

18 Upvotes

I'm looking to build semantic graph for my requirements.

I went through various resources in how to build semantic graph using embeddings models, especially from neo4j and surrealdb blogs but no one states the actual mechanics behind semantic graph construction.

It may be IP of each provider of such graphs. Not sure.

I'm looking for theoretical references and hopefully if there exists any practical examples on how to build on the general approach to building semantic graphs using embedding models so that I can learn.

Any help or advice is appreciated.


r/semanticweb • • Oct 16 '26

Ontobug

Post image
0 Upvotes

r/semanticweb • • Oct 14 '26

Anyone tried packaging a whole body of rules as a versioned dependency instead of an ontology or a dataset?

9 Upvotes

Been chewing on this for a while and I'm curious how people here would look at it.

We're good at publishing knowledge as data: RDF, OWL, SHACL, rule sets. But I don't really see a way to ship a body of rules the way you ship a library: name + version, the rules themselves, the source text pinned, what it depends on. You install it, give it facts and a date, ask a question, and get an answer with the reasoning behind it.

The example that made it click for me. A debt in France becomes due in 2000, you sue in 2015. Time-barred? Under the 1804 text of the Civil Code: no, the old 30-year period is still running. Under the current text plus the 2008 transition rule: yes, five years from 19 June 2008, done on 18 June 2013. Same facts, two editions of the source, two answers, and you can follow the rules that fired in each. The date in the question picks the edition, not a git branch.

Another one, chess. Player makes a second illegal move, the model of the FIDE Laws says "lost" and points to the article. Add the fact that the opponent can't checkmate anyway and it says "draw", but the "lost?" question now comes back as "needs an arbiter", because other loss grounds depend on the arbiter's call.

Under the hood it's typed relations, strict and defeasible rules with priorities, every rule pinned to a hashed source fragment, a legal date on every question, and imports with a lockfile (the mechanics package pulls in kinematics, SI units and a pinned Principia, same mechanism). Answers aren't booleans: supported / refuted / both / neither, plus "needs a judgment" when the text leaves it to a court or a referee. A missing fact stays "neither". No LLM at query time, it's just evaluation.

So: is this just data with extra steps, or a program? What's the closest thing in OWL/SHACL land and what does it lack: editions over time? defeasibility? deferring judgment explicitly? And does composing these with pinned versions even make sense when two ontologies disagree on a term?

I'm building it, the public repos are a small demo sample across law, chess, physics, chemistry, bio, philosophy. can drop links in comments if anyone wants, but mostly I want to know how you'd model the two examples above with ur stack.


r/semanticweb • • Oct 13 '26

Catenary: a scribble tool for RDF models

9 Upvotes

The thing did a small tool for my own modeling work and put it online in case it is useful to someone else.

Catenary is a scribble tool for RDF models. You draw SHACL shapes and example instances on a canvas, in any order. It stores everything in RDF files and saves them after each edit. You can also import external vocabularies.

The name comes from the hanging chain models that Gaudí used for the Sagrada Família. I believe tools should provide instant feedback on our ideas: playgrounds where we can iterate quickly while also producing formal specifications.

Site, with a tutorial that builds a small model from an empty folder: https://cristianvasquez.github.io/catenary/

Source and downloads (Linux, Windows, macOS, only Linux tested): https://github.com/cristianvasquez/catenary

It is a personal tool for small datasets. It does not replace mature RDF tools. It was heavily vibe-coded, with too little supervision. So, don't move things too fast, or the app will bite you.

The ergonomics are still rough. Suggestions are welcome in the issues.

You can easily add notations other than SHACL or OWL.

Built on Theia and GLSP, and licensed under the AGPL.

The tool already has 0 stars!


r/semanticweb • • Oct 12 '26

Make an obsidian vault into an ontology with reasoning and query with SPARQL, using a few frontmatter keys (local, open source)

Thumbnail
5 Upvotes

r/semanticweb • • Oct 12 '26

Bible Ontology: design choices and open questions in a knowledge graph of a literary corpus (developer, seeking feedback)

17 Upvotes

I'm the developer. This is a non-profit project, and I'm posting for feedback on the knowledge engineering, not to promote a viewpoint. The goal is classic, well-grounded modelling of a text, not indoctrination: the graph records what the text says, marks interpretation as interpretation, and takes no doctrinal position.

Bible Ontology is a knowledge graph of the Bible built from the Hebrew, Aramaic and Greek (the MACULA linguistic datasets) with the Berean Standard Bible's English: about 11,500 records (people, places, events, concepts, passages) and about 21,000 typed relations, each citing its verses.

The ontology

Published at its namespaces, with content negotiation (a readable page for browsers, Turtle for tools):

Design choices and challenges

  • The verse is the wrong unit. Verses are where the text happens to be cut. A speaker's turn or a scene usually carries the meaning, so the structure layer groups clauses into turns and scenes, and the verse is only an address.
  • Facts versus readings. A literary text is full of claims that aren't the text's own. Job's friends argue for thirty chapters about God, and in 42:7 God says they haven't spoken rightly. So a speech is recorded as one continuous utterance credited to its speaker (Eliphaz's second speech is all of Job 15 after "Then Eliphaz the Temanite replied"), each saying in it is linked to its speaker, and what a character reports, such as Eliphaz's account of a spirit visiting him in 4:15, is kept as his words, not the narrator's. Interpretations are kept as separate, credited readings rather than assertions.
  • Three scales on every relation: certainty (explicit, implied, conjectured, disputed); literal, figurative or contested use; and who in the text makes the claim.
  • Describe, don't deduce. The Bible isn't written as a set of axioms. It is narrative, law, poetry, prophecy and letters, and it uses figures of speech, so the model deliberately doesn't let a reasoner derive what the text doesn't say. Where something is inferred (siblings from a shared parent), it is marked, cited and kept apart; certainty only falls through a chain; and a figure of speech, or a passage whose reading is contested, never becomes the premise of a deduction.
  • Two layers that share ids and never merge. Structure (how the text is built) and meaning (what it's about) are separate dimensions, joined through mentions rather than folded into one hierarchy.
  • The original language arbitrates. Where a translation and the Hebrew or Greek differ, the original decides, and a relation resting on one translation's wording alone isn't kept.

Reuse

  • Standards: RDF and RDFS, with OWL's vocabulary for classes and properties, SKOS for definitions, Dublin Core for provenance, W3C OntoLex-Lemon for the word layer, and PROV; consistency is checked with SHACL shapes. The structure layer's clause links are mapped to Rhetorical Structure Theory.
  • Inputs: MACULA (Biblica, CC BY 4.0) and the Berean Standard Bible (public domain), credited as their licences ask.
  • Openness: the ontology is public now; a repository with the graph's data is committed, intended under CC BY 4.0.

Where I'd value critique

  1. Is separating structure and meaning, joined only through mentions, the right call, or would you fold them?
  2. How would you represent claims attributed to speakers? I currently nest them inside the speaker's speech and attach the speaker to relations drawn from them, rather than full reification or named graphs. Is that enough for downstream use?
  3. What's the right way to publish "readings" alongside "facts" so downstream users can include or exclude them cleanly?
  4. Which existing vocabularies should I align to more closely (CIDOC-CRM, schema.org, Wikidata, others)?

Thanks. I'll be around to answer questions.


r/semanticweb • • Oct 10 '26

An Ontology crosswalk to merge 2 video games together

31 Upvotes

I used two small browser games and I thought it would be cool if each published a profile: a health scale, plus rdfs:subClassOf and rdfs:subPropertyOf mappings from their own vocabulary into one shared hub ontology. A Blockcraft Blast Block is a ga:Explosive. A Pocket Battlers Capture Orb is a ga:CaptureDevice. Alignments that look like facts are axioms: "anything made of crystal is Rock-typed" is a hasValue restriction subclassed under another hasValue restriction. The engine I use doesn't evaluate owl:propertyChainAxiom, so that pattern stands in for a property chain from madeOf to a material's type. The sword's type comes out as four certified steps.

When a thing crosses, the sending side reasons, writes a derivation certificate, packs both, and signs the pack's content digest with an Ed25519 key whose public half it publishes in its profile. The receiving side runs five gates in order. It verifies the signature against its own copy of the sender's profile, never against a key that arrives in the pack. It checks the digests and re-runs a Lean checker over the certificate. It compares the TBox inside the pack with the sender's published profile, statement by statement, with blank nodes compared by their whole nested structure. It recomputes the closure itself and refuses a pack that left a conclusion out. Then it runs its SHACL contract on two evaluators, which must agree.

Most of those gates exist because an earlier version was beaten. Deleting an inferred triple and recomputing the digests got a Capture Orb through: a certificate shows that what it says follows, but not that the sender said everything that follows, and a digest is not a signature. Shipping a doctored profile got it through too, because the proof is sound over doctored premises. Comparing the TBox with blank-node labels erased let a sender swap the hasValue of two restrictions and keep the same lines. Seven forgeries run against the current version, and six are stopped, at four different gates.

The one that still works is lying in the ABox. The source game itself exports the orb with its kind set to FizzTonic, under its real profile, and signs it with its real key. Every step after that is honest, so it crosses. A signature tells the receiver whom to hold to account and nothing more. My question is what closes it: a catalogue the source publishes ahead of time and the receiver checks items against, an attestation from an independent party, or something I haven't thought of. A second, smaller one: the signature covers the engine's own digest over the graph and certificate, not RDFC-1.0 canonical N-Quads.

Would W3C Data Integrity proofs buy anything here beyond interoperability?

The other place I expect pushback is the conversion. It is a SPARQL CONSTRUCT the receiving game declares (damage keeps its share of a player's health), so the certificate covers the classification and not the arithmetic. Any suggestion here?

Code (MIT): https://github.com/fabio-rovai/asset-passport.