Package com.esri.ontology.service.catalog

Examples of com.esri.ontology.service.catalog.Context


    URL categoriesFileUrl = Thread.currentThread().getContextClassLoader().
      getResource(categoriesFilePath);
    URL gemetFileUrl = Thread.currentThread().getContextClassLoader().
      getResource(gemetFilePath);

    Context context = new Context();
    context.update(getServletContext());

    ContextInitializer contextInitializer =
      new ContextInitializer(context, categoriesFileUrl.toString(),
      gemetFileUrl.toString());
View Full Code Here


    // sets response attributes
    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;
    }
View Full Code Here

TOP

Related Classes of com.esri.ontology.service.catalog.Context

Copyright © 2018 www.massapicom. 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.