Questions tagged [pyorient]

Pyorient is a Orientdb driver for python that uses the binary protocol.

pyorient is a python driver for the OrientDB graph database management system. It uses the binary protocol.

Github: https://github.com/mogui/pyorient

Docs: http://orientdb.com/docs/last/PyOrient.html

56 questions
5
votes
1 answer

Accessing OrientDB from Python

I want to convert a >1mn record MySQL database into a graph database, because it is heavily linked network-type data. The free version of Neo4J had some restrictions I thought I might bump up against, so I've installed OrientDB (Community 2.2.0) (on…
TomG
  • 145
  • 8
4
votes
1 answer

Connecting to OrientDB from Python (options)

So I'm looking at the best solution in terms of "Ease of Learning" for working on a orientdb database from Python. options: https://github.com/mogui/pyorient (doesn't support the latest) Bulbs though Rexster The REST API of Orientdb Any of you…
OWADVL
  • 10,704
  • 7
  • 55
  • 67
3
votes
1 answer

TypeError: 'OrientRecord' object does not support indexing

I'm trying to extract records from an Oriented DB using pyorient and here is my query: query = "SELECT value FROM (SELECT expand(Elements) FROM dataset) WHERE type = 'XXX'" records = client.command(query) and everything is working fine. When I try…
MTT
  • 5,113
  • 7
  • 35
  • 61
2
votes
0 answers

Pyorient SQL batch execution while ignoring errors

I have done a lot of research but couldn't find a simple solution for the following problem. I have an OrientDB database which has a "MaltegoLink" class. The MaltegoLink has an UNIQUE index to avoid duplicates. The script itself follows the idea…
2
votes
1 answer

How to a establish remote connection to OrientDB distributed db using pyorient driver?

Hej, I am trying to establish a remote connection to my orientdb server on digital ocean. however, I try to connect by: client =pyorient.OrientDB(host='remote.host.ip', port=2480) cluster_info = client.db_open(db_name, db_username, db_password) I…
Jobel
  • 633
  • 6
  • 13
2
votes
2 answers

OrientDB: creating edge from parent to child

I am new to a graph database. I am very sure that the answer should be simple as one or two command lines. I have very simple schema. Person and Email class. There are edges between Person and Email, SendFrom and SendTo. I want to create edges…
NeoJi
  • 245
  • 2
  • 14
2
votes
0 answers

How do I create a linked record in OrientDB using pyorient library

I'm trying to create an entry that links to a particular class cluster_id = -1 res = client.command('SELECT * FROM Role WHERE name="User"') user_role = res[0] rec = { '@Person': { 'first_name': 'joe', 'last_name': 'soap', 'username': 'soapj',…
whisperstream
  • 1,897
  • 3
  • 20
  • 25
2
votes
1 answer

Pyorient batch parsing issue

I am currently trying to fill an orientdb graph database using pyorient. In general, everything works well. However, I have stumbled across a parsing issue with one of my commands. In Python if I run the following code: >>> ab = 'UPDATE Patent SET …
Shaun
  • 21
  • 1
2
votes
1 answer

Check class creation in OrientDB

I'm trying to create classes with pyorient driver but sometime if class exists I got class exists message. Is there a way to check whether class is exists or not in OrientDB python driver? Here is part of my sample code for class…
hamidfzm
  • 4,595
  • 8
  • 48
  • 80
2
votes
3 answers

Pyorient: how to parse json objects in pyorient?

I have a value in orientdb, which is a JSON object. Assume that JSON object is : a = {"abc":123} When I am sending a query using pyorient, it is not able to get this value in the select query, and hangs. In the orientdb console, this JSON object…
mayankchutani
  • 273
  • 3
  • 14
1
vote
2 answers

What is the correctly way to delete edges with orientdb OGM in django rest framework?

I don't know how to create a method to delete edges in django rest framework, using orientdb OGM. I'm using pyorient==1.5.5 and OrientDB 3.0.18 version. I have two vertex Classes: ousers, ocompany. Also I have two relationships (edges) Classes:…
1
vote
1 answer

Pyorient : Create an edge in OrientDB without using raw query

I tried graph.create_edge(Friend, orientRecord1, orientRecord2) But I get AttributeError: 'OrientRecord' object has no attribute '_id' because orientRecord does not have an _id in it. What am I doing wrong? How can I use this function? Here are my…
cegprakash
  • 2,937
  • 33
  • 60
1
vote
1 answer

OrientDB: Creating Edges for two vertex classes in pyorient

I am trying to create an edge for two vertex classes by using pyorient. Th way I am doing it is; vertex_class = client.command( "create class ABC extends V") vertex_class = client.command( "create class my_class extends V") edge_class =…
Muhammad
  • 305
  • 2
  • 6
  • 20
1
vote
0 answers

Save result for multiple request

I made a python batch that compare a filtered dataset of vertex with a specific vertex. My issue is that I need to execute more than 35000 times this batch. (with the same filtered dataset) At first, I was querying this filtered dataset every time…
Pierre-Antoine
  • 342
  • 2
  • 17
1
vote
1 answer

querying null fields using pyorient OGM

I'm trying to use the OGM from pyorient to match records which have nulls in some of their fields. I managed to get most things working by looking through the unit tests on GitHub but I couldn't find any examples there or in the docs. I also…
1
2 3 4