You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd be in favor of removing the addStatement API or aliasing it to add. Since add is already a method on Formula, we can just modify that method to detect whether its arguments are a statement or separate s, p, o, and g objects.
The
addStatement
method onFormula
objects adds a statement to a graph but doesn't index it. But sinceIndexedFormula
inherits fromFormula
, it gets the method too. If you calladdStatement
instead ofadd
on an indexed formula your querying gets broken since the indices never update.I'd be in favor of removing the
addStatement
API or aliasing it toadd
. Sinceadd
is already a method onFormula
, we can just modify that method to detect whether its arguments are a statement or separates
,p
,o
, andg
objects.This relates to #42, IMO
The text was updated successfully, but these errors were encountered: