janusgraph

Best way to get (millions of rows of) data into Janusgraph via Tinkerpop, with a specific model

核能气质少年 提交于 2020-03-22 09:20:10
问题 Just started out with Tinkerpop and Janusgraph, and I'm trying to figure this out based on the documentation. I have three datasets, each containing about 20 milions rows (csv files) There is a specific model in which the variables and rows need to be connected, e.g. what are vertices, what are labels, what are edges, etc. After having everything in a graph, I'd like to of course use some basic Gremlin to see how well the model works. But first I need a way to get the data into Janusgraph.

How to build index for already present property?

删除回忆录丶 提交于 2020-03-05 00:32:07
问题 When I am updating my schema, I created a new property(say A) but I forgot to build index. Without knowing that, I have tried to add the value for that property resulted in :> g.V().hasLabel('AA').has('active',true).property('A','ok').count() ** Could not find a suitable index to answer graph query and graph scans are disabled: [(~label = user)]:VERTEX** :> g.V().hasLabel('AA').has('active',true).has('A','ok').valueMap() But when I do valueMap by traversing it with other indexed property then

How to build index for already present property?

前提是你 提交于 2020-03-05 00:30:51
问题 When I am updating my schema, I created a new property(say A) but I forgot to build index. Without knowing that, I have tried to add the value for that property resulted in :> g.V().hasLabel('AA').has('active',true).property('A','ok').count() ** Could not find a suitable index to answer graph query and graph scans are disabled: [(~label = user)]:VERTEX** :> g.V().hasLabel('AA').has('active',true).has('A','ok').valueMap() But when I do valueMap by traversing it with other indexed property then

【巨杉数据库SequoiaDB】社区分享 | SequoiaDB + JanusGraph 实践

▼魔方 西西 提交于 2020-02-27 13:29:39
本文来自社区用户投稿,感谢小伙伴的技术分享 项目背景 大家好!在春节这段时间里,由于一直在家,所以花时间捣鼓了一下代码,自己做了 SequoiaDB 和 JanusGraph 的兼容扩展工作。 自己觉得这个项目还是挺有意思的,本着开源即是美德的想法,我把自己的代码开源出来了,欢迎 JanusGraph 和 SDB 爱好者拍砖,也希望对这块比较感兴趣的朋友,可以和我一起来完善这个项目。 我们团队在做一个项目时,引入了国产数据库 SequoiaDB,感觉效率啊,维护性啊,都比较友好。自己呢,年前也刚好在其他场景需要应用到一些图计算相关的技术,就想着是否可以为 SequoiaDB 加个 JanusGraph 的翅膀。因为根据我的理解,JanusGraph 对存储扩展极度的友好。 (项目地址:https://github.com/ak918808/sequoiadb_for_janusgraph) JanusGraph 介绍 实际上,在图数据领域里,Neo4j 才是真正处于统治地位的,但是无奈它的社区版本,性能“限(yan)制(ge)”得太过分了,功能也是各种被砍,难以使用在生产环境里。至于企业版,目前也没有专门的预算给到这块的需求。 而看看图数据库里的老二 -- JanusGraph ,Apache 基金会顶级项目,顶着当年明星项目 Titan 的光环,继续忍辱负重地前行。

Using valueMap with match()

假如想象 提交于 2020-01-25 11:23:06
问题 I am calling JanusGraph remote, which returns ReferenceVertex by default. In order to retrieve properties as well, I use valueMap(), which works well for simple queries. However, in my use case I need to build a join, which works well based on ReferenceVertex as follows: // select t1.table2_ID, t2.table2_ID from table1 as t1 inner join table2 as t2 on t1.table2_ID = t2.table2_ID GraphTraversal<?, ?> t1 = __.start().as("table1").out("relatesTo").hasLabel("table2").as("table2"); GraphTraversal<

Where to configure GraphSONVersion.V1_0 for JanusGraph Gremlin Server?

纵饮孤独 提交于 2020-01-06 04:40:33
问题 I am using JanusGraph 0.3.1 and gremlin javascript driver from Tinkerpop. I am trying to access the graph and when I try to retrieve the valueMap() in my queries, I am getting type information. Which is not what I was looking for I am looking for plain V1_0 variation of the GraphSON response. Please suggest where I shall update the GraphSON version configuration? on the server? or on the client while creating the client object? In my node js service's package.json I've: "gremlin": "^2.6.0",

Gremlin Python in Web Application

浪子不回头ぞ 提交于 2020-01-04 08:15:11
问题 I have a python flask web app, which is querying a Janus graph DB using gremlin_python . One basic question is the correct way to initialize the graph traversal object. Can I initialize my traversal g = traversal().withRemote(DriverRemoteConnection(...) and persist the traversal variable g across requests? (All requests are against the same graph. I tried this and started getting tornado.iostream.StreamClosedError intermittently. Second option is the create a traversal per request. I do not

Using JanusGraph with Solr

余生长醉 提交于 2020-01-02 16:14:31
问题 Setting up JanusGraph i noticed the following in the console: 09:04:12,175 INFO ReflectiveConfigOptionLoader:173 - Loaded and initialized config classes: 10 OK out of 12 attempts in PT0.023S 09:04:12,230 INFO Reflections:224 - Reflections took 28 ms to scan 1 urls, producing 2 keys and 2 values 09:04:12,291 WARN GraphDatabaseConfiguration:1445 - Local setting index.search.index-name=entity (Type: GLOBAL_OFFLINE) is overridden by globally managed value (janusgraph). Use the ManagementSystem

vertex_ids table missing in cassandra under the janusgraph keyspace?

北战南征 提交于 2019-12-25 09:43:12
问题 Titan graph when used with cassandra creates a table "vertex_ids" under the "titan" keyspace. But when working with janus , I can't seem to find the "vertex_ids" table under the 'janusgrpah' keyspace. Also I read the documentation where they describe how the values are stored but it doesn't tell under which tables. 回答1: JanusGraph started from TitanDB 1.0.0. Both are using these below cassandra tables : edgestore : Store Vertex, Property and Edges as Adjacency List graphindex : Builtin

Janusgraph error while tring to connect with backend

我怕爱的太早我们不能终老 提交于 2019-12-25 08:57:20
问题 I'm trying to run ./bin/gremlin-server.sh ./conf/gremlin-server/gremlin-server.yaml I can see cassandra in process list but the client wont connect, i got this error all the time: 263 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Configuring Gremlin Server from ./conf/gremlin-server/gremlin-server.yaml 400 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager - Configured Metrics ConsoleReporter configured with report interval=180000ms 402 [main] INFO org.apache