Package org.semanticweb.owlapi.reasoner.impl

Examples of org.semanticweb.owlapi.reasoner.impl.OWLClassNode


    public Node<OWLClass> getEquivalentClasses(@Nonnull OWLClassExpression ce) {
        ensurePrepared();
        if (!ce.isAnonymous()) {
            return classHierarchyInfo.getEquivalents(ce.asOWLClass());
        } else {
            return new OWLClassNode();
        }
    }
View Full Code Here


        @Nonnull
        @Override
        protected DefaultNode<OWLClass>
                createNode(@Nonnull Set<OWLClass> cycle) {
            return new OWLClassNode(cycle);
        }
View Full Code Here

        }

        @Nonnull
        @Override
        protected DefaultNode<OWLClass> createNode() {
            return new OWLClassNode();
        }
View Full Code Here

        Set<OWLClass> result=new HashSet<OWLClass>();
        OWLDataFactory factory=getDataFactory();
        for (AtomicConcept concept : hierarchyNode.getEquivalentElements())
            if (!Prefixes.isInternalIRI(concept.getIRI()))
                result.add(factory.getOWLClass(IRI.create(concept.getIRI())));
        return new OWLClassNode(result);
    }
View Full Code Here

        ensurePrepared();
        if (!ce.isAnonymous()) {
            return classHierarchyInfo.getEquivalents(ce.asOWLClass());
        }
        else {
            return new OWLClassNode();
        }
    }
View Full Code Here

            return ax.getClassesInSignature();
        }

        @Override
        protected DefaultNode<OWLClass> createNode(Set<OWLClass> cycle) {
            return new OWLClassNode(cycle);
        }
View Full Code Here

            return ont.getClassesInSignature();
        }

        @Override
        protected DefaultNode<OWLClass> createNode() {
            return new OWLClassNode();
        }
View Full Code Here

     * @return
     */
    private Node<OWLClass> nodeToOwlClassNode(au.csiro.ontology.Node n) {
        assert n != null;
       
        Node<OWLClass> node = new OWLClassNode();
       
        if(n == null) return node;
       
        for(Object eq : n.getEquivalentConcepts()) {
            node.getEntities().add(getOWLClass(eq));
        }

        return node;
    }
View Full Code Here

   
    OWLClassNodeSet types = new OWLClassNodeSet();
    for( Set<OWLClass> t : TaxonomyUtils.getTypes( taxonomy, ind, direct ) ) {   
      //Set<OWLClass> eqSet = ATermUtils.primitiveOrBottom( t );
      //if( !eqSet.isEmpty() )
        types.addNode( new OWLClassNode( t ) );
    }

    return types;

  }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.reasoner.impl.OWLClassNode

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.