Skip to content

Add basic_search and fix node() for external refs in FunOwlImplementation#878

Closed
cmungall wants to merge 1 commit into
mainfrom
funowl-search-and-stub-nodes
Closed

Add basic_search and fix node() for external refs in FunOwlImplementation#878
cmungall wants to merge 1 commit into
mainfrom
funowl-search-and-stub-nodes

Conversation

@cmungall

Copy link
Copy Markdown
Collaborator

Summary

  • Implements basic_search() on FunOwlImplementation, supporting exact, partial, starts-with, and regex matching across labels, identifiers, aliases, and mapped identifiers
  • Fixes node() to return a stub Node for entities referenced but not defined in the ontology (e.g. external CURIEs like GO:0008150 in a CL ontology file), instead of returning None which broke graph/viz output
  • Adds unit tests for search and stub node behavior, plus CLI integration tests for info, search, and viz with OFN input

Test plan

  • poetry run pytest tests/test_implementations/test_funowl.py::TestFunOwlImplementation::test_basic_search
  • poetry run pytest tests/test_implementations/test_funowl.py::TestFunOwlImplementation::test_stub_nodes_for_unresolved_external_references
  • poetry run pytest tests/test_cli.py::TestCommandLineInterface::test_funowl_info_search_and_graph_outputs

🤖 Generated with Claude Code

… FunOwlImplementation

Implements basic_search() supporting exact, partial, starts-with, and regex
matching across labels, identifiers, aliases, and mapped identifiers.

Fixes node() to return a stub Node for entities referenced but not defined
in the ontology (e.g. external CURIEs), instead of returning None which
broke graph visualization output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cmungall

cmungall commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #891. Current main already has most of this PR's FunOWL implementation, and #891 keeps the newer mapping work while fixing the remaining search syntax regression and adding the relevant regression coverage.

@cmungall cmungall closed this Jul 2, 2026
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