/* * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors * * SPDX-License-Identifier: EPL-2.0 */ package tools.refinery.store.query.view; import tools.refinery.store.representation.Symbol; import tools.refinery.store.representation.TruthValue; import tools.refinery.store.tuple.Tuple; public class ForbiddenView extends TuplePreservingView { public ForbiddenView(Symbol symbol) { super(symbol, "forbidden"); } @Override protected boolean doFilter(Tuple key, TruthValue value) { return !value.may(); } }