Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(19)  |  Call(19)  |  Derive(0)  |  Import(0)

src/n/e/neomodel-HEAD/neomodel/core.py   neomodel(Download)
 
    try:
        connection.db = neo4j.GraphDatabaseService(url)
    except SocketError as e:
        raise SocketError("Error connecting to {0} - {1}".format(url, e))

src/o/c/ocean-HEAD/scripts/ocean_small_exemplary_init.py   ocean(Download)
    # Create connection
    graph_db = neo4j.GraphDatabaseService(
        'http://{0}:{1}/db/data/'.format(
            get_configuration("neo4j", "host"),
            get_configuration("neo4j", "port")

src/o/c/ocean-HEAD/scripts/ocean_small_exemplary_data.py   ocean(Download)
    neo4j_host = None
    graph_db = neo4j.GraphDatabaseService(
            'http://{0}:{1}/db/data/'.format(neo4j_host if neo4j_host else
        get_configuration("neo4j","host"), neo4j_port if  neo4j_port else get_configuration("neo4j", "port"))
        )

src/o/c/ocean-HEAD/scripts/ocean_init_graph.py   ocean(Download)
    # Create connection
    graph_db = neo4j.GraphDatabaseService(
        'http://{0}:{1}/db/data/'.format(
            get_configuration("neo4j", "host"),
            get_configuration("neo4j", "port"))

src/n/e/neomodel-0.3.6/neomodel/core.py   neomodel(Download)
        url = ''.join([u.scheme, '://', host, u.path, u.query])
 
    connection.db = neo4j.GraphDatabaseService(url)
    return connection.db
 

src/o/c/ocean-HEAD/lionfish/python_lionfish/server/odm_server.py   ocean(Download)
    def __init__(self, neo4j_host=None, neo4j_port = None):
        """ Creates DatabaseManager driver """
        logger.log(info_level, 'Created DatabaseManager object')
        self._graph_db = neo4j.GraphDatabaseService(
            'http://{0}:{1}/db/data/'.format(neo4j_host if neo4j_host else

src/m/a/mad2-0.0.43/mad2/plugin/neo.py   mad2(Download)
                exit(-1)
            lg.debug("Neo4j db: %s", uri)
            self.db = neo4j.GraphDatabaseService(uri)
        else:
            lg.debug("Neo4j db: default")
            self.db = neo4j.GraphDatabaseService()

src/o/c/ocean-HEAD/scripts/ocean_exemplary_data.py   ocean(Download)
    # Create connection
    graph_db = neo4j.GraphDatabaseService(
        'http://{0}:{1}/db/data/'.format(
            get_configuration('neo4j', 'host'),
            get_configuration('neo4j', 'port')

src/o/c/ocean-HEAD/graph_workers/web_crawler.py   ocean(Download)
            raise Exception("Not enough privileges")
 
        self.graph_db = neo4j.GraphDatabaseService(neo4j_url)
        self.free = True
 

src/k/a/kaiso-0.17.1/kaiso/connection.py   kaiso(Download)
    if uri.startswith('temp://'):
        uri = temp_neo4j_instance(uri)
    graph_db = neo4j.GraphDatabaseService(uri)
    return graph_db
 

  1 | 2  Next