Skip to content

Commit 4443659

Browse files
committed
fix: correct termType comparison for literal objects in rdfGraphToNodes
1 parent 746866a commit 4443659

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const rdfGraphToNodes = (store: rdflib.Store): GraphData => {
9191
// Create links for relevant relationships
9292
const includesElement = CONFIG.relationProperties.some((item: string) => pred.includes(item));
9393
if (includesElement) {
94-
const isLiteral = statement.object.termType === "literal";
94+
const isLiteral = statement.object.termType === "Literal";
9595

9696
if (!isLiteral) {
9797
const group = predToGroup(pred);

0 commit comments

Comments
 (0)