Package edu.isi.karma.modeling.ontology

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


    File ff = new File(Params.ONTOLOGY_DIR);
    File[] files = ff.listFiles();
    for (File f : files) {
      ontologyManager.doImport(f, "UTF-8");
    }
    ontologyManager.updateCache()
   
    List<SemanticModel> semanticModels =
        ModelReader.importSemanticModelsFromJsonFiles(Params.MODEL_DIR, Params.MODEL_MAIN_FILE_EXT);

    String graphPath = Params.GRAPHS_DIR;
View Full Code Here


          f.getName().endsWith(".xml")) {
        logger.info("Loading ontology file: " + f.getAbsolutePath());
        ontologyManager.doImport(f, "UTF-8");
      }
    }
    ontologyManager.updateCache();


    String outputPath = Params.OUTPUT_DIR;
    String graphPath = Params.GRAPHS_DIR;
View Full Code Here

            logger.error ("Error loading ontology: " + ontology.getAbsolutePath(), t);
          }
        }
      }
      // update the cache at the end when all files are added to the model
      mgr.updateCache();
      ModelLearningGraph.getInstance(mgr, ModelLearningGraphType.Sparse);

    } else {
      logger.info("No directory for preloading ontologies exists.");
    }
View Full Code Here

        } else {
          logger.error ("the file: " + ontology.getAbsolutePath() + " does not have proper format: xml/rdf/n3/ttl/owl");
        }
      }
      // update the cache at the end when all files are added to the model
      mgr.updateCache();
      Set<String> test = mgr.getPossibleUris("http://example.com/layout/C01_", "http://example.com/layout/C02_");
      for (String s : test) {
        System.out.println(s);
      }
      Alignment al = new Alignment(mgr);
View Full Code Here

    File ff = new File(Params.ONTOLOGY_DIR);
    File[] files = ff.listFiles();
    for (File f : files) {
      ontologyManager.doImport(f, "UTF-8");
    }
    ontologyManager.updateCache()

//    getStatistics1(semanticModels);
//
//    if (true)
//      return;
View Full Code Here

    File ff = new File(Params.ONTOLOGY_DIR);
    File[] files = ff.listFiles();
    for (File f : files) {
      ontologyManager.doImport(f, "UTF-8");
    }
    ontologyManager.updateCache()

//    getStatistics1(semanticModels);

//    if (true)
//      return;
View Full Code Here

        } else {
          logger.error ("the file: " + ontology.getAbsolutePath() + " does not have proper format: xml/rdf/n3/ttl/owl");
        }
      }
      // update the cache at the end when all files are added to the model
      mgr.updateCache();
    }
   
    GraphBuilderTopK gbtk = new GraphBuilderTopK(mgr, false);
   
    Node n1 = new InternalNode("n1", new Label("http://erlangen-crm.org/current/E55_Type"));
View Full Code Here

          logger.error ("the file: " + ontology.getAbsolutePath() + " does not have proper format: xml/rdf/n3/ttl/owl");
          uc.add(new TrivialErrorUpdate("Error loading ontology: " + ontology.getAbsolutePath() + ". The file does not have proper format: xml/rdf/n3/ttl/owl"));
        }
      }
      // update the cache at the end when all files are added to the model
      ontologyManager.updateCache();
    } else {
      logger.info("No directory for preloading ontologies exists.");
    }
    SemanticTypeUtil.setSemanticTypeTrainingStatus(true);
  }
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.