Examples of IOntologyError


Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

    }
  }

  public void addSuperProperty(IProperty p) {
    if(p.getPropertyType() != getPropertyType())
      throw new IOntologyError("Can't add super property of different type");
    if(isDatatypeProperty()){
      OWLDataProperty ch = (OWLDataProperty) convertOntologyObject(p);
      addAxiom(getOWLDataFactory().getOWLSubDataPropertyOfAxiom(asOWLDataProperty(),ch));
    }else{
      OWLObjectProperty ch = (OWLObjectProperty) convertOntologyObject(p);
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

    }
  }

  public void addSubProperty(IProperty p) {
    if(p.getPropertyType() != getPropertyType())
      throw new IOntologyError("Can't add sub property of different type");
    if(isDatatypeProperty()){
      OWLDataProperty ch = (OWLDataProperty) convertOntologyObject(p);
      addAxiom(getOWLDataFactory().getOWLSubDataPropertyOfAxiom(ch,asOWLDataProperty()));
    }else{
      OWLObjectProperty ch = (OWLObjectProperty) convertOntologyObject(p);
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

    }
  }

  public void removeSuperProperty(IProperty p) {
    if(p.getPropertyType() != getPropertyType())
      throw new IOntologyError("Can't add super property of different type");
    if(isDatatypeProperty()){
      OWLDataProperty ch = (OWLDataProperty) convertOntologyObject(p);
      removeAxiom(getOWLDataFactory().getOWLSubDataPropertyOfAxiom(asOWLDataProperty(),ch));
    }else{
      OWLObjectProperty ch = (OWLObjectProperty) convertOntologyObject(p);
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

    }
  }
 
  public void removeSubProperty(IProperty p) {
    if(p.getPropertyType() != getPropertyType())
      throw new IOntologyError("Can't add sub property of different type");
    if(isDatatypeProperty()){
      OWLDataProperty ch = (OWLDataProperty) convertOntologyObject(p);
      removeAxiom(getOWLDataFactory().getOWLSubDataPropertyOfAxiom(ch,asOWLDataProperty()));
    }else{
      OWLObjectProperty ch = (OWLObjectProperty) convertOntologyObject(p);
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

      if(b)
        addAxiom(a);
      else
        removeAxiom(a);
    }else{
      throw new IOntologyError("Can't set non-object property as transitive");
    }
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

      if(b)
        addAxiom(a);
      else
        removeAxiom(a);
    }else{
      throw new IOntologyError("Can't set non-object property as symmetric");
    }
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

    propertyMap.put(name,p);
    return p;
  }

  public IRestriction createRestriction(int type) {
    throw new IOntologyError("Operation not supported");
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

    classMap = null;
    propertyMap = null;
  }

  public IQueryResults executeQuery(IQuery query) {
    throw new IOntologyError("Operation not supported");
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

  public IResourceIterator getAllClasses() {
    return new DefaultResourceIterator(classMap.values().iterator());
  }

  public IResourceIterator getAllProperties() {
    throw new IOntologyError("Operation not supported");
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntologyError

          importProps.setProperty(LAST_PROCESSED_PAGE, ""+i);
          importProps.setProperty(LAST_PAGE_COUNT, ""+pagecount);
          storeImportProperties(target,importProps);
        }
        else{
          throw new IOntologyError("Bioportal did what it does best");
        }
      }while(++i <= pagecount);
    }
   
 
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.