Skip to content

Fix KeyError in query() with custom responseVocab#114

Merged
apdavison merged 1 commit into
HumanBrainProject:masterfrom
apdavison:issue107
Jun 18, 2026
Merged

Fix KeyError in query() with custom responseVocab#114
apdavison merged 1 commit into
HumanBrainProject:masterfrom
apdavison:issue107

Conversation

@apdavison

Copy link
Copy Markdown
Member

Summary

  • Threads the id_key parameter from KGClient.query() through to _check_response(), which previously hardcoded "@id" when validating instance_id
  • Queries using a custom responseVocab that maps @id to a different key (e.g. "id") no longer raise KeyError: '@id'

Fixes #107

@apdavison apdavison added the bug Something isn't working label Jun 18, 2026
@apdavison apdavison moved this from Todo to In Progress in fairgraph development Jun 18, 2026
@apdavison apdavison merged commit defdeca into HumanBrainProject:master Jun 18, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in fairgraph development Jun 18, 2026
@apdavison apdavison deleted the issue107 branch June 18, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Development

Successfully merging this pull request may close these issues.

KGClient.query() ignores id_key parameter when validating instance_id

1 participant