From 70e9e25b7ea6a327b3f660da7eaac7a223420d59 Mon Sep 17 00:00:00 2001 From: Guillaume Sarthou Date: Wed, 26 Jun 2024 14:15:55 +0200 Subject: [PATCH] [Subscription] comparition with classes --- src/core/Occasions/Subscription.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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