All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.coode.oppl.search.OPPLInferredOWLAxiomSearchTree Maven / Gradle / Ivy

package org.coode.oppl.search;

import org.coode.oppl.ConstraintSystem;
import org.coode.oppl.exceptions.RuntimeExceptionHandler;

/** @author Luigi Iannone */
public class OPPLInferredOWLAxiomSearchTree extends AbstractOPPLAxiomSearchTree {
    /** @param constraintSystem
     *            constraintSystem
     * @param runtimeExceptionHandler
     *            runtimeExceptionHandler */
    public OPPLInferredOWLAxiomSearchTree(ConstraintSystem constraintSystem,
            RuntimeExceptionHandler runtimeExceptionHandler) {
        super(constraintSystem, runtimeExceptionHandler);
    }

    @Override
    protected boolean goalReached(OPPLOWLAxiomSearchNode start) {
        boolean toReturn = start.getBinding().isLeaf();
        if (toReturn) {
            toReturn = getConstraintSystem().getReasoner().isEntailed(start.getAxiom());
        }
        return toReturn;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy