Examples of asOWLClass()


Examples of org.semanticweb.owl.model.OWLDescription.asOWLClass()

          for (int j = 0; j < sclasses.length && i < s; j++)
          {
            OWLDescription sclassDescription = (OWLDescription) sclasses[j];
            if (sclassDescription.isAnonymous())
              continue;
            OWLClass sclass = sclassDescription.asOWLClass();
            if (sclass != null && !selection.contains(sclass))
            {
              //System.out.println("--->" + sclass.toString());
              selection.add(sclass);
              remainingConcepts.remove(sclass);
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassExpression.asOWLClass()

            OWLClassExpression superClass = axiom.getSuperClass();
            if (superClass instanceof OWLObjectExactCardinality) {
                OWLObjectExactCardinality cardinality = (OWLObjectExactCardinality) superClass;
                OWLClassExpression filler = cardinality.getFiller();
                assertFalse(filler.isAnonymous());
                IRI iri = filler.asOWLClass().getIRI();
                if (iri.equals(bridge.oboIdToIRI("PR:000005116"))) {
                    foundRel1 = true;
                    assertEquals(1, cardinality.getCardinality());
                } else if (iri.equals(bridge.oboIdToIRI("PR:000027122"))) {
                    foundRel2 = true;
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassExpression.asOWLClass()

        public OWLClassExpression visit(OWLObjectUnionOf ce) {
            Set<OWLClassExpression> descs = new HashSet<>();
            for (OWLClassExpression op : ce.getOperands()) {
                OWLClassExpression flatOp = op.accept(this);
                if (flatOp.isAnonymous()
                        || signature.contains(flatOp.asOWLClass())) {
                    OWLClass name = createNewName();
                    descs.add(name);
                    axioms.add(ldf.getOWLSubClassOfAxiom(name, flatOp));
                } else {
                    descs.add(flatOp);
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassExpression.asOWLClass()

        for (OWLOntology ontology : getRootOntology().getImportsClosure()) {
            for (OWLClassAssertionAxiom axiom : ontology
                    .getClassAssertionAxioms(ind)) {
                OWLClassExpression ce = axiom.getClassExpression();
                if (!ce.isAnonymous()) {
                    result.addNode(classHierarchyInfo.getEquivalents(ce
                            .asOWLClass()));
                    if (!direct) {
                        result.addAllNodes(getSuperClasses(ce, false)
                                .getNodes());
                    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassExpression.asOWLClass()

            for (OWLOntology ont : getRootOntology().getImportsClosure()) {
                for (OWLSubClassOfAxiom ax : ont
                        .getSubClassAxiomsForSubClass(child)) {
                    OWLClassExpression superCls = ax.getSuperClass();
                    if (!superCls.isAnonymous()) {
                        result.add(superCls.asOWLClass());
                    } else if (superCls instanceof OWLObjectIntersectionOf) {
                        OWLObjectIntersectionOf intersectionOf = (OWLObjectIntersectionOf) superCls;
                        for (OWLClassExpression conjunct : intersectionOf
                                .asConjunctSet()) {
                            if (!conjunct.isAnonymous()) {
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassExpression.asOWLClass()

                .getEquivalentClasses(classExpression);
        Set<OWLClass> result;
        if (classExpression.isAnonymous()) {
            result = equivalentClasses.getEntities();
        } else {
            result = equivalentClasses.getEntitiesMinus(classExpression
                    .asOWLClass());
        }
        return result;
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassExpression.asOWLClass()

                source = axiom.getSubClass().asOWLClass();
            }
            if (!axiom.getSuperClass().isOWLNothing()) {
                OWLClassExpression classExpression = axiom.getSuperClass();
                if (!classExpression.isAnonymous()) {
                    target = classExpression.asOWLClass();
                }
            }
        }

        @Override
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassExpression.asOWLClass()

        Set<OWLClass> subclasses = new HashSet<OWLClass>();
        for (OWLOntology ont : ontologies) {
            for (OWLSubClassOfAxiom ax : ont.getSubClassAxiomsForSuperClass(cls)) {
                OWLClassExpression subCls = ax.getSubClass();
                if (!subCls.isAnonymous()) {
                    if (!subCls.asOWLClass().isDefined(ontologies)) {
                        subclasses.add(subCls.asOWLClass());
                    }
                }
            }
        }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassExpression.asOWLClass()

        for (OWLOntology ont : ontologies) {
            for (OWLSubClassOfAxiom ax : ont.getSubClassAxiomsForSuperClass(cls)) {
                OWLClassExpression subCls = ax.getSubClass();
                if (!subCls.isAnonymous()) {
                    if (!subCls.asOWLClass().isDefined(ontologies)) {
                        subclasses.add(subCls.asOWLClass());
                    }
                }
            }
        }
        MakeClassesMutuallyDisjoint makeClassesMutuallyDisjoint = new MakeClassesMutuallyDisjoint(getDataFactory(), subclasses, usePairwiseDisjointAxioms, targetOntology);
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassExpression.asOWLClass()

        DefaultNodeSet<OWLClass> result = new OWLClassNodeSet();
        for (OWLOntology ontology : getRootOntology().getImportsClosure()) {
            for (OWLClassAssertionAxiom axiom : ontology.getClassAssertionAxioms(ind)) {
                OWLClassExpression ce = axiom.getClassExpression();
                if (!ce.isAnonymous()) {
                    result.addNode(classHierarchyInfo.getEquivalents(ce.asOWLClass()));
                    if (!direct) {
                        result.addAllNodes(getSuperClasses(ce, false).getNodes());
                    }
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.