Start here / One synthetic withdrawal

An ontology gives a team shared names for things and their connections. A graph records those named things and connections. Here, we keep which code a statement concerns, where it came from, and what has not been checked together.

Watch the explainer · Read the plain-language guide · See the animated example

One withdrawal. Three things to keep separate.

Request 150.00 from a balance of 100.00. What should happen—and what do we actually know?

The supplied requirement says to reject the overdraft without reducing the balance. The source excerpts contain a rejection guard. A Java adaptation is proposed, but the behavioral comparison has not run. Connecting these statements is useful only if we keep those differences visible.

SAO 3.0.0 · candidate / SpecSpec 0.1.0 · draft

Requirement
Reject the overdraft and leave the balance at 100.00.
Code observation
The source guard rejects; the claim is observed and unreviewed.
Test evidence
No behavioral comparison has run. Outcome: not_run.

01 / Intent is not an observation

What should happen?

Requirement no-overdraft · origin: supplied · mode: normative

The replacement shall reject withdrawals exceeding the available balance without reducing that balance.

Acceptance criterion overdraft-criterion · origin: supplied · mode: normative

Given balance 100.00 and requested amount 150.00, rejection shall leave the balance at 100.00.

That is the expected outcome, not an execution result. The decision modernization-decision has status proposed: use an explicit amount/balance comparison and reject before subtraction. A Java exception is a proposed adaptation of the legacy display outcome, not proof that both programs behave identically.

02 / Connect the story without flattening it

A graph gives each part a name.

  • What is in the software? SAO describes software elements and their connections. Here it names one method: Account.withdraw.
  • What should happen, and what supports a claim? SpecSpec describes intended behavior, claims, decisions, and evidence, with separate statuses.
  • Which statements refer to which software elements? The optional bridge records those connections. A connection is not a certification.
Function, requirement, evidence Reading order, not RDF predicates: Account.withdraw, the supplied no-overdraft requirement, then observed modern-behavior supported by modern-guard at Java lines 5–8. Behavioral comparison remains not_run. Withdrawal functionAccount.withdrawCallableUnit · method Reject an overdraftno-overdraftsupplied · normative Observed rejection guardmodern-behaviorobserved · unreviewedmodern-guard · Java lines 5–8 Reading path, not a program run. Comparison outcome: not_run Function, requirement, evidence Read Account.withdraw, then the supplied no-overdraft requirement, then modern-behavior and its supporting modern-guard anchor at Account.java lines 5–8. The optional RequirementImplementationLink connects callable and requirement with modern-behavior as basis_claim. The arrows show reading order, not direct RDF predicates. Behavioral comparison remains not_run. Withdrawal functionAccount.withdrawCallableUnit · method read next Reject an overdraftno-overdraftsupplied · normative read next Observed rejection guardmodern-behaviorobserved · unreviewedmodern-guard · Java lines 5–8 Reading path, not a program run.Comparison outcome: not_run
The same identities connect the story to the files below. SAO's System and Module are useful context, but are not asserted in this fixture: it supplies one callable, not a complete architecture.

Optional technical detail: identities, bridge links, and Turtle

The optional bridge connects identities.

The RequirementImplementationLink implementation-link, titled Proposed Java grounding, has three explicit relationships: callable → Account.withdraw, requirement → no-overdraft, and basis_claim → modern-behavior. That claim uses supporting_anchors → modern-guard to locate its support. Inspect the bridge triples or look up the bridge definition.

Now read the actual Turtle.

SAO means Systems Abstraction Ontology; SpecSpec is the Specification & Evidence Ontology. Turtle is a text format for their RDF graphs. Here is the software fixture, with its prefix declaration:

@prefix sao: <https://ontologies.corestory.ai/sao/> .

<urn:specspec:demo:software:withdraw> a sao:CallableUnit ;
    sao:id "urn:specspec:demo:software:withdraw" ;
    sao:name "Account.withdraw" ;
    sao:callable_type "method" .

Read software.ttl · Look up CallableUnit in the Model explorer

03 / Inspect the support

Trace the statement. Keep its status.

Legacy rejection behavior

origin: observed review: unreviewed

In this excerpt, an amount exceeding the balance takes the DECLINED branch without changing the balance.

withdraw.cbl, lines 8–12 · legacy-behavior → legacy-guard → legacy-snapshot

Java rejection behavior

origin: observed review: unreviewed

In this excerpt, an amount exceeding the balance throws before returning an updated balance.

Account.java, lines 5–8 · modern-behavior → modern-guard → modern-snapshot

Each claim points to an EvidenceAnchor with a path and line range, and a SourceSnapshot with a revision digest. The source manifest connects those snapshots to fixture bytes. An anchor makes a statement traceable; it does not make it true.

04 / From reading to reuse

Inspect the model. Try the checks.

SAO guide · Current Turtle migration notes · SpecSpec model · Downloads

The Model explorer (The RDF Garden) is a display projection, not a lossless RDF format or a browser validator. Some older SAO guide prose reflects archived LinkML; use current Turtle and migration notes for exact semantics. The ontologies keep independent namespaces and versions; SpecSpec can be used without SAO.