Examples of toStringID()


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

                } else if (val instanceof OWLLiteral) {
                    OWLLiteral lit = (OWLLiteral) val;
                    return lit.getLiteral();
                } else if (val instanceof OWLAnonymousIndividual) {
                    OWLAnonymousIndividual ind = (OWLAnonymousIndividual) val;
                    return ind.toStringID();
                } else {
                    throw new RuntimeException("Unexpected class "
                            + val.getClass());
                }
            }
View Full Code Here

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

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

          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

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

    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

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

            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

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

     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

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

     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

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

   
    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

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

                OWLLiteral l = e.getValue();
                OWLDatatype type = l.getDatatype();

                checkInconsistentProperty(dp, type);

                NamedFeature f = new NamedFeature(dp.toStringID());
                Literal lit = getLiteral(l);
                if(lit != null) {
                    push(new Datatype(f, Operator.EQUALS,lit));
                } else {
                    problems.add("Axiom " + e + " will be ignored because of the unsupported literal.");
View Full Code Here

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

                    }
                    OWLLiteral l = (OWLLiteral)values.toArray()[0];
                    OWLDatatype type = l.getDatatype();
                    checkInconsistentProperty(dp, type);
                   
                    NamedFeature f = new NamedFeature(dp.toStringID());
                    Literal lit = getLiteral(l);
                    if(lit != null) {
                        push(new Datatype(f, Operator.EQUALS, lit));
                    } else {
                        problems.add("Axiom " + e + " will be ignored because of the unsupported literal.");
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.