it.unife.ml.probowlapi.monitor.NullRendererTimeExplanationProgressMonitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prob-owlapi Show documentation
Show all versions of prob-owlapi Show documentation
This package encapsulates OWL API adding tools for managing DISPONTE probabilistic semantics. Used by the reasoner BUNDLE.
The newest version!
/**
* This file is part of BUNDLE.
*
* BUNDLE is a probabilistic reasoner for OWL 2 ontologies.
*
* BUNDLE can be used both as module and as standalone.
*
* BUNDLE and all its parts are distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
*/
package it.unife.ml.probowlapi.monitor;
import java.util.HashSet;
import java.util.Set;
import org.semanticweb.owl.explanation.api.Explanation;
import org.semanticweb.owl.explanation.api.ExplanationGenerator;
import org.semanticweb.owlapi.model.OWLAxiom;
/**
*
* @author Giuseppe Cota
* @param
*/
public class NullRendererTimeExplanationProgressMonitor
extends TimeMonitorImpl
implements BundleRendererExplanationProgressMonitor2 {
private final Set> setExplanations = new HashSet<>();
@Override
public void foundNoExplanations(OWLAxiom query) {
}
@Override
public void foundExplanation(ExplanationGenerator generator, Explanation explanation, Set> allFoundExplanations) {
setExplanations.add(explanation);
}
@Override
public Set> getFoundExplanations() {
return setExplanations;
}
}