Re: Dynamic edge creation
Daniel Kuppitz <me@...>
This should do the trick:
However, note that this query will do 2 full table scans under the hood (unless Janus already has some runtime optimization that I'm not aware of). In any case it will be at least one full table scan. Cheers, Daniel On Fri, Sep 15, 2017 at 6:44 AM, Ankur Goel <ankur...@...> wrote:
|
|
Re: Dynamic edge creation
Robert Dale <rob...@...>
g.V().hasLabel('player').as('player').V().hasLabel('Country').where(eq('player')).by('name').by('POB').addE('Z').from('player') Robert Dale
On Fri, Sep 15, 2017 at 9:44 AM, Ankur Goel <ankur...@...> wrote:
|
|
Re: Encountered error in deserializer [null value returned]. Check serializer compatibility.
Jason Plurad <plu...@...>
This question could use more context. What data did you load into the graph before calling on g.V().valueMap()?
On Friday, September 15, 2017 at 9:15:41 AM UTC-4, Ankur Goel wrote:
|
|
Re: Dynamic edge creation
Ankur Goel <ankur...@...>
Thnx Robert, i am looking for a query like create edges where they have common properties without explicitly defining properties values: g.V().has('player','POB',${A}). ~AnkurG
On Friday, September 15, 2017 at 3:02:46 PM UTC+5:30, Ankur Goel wrote:
|
|
Encountered error in deserializer [null value returned]. Check serializer compatibility.
Ankur Goel <ankur...@...>
Some times i get below exception using embedded JanusServer (cassandra + es): gremlin> g.V().valueMap() Encountered error in deserializer [null value returned]. Check serializer compatibility. Type ':help' or ':h' for help. Display stack trace? [yN]y org.apache.tinkerpop.gremlin.groovy.plugin.RemoteException: Encountered error in deserializer [null value returned]. Check serializer compatibility. at org.apache.tinkerpop.gremlin.console.groovy.plugin.DriverRemoteAcceptor.submit(DriverRemoteAcceptor.java:170) at org.apache.tinkerpop.gremlin.console.GremlinGroovysh.execute(GremlinGroovysh.groovy:99) at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:122) at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:95) at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy) at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:152) at org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:124) at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:59) at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:152) at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:83) at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) at org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:152) at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:455) After restarting the JanusServer it starts working. ~AnkurG
|
|
Fetching TTL for individual graph vertices
sankar...@...
Hi All, We are working on janusgraph-cassandra api, and have implemented TTL on vertex labels. But we want to fetch the value of TTL for each vertex, Below link gives reference to fetch TTL of individual records in Cassandra, and we want to implement this using janusgraph. Cassandra Query https://docs.datastax.com/en/cql/3.3/cql/cql_reference/cqlSelect.html Cassandra Query :- 'SELECT TTL(race_name) FROM cycling.calendar WHERE race_id=200; Output: ttl(race_name) ---------------- 276 We want to implement above query of cassandra using janusgraph.
So, can you please give reference to some link, or give some clarity on how we can implement this using Janusgraph.
|
|
Re: Enable logging for queries
Robert Dale <rob...@...>
Please create an issue for review at https://github.com/JanusGraph/janusgraph/issues Robert Dale
On Fri, Sep 15, 2017 at 3:55 AM, Ankur Goel <ankur...@...> wrote:
|
|
Re: Dynamic edge creation
Robert Dale <rob...@...>
Robert Dale
On Fri, Sep 15, 2017 at 6:56 AM, Robert Dale <rob...@...> wrote:
|
|
Re: Dynamic edge creation
Robert Dale <rob...@...>
g.V().has('player','POB','X').as('a').V().has('Country','name','Y').addE('Z').from('a') or you can flip it around g.V().has('Country','name','Y').as('b').V().has('player','POB','X').addE('Z').to('b') Robert Dale
On Fri, Sep 15, 2017 at 5:32 AM, Ankur Goel <ankur...@...> wrote:
|
|
Dynamic edge creation
Ankur Goel <ankur...@...>
Hi, In JanusGraph to create edges we have two steps process:
Linkage between both steps is through App only. How ever in neo4j, we can create edges using one step: MATCH (a:player), (b:Country) WHERE a.POB = "X" AND b.name = "Y" CREATE (a)-[r: Z]->(b) RETURN a,b Can we achieve the same in JanusGraph using Janus or tinkerpoop. ~AnkurG
|
|
Re: Enable logging for queries
Ankur Goel <ankur...@...>
Thnx Got the problem resolved: As per SLF4j: Embedded components such as libraries or frameworks should not declare a dependency on any SLF4J binding but only depend on slf4j-api. When a library declares a compile-time dependency on a SLF4J binding, it imposes that binding on the end-user, thus negating SLF4J's purpose. When you come across an embedded component declaring a compile-time dependency on any SLF4J binding, please take the time to contact the authors of said component/library and kindly ask them to mend their ways. Request to exclude following dependency <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> from JanusGraph. <groupId>org.janusgraph</groupId>
<artifactId>janusgraph-es</artifactId>
<artifactId>janusgraph-cassandra</artifactId> <artifactId>gremlin-driver</artifactId> Logging will start working. ~AnkurG
On Wednesday, September 13, 2017 at 3:39:10 PM UTC+5:30, Ankur Goel wrote:
|
|
Re: org.apache.tinkerpop.gremlin.groovy.plugin.RemoteException
Ankur Goel <ankur...@...>
By default label should be indexed or some provision to index label should be in configuration. Else no use of label. ~AnkurG
On Tuesday, September 12, 2017 at 9:29:27 PM UTC+5:30, Suny wrote:
|
|
Re: Incorrect results when querying
Brandon Dean <engr...@...>
Thanks Daniel! I had a feeling I was missing something obvious...
On Thursday, September 14, 2017 at 2:21:44 PM UTC-5, Daniel Kuppitz wrote:
|
|
Re: Incorrect results when querying
Daniel Kuppitz <me@...>
The first number in between should be smaller than the second. Try:
Cheers, Daniel On Thu, Sep 14, 2017 at 12:14 PM, Brandon Dean <engr...@...> wrote:
|
|
Incorrect results when querying
Brandon Dean <engr...@...>
I have ran into an issue recently where I am receiving incorrect results when submitting certain queries. Here is an example:
The first query should have returned the results in the second query at a minimum. I receive no errors and there is nothing in the log files that seems to indicate an issue. My next step will be to turn on DEBUG logging, but does anyone have any suggestions on how else to troubleshoot an issue like this? I am utilizing the builtin instance of C* and ElasticSearch with version 0.1.1 of JanusGraph.
|
|
Re: hi,janusgraph. store 15000W vertex
Robert Dale <rob...@...>
It would help your cause if you provided details on exactly what it is that you're doing. Configuration. Schema. Graph. Code. Timings. Expectations. Robert Dale
On Thu, Sep 14, 2017 at 1:27 AM, 李平 <lipin...@...> wrote:
|
|
Re: hi,janusgraph. store 15000W vertex
李平 <lipin...@...>
yeah. I have use index , the query. use index. but still very. slow. 在 2017年9月14日星期四 UTC+8上午2:25:21,thomas prelle写道:
You should use indexes.
|
|
Re: hi,janusgraph. store 15000W vertex
李平 <lipin...@...>
yeah. I have use index , the query. use index. but still very. slow. 在 2017年9月14日星期四 UTC+8上午2:25:21,thomas prelle写道:
You should use indexes.
|
|
Re: Custom attribute serializer
J MacNaught <jma...@...>
Aha! Perhaps it would be best to configure it programmatically from the beginning. I already have a java program to define all my schema elements.
On Wednesday, September 13, 2017 at 5:33:45 PM UTC-4, Robert Dale wrote:
|
|
Re: Custom attribute serializer
Robert Dale <rob...@...>
You can change it, just not through the properties file. You have to use the Management interface. See http://docs.janusgraph.org/latest/configuration.html#configuration-global Robert Dale
On Wed, Sep 13, 2017 at 5:30 PM, J MacNaught <jma...@...> wrote:
|
|