OrientDB

OrientDB Gremlin server not working in python

萝らか妹 提交于 2019-12-10 20:11:31
问题 I am using the orientdb and gremlin server in python, Gremlin server is started successfully, but when I am trying to add one vertex to the orientdb through gremlin code it's giving me an error. query = """graph.addVertex(label, "Test", "title", "abc", "title", "abc")""" following is the Traceback /usr/bin/python3.6 /home/admin-12/Documents/bitbucket/ecodrone/ecodrone/test/test1.py Traceback (most recent call last): File "/home/admin-12/Documents/bitbucket/ecodrone/ecodrone/test/test1.py",

Server security and accessing OrientDB via Rest

半城伤御伤魂 提交于 2019-12-10 18:39:26
问题 Guess this is an embarrassing beginner question,anyways... In the OrientDB documentation under "server security" we find: While OrientDB Server can function as a regular Web Server, it is not recommended that you expose it directly to either the Internet or public networks. Instead, always hide OrientDB server in private networks. Does this mean that the port 2480 which OrientDB uses for listening to HTTP connections should be open only locally but not being exposed to the outside world? 回答1:

How to authenticate a HTTP request to an OrientDB function on AngularJS?

a 夏天 提交于 2019-12-10 17:55:27
问题 I have the following OrientDB function: http://localhost:2480/function/Application/getPassFailCount/9:600 And it returns the following JSON result: {"result":[{"@type":"d","@version":0,"pass":16.0,"fail":2.0,"@fieldTypes":"pass=d,fail=d"}]} What I need to do is to get the values of "pass" and "fail" to use in my web page. So far I have done this with AngularJS: $http.get('http://localhost:2480/function/Application/getPassFailCount/9:600'). success(function(data) { $scope.data = data.result; /

Easiest way to import a simple csv file to a graph with OrientDB ETL

纵饮孤独 提交于 2019-12-10 17:47:40
问题 I would like to import a very simple directed graph file in csv to OrientDB. Concretely, the file is the roadNet-PA dataset from the SNAP collection https://snap.stanford.edu/data/roadNet-PA.html. The first lines of the file are as follows: # Directed graph (each unordered pair of nodes is saved once) # Pennsylvania road network # Nodes: 1088092 Edges: 3083796 # FromNodeId ToNodeId 0 1 0 6309 0 6353 1 0 6353 0 6353 6354 There is only one type of vertex (a road intersection) and edges have no

OrientDb sql injection and escaping characters

♀尐吖头ヾ 提交于 2019-12-10 17:09:29
问题 How can I prevent sql injection when programming against OrientDb using the OrientDB-NET.binary? Is there a way to escape special characters for Orient-SQL and work with string literals? Example: I want to store this literal: me' or 1 = 1 ),'// and then be able to query it like select from MyVertex where text = '...' I'm having trouble doing this in OrientDb studio too. I have found this post which is related to the Java driver, so I was wondering if there is something similar for .NET. 回答1:

How to create custom classes in orientdb using Gremlin

有些话、适合烂在心里 提交于 2019-12-10 16:13:39
问题 I want the equivalant of this syntax in SQL: create class Person extends V in Gremlin 回答1: I'm not sure it is possible to manipulate OrientDB schema through Gremlin. Gremlin is independent on OrientDB and is not adapted on schemas because not all of graph databases support schemas. For adding vertex of particular class in OrientDB you can use Graph API (see doc). If you prepend string class: before the name of the class, you will create a vertex of this class. graph.addVertex("class:User");

OrientDB having trouble with Unicode, Turkish, and enums

旧时模样 提交于 2019-12-10 13:39:38
问题 I am using a lib which has an enum type with consts like these; Type.SHORT Type.LONG Type.FLOAT Type.STRING While I am debugging in Eclipse, I got an error: No enum const class Type.STRİNG As I am using a Turkish system, there is a problem on working i>İ but as this is an enum const, even though I put every attributes as UTF-8, nothing could get that STRING is what Eclipse should look for. But it still looks for STRİNG and it can't find and I can't use that. What must I do for that? Project >

Does Sails.js or Meteor.js work with ArangoDB or OrientDB?

拥有回忆 提交于 2019-12-10 13:18:20
问题 I'm planning to work on a social site and I would like to leverage both a document and graph database for all of the desired features. Is there a way to get Meteor.js or Sail.js (or any better) to work with ArangoDB or OrientDB? Or should I just stick with the bundled MongoDB and integrate something like allegrograph DB? 回答1: Sails.js has support for both of the databases you mention: https://www.npmjs.com/package/sails-orientdb https://github.com/rosmo/sails-arangodb In addition to MongoDB,

Is it possible to constraint edge multiplicity in Neo4j / OrientDB?

妖精的绣舞 提交于 2019-12-10 13:09:59
问题 I was wondering whether Neo4j and OrientDB provide the possibility of defining constraints in terms of multiplicity for specific edge types? 回答1: For OrientDB You can set multiplicity on out/in collection per label. Example to set maximum 1 edges from Person to Company if the edge's label is "workFor": ALTER PROPERTY Person.out_workFor NOT NULL ALTER PROPERTY Person.out_workFor MAX 1 You can also set the minimum with: ALTER PROPERTY Person.out_workFor MIN 1 In this way with min & max it's

OrientDB group by query using graph

ε祈祈猫儿з 提交于 2019-12-10 11:40:29
问题 I need to perform an grouped aggregate on a property of vertices of a certain class, the group by field is however a vertex two steps away from my current node and I can't make it work. My case : The vertex A contains the property I want to aggregate on and have n number of vertices with label references . The vertex I want to group on is any of those vertices (B, C or D) if that vertex has a defined by edge to vertex F . A ----references--> B --defined by--> E \---references--> C --defined