fix: Remove metadata content-type assumption from QuadUtil

This commit is contained in:
Joachim Van Herwegen
2020-12-15 16:16:08 +01:00
parent 1464288b0f
commit a114d00827
4 changed files with 47 additions and 21 deletions

View File

@@ -246,7 +246,7 @@ export class DataAccessorBasedStore implements ResourceStore {
if (representation.metadata.contentType === INTERNAL_QUADS) {
quads = await arrayifyStream(representation.data);
} else {
quads = await parseQuads(representation.data);
quads = await parseQuads(representation.data, representation.metadata.contentType);
}
} catch (error: unknown) {
if (error instanceof Error) {