bulbs

How to execute gremlin query with mogwai

橙三吉。 提交于 2020-01-06 19:58:48
问题 Im trying to query a titan db 0.5.4 via mogwai, but when I run the following script i get the error: rexpro.exceptions.RexProScriptException: transaction is not open and I found the same question here P.S there is no tag for mogwai script: #!/usr/bin/env python3 from mogwai.connection import execute_query, setup con = setup('127.0.0.1', graph_name="bio4j", username="re", password="re") results = execute_query("2 * a",params={"a":2}, connection= con) print(results) results = execute_query(

Calling a gremlin script from python program that uses Bulbs

ε祈祈猫儿з 提交于 2019-12-24 06:44:28
问题 I am using TitanGraphDB + Cassandra.I am starting Titan as follows cd titan-cassandra-0.3.1 bin/titan.sh config/titan-server-rexster.xml config/titan-server-cassandra.properties I have a Rexster shell that I can use to communicate to Titan+Cassandra above. cd rexster-console-2.3.0 bin/rexster-console.sh I am attempting to model a network topology using Titan Graph DB.I want to program the Titan Graph DB from my python program.I am using bulbs package for that. I create three types of vertices

Calling a gremlin script from python program that uses Bulbs

微笑、不失礼 提交于 2019-12-24 06:44:14
问题 I am using TitanGraphDB + Cassandra.I am starting Titan as follows cd titan-cassandra-0.3.1 bin/titan.sh config/titan-server-rexster.xml config/titan-server-cassandra.properties I have a Rexster shell that I can use to communicate to Titan+Cassandra above. cd rexster-console-2.3.0 bin/rexster-console.sh I am attempting to model a network topology using Titan Graph DB.I want to program the Titan Graph DB from my python program.I am using bulbs package for that. I create three types of vertices

possible to connect to multiple neo4j databases via bulbs/Rexster?

大兔子大兔子 提交于 2019-12-21 21:23:51
问题 I would like to be able to specify the neo4j (2.0+) database folder when I open a connection to a graph using bulbs. The goal is to be able to open different or multiple neo4j databases (folders in data/) on the same machine without starting the neo4j server. This works with the Gremlin console. I suspect the route to doing this with bulbs would be to use the bulbs Rexster client (http://bulbflow.com/docs/api/bulbs/rexster/client/) and somehow automatically start a Rexster server pointing to

Is there a equivalent to commit in bulbs framework for neo4j

安稳与你 提交于 2019-12-17 16:52:29
问题 I am building a data-intensive Python application based on neo4j and for performance reasons I need to create/recover several nodes and relations during each transaction. Is there an equivalent of SQLAlchemy session.commit() statement in bulbs? Edit: for those interested, an interface to the Bulbs have been developped that implements that function natively and otherwise functions pretty much just like SQLAlchemy: https://github.com/chefjerome/graphalchemy 回答1: The most performant way to

Python and graph database. Use java lib wrapper or REST api?

别说谁变了你拦得住时间么 提交于 2019-12-11 00:34:42
问题 I want to ask you about the best way to use graph database (Neo4j) in Python. What you think, should I use "neo4j/python-embedded" (neo4j/python-embedded with JPype) or maybe "bulbflow" (bulbflow, with Rexster, Gremlin and REST api)? Is REST api secure and provides high availability (e.g. 500 000+ users)? Thank you. 回答1: I think Bulbs against Neo4j Server might be the best combination. Also, you can set up Neo4j in High Availability mode so multiple instances are forming a cluster, http:/

Selective indexing in bulbflow without using Models

本小妞迷上赌 提交于 2019-12-10 19:16:50
问题 I'm using bulbflow (python) with Neo4j and I'm trying to add an index only on a subset of my keys (for now, simply keys named 'name' for optional index-based lookup). I don't love the bulbflow Models (too restrictive) and I couldn't figure out how to do selective indexing without changing code since the 'autoindex' is a global setting -- I don't see how to configure it based on the key. Has anyone done something like this? -Andrew 回答1: You can disable Bulbs auto-indexing by setting g.config

Proper way to update Edges in Bulbs (neo4j or titan)

北慕城南 提交于 2019-12-10 10:18:16
问题 I'm experimenting with Bulbs to interface with a graph database. ( Production will use Titan, locally Neo4j seems best for experimenting ). I can't wrap my head around this concept... Bulbs shows how to create new Vertices... >>> james = g.vertices.create(name="James") >>> julie = g.vertices.create(name="Julie") >>> g.edges.create(james, "knows", julie) Digging into the docs, I can replace that with a "get or create" as well : >>> james = g.vertices.get_or_create('name',"James",{'name':'james

Proper way to update Edges in Bulbs (neo4j or titan)

社会主义新天地 提交于 2019-12-06 04:18:18
I'm experimenting with Bulbs to interface with a graph database. ( Production will use Titan, locally Neo4j seems best for experimenting ). I can't wrap my head around this concept... Bulbs shows how to create new Vertices... >>> james = g.vertices.create(name="James") >>> julie = g.vertices.create(name="Julie") >>> g.edges.create(james, "knows", julie) Digging into the docs, I can replace that with a "get or create" as well : >>> james = g.vertices.get_or_create('name',"James",{'name':'james') What I can't figure out, is how to get an existing Edge. My attempts so far have ended up with

Bulbflow: difference between neo4jserver Graph and neo4jserver Neo4jclient

☆樱花仙子☆ 提交于 2019-12-04 22:43:06
问题 I am now trying to learn how to connect to Neo4j server and run Cypher queries on it using Bulbflow from Python. And the thing I do not understand is the difference between two possibilities to connect to the neo4j server: 1) Graph from bulbs.neo4jserver import Graph g = Graph() 2) Neo4jClient from bulbs.neo4jserver import Neo4jClient client = Neo4jClient() Could anyone please explain the conceptual difference here? And which way is it better to choose if I then want to execute (quite a lot