Examples of OWLNamedClass


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

   * its inferred super classes and its inferred equivalent classes.
   * Assert the result
   */
  public IResult [] computeInferredHierarchy(IClass cls){
    try{
      OWLNamedClass  c = (OWLNamedClass)ontology.convertSetValue(cls);
      List<IResult> result = new ArrayList<IResult>();
      result.addAll(computeResults(c,reasoner.getSuperclasses(c),IResult.SUPERCLASS));
      //result.addAll(computeResults(c,reasoner.getSubclasses(c),IResult.SUBCLASS));
      return result.toArray(new IResult[0]);
    }catch(Exception ex){
View Full Code Here

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

 
 
  public IClass getClass(String name) {
    checkModel();
    try{
      OWLNamedClass c = model.getOWLNamedClass(getResourceName(name));
      return (c != null)?new PClass(c,this):null;
    }catch(Exception ex){
      System.err.println("WARNING: POntology.getClass("+name+") "+ex.getClass().getSimpleName()+": "+ex.getMessage());
    }
    // problem occured ClassCastException or whatever
View Full Code Here

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

 
 
  public IClass getClass(String name) {
    checkModel();
    try{
      OWLNamedClass c = model.getOWLNamedClass(getResourceName(name));
      return (c != null)?new PClass(c,this):null;
    }catch(Exception ex){
      System.err.println("WARNING: POntology.getClass("+name+") "+ex.getClass().getSimpleName()+": "+ex.getMessage());
    }
    // problem occured ClassCastException or whatever
View Full Code Here

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

      loadOwlOntology();
    }
   
    private void loadOwlOntology(){
    this.owlModel = ontoHandler.getOWLModel();
    OWLNamedClass startClass = owlModel.getOWLNamedClass("XCLOntology:specificationPropertyNames");
    log.debug("loaded ontology."+startClass.getPrefixedName());
    }
View Full Code Here

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

      this.selectedviewOld = this.getSelectedViewItem();
     
      rootNode = new TreeNodeImpl();

      if(this.selectedview.equals(VIEW_STANDARD)){
          OWLNamedClass startClass = owlModel.getOWLNamedClass("XCLOntology:specificationPropertyNames");
          this.rootNodeName = startClass.getLocalName();
          TreeViews.standardTraverseTree(startClass, new Vector(), rootNode, applyFilter);
      }
      if(this.selectedview.equals(VIEW_ROTHENBERG)){
        OWLNamedClass startClass = owlModel.getOWLNamedClass("Testbed:RothenbergCategories");
        this.rootNodeName = startClass.getLocalName();
        TreeViews.standardTraverseTree(startClass, new Vector(), rootNode, applyFilter);
        //TreeViews.rothenbergTraverseTree(startClass, new Vector(), rootNode, applyFilter);
      }
      if(this.selectedview.equals(VIEW_TBEXTENDED)){
        OWLNamedClass startClass = owlModel.getOWLNamedClass("Testbed:TestbedProperties");
        this.rootNodeName = startClass.getLocalName();
        TreeViews.standardTraverseTree(startClass, new Vector(), rootNode, applyFilter);
      }
    }
View Full Code Here

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

                  }
                }
            }
            if (!stack.contains(cl)) {
                for (java.util.Iterator<OWLNamedClass> it = cl.getSubclasses(false).iterator(); it.hasNext();) {
                    OWLNamedClass subClass = (OWLNamedClass) it.next();
                    stack.add(cl);
                    standardTraverseTree(subClass, stack, childClass,applyfilter);
                    stack.remove(cl);
                }
            }
View Full Code Here

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

     * @param uri
     * @return ontologyproperty or null
     */
    public OntologyProperty getProperty(String uri){
      //FIXME There may be more models coming
      OWLNamedClass startClass = owlModel.getOWLNamedClass(OWLMODEL_ROOT_CLASS);
     
      //TB property uris correspond to OWLIndividuals
      RDFIndividual individual = this.getOWLModel().getRDFIndividual(uri);
     
      if(individual != null){
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.