Skip to content

Commit

Permalink
fix: check only for MCQ
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Aug 28, 2024
1 parent 9e877b3 commit c65f8c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/query_graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
}
})
Expand All @@ -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<string[]> {
Expand Down

0 comments on commit c65f8c8

Please sign in to comment.