OrientDB

java.lang.NoClassDefFoundError: com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap$Builder

﹥>﹥吖頭↗ 提交于 2019-12-13 00:28:25
问题 I am using OrientDB Native Java Driver for a simple connection to Orient DB Server. I am following OrientDb Github link for basic setup instructions. I have added the five jars mentioned in the github link, orient-commons-*.jar, orientdb-core-*.jar, orientdb-object-*.jar, orientdb-client-*.jar, orientdb-enterprise-*.jar . However, I am still facing below error. I googled and couldn't find any answer regarding which jar file am I missing? Please advise. Exception in thread "main" java.lang

Orientdb get last vertex from each path when Traversing by edge property

烂漫一生 提交于 2019-12-12 19:16:54
问题 I need to traverse all vertices that are connected by edges where the property 'dependence' is 'true' This is what I have so far: SELECT FROM (TRAVERSE * FROM (SELECT outE() FROM 9:5) WHILE (@class = 'E' AND dependence = 'yes') OR @class = 'V') WHERE @class = 'V' Although im not sure if is the best way to do it, this seems to work fine following only the paths where edges have 'dependence' = 'yes' . Now, There could be more than one path generated, and I need to get the last vertex from each

How to setup embedded master/master replication with OrientDB?

▼魔方 西西 提交于 2019-12-12 17:55:02
问题 My goal is to have two nodes. Node A should write some vertices and node B should be able to read those vertices. So far my hazelcast discovery works just fine. OrientDB will also hot deploy any found database from nodeA to nodeB. Unfortunately any write on Node A will not be replicated to nodeB. My setup: orientdb-server-config.xml : Simplified version (copied from orientdb-community tar.gz) %NODENAME% will be replaced with nodeA or nodeB. <?xml version="1.0" encoding="UTF-8" standalone="yes

How do I add to a spatial index in OrientDB?

点点圈 提交于 2019-12-12 17:22:39
问题 I'm using OrientDB 2.0 from the studio. I created a Lucene spatial index successfully, using the code from the documentation: CREATE class Place extends V CREATE property Place.name string CREATE property Place.latitude double CREATE property Place.longitude double CREATE INDEX Place.l_lon ON Place(latitude,longitude) SPATIAL ENGINE LUCENE I then created some Place objects with latitude and longitude . When I attempt to do a spatial search using the documented format select from Class where [

How to print or log on function javascript Orientdb

假如想象 提交于 2019-12-12 10:17:24
问题 I trying to use print("Hello world") function Orientdb for debugging. After click on excute() there is no any result appear. 回答1: The best way to do this is using OrientDB standard logger: com.orientechnologies.common.log.OLogManager.instance().info(this, "This is a log!") 回答2: To see the print you have to open the 'Server.bat' or 'Server.sh' window and you'll see your result. Server.bat Server.sh 来源: https://stackoverflow.com/questions/35206122/how-to-print-or-log-on-function-javascript

Orientdb Cant open Database from Java

天涯浪子 提交于 2019-12-12 09:44:15
问题 I created a database out of the orientdb console: create database plocal:/C:/Development/orientdb/databases/testdb root root plocal graph I started the server to make sure my database was created successfully. I opened the webinterface: localhost:2480 And i logged in into testdb using root as user and root as password. Everything worked fine. But when i now want to connect to my database from Java-Code: OrientGraph graph = null; try { graph = new OrientGraph("plocal:C:/Development/orientdb

How to embed ArangoDB in a desktop application

删除回忆录丶 提交于 2019-12-12 08:33:58
问题 I would like to embed a graph database in my application (shipping for windows, linux & MAC). I narrowed the search down to ArangoDB & OrientDB. I was able to get embedded OrientDB to work but I'd still like to try ArangoDB to make an informed decision. Documentation for OrientDB embedded version is pretty clear while I can't find anything for ArangoDB. ArangoDB is written in C++ so I also have to figure out how to make it be portable across platforms and how to install it with my application

OrientDB date manipulation in OSQL to find a path with nodes on the same day but different years

感情迁移 提交于 2019-12-12 06:39:26
问题 I have a graph that is structured like this: A --> B A has a Date field. This is still based on the same problem as in my other question, but this differs in that I'm not concerned with trying to do everything in one OSQL call to create edges. In this case, I'm only trying to generate a path that looks like: A1 (date=2014-01-01) ---> B <--- A2 (date=2013-01-01) And return a table containing just the A1 and A2 id's. I've started working up a MATCH query that looks like: MATCH {CLASS: A, AS: A1

Cannot establish a connection to orientdb using jdbc driver?

℡╲_俬逩灬. 提交于 2019-12-12 04:57:06
问题 I'm newbie to the orientdb, I'm using netbeans's (add new connection wizard) to add a connection to the orientdb, I used orientdb-jdbc-2.0.2-all.jar as a jdbc driver, but I got the following error after clicking on test connection Snapshot of the error I made sure that the database is connected and everything is right, any idea? 回答1: The URL should be jdbc:orient:remote:localhost/Sensor_Data Look at the documentation: http://www.orientechnologies.com/docs/last/orientdb-jdbc.wiki/Home.html

OrientDB create edge between two nodes with the same day of year

淺唱寂寞╮ 提交于 2019-12-12 04:24:41
问题 I'm interested in creating an edge (u,v) between two nodes of the same class in a graph if they share the same day of year and v.year = u.year+1. Say I have vertices.csv: id,date A,2014-01-02 B,2015-01-02 C,2016-01-02 D,2013-06-01 E,2014-06-01 F,2016-06-01 The edge structure I'd like to see would be this: A --> B --> C D --> E F Let's set the vertex class to be "myVertex" and edge class to be "myEdge"? Is it possible to generate these edges using the SQL interface? Based on this question, I