Skip to content

SOLID POD: Error when reading large file with a single chunk #532

@cdawei

Description

@cdawei

If there is only a single chunk stored in a large file, loading it throws an error:

type 'String' is not a subtype of type 'Iterable<dynamic>'
#0      fetch (package:solidpod/src/solid/utils/large_file_helper.dart:448:30)
<asynchronous suspension>
#1      readLargeFileAsBytes (package:solidpod/src/solid/utils/large_file_helper.dart:97:3)
<asynchronous suspension>

The error is due to a difference between Dart and RDF Turtle on how single-element-list is represented:

  • Dart: [element]
  • RDF Turtle: element (i.e., the representation of a single-element-list is the same as an element)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions