Examples of GraphSail


Examples of com.tinkerpop.blueprints.oupls.sail.GraphSail

   */
  @Override
  public NotifyingSail createStore() {
    log.info("Initializing Backend: Titan Store");
    final TitanGraph graph = createTitanGraph();
    return new GraphSail(graph);
  }
View Full Code Here

Examples of com.tinkerpop.blueprints.oupls.sail.GraphSail

        File dir = conf.getFile(TwitLogic.NEO4J_DIRECTORY);

        LOGGER.info("instantiating GraphSail-on-Neo4j in directory: " + dir);
        Neo4jGraph graph = new Neo4jGraph(dir.getAbsolutePath());
        //graph.setMaxBufferSize(1);
        Sail sail = new GraphSail(graph);
        sail.initialize();

        File dump = conf.getFile("dump", null);
        if (null != dump) {
            LOGGER.info("loading from dump file: " + dump);

            try {
                SailConnection sc = sail.getConnection();
                try {
                    sc.begin();
                    RDFParser parser = Rio.createParser(RDFFormat.NQUADS);
                    parser.setRDFHandler(new StatementAdder(sc));
                    InputStream is = new FileInputStream(dump);
View Full Code Here

Examples of com.tinkerpop.blueprints.pgm.oupls.sail.GraphSail

{
    public static void main( String[] args )
      throws SailException, RDFParseException, RDFHandlerException, FileNotFoundException, IOException
    {
      Neo4jGraph neo = new Neo4jGraph("dbpedia4neo");
      Sail sail = new GraphSail(neo);
      CommitManager manager = TransactionalGraphHelper.createCommitManager(neo, 10000);

      for (String file: args) {
        System.out.println("Loading " + file + ": ");
        loadFile(file, sail.getConnection(), sail.getValueFactory(), manager);
        System.out.print('\n');
      }
      manager.close();
      sail.shutDown();
    }
View Full Code Here

Examples of com.tinkerpop.blueprints.pgm.oupls.sail.GraphSail

public class Main {
  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);
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.