Package org.neo4j.rest.graphdb

Examples of org.neo4j.rest.graphdb.RestAPIFacade


                    throw new RuntimeException("Invalid Neo4j-Server-URL " + restUrl);
                }
            }

            if (!restUrl.contains("/db/data")) restUrl += "/db/data";
            final RestAPI api = new RestAPIFacade(restUrl, login, password);
            storage = new RestGraphStorage(api);
            log("Graph Storage " + restUrl + " login " + login + " " + password + " " + storage);
        }
        } catch(Exception e) {
            LOG.error("Error creating graph storage",e);
View Full Code Here


    }

    public void initFromUrl(Neo4jService service, URL url, final String query) {
        if (!service.doesOwnDatabase()) return;
        final String urlString = url.toString().replaceAll("/cypher/?$", "");
        final RestAPI restApi = new RestAPIFacade(urlString);
        final QueryResult<Map<String,Object>> cypherResult = new RestCypherQueryEngine(restApi).query(query, null);
        final SubGraph graph = new SubGraph();
        for (Map<String, Object> row : cypherResult) {
            for (Object value : row.values()) {
                addResultValue(graph, value);
View Full Code Here

    private final RestAPI restAPI;
    private final RestCypherQueryEngine cypher;
    private final RestIndex<Node> index;

    public RestGraphStorage(String uri) {
        this(new RestAPIFacade(uri));
    }
View Full Code Here

TOP

Related Classes of org.neo4j.rest.graphdb.RestAPIFacade

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.