Skip to content

Overhaul search, add reviewer editing & provenance origin, fix stats - #40

Merged
ajatix merged 1 commit into
mainfrom
improvements-1
Aug 19, 2026
Merged

ajatix merged 1 commit into
mainfrom
improvements-1

Conversation

@ajatix

@ajatix ajatix commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Search

  • Collapse the Lucene index from two fields (rdfs:label / rdfs:comment with a name-over-description boost) to a single text field fed by rdfs:label, rdfs:comment, and the SKOS labelling and note properties.
  • Analyse and query with EnglishAnalyzer via a classic Lucene QueryParser (ComplexPhraseQueryParser), matching exactly after analysis: recall now comes from English stemming rather than edit-distance fuzz. Every term is required. Ranking is Lucene relevance weighted by view popularity.
  • Deliberately omit a graphField from the entity map (it scopes queries by graph and returns nothing on the default-graph index).

Reviewer editing

  • Reviewers can edit and delete staged statements and rename subjects on a branch, and propose edits to already-approved resources (revise), staged for review like any other change (ResourceEdit, BranchChange, MergeResult, retraction graphs, DescribeEditController, statement-editor.js/describe.js).

Provenance origin

  • ProvenancedStatement carries a StatementOrigin (ASSERTED / ONTOLOGY / INFERRED) so describe no longer mislabels the ontology's own axioms as inferred; /describe badges them accordingly.

Stats

  • Rename CortexStats.inferenceTriples() to inferredTriples() and count only the reasoner's derivations (dataset less assertions less ontology axioms).
  • Fix countPendingBranches to filter with CortexNamespace.isBranch: it had excluded only provenance, so the cortex://usage graph a view creates showed as a phantom pending branch the /branches list never displayed.

Assertions page

  • Show an instance count per class on /assertions (countInstances over the inference closure, so subclass/inferred memberships count).

MCP

  • ingest can auto-approve on explicit human confirmation via elicitation; the server runs the streamable protocol so elicitation works.

Docs

  • Update README, CLAUDE.md, and the docs site for the search behaviour, the instance count, and the pending-branch fix.

Search
- Collapse the Lucene index from two fields (rdfs:label / rdfs:comment
  with a name-over-description boost) to a single `text` field fed by
  rdfs:label, rdfs:comment, and the SKOS labelling and note properties.
- Analyse and query with EnglishAnalyzer via a classic Lucene QueryParser
  (ComplexPhraseQueryParser), matching exactly after analysis: recall now
  comes from English stemming rather than edit-distance fuzz. Every term
  is required. Ranking is Lucene relevance weighted by view popularity.
- Deliberately omit a graphField from the entity map (it scopes queries by
  graph and returns nothing on the default-graph index).

Reviewer editing
- Reviewers can edit and delete staged statements and rename subjects on a
  branch, and propose edits to already-approved resources (revise), staged
  for review like any other change (ResourceEdit, BranchChange, MergeResult,
  retraction graphs, DescribeEditController, statement-editor.js/describe.js).

Provenance origin
- ProvenancedStatement carries a StatementOrigin (ASSERTED / ONTOLOGY /
  INFERRED) so describe no longer mislabels the ontology's own axioms as
  inferred; /describe badges them accordingly.

Stats
- Rename CortexStats.inferenceTriples() to inferredTriples() and count only
  the reasoner's derivations (dataset less assertions less ontology axioms).
- Fix countPendingBranches to filter with CortexNamespace.isBranch: it had
  excluded only provenance, so the cortex://usage graph a view creates showed
  as a phantom pending branch the /branches list never displayed.

Assertions page
- Show an instance count per class on /assertions (countInstances over the
  inference closure, so subclass/inferred memberships count).

MCP
- ingest can auto-approve on explicit human confirmation via elicitation;
  the server runs the streamable protocol so elicitation works.

Docs
- Update README, CLAUDE.md, and the docs site for the search behaviour,
  the instance count, and the pending-branch fix.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ajatix
ajatix merged commit ac81510 into main Aug 19, 2026
3 checks passed
@ajatix
ajatix deleted the improvements-1 branch August 19, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant