Skip to content

merge from zazuko - #38

Merged
MathiasVDA merged 2 commits into
Matdata-eu:mainfrom
rdfjs:main
Dec 10, 2025
Merged

MathiasVDA merged 2 commits into
Matdata-eu:mainfrom
rdfjs:main

Conversation

@MathiasVDA

Copy link
Copy Markdown
Collaborator

No description provided.

vemonet and others added 2 commits December 8, 2025 11:35
Fix the `json.ts` parser for ASK queries when the `queryResponse` is a string
Copilot AI review requested due to automatic review settings December 10, 2025 10:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR merges changes from Zazuko that add a defensive check to the JSON parser to handle SPARQL ASK query responses. The change prevents errors when attempting to post-process bindings on query responses that don't contain a results field.

  • Added null-safety check for json.results before accessing json.results.bindings
  • Ensures consistency between the two code paths (string and object responses) in the JSON parser

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MathiasVDA
MathiasVDA merged commit 80ce194 into Matdata-eu:main Dec 10, 2025
16 of 17 checks passed

This branch had an error being deployed

1 failed deployment
github-pages — ceb6338d Deployed Dec 8, 2025 by MathiasVDA via deploy #54
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.

4 participants