Resolve broken value encoding for HexBinary #226
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
orinoco/dump-things-service#226
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Related to orinoco/shacl-vue#351 and orinoco/dump-things-server#219
Using the #222 setup and a thing/v2 schema that was modified like this:
I can submit the following JSON record fine
It lands as
Submitting the equivalent record in TTL format (shown below) corrupts the record:
in the backend the record lands as
Serverside logs warn about this, but user-facing no error pops up. This is #219
It was suggested elsewhere that the following change could sidestep the issue
This does NOT appear to be the case. The outcome is unchanged. Neither does removing
typeof" string("string argument without an encoding").It was also suggested that the type
urisetting confuses rdflib. A possible change would beWhen the TTL document is modified to say
this does indeed submit, and a non-corrupted record lands in the backend!! Passing an invalid value for the HexBinary also get's caught (unlike the situation described in #219). Sadly, the respective error is not very nice
(Notice the
sin the middle of the value). A notation is supplied, but is invalid.Conclusion:
Switching away from
xsd:hexBinaryfeels wrong. However, it does fix both the encoding, and the inconsequential validation described in #219.This is now implemented and published as of https://github.com/psychoinformatics-de/datalad-concepts/pull/552