Skip to content

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

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

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>
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