Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use the BulbFlow (bulbs) Python ORM with OrientDB's Graph Schema Constraints?

I am building an application which uses BulbFlow. The BulbFlow ORM is similar to the Django ORM. As an actual database backend, I am using OrientDB 1.3.0, with Rexster 2.2.0.

I am wondering if anyone has any insight into using these two products together. BulbFlow allows for Python-based definitions of your data model. However OrientDB has its own schema definition system, including classes and constraints. Is there any way to use them together? Or is OrientDB's constraint system already being used by Rexster/BulbFlow?

Thanks in advance for the insight.

like image 744
G. Shearer Avatar asked Nov 13 '22 04:11

G. Shearer


1 Answers

All Rexster graphs use Blueprints under the hood, and Bulbs' default API/Gremlin scripts treat all Rexster graphs the same so there is no OrientDB-specific code.

However, you can use custom Gremlin scripts to access OrientDB-specific features.

See...

  • https://github.com/tinkerpop/blueprints/wiki/OrientDB-Implementation
  • https://github.com/nuvolabase/orientdb/wiki/Graph-Schema
  • http://bulbflow.com/docs/api/bulbs/gremlin/
like image 77
espeed Avatar answered Nov 14 '22 23:11

espeed