diff --git a/src/core/Occasions/Subscription.cpp b/src/core/Occasions/Subscription.cpp index 95ef9a8..310e159 100644 --- a/src/core/Occasions/Subscription.cpp +++ b/src/core/Occasions/Subscription.cpp @@ -135,7 +135,8 @@ namespace mementar { if(pattern.isObjectIndividual() == false) { - if(onto_->individuals.isA(triplet.object_, pattern.object_) == false) + if((onto_->individuals.isA(triplet.object_, pattern.object_) == false) && + (onto_->classes.isA(triplet.object_, pattern.object_) == false)) return false; } // object match