Skip to content

fix Inconsistent string typing and encoding in SPARQL JSON results#1397

Open
bdevloed wants to merge 3 commits intoopenlink:develop/7from
bdevloed:fix/20260223-fix-inconsistent-string-typing-json
Open

fix Inconsistent string typing and encoding in SPARQL JSON results#1397
bdevloed wants to merge 3 commits intoopenlink:develop/7from
bdevloed:fix/20260223-fix-inconsistent-string-typing-json

Conversation

@bdevloed
Copy link
Copy Markdown

@bdevloed bdevloed commented Feb 23, 2026

disclaimer: I'm not really an expert in C or the virtuoso code base - I've used some LLM assistance but did verify consistency with e.g. xml serialisation. I've also added some tests I ran on the build before and after the change. I also checked for regressions with make check.

Any feedback is welcome,

Fixes #1361

The original issue consists of two parts:

  • Type inconsistency, which is already fixed in #e0e4ec0
  • Encoding issue/inconsitency, fixed in this PR.

Before — België in JSON:

{ "name": { "type": "literal", "value": "Belgi\u00EB" }}

After — België in JSON:

{ "name": { "type": "literal", "value": "België" }}

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.

Inconsistent string typing in SPARQL JSON results

1 participant