Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Frame / subframe inference (WIP)

Status: design sketch, 2026-10-19; Evidence application revised 2026-10-25. Nothing here is part of the published schema.

Goal

High-level

We want to make it convenient to express composite chunks of structured information (frames) without spelling out the underlying details; yet it should be possible to refer to those details when desired, for example to make them a topic of enquiry.

Specific

  • A frame type is an OWL class.
  • A frame implies implicit subframes. Some are triple-shaped. The rules for them are part of the frame definition, though external rules should be possible.
  • Subframe instances are computable from the frame instance's properties.
  • Subframes do not need to be materialized, but can be on demand. Materialization is an explicit relation.
  • If many people materialize the same subframe of the same frame, the result should be the same object.
  • Use minimal inference machinery.

Decisions so far

  • Subframes are full OWL classes. Enforcing the subframe class's constraints on inferred subframes does not have to be automated. A SHACL pass over the closure can do it when wanted.
  • Triple-shaped subframes use the RelationDef / RelationInstance punning from the Discourse Graphs base ontology (dg_base.ttl), not RDF 1.2 triple terms. (RDF-star tooling is still nascent)
  • No content hashes for identity. Two frames computing the same content must not collapse into one subframe.
  • No named graphs. They introduce new arbitrariness. Provenance matters in general, but not for subframe materialization, which is deterministic.

Mechanism

See example.ttl, and check it with uv run python check.py.

  1. The rule is an object property from the frame to the subframe, for example :supportTriple. Its rdfs:range is the subframe class, so the subframe gets typed. It has a named inverse (:supportTripleOf).
  2. Constant slots come from owl:hasValue restrictions on the subframe class. In the punning case, that gives rdf:predicate :br.
  3. Computed slots are property chains that start from the rule's inverse: dgb:source owl:propertyChainAxiom ( :supportTripleOf :about ). Because each chain starts there, it only fires on that rule's subframes.
  4. Identity is a naming convention, not inference: subframe IRI = F#<rule key>. This is the only non-OWL step.
  5. Materialization is the single triple F :supportTriple <F#supportTriple>. OWL RL entails the rest; this was verified with owlrl.

Consequences

  • Idempotent. Everyone who materializes asserts the same triple, so RDF merge dedupes it. No named graphs are needed.
  • Never stale, as long as only the link is stored and not the closure. Contents are entailed from the frame's current state.
  • Alternate realizations. F :supportTriple :X with some other IRI makes X carry the subframe's type and slots, which works as a consistency claim. The canonical subframe is recognizable from its IRI. Do not declare the rule property owl:FunctionalProperty: OWL RL would then make X owl:sameAs the canonical subframe. X's own provenance lives wherever it already lives.
  • Versioning belongs to the frame's identity. If the frame IRI is version-pinned, the subframe IRI is pinned with it. Otherwise the subframe tracks the frame. Frame versions come from the storage layer's record versions; for ATProto, see the ATProto Linked Data proposal (version pinning).

Materialization (decided 2026-11-27)

A subframe does not exist until something refers to it. The open world means nobody can stop a third party from writing about F#key, so "exists" here means "asserted in a store": like a database view, it can be computed on demand at any time.

  • Existence is explicit and never inferred. A subframe is materialized by any of:
    • a stored trigger triple F rule F#key;
    • a reference by canonical IRI in stored data, e.g. K3 mira:opposes L3#recontextualization. Recognizing it is a non-OWL step: parse the IRI, check that key names a rule that applies to F's class, then add the trigger;
    • an explicit request to a library (see on demand, below).
  • OWL never mints. OWL RL creates no individuals, and every chain starts from a rule's inverse, so without a trigger nothing fires. Checked in check_evidence.py: with every trigger removed, the closure contains no subframe IRI that the stored data doesn't already mention. Do not publish existential axioms such as Evidence ⊑ ∃observationStatement.Claim.
  • Content is ordinary entailment. Given existence, the content is deterministic. The OWL chains and a library compute the same thing; conformance fixtures keep them in agreement.
  • Cascade. Only a binding whose value is another implied subframe can cascade. The type, constant slots, and bindings that end in a literal or a stored record never do.
    • Default: the binding cascades if the subframe class requires that slot. Without the referent, the subframe would fail its own shape.
    • Optional slots are on demand. An override sits on the binding, not on the slot, since the same property can be required in one subframe and optional in another. Normally the only override is cascade: true on an optional slot; cascade: false on a required one produces a subframe that is invalid until someone else materializes the referent.
    • A cascade is the reference rule applied to generated triples: the emitted binding triple refers to the referent by its canonical IRI. Cross-record cases work the same way: L3#recontextualization dgb:source E3#observationStatement sits in L3's store.
  • On demand has two readings, and both hold:
    1. The slot fills in when its referent exists for any reason. This is what OWL does: the chain goes through the general property, so it fires once the referent's trigger is there. Checked in check_evidence.py on L3#recontextualization.
    2. Asking a library for that slot materializes the referent. Only this one leaves a stored trigger behind.
  • Store the trigger, not the closure, as before. Storing a closure doesn't create anything, but it can go stale.

A library implementing this is specified in library.md (first version in ts/, fixtures in fixtures/).

Cascade by default is a library behavior: OWL can't mint the referent, so in OWL alone every binding to a subframe behaves as on demand.

