fix: Only set content-type for documents in sparql store

This commit is contained in:
Joachim Van Herwegen
2020-12-04 11:52:53 +01:00
parent 35aec9cce7
commit d7e189cdd8
2 changed files with 3 additions and 3 deletions

View File

@@ -95,7 +95,9 @@ export class SparqlDataAccessor implements DataAccessor {
}
const metadata = new RepresentationMetadata(identifier.path).addQuads(quads);
metadata.contentType = INTERNAL_QUADS;
if (!isContainerIdentifier(identifier)) {
metadata.contentType = INTERNAL_QUADS;
}
// Need to generate type metadata for the root container since it's not stored
if (identifier.path === this.base) {