/** * Remove the {@link ContradictionOverBackwardLinkRule} from the * {@link BackwardLinkRule}s of the given {@link Context} * * @param context */ public static void removeFrom(Context context) { context.getBackwardLinkRuleChain().remove(MATCHER_); }
/** * Remove the {@link ContradictionOverBackwardLinkRule} from the * {@link BackwardLinkRule}s of the given {@link Context} * * @param context */ public static void removeFrom(Context context) { context.getBackwardLinkRuleChain().remove(MATCHER_); }
/** * Add a {@link ContradictionOverBackwardLinkRule} to the * {@link BackwardLinkRule}s of the given {@link Context} * * @param context */ public static void addTo(Context context) { context.getBackwardLinkRuleChain().getCreate(MATCHER_, FACTORY_); }
/** * Add a {@link ContradictionOverBackwardLinkRule} to the * {@link BackwardLinkRule}s of the given {@link Context} * * @param context */ public static void addTo(Context context) { context.getBackwardLinkRuleChain().getCreate(MATCHER_, FACTORY_); }
/** * Remove the {@link ContradictionOverBackwardLinkRule} from the * {@link BackwardLinkRule}s of the given {@link Context} * * @param context */ public static void removeFrom(Context context) { context.getBackwardLinkRuleChain().remove(MATCHER_); }
/** * Add a {@link ContradictionOverBackwardLinkRule} to the * {@link BackwardLinkRule}s of the given {@link Context} * * @param context */ public static void addTo(Context context) { context.getBackwardLinkRuleChain().getCreate(MATCHER_, FACTORY_); }
/** * Tests if a {@link BackwardLinkChainFromBackwardLinkRule} inferences for * the given {@link ForwardLink} is present in the given {@link Context} * * @param link * @param context * @return {@code true} if the inference is present */ public static boolean containsRuleFor(ForwardLink link, Context context) { BackwardLinkChainFromBackwardLinkRule rule = context .getBackwardLinkRuleChain().find(MATCHER_); return rule == null ? false : rule.forwardLinksByObjectProperty_ .contains(link.getChain(), link.getTarget()); }
/** * Tests if a {@link BackwardLinkChainFromBackwardLinkRule} inferences for * the given {@link ForwardLink} is present in the given {@link Context} * * @param link * @param context * @return {@code true} if the inference is present */ public static boolean containsRuleFor(ForwardLink link, Context context) { BackwardLinkChainFromBackwardLinkRule rule = context .getBackwardLinkRuleChain().find(MATCHER_); return rule == null ? false : rule.forwardLinksByObjectProperty_ .contains(link.getChain(), link.getTarget()); }
/** * Tests if a {@link BackwardLinkChainFromBackwardLinkRule} inferences for * the given {@link ForwardLink} is present in the given {@link Context} * * @param link * @param context * @return {@code true} if the inference is present */ public static boolean containsRuleFor(ForwardLink link, Context context) { BackwardLinkChainFromBackwardLinkRule rule = context .getBackwardLinkRuleChain().find(MATCHER_); return rule == null ? false : rule.forwardLinksByObjectProperty_ .contains(link.getChain(), link.getTarget()); }
/** * Adds a {@link BackwardLinkChainFromBackwardLinkRule} inferences for the * given {@link ForwardLink} in the given {@link Context} * * @param link * @param context * @return {@code true} if the {@link BackwardLinkChainFromBackwardLinkRule} * stored in the {@link Context} is modified as a result of this * operation */ public static boolean addRuleFor(ForwardLink link, Context context) { BackwardLinkChainFromBackwardLinkRule rule = context .getBackwardLinkRuleChain().getCreate(MATCHER_, FACTORY_); return rule.forwardLinksByObjectProperty_.add(link.getChain(), link.getTarget()); }
/** * Removes a {@link BackwardLinkChainFromBackwardLinkRule} inferences for * the given {@link ForwardLink} from the given {@link Context} * * @param link * @param context * @return {@code true} if the {@link BackwardLinkChainFromBackwardLinkRule} * stored in the {@link Context} is modified as a result of this * operation */ public static boolean removeRuleFor(ForwardLink link, Context context) { BackwardLinkChainFromBackwardLinkRule rule = context .getBackwardLinkRuleChain().find(MATCHER_); return rule == null ? false : rule.forwardLinksByObjectProperty_ .remove(link.getChain(), link.getTarget()); }
/** * Adds a {@link BackwardLinkChainFromBackwardLinkRule} inferences for the * given {@link ForwardLink} in the given {@link Context} * * @param link * @param context * @return {@code true} if the {@link BackwardLinkChainFromBackwardLinkRule} * stored in the {@link Context} is modified as a result of this * operation */ public static boolean addRuleFor(ForwardLink link, Context context) { BackwardLinkChainFromBackwardLinkRule rule = context .getBackwardLinkRuleChain().getCreate(MATCHER_, FACTORY_); return rule.forwardLinksByObjectProperty_.add(link.getChain(), link.getTarget()); }
/** * Removes a {@link BackwardLinkChainFromBackwardLinkRule} inferences for * the given {@link ForwardLink} from the given {@link Context} * * @param link * @param context * @return {@code true} if the {@link BackwardLinkChainFromBackwardLinkRule} * stored in the {@link Context} is modified as a result of this * operation */ public static boolean removeRuleFor(ForwardLink link, Context context) { BackwardLinkChainFromBackwardLinkRule rule = context .getBackwardLinkRuleChain().find(MATCHER_); return rule == null ? false : rule.forwardLinksByObjectProperty_ .remove(link.getChain(), link.getTarget()); }
/** * Adds a {@link BackwardLinkChainFromBackwardLinkRule} inferences for the * given {@link ForwardLink} in the given {@link Context} * * @param link * @param context * @return {@code true} if the {@link BackwardLinkChainFromBackwardLinkRule} * stored in the {@link Context} is modified as a result of this * operation */ public static boolean addRuleFor(ForwardLink link, Context context) { BackwardLinkChainFromBackwardLinkRule rule = context .getBackwardLinkRuleChain().getCreate(MATCHER_, FACTORY_); return rule.forwardLinksByObjectProperty_.add(link.getChain(), link.getTarget()); }
/** * Removes a {@link BackwardLinkChainFromBackwardLinkRule} inferences for * the given {@link ForwardLink} from the given {@link Context} * * @param link * @param context * @return {@code true} if the {@link BackwardLinkChainFromBackwardLinkRule} * stored in the {@link Context} is modified as a result of this * operation */ public static boolean removeRuleFor(ForwardLink link, Context context) { BackwardLinkChainFromBackwardLinkRule rule = context .getBackwardLinkRuleChain().find(MATCHER_); return rule == null ? false : rule.forwardLinksByObjectProperty_ .remove(link.getChain(), link.getTarget()); }