Examples of OWLClassNodeSet


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

  private NodeSet<OWLClass> toClassNodeSet( Set<Set<ATermAppl>> termSets ) {
    Set<Node<OWLClass>> nodes = new HashSet<Node<OWLClass>>();
    for( Set<ATermAppl> termSet : termSets ) {
      nodes.add( toClassNode( termSet ) );
    }
    return new OWLClassNodeSet( nodes );
  }
View Full Code Here

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

    private NodeSet<OWLClass> nodesToOwlClassNodeSet(Set<au.csiro.ontology.Node> nodes) {
        Set<Node<OWLClass>> temp = new HashSet<Node<OWLClass>>();
        for (au.csiro.ontology.Node n : nodes) {
            temp.add(nodeToOwlClassNode(n));
        }
        return new OWLClassNodeSet(temp);
    }
View Full Code Here

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

        checkNamedClass(ce);
       
        au.csiro.ontology.Node n = getNode(ce.asOWLClass());
        if(n == null) {
            // TODO: add logging and warn!
            return new OWLClassNodeSet();
        }
       
        Set<au.csiro.ontology.Node> children = n.getChildren();

        if (direct) {
View Full Code Here

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

        checkNamedClass(ce);
       
        au.csiro.ontology.Node n = getNode(ce.asOWLClass());
        if(n == null) {
            // TODO: add logging and warn!
            return new OWLClassNodeSet();
        }
        Set<au.csiro.ontology.Node> parents = n.getParents();

        if (direct) {
            // Transform the response back into owlapi objects
View Full Code Here

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

    Set<Node<OWLClass>> values = new HashSet<Node<OWLClass>>();
    for( Set<OWLClass> val : taxonomy.getSubs( (OWLClass) clsC, direct ) ) {
      values.add( NodeFactory.getOWLClassNode( val ) );
    }

    return new OWLClassNodeSet( values );
  }
View Full Code Here

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

      PartialOrderBuilder<OWLClass> orderBuilder = new PartialOrderBuilder<OWLClass>(taxonomy, disjointClassComparator);
   
      orderBuilder.add( disjointClassComparator.getComplementRepresentation(), true );    
    }
   
    OWLClassNodeSet result = new OWLClassNodeSet();
   
    for (Set<OWLClass> equivSet : taxonomy.getSubs( disjointClassComparator.getComplementRepresentation(), false ) ) {
      result.addSameEntities( equivSet );
    }
   
    return result;
  }
View Full Code Here

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

    Set<Node<OWLClass>> values = new HashSet<Node<OWLClass>>();
    for( Set<OWLClass> val : taxonomy.getSupers( (OWLClass) ce, direct ) ) {
      values.add( NodeFactory.getOWLClassNode( val ) );
    }

    return new OWLClassNodeSet( values );
  }
View Full Code Here

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

      throws InconsistentOntologyException, FreshEntitiesException,
      ReasonerInterruptedException, TimeOutException {
    reasoner.flush();
    realize();
   
    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
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.