Caveats / open

  • The flattened edge :x :br :y is not entailed. OWL cannot turn an individual into a predicate, so this needs one small non-OWL rule (SPARQL CONSTRUCT or code). The punning has the same gap today.
  • Rule keys can collide. For the key conventions, see Application: MIRA Evidence. External rules (ext:R rdfs:domain :SomeFrame, defined by a third party) need a key derived from the full rule IRI, for example a truncated hash of it.
  • OWL Full. The chains make dgb:source / dgb:destination composite properties, so in OWL 2 DL they could no longer appear in cardinality restrictions. We are already in OWL Full (the NodeSchema restriction on rdfs:subClassOf), so this changes nothing in practice.
  • Every frame type adds chain axioms on the shared DG properties. That is legal, but those axioms live on DG's properties rather than in the frame's module.
  • To test next:
    • nested subframes: a rule whose domain is a subframe class, with IRIs like F#a.b;
    • non-triple-shaped subframes;
    • multi-step paths in bindings;
    • optional slots: when a chain yields nothing, the slot is simply absent;
    • whether reasonable handles the inverse-led chains as well as owlrl does.

Application: MIRA Evidence (two layers, 2026-10-25)

Source: the MIRA evidence report (not yet public). The earlier single-layer version (one Evidence, one target) is in v1/, with its reasoning.

Example: evidence.ttl (the report's Photograph 51 and ivermectin examples) and evidence_edge_cases.ttl, with step 2 in effective_text.rq and text_anomalies.rq. Checked by uv run python check_evidence.py.

Two frames

  • Evidence E holds the observation itself and does not depend on the claims it is used for. Stored: title, sourceDocument, observationBase.
  • Evidence link L is a supports/opposes relation instance whose source is an Evidence and whose destination is the target claim. Stored: source, target, polarity (its class), and optionally a reformulation (mira:recontextualizedText). mira:EvidenceLink is inferred (intersection of mira:epistemicLink with "source is an Evidence"), so a plain claim-to-claim link is not one.
Subframe ID Contents
Observation statement (Claim) E#observationStatement text = E's title
Interpretation link (mira:interprets) E#interpretationLink observation statement → observation base
Validity claim E#validityClaim declared, left implicit in the examples
Re-contextualized claim L#recontextualized default: same text as the observation statement
Re-contextualization (mira:recontextualizes) L#recontextualization observation statement → re-contextualized claim
Epistemic link (supports/opposes) L#epistemicLink re-contextualized claim → target
Bycelium Evidence (mapping) L#bycelium contribution, premise, target

observationOriginActivity is a derived slot rather than a subframe: (observationBase prov:wasGeneratedBy). This chain direction is precise; the one rejected in the MIRA schema (mira.ttl) went the other way.

Keys are the slot names of the frame definitions. Record IRIs end in #it, so these are sibling fragments (‹record›/‹cid›#‹key›); it is reserved.

What carries over from v1

  • Abstract mira:epistemicLink over supports/opposes, mirrored as classes.
  • Polarity in subframes: one minting rule per polarity, sharing the key.
  • Push vs pull: push chains go on the inverse of the minting rule sub-property; pull chains go on the general slot property.
  • Two-step inference for text precedence (stratified SPARQL after the OWL RL closure).
  • Endorsements target version-pinned IRIs. References that rules read through must be pinned.
  • Identical statements are not owl:sameAs. A contestable equivalence relation is for later.

Dropped: the single mandatory target per Evidence, and observationStatementText (the text is the Evidence title, as the report decided).

Text precedence (step 2)

Claim Effective text
Observation statement, minted the Evidence's title
Observation statement, referenced the claim's own title
Re-contextualized, minted, with a reformulation on L the reformulation
Re-contextualized, minted, without one the observation statement's effective text (the default)
Re-contextualized, referenced the claim's own title

The default is why the re-contextualized claim needs step 2: OWL can't express "same text unless reformulated". The second update reads the first one's output, so the updates run in order.

text_anomalies.rq reports:

  • a minted claim carrying a title its frame didn't give it;
  • an Evidence whose title differs from the claim it references. This is often a paraphrase, so it may be informational rather than an error.

Links as targets

K3 mira:opposes L3#recontextualization requires widening the range of the epistemic relations. The example uses mira:Arguable, the name already floated in the MIRA schema (mira.yaml), as a superclass of mira:Claim and dgb:RelationInstance. With the current range (Claim), OWL RL types L3#recontextualization as a Claim; the check fails that way.

Still open

  • Predicate names: mira:interprets, mira:recontextualizes, mira:recontextualized, mira:recontextualizedText, mira:EvidenceLink (the report's working name) are all placeholders.
  • The epistemicLink slot of the evidence link shares its name with the mira:epistemicLink relation. That's fine as a fragment key, but it needs a distinct property name if the slot ever gets one.
  • The Discourse Graphs mapping (E#dg) is not encoded. It is mostly what is stored, but its supports/opposes slots would need the flattened edge E mira:supports C, which OWL can't produce from the punned instance (see Caveats).
  • SourceDocument contains Result (dashed in the report) could be a chain (inverse sourceDocument, observationBase), but it needs a property. Not encoded.
  • The validity claim's topic is dotted (implicit) in the report, so it has no chain.
  • Competing re-contextualized claims (the counter-proposal mechanism) are out of scope, as in the report.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages