OrientDB

can i make Geo server connection with Orient DB using WFS

不羁岁月 提交于 2019-12-01 23:18:42
Hi i got a new requirement i.e I want manipulate my spatial data in GeoServer. is there any way to connect geo server with orient db. as I know that geo server support few data bases . GeoServer has no connector for OrientDB (not an official one in the geoserver.org community at least). That said, it should be possible to develop one mimicking the existing stores for existing spatial databases. 来源: https://stackoverflow.com/questions/36011293/can-i-make-geo-server-connection-with-orient-db-using-wfs

OrientDB: How to update column using select query

我是研究僧i 提交于 2019-12-01 21:33:51
I need to update a column in table using following: update Table1 set name = (select productName from Table2 where @rid=$parent.$current.productid) Query works fine but instead of name query stores value in "[productname]" format. I have read orientdb documentation, I guess select query returns result in collection format. so I have already tried following functions get(1) first() [0] etc (my desperate attempt :) Thanks in advance. I tried searching but did not get any clean ans, but i making following change worked for me & got the job done :) update Table1 set name=(select productname from

Empty all the rows in Orient-DB

流过昼夜 提交于 2019-12-01 20:41:04
问题 Is there are a command to flush/empty all the classes/clusters in Orient-DB. Like Empty function in MySQL. P.S : Searched here as well : https://github.com/orientechnologies/orientdb/wiki/Console-Commands 回答1: There is no such command available. If you want to preserve the meta data of the classes, you can use the truncate command (same as most RDBMS). It deletes all records from all clusters of the specified class (but keeps the meta data about the class): truncate class <yourclass> If you

Can we UPSERT an EDGE in orientdb?

余生长醉 提交于 2019-12-01 09:29:10
Is it possible to get an example to upsert an edge in orientdb. IF it does not exist is there a way to check if the edge exist, if it does then just update the edge else create a new edge. I am using Orientdb 2.1.13 version. Thank you via SQL you can use the basic UPDATE command update written_by SET out = #9:2, in = #16:43, prop="gianni" UPSERT WHERE out = #9:2 and in = #16:43 http://orientdb.com/docs/last/SQL-Update.html 来源: https://stackoverflow.com/questions/38060343/can-we-upsert-an-edge-in-orientdb

Can we UPSERT an EDGE in orientdb?

烈酒焚心 提交于 2019-12-01 07:06:24
问题 Is it possible to get an example to upsert an edge in orientdb. IF it does not exist is there a way to check if the edge exist, if it does then just update the edge else create a new edge. I am using Orientdb 2.1.13 version. Thank you 回答1: via SQL you can use the basic UPDATE command update written_by SET out = #9:2, in = #16:43, prop="gianni" UPSERT WHERE out = #9:2 and in = #16:43 http://orientdb.com/docs/last/SQL-Update.html 来源: https://stackoverflow.com/questions/38060343/can-we-upsert-an

OrientDB ETL loading CSV with vertices in one file and edges in another

六月ゝ 毕业季﹏ 提交于 2019-11-30 22:29:39
I have some data that is in 2 CSV files, one contains the vertices and the other file contains the edges are in the other file. I'm working out how to set this up using ETL and am close but not quite there yet--it mostly works but my edges have properties and I'm not sure that they're loading right. This question was helpful but I'm still missing something... Here's my data: vertices.csv : label,data,date v01,0.1234,2015-01-01 v02,0.5678,2015-01-02 v03,0.9012,2015-01-03 edges.csv : u,v,weight,date v01,v02,12.4,2015-06-17 v02,v03,17.9,2015-09-14 I import my vertices using this: commonVertices

OrientDB ETL loading CSV with vertices in one file and edges in another

我怕爱的太早我们不能终老 提交于 2019-11-30 18:00:57
问题 I have some data that is in 2 CSV files, one contains the vertices and the other file contains the edges are in the other file. I'm working out how to set this up using ETL and am close but not quite there yet--it mostly works but my edges have properties and I'm not sure that they're loading right. This question was helpful but I'm still missing something... Here's my data: vertices.csv : label,data,date v01,0.1234,2015-01-01 v02,0.5678,2015-01-02 v03,0.9012,2015-01-03 edges.csv : u,v,weight

orientdb load graph csv of nodes and edges

流过昼夜 提交于 2019-11-30 09:57:11
问题 I'm a newbie in Orientdb . I have a csv file which has both the nodes and the edge and I need to create a graph out of that csv file . csv file "p1","p2","score" "LGG_00001","LGG_01682",282 "LGG_00001",".LGG_01831",183 "LGG_00001","LGG_01491",238 The edge is IsActingWith which had the score attribute { "source": { "file": { "path": "C:/Users/sams/Desktop/OrientDB2/lac2.csv" } }, "extractor": { "csv": {} }, "transformers": [ { "vertex": { "class": "lac2" } }, { "vertex": { "class": "lac2" } },

OrientDB: connected components OSQL query

社会主义新天地 提交于 2019-11-29 23:25:20
问题 Does anybody know how to compute the connected components of a graph with an OrientDB query? I'm trying to replicate what was done here but I'm missing something similar to a REDUCE operator for collections. Thanks in advance. 回答1: This query SELECT distinct(traversedElement(0)) FROM (TRAVERSE both('ManagedBy') FROM Employee) Returned me the right result. At the beginning I could not understand why but then I figured out that the default strategy used in TRAVERSE is DFS that's why we can rely

orientdb load graph csv of nodes and edges

醉酒当歌 提交于 2019-11-29 17:30:02
I'm a newbie in Orientdb . I have a csv file which has both the nodes and the edge and I need to create a graph out of that csv file . csv file "p1","p2","score" "LGG_00001","LGG_01682",282 "LGG_00001",".LGG_01831",183 "LGG_00001","LGG_01491",238 The edge is IsActingWith which had the score attribute { "source": { "file": { "path": "C:/Users/sams/Desktop/OrientDB2/lac2.csv" } }, "extractor": { "csv": {} }, "transformers": [ { "vertex": { "class": "lac2" } }, { "vertex": { "class": "lac2" } }, { "edge": { "class": "IsActingWith", "joinFieldName": "score_p", "lookup": "acore", "direction": "out"