Package com.tinkerpop.blueprints.pgm.impls.sail

Examples of com.tinkerpop.blueprints.pgm.impls.sail.SailGraph


  public static void main(String[] args) throws Exception {

    final Server server = new Server(8081);
    final Neo4jGraph neo  = new Neo4jGraph("dbpedia4neo");
    final GraphSail gsail = new GraphSail(neo);
    final SailGraph sail  = new SailGraph(gsail);
   
        ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
        context.setContextPath("/");
        server.setHandler(context);
               
        // set the query handler
        context.addServlet(new ServletHolder(new QueryHandler(sail)), "/query");
       
    // we need a clean shutdown
        Runtime.getRuntime().addShutdownHook(new Thread() {
      @Override
      public void run() {
        try {
          System.out.println("Shutting down...");
          server.stop();
          sail.shutdown();
        } catch (Exception e) {
          e.printStackTrace();
        }
      }
        });
View Full Code Here

TOP

Related Classes of com.tinkerpop.blueprints.pgm.impls.sail.SailGraph

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.