diff --git a/src/edge_manager.ts b/src/edge_manager.ts index 08a73066..145e415c 100644 --- a/src/edge_manager.ts +++ b/src/edge_manager.ts @@ -208,8 +208,9 @@ export default class QueryEdgeManager { const objectIDs = [record.object.original, record.object.curie, ...record.object.equivalentCuries]; // there must be at least a minimal intersection - const subjectMatch = subjectIDs.some((curie) => execSubjectCuries.includes(curie)); - const objectMatch = objectIDs.some((curie) => execObjectCuries.includes(curie)); + const subjectMatch = + subjectIDs.some((curie) => execSubjectCuries.includes(curie)) || execSubjectCuries.length === 0; + const objectMatch = objectIDs.some((curie) => execObjectCuries.includes(curie)) || execObjectCuries.length === 0; //if both ends match then keep record