Skip to content

Commit

Permalink
[Subscription] comparition with classes
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthou committed Jun 26, 2024
1 parent fcc3148 commit 70e9e25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/Occasions/Subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70e9e25

Please sign in to comment.