Inferentialist Knowledge Engineering¶
This page states the practice that the RDF layer's position, provenance
and dialogue modules (pynmms.rdf.position, pynmms.rdf.provenance,
pynmms.rdf.dialogue) implement: knowledge engineering as the engineering
of the space of implications a graph lives in, with the graph as a record
of commitments, and the practice itself as Brandom's game of giving and
asking for reasons with the knowledge graph as the scorekeeper's ledger.
It was written as Section 9 of the ontology extension
page and moved here because it describes the game layer rather than the
extension. The mechanism it rests on is the regime-relative material base
and positions over a background of the RDF semantics
page; the steps that turn it into a practice an expert can be watched
using, and their status, are in PLAN.md ("The eight steps from here to
the vision").
1. Inferentialist Knowledge Engineering: What Gets Better About an RDF Graph¶
The ontology extension page describes a mechanism. This page says what the
mechanism is for, as a practice, now that the RDF layer (Section 8.4 of that page) has
been run against real knowledge bases (the Gene Ontology with its human
annotations, and the Amsterdam Museum collection; see
experiments/README.md, sections 9 and 10).
Start from what an RDF graph is today: a set of assertions, given meaning by the models that satisfy it, with an entailment regime to fill in what the assertions entail. Knowledge engineering on that footing is the engineering of contents. One decides what is true, writes the triples, chooses a regime, and everything the community knows beyond that, the defaults, the exceptions, the incompatibilities, the weight of evidence, lives outside the graph in SHACL shapes, query idioms, and pipeline scripts.
The inferentialist turn (Brandom 1994) is to take the meaning of a triple to be its inferential role: what asserting it commits one to, what it precludes, what would defeat it. On that footing the graph is not a picture of the world but a record of commitments, and knowledge engineering becomes the engineering of the space of implications the graph lives in. The regime is the smallest part of that space, the part every community shares. The rest, the material inferences of a domain, is what the experts actually know, and the claim of this project is that it can be made explicit beside the graph, in the material base, without changing a byte of RDF. Concretely:
The domain knowledge becomes a published artefact. "A maker record
names the maker unless the attribution is qualified", "an annotation
propagates up the hierarchy unless the curators denied it", "an author's
work may be printed after his death" are today folklore encoded in
NOT EXISTS clauses and scripts, invisible to anyone reading the data. As
entries in a material base they are inspectable, versioned, shared, and
reasoned with, and a second community can adopt a graph and its
inferences separately. This is making it explicit in Brandom's sense, the
same move OWL made for class hierarchies, applied to the defeasible
knowledge OWL cannot hold.
Exceptions become the normal case. Every curator knows a default is a default. Current tooling forces a choice between a rule that is always wrong somewhere and no rule at all. A base with defeaters lets the knowledge be written as it is known, a default with its exceptions, and lets the exceptions be data, a qualifier on a record or an evidence code, rather than special cases in code.
The graph answers questions about commitment, not only about content. What would follow if this were asserted; is this record coherent given what we know; does this denial hold against the closure; which of two attributions can stand with the dates. These are the questions asked while knowledge is being made, and they are hypothetical, conditional, or negative, so no store can ask them of its contents. A base over the store answers them in milliseconds at ten million triples.
Disagreement becomes representable. Two catalogues that attribute one
object differently are not a data error to be resolved before loading;
they are two positions over a shared background, each with its own
commitments. The semantics of the RDF layer has a place for them, positions
as pairs of accepted and rejected graphs (def:contententailment), where
the graph model has only one graph. Provenance stops being metadata and
becomes entitlement: who is committed, on what evidence, to what.
Coherence becomes a conversation rather than a gate. Validation reports violations after the fact and stops. Scorekeeping asks, of each position, what it commits its holder to and where it is precluded, and treats an incoherence as a challenge that a defeater might answer. This is the coupling to dialogue (Section 1.1 of the ontology extension page) that the extension was written for, and it is why the locality of positions matters: a position is a participant's stake, not the whole store.
The store stays the store. None of this replaces SPARQL, SHACL, or the triplestore. The base delegates the closure and the lookups to them and adds the consequence relation on top, so the interactive cost is theirs plus microseconds.
1.1 The practice, stated as a game¶
Put the six gains together and the practice has a familiar shape: it is Brandom's game of giving and asking for reasons, played with a knowledge graph as the scorekeeper's ledger. The game has two moves, asserting and challenging, and a scorekeeper who tracks what each player is committed to and entitled to. In the graph:
- Assertions are
assert_anddenyon aPosition: what a holder has said, over the store as background, in order. Reading a stored record aloud (Position.of) is adopting an earlier speaker's account as one's own. - Challenges are
commits_to,precludes, andcoherent: questions that leave the position as it is. A position's commitments are what it has asserted plus what the base makes follow, which is why a challenge can succeed against something the holder never said. A failedcoherentnames the entry or rule that refutes the position and the defeaters that would rescue it, which is the next round's agenda. - The scorekeeper is the base: the regime for what everyone is held to, the material entries for what the domain licenses and forbids, and the store for what has already been settled. Attribution to the position is what keeps a refutation about the player's stake rather than about the state of the database.
- Entitlement is what survives challenge. A position that has come back
in bounds under the probes put to it is entitled to its commitments;
commitis the move that makes them common ground. So the store is not a collection of facts someone loaded but the sediment of commitments that held up, with the holder and the moves as its provenance, and the knowledge base improves over time rather than merely growing. - The rules of the game are revisable too. When a challenge is answered by a defeater the entries did not carry, "a posthumous impression", the expert has found an exception the domain knowledge should hold, and the right move is to add it as a defeater or promote the inference to an entry. Knowledge engineering on this view accumulates both: commitments that held, and inferences with their exceptions that held. Only the regime stays fixed, because it is what the community shares.
Played adversarially, with a respondent building a position and an opponent probing it for incoherence, this is the Elenchus loop of Section 1.1 of the ontology extension page, and the runs on the Amsterdam Museum store replay one round of it in a few milliseconds a probe over six million triples: the etcher credit asserted, the anachronism named with its rescue, the rescue tried and withdrawn, the record read aloud and defended. What an opponent agent still needs is to generate probes rather than only answer them, an enumeration of the incompatibilities and unacknowledged defaults a position partly satisfies, and an explicit record of entitlement beside commitment.
All of this coexists with the existing tooling by construction. The graph
stays RDF, since positions, entries, and moves live beside it; the store
stays the store, materialising the regime with its own engine and
answering SPARQL unchanged; the regime is recovered exactly
(thm:closure), so every classical conclusion is one the base draws; and
SHACL keeps validating, a report being a backlog of records to read aloud
and defend, a defended position being one a shape will pass. The
NOT EXISTS clauses and scripts that carry a community's defaults today
are the source from which its entries are written down, and keep working
meanwhile. The one deployment condition is a store the reasoner can read
closure from.
What the runs on real data say must be true before this is a practice rather than an argument: positions bounded to the record they are about, so that one contradictory record does not make every other record incoherent; material entries written as patterns rather than ground instances, since every entry worth writing on real data was an instance of an obvious rule; and values in rules and defeaters, since dates, evidence codes, and qualifiers are literals. Those are engineering. The reason to do them is that with them, an RDF graph stops being a description someone must interpret and becomes a body of commitments that can be reasoned with, challenged, and extended by the people and systems that hold it.