Package org.semanticweb.owl.util

Examples of org.semanticweb.owl.util.NamedConjunctChecker$NamedConjunctCheckerVisitor



    public Integer recomputeMetric() {
        Set<OWLClass> processed = new HashSet<OWLClass>();
        Set<OWLClass> clses = new HashSet<OWLClass>();
        NamedConjunctChecker checker = new NamedConjunctChecker();
        for(OWLOntology ont : getOntologies()) {
            for(OWLClass cls : ont.getReferencedClasses()) {
                if(processed.contains(cls)) {
                    continue;
                }
                processed.add(cls);
                int count = 0;
                for(OWLDescription sup : cls.getSubClasses(getOntologies())) {
                    if(checker.hasNamedConjunct(sup)) {
                        count++;
                    }
                    if(count > 1) {
                        clses.add(cls);
                        break;
View Full Code Here

TOP

Related Classes of org.semanticweb.owl.util.NamedConjunctChecker$NamedConjunctCheckerVisitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.