Skip to content

Add OWLtoSOLRidWithSelfQueryProcessor for class-connectivity chains#104

Merged
Robbie1977 merged 1 commit into
v2.2.4.11from
fix/owl-solr-include-self
May 12, 2026
Merged

Add OWLtoSOLRidWithSelfQueryProcessor for class-connectivity chains#104
Robbie1977 merged 1 commit into
v2.2.4.11from
fix/owl-solr-include-self

Conversation

@Robbie1977

Copy link
Copy Markdown
Contributor

OWLERY's /subclasses returns strict subclasses; leaf classes produce an empty list and the existing chain falls through to NO_RESULTS_PLACEHOLDER, so any Solr lookup on the focus term's own doc returns zero rows. Reproduced on FBbt_00100246 (MBON11) — v3-cached has rows in downstream_connectivity_query but the live chain never asks for the term's own doc.

New processor OWLtoSOLRidWithSelfQueryProcessor (bean id owleryToSolrIdWithSelfQueryProcessor) mirrors OWLtoSOLRidQueryProcessor but prepends variable.getId() to the result list using a LinkedHashSet for dedupe.

Existing OWLtoSOLRidQueryProcessor is untouched, so chains like SubclassesOf / PartsOf / "neurons-in-region" queries keep correct semantics.

Companion XMI change: VirtualFlyBrain/geppetto-vfb PR introducing the new chain step (fix/connectivity-class-include-self -> development). Both must ship together.

Test plan: rebuild geppetto-vfb v2-dev with this bundle, smoke MBON11 (leaf, expect rows) and FBbt_00003686 (Kenyon cell, 37 subclasses).

OWLERY's /subclasses returns strict subclasses, so leaf classes produce
an empty list and any Solr chain that depends on the focus term's own
per-class doc (downstream_connectivity_query,
upstream_connectivity_query) silently returns zero rows.

New processor prepends variable.getId() to the resulting Solr
terms-filter list, LinkedHashSet for dedupe. Existing
OWLtoSOLRidQueryProcessor is untouched, so chains where self-inclusion
would be semantically wrong (SubclassesOf, PartsOf, neurons-in-region
queries) keep current behaviour.

Companion XMI change wiring this processor into the class-connectivity
chains is in VirtualFlyBrain/geppetto-vfb.
@Robbie1977 Robbie1977 merged commit fb57cad into v2.2.4.11 May 12, 2026
1 check failed
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