From c65f8c8c88b82b9506de6ffb996d9abaf1844b8d Mon Sep 17 00:00:00 2001 From: tokebe <43009413+tokebe@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:09:27 -0400 Subject: [PATCH] fix: check only for MCQ --- src/query_graph.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/query_graph.ts b/src/query_graph.ts index a5fbcf6a..9aff9d12 100644 --- a/src/query_graph.ts +++ b/src/query_graph.ts @@ -183,9 +183,9 @@ export default class QueryGraph { }); } - _validateQueryNoSetInterpretation(queryGraph: TrapiQueryGraph): boolean { + _validateNoMCQ(queryGraph: TrapiQueryGraph): boolean { return Object.values(queryGraph.nodes).some((node) => { - if (node.set_interpretation) { + if (node.set_interpretation && node.set_interpretation.toLowerCase() === 'many') { throw new NotImplementedError('NotImplementedError', 'Set interpretation is not yet implemented.') } }) @@ -202,7 +202,7 @@ export default class QueryGraph { this._validateBatchSize(queryGraph); this._validateCycles(queryGraph); this._validateNoDuplicateQualifierTypes(queryGraph); - this._validateQueryNoSetInterpretation(queryGraph); + this._validateNoMCQ(queryGraph); } private async _findNodeCategories(curies: string[]): Promise {