Package com.tinkerpop.blueprints.oupls.sail

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


        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

TOP

Related Classes of com.tinkerpop.blueprints.oupls.sail.GraphSail

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.