Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLClass.toStringID()


     System.out.println(classExp);
     SetOfClasses eqclasses = handler.equivalentClasses(classExp);
     Iterator<OWLClass> eqiIterator = eqclasses.iterator();
          while(eqiIterator.hasNext()){
              OWLClass eqClass = eqiIterator.next();
              System.out.println(eqClass.toStringID());
          }
    }
/*     System.out.println("query two");
     handler.runManchesterOWLQuery("PATO_0000001 and inheres-in some (part_of some FMA_67498)");*/
/*     System.out.println("query three");
View Full Code Here


          SetOfClasses eqclasses = (SetOfClasses)executeReasoner(getEquivalentClasses);//reasoner.answer(getEquivalentClasses);

          Iterator<OWLClass> eqiIterator = eqclasses.iterator();
          while(eqiIterator.hasNext()){
              OWLClass eqClass = eqiIterator.next();
              populateidList(eqClass.toStringID(), idList);
          }
   
    return idList;
  }
 
View Full Code Here

    SetOfClasses eqclasses = ontologyHandler.equivalentClasses(classExp);
    int i = 1;
    Iterator<OWLClass> eqiIterator = eqclasses.iterator();
        while(eqiIterator.hasNext()){
            OWLClass eqClass = eqiIterator.next();
            compositeList.add(new CompositeDetails(""+(i++), eqClass.toStringID(), "Existing composites").getLightWeightContact());
        }
        if (eqclasses.isEmpty()){
          OWLClass eqClass = ontologyHandler.addNewClass(classExp);
          compositeList.add(new CompositeDetails(""+(i++), eqClass.toStringID(), "Newly added").getLightWeightContact());
        }
View Full Code Here

            OWLClass eqClass = eqiIterator.next();
            compositeList.add(new CompositeDetails(""+(i++), eqClass.toStringID(), "Existing composites").getLightWeightContact());
        }
        if (eqclasses.isEmpty()){
          OWLClass eqClass = ontologyHandler.addNewClass(classExp);
          compositeList.add(new CompositeDetails(""+(i++), eqClass.toStringID(), "Newly added").getLightWeightContact());
        }
    return compositeList;
  }
 
  public String getTermToAnnotate(String manQuery)throws ManchesterQueryException {   
View Full Code Here

     if (eqclasses.isEmpty()){
       eqClass = ontologyHandler.addNewClass(classExp);
       }else{
         eqClass = eqclasses.iterator().next();
       }
     return eqClass.toStringID().substring(eqClass.toStringID().indexOf("#")+1);
  }
   
 
  public ArrayList<VariableDetailsLight> getVariableAnnotationList(VariableSearch variableSearch){   
    ArrayList<VariableDetailsLight> variableDetailsLight = new ArrayList<VariableDetailsLight>();
View Full Code Here

     if (eqclasses.isEmpty()){
       eqClass = ontologyHandler.addNewClass(classExp);
       }else{
         eqClass = eqclasses.iterator().next();
       }
     return eqClass.toStringID().substring(eqClass.toStringID().indexOf("#")+1);
  }
   
 
  public ArrayList<VariableDetailsLight> getVariableAnnotationList(VariableSearch variableSearch){   
    ArrayList<VariableDetailsLight> variableDetailsLight = new ArrayList<VariableDetailsLight>();
View Full Code Here

   
    System.out.println("Entities:");
    for(int i=0; i< entities.length; i++)
    {
      OWLClass obj = (OWLClass) entities[i];
      String name = obj.toStringID();
      System.out.println("Class:  " + name.substring(name.indexOf("#")+1));
     
      // get all instances of Person class
      Set<OWLNamedIndividual> individuals = reasoner.getInstances( obj, false ).getFlattened();
      for(OWLNamedIndividual ind : individuals) {
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.