public Set<OWLAxiom> getSameSourceAxioms(OWLAxiom axiom, Set<OWLAxiom> toSearch) {
        Set<OWLAxiom> axiomSources = axiom2SourceMap.get(axiom);
        if(axiomSources == null) {
            return Collections.emptySet();
        }
        Set<OWLAxiom> result = new HashSet<OWLAxiom>();
        for(OWLAxiom ax : toSearch) {
            Set<OWLAxiom> sources = axiom2SourceMap.get(ax);
            if(sources != null) {
                for(OWLAxiom axiomSourceAxiom : axiomSources) {
                    if(sources.contains(axiomSourceAxiom)) {
                        result.add(ax);
                        break;
                    }
                }
            }
        }
        return result;
    }
public Set < OWLAxiom > getSameSourceAxioms ( OWLAxiom axiom , Set < OWLAxiom > toSearch ) { Set < OWLAxiom > axiomSources = axiom2SourceMap . get ( axiom ) ; if ( axiomSources == null ) { return Collections . emptySet ( ) ; } Set < OWLAxiom > result = new HashSet < OWLAxiom > ( ) ; for ( OWLAxiom ax : toSearch ) { Set < OWLAxiom > sources = axiom2SourceMap . get ( ax ) ; if ( sources != null ) { for ( OWLAxiom axiomSourceAxiom : axiomSources ) { if ( sources . contains ( axiomSourceAxiom ) ) { result . add ( ax ) ; break ; } } } } return result ; }
Gets axioms that have the same source axioms as the specified axiom.
@param axiom The axiom for which axioms with the same sources will be retrieved.
@param toSearch The set of axioms to seach for the same sources.  If <code>toSearch</code>
contains <code>axiom</code> then <code>axiom</code> will simply be ignored.
@return The axioms that have the same sources as <code>axiom</code>.  This set will not contain
<code>axiom</code>.