solid-client-js icon indicating copy to clipboard operation
solid-client-js copied to clipboard

Expose ParserOption on more places

Open ajuvercr opened this issue 1 year ago • 1 comments

Search terms you've used

  • ParserOption
  • getSolidDatasetWithAcl

Bug description

It is currently not possible to add parser options when getting a solid dataset with acl. This is problematic when the resource is not text/turtle but something like application/trig.

Expected result

getSolidDatasetWithAcl returns the expected dataset with acl options without crashing.

Actual result

getSolidDatasetWithAcl crashes with a parse error.

Additional information

Note that I don't expect the solid-client to handle graphs correctly, as I understand it no graphs are introduced anywhere. My use case is to use this function to get and update the acl files for a trig resource.

ajuvercr avatar Oct 15 '24 09:10 ajuvercr

Hello @ajuvercr , thanks for opening (and proposing a fix) for this! I'll review the PR right away, sorry for the delay.

NSeydoux avatar Oct 21 '24 07:10 NSeydoux