Examples of OntologyProcessor


Examples of com.esri.ontology.service.control.OntologyProcessor

      }
    }

    if (ontCtx.isReady()) {
      queryCriteria.setTerm(term);
      OntologyProcessor processor = new OntologyProcessor(ontCtx, locale);
      terms = processor.search(queryCriteria, selection);
    } else {
      Term tm = new Term(term,Term.Relationship.SeeAlso,1);
      terms.add(tm);
    }
View Full Code Here

Examples of com.esri.ontology.service.control.OntologyProcessor

    response.setCharacterEncoding("UTF-8");
    response.setContentType(format.isOwl() ? "text/html" : "text/plain");

    // creates ontology context
    Context ontContext = Context.extract(this.getServletContext());
    OntologyProcessor ontProcessor = new OntologyProcessor(ontContext,
      request.getLocale());

    // checks if ontology context is ready
    if (!ontContext.isReady()) {
      log.info("Ontology context not ready.");
      response.setStatus(response.SC_SERVICE_UNAVAILABLE);
      return;
    }

    // checks if query criteria are correct
    if (queryCriteria.getTerm().length() == 0) {
      log.info("No search term entered.");
      response.setStatus(response.SC_BAD_REQUEST);
      return;
    }

    // performs ontology search
    log.info(
      "Performing ontology search. query criteria: " + queryCriteria + "; selection: " + selection + "; format: " + format);
    Date start = new Date();
    Terms terms = ontProcessor.search(queryCriteria, selection);
    Date end = new Date();
    log.info("Ontology search has been completed in " + (end.getTime() - start.
      getTime()) + " milliseconds.");

    OntologyWriter ontWriter = new OntologyWriter(out, ontContext, queryCriteria.getTerm(), format);
View Full Code Here

Examples of org.ar.domainspecific.processors.OntologyProcessor

   * @param args
   */
  public static void main(String[] args)
  {
   
    Processor processor = new OntologyProcessor();
    processor.run(URI.create("file:datasets/Economy-TBox.owl"), "output-rank-csv/Economy.csv");
    //processor.run(URI.create("file:datasets/GeneRegulation-GRO-100-Tbox.owl"), "output-rank-csv/GeneRegulation-GRO-100.csv");
    //processor.run(URI.create("file:datasets/LKIF-100-Tbox.owl"), "output-rank-csv/LKIF-100.csv");
    processor.run(URI.create("file:datasets/People-Tbox.owl"), "output-rank-csv/People.csv");
    processor.run(URI.create("file:datasets/Process-Tbox.owl"), "output-rank-csv/Process.csv");
    processor.run(URI.create("file:datasets/Pizza-Tbox.owl"), "output-rank-csv/Pizza.csv");
    processor.run(URI.create("file:datasets/Units-Tbox.owl"), "output-rank-csv/Units.csv");
    processor.run(URI.create("file:datasets/BVA-500-Tbox.owl"), "output-rank-csv/BVA-500.csv");
    processor.run(URI.create("file:datasets/myGrid-Merged-100-Tbox.owl"), "output-rank-csv/myGrid-Merged-100.csv");
    processor.run(URI.create("file:datasets/Phenomena-Tbox.owl"), "output-rank-csv/Phenomena.csv");
    processor.run(URI.create("file:datasets/Property2-Tbox.owl"), "output-rank-csv/Property2.csv");
    processor.run(URI.create("file:datasets/Space-Tbox.owl"), "output-rank-csv/Space.csv");
    processor.run(URI.create("file:datasets/Transportation-Tbox.owl"), "output-rank-csv/Transportation.csv");
    processor.run(URI.create("file:datasets/GALEN-100-Tbox.owl"), "output-rank-csv/GALEN-100.csv");
    processor.run(URI.create("file:datasets/GALEN-250-Tbox.owl"), "output-rank-csv/GALEN-250.csv");
    //processor.run(URI.create("file:datasets/Dolce-100-Tbox.owl"), "output-rank-csv/Dolce-100.csv");
   
    processor.run(URI.create("file:datasets/University-Tbox.owl"), "output-rank-csv/University.csv");
  }
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.