|
Re: Can we create a new API based on JanusGraph?
Hello Rafael
I've built the API use JanusGraph Server, and i have successfully access the api with
```
curl 'http://localhost:8182/?gremlin=g.V()'
```
In gremlin console i can index my vertex with
Hello Rafael
I've built the API use JanusGraph Server, and i have successfully access the api with
```
curl 'http://localhost:8182/?gremlin=g.V()'
```
In gremlin console i can index my vertex with
|
By
stan...@...
·
#601
·
|
|
Re: Phantom vertices
You probably want to count the edges:
g.V().hasLabel('person').group().by('name').by(outE().count()).order(local).by(values,decr).limit(local,5)
Robert Dale
You probably want to count the edges:
g.V().hasLabel('person').group().by('name').by(outE().count()).order(local).by(values,decr).limit(local,5)
Robert Dale
|
By
Robert Dale <rob...@...>
·
#600
·
|
|
Re: Phantom vertices
I found my phantom person Vertex.
So, I was doing this query to find the top 5 actors who had acted in the most movies. I don't think the query is correct for what I am trying to do since the result
I found my phantom person Vertex.
So, I was doing this query to find the top 5 actors who had acted in the most movies. I don't think the query is correct for what I am trying to do since the result
|
By
Rohit Jain <rohit.j...@...>
·
#597
·
|
|
Re: Phantom vertices
This is EXACTLY what I was looking for! I could not find how to do this. I must educate myself better but don't seem to find an easy way to do that :-( Maybe SQL is too ingrained in my blood and
This is EXACTLY what I was looking for! I could not find how to do this. I must educate myself better but don't seem to find an easy way to do that :-( Maybe SQL is too ingrained in my blood and
|
By
Rohit Jain <rohit.j...@...>
·
#596
·
|
|
Re: Phantom vertices
Let's see what you've got:
g.V().groupCount().by(label)
g.V().values('movieid').min()
g.V().values('movieid').max()
g.V().values('personid').min()
g.V().values('personid').max()
Robert Dale
Let's see what you've got:
g.V().groupCount().by(label)
g.V().values('movieid').min()
g.V().values('movieid').max()
g.V().values('personid').min()
g.V().values('personid').max()
Robert Dale
|
By
Robert Dale <rob...@...>
·
#599
·
|
|
Re: How do I get out of a continuation line (?) in Gremlin
I actually figured it out since I found that :h worked in that situation and then I saw :c. But you beat me to my posting that I had found the solution to the problem.
Thanks!!
Rohit
I actually figured it out since I found that :h worked in that situation and then I saw :c. But you beat me to my posting that I had found the solution to the problem.
Thanks!!
Rohit
|
By
Rohit Jain <rohit.j...@...>
·
#595
·
|
|
Re: How do I get out of a continuation line (?) in Gremlin
The gremlin console is built on top of groovysh so many of the same commands and usage will apply. See also gremlin console tutorial -
The gremlin console is built on top of groovysh so many of the same commands and usage will apply. See also gremlin console tutorial -
|
By
Robert Dale <rob...@...>
·
#598
·
|
|
Re: How do I get out of a continuation line (?) in Gremlin
:clear
:help
--
Robert Dale
:clear
:help
--
Robert Dale
|
By
Robert Dale <rob...@...>
·
#603
·
|
|
How do I get out of a continuation line (?) in Gremlin
When I make a syntax error or have a command that ends up in two lines I end up with this situation:
gremlin> g.V().hasNot('personid','movieid).count()
......1>
How do I get out of this?
When I make a syntax error or have a command that ends up in two lines I end up with this situation:
gremlin> g.V().hasNot('personid','movieid).count()
......1>
How do I get out of this?
|
By
Rohit Jain <rohit.j...@...>
·
#594
·
|
|
Phantom vertices
Hi folks,
I created 4916 vertices with the label 'movie' and a property 'movieid' where the movieid goes from 1 to 4916.
I created 8491 vertices with the label 'person' and a property 'personid' where
Hi folks,
I created 4916 vertices with the label 'movie' and a property 'movieid' where the movieid goes from 1 to 4916.
I created 8491 vertices with the label 'person' and a property 'personid' where
|
By
Rohit Jain <rohit.j...@...>
·
#593
·
|
|
Re: Index on a vertex label from Java
Hmm, maybe I'll try that, thanks. I briefly considered that approach, but ended up going with indexes on a "pseudo-label" instead.
Hmm, maybe I'll try that, thanks. I briefly considered that approach, but ended up going with indexes on a "pseudo-label" instead.
|
By
Peter Schwarz <kkup...@...>
·
#592
·
|
|
Re: Load CSV file to addVertex and addEdge
solved
在 2017年8月15日星期二 UTC+8下午9:48:37,hu junjie写道:
solved
在 2017年8月15日星期二 UTC+8下午9:48:37,hu junjie写道:
|
By
hu junjie <hjj...@...>
·
#591
·
|
|
How can I get all the file names under one folder using gremlin?
How can I get all the file names under one file folder? and foreach all the file names? using gremlin command
How can I get all the file names under one file folder? and foreach all the file names? using gremlin command
|
By
hu junjie <hjj...@...>
·
#590
·
|
|
Re: Load CSV file to addVertex and addEdge
I have an alternative method to solve it. 2 times loop.
new
I have an alternative method to solve it. 2 times loop.
new
|
By
hu junjie <hjj...@...>
·
#589
·
|
|
Load CSV file to addVertex and addEdge
I have the below gremlin command below. it can work fine.
new
I have the below gremlin command below. it can work fine.
new
|
By
hu junjie <hjj...@...>
·
#588
·
|
|
Re: [BLOG] Configuring JanusGraph for spark-yarn
Marc - thank you for this. I'm going to try getting the latest version of JanusGraph, and compiling it with our specific version of Cloudera CDH, then run some tests. Will report back.
Marc - thank you for this. I'm going to try getting the latest version of JanusGraph, and compiling it with our specific version of Cloudera CDH, then run some tests. Will report back.
|
By
Joe Obernberger <joseph.o...@...>
·
#587
·
|
|
Re: Multiple indexes for the same property key with different label constraints
Thank you, your suggestion provided me with the clues to a solution. This is how I do things now:
1st tx: create any necessary property keys and build the index. Commit
2ndtx: Inspect the status of
Thank you, your suggestion provided me with the clues to a solution. This is how I do things now:
1st tx: create any necessary property keys and build the index. Commit
2ndtx: Inspect the status of
|
By
Peter Schwarz <kkup...@...>
·
#586
·
|
|
Re: Index on a vertex label from Java
I actually needed to do the same thing back when I started my project, but I just ended up using edges instead of vertex labels...
vertex centric indexes helped and improved the performance like crazy
I actually needed to do the same thing back when I started my project, but I just ended up using edges instead of vertex labels...
vertex centric indexes helped and improved the performance like crazy
|
By
Rafael Fernandes <luizr...@...>
·
#585
·
|
|
Re: Can we create a new API based on JanusGraph?
no need my friend, just use JanusGraph Server...
have a look at this: http://docs.janusgraph.org/0.1.1/server.html
rafael fernandes
no need my friend, just use JanusGraph Server...
have a look at this: http://docs.janusgraph.org/0.1.1/server.html
rafael fernandes
|
By
Rafael Fernandes <luizr...@...>
·
#584
·
|
|
Re: JanusGraph Bare Minimum
Hi Kim,
quite simple really, just get the core and choose one of the supported DB backends.
of course, a lot of required dependencies will be downloaded but no way around it right.
here is how it
Hi Kim,
quite simple really, just get the core and choose one of the supported DB backends.
of course, a lot of required dependencies will be downloaded but no way around it right.
here is how it
|
By
Rafael Fernandes <luizr...@...>
·
#583
·
|