Skip to content

fix: unbounded ?focus_node variable in generated SPARQL query for top concepts - #454

Merged
edmondchuc merged 2 commits into
mainfrom
edmond/fix-top-concept
Jan 12, 2026
Merged

fix: unbounded ?focus_node variable in generated SPARQL query for top concepts#454
edmondchuc merged 2 commits into
mainfrom
edmond/fix-top-concept

Conversation

@edmondchuc

@edmondchuc edmondchuc commented Jan 9, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes the generated sparql query for top-concepts api route where the sparql ?focus_node variable is unbounded.

Fixes #453

This PR prevents ?focus_node <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?default_class_var . from being added if the query is a concept_hierarchy_query.

@edmondchuc edmondchuc changed the title fix: bug in generated sparql query for top-concepts api route where the sparql ?focus_node variable is unbounded fix: unbounded ?focus_node variable in generated SPARQL query for top concepts Jan 9, 2026
@lalewis1

Copy link
Copy Markdown
Collaborator

Thanks Edmond,

I don't really understand the implications for concept-heierachy queries, but the change seems pretty self contained.

@edmondchuc
edmondchuc merged commit b5c9a04 into main Jan 12, 2026
4 checks passed
@edmondchuc
edmondchuc deleted the edmond/fix-top-concept branch January 12, 2026 01:52
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.23.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Top Concept API endpoint SPARQL query bug

3 participants