Examples of doImportAndUpdateCache()


Examples of edu.isi.karma.modeling.ontology.OntologyManager.doImportAndUpdateCache()

    OntologyManager ontMgr = workspace.getOntologyManager();
    File autoOtologyFile = new File(path);
    logger.info("Loading ontology: " + autoOtologyFile.getAbsolutePath());
    String encoding = EncodingDetector.detect(autoOtologyFile);
    try {
      ontMgr.doImportAndUpdateCache(autoOtologyFile, encoding);
      logger.info("Done loading ontology: "
          + autoOtologyFile.getAbsolutePath());
    } catch(Exception e) {
      logger.error("Error importing auto ontology file: " + autoOtologyFile.getAbsolutePath());
    }
View Full Code Here

Examples of edu.isi.karma.modeling.ontology.OntologyManager.doImportAndUpdateCache()

  public UpdateContainer doIt(Workspace workspace) throws CommandException {
    OntologyManager ontManager = workspace.getOntologyManager();

    logger.debug("Loading ontology: " + getFile().getAbsolutePath());
    try {
      final boolean success = ontManager.doImportAndUpdateCache(
          getFile(), encoding);
      logger.debug("Done loading ontology: "
          + getFile().getAbsolutePath());
      return new UpdateContainer(new AbstractUpdate() {
        @Override
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.