Package edu.stanford.smi.protegex.owl.model

Examples of edu.stanford.smi.protegex.owl.model.RDFSClass


  public ILogicExpression getDirectNecessaryRestrictions(){
    ILogicExpression exp = new LogicExpression(ILogicExpression.AND);
    if(cls instanceof OWLNamedClass){
      Collection list = cls.getEquivalentClasses();
      for(Object o: ((OWLNamedClass) cls).getSuperclasses(false)){
        RDFSClass c = (RDFSClass) o;
        if(c.isAnonymous() && !list.contains(c)){
          exp.add(convertParameter(c));
        }
      }
    }
    return exp;
View Full Code Here


        }
      }
      return exp;
    // we might have a complement
    }else if(resource instanceof OWLComplementClass){
      RDFSClass c = ((OWLComplementClass)resource).getComplement();
      return new LogicExpression(ILogicExpression.NOT,convertParameter(c));
    }
    // default just container that contains this
    return super.getLogicExpression();
  }
View Full Code Here

   */
  protected IClass [] getClasses(Collection list){
    Set<IClass> c = new LinkedHashSet<IClass>();
    for(Object o: list){
      if(o instanceof RDFSClass){
        RDFSClass cls = (RDFSClass)o;
        //System.out.println("get class "+cls.getBrowserText()+" "+cls.getClass().getName());
        if(!cls.isSystem() || cls.equals(cls.getOWLModel().getOWLThingClass())){
          c.add(new PClass(cls,getOntology()));
        }
      }
    }
    return (IClass []) c.toArray(new IClass [0]);
View Full Code Here

TOP

Related Classes of edu.stanford.smi.protegex.owl.model.RDFSClass

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.