On Thursday, December 8, 2011 2:48:59 AM UTC-6, Dmytrii Nagirniak wrote:
Unfortunately I couldn't see a lot of value in the REST API either.
The core operations that are taken for granted with native bindings
(traversals using poor Ruby constructs) would require to execute HTTP
request (that's
Michael Hunger wrote
you should use native gremlin params where they can be used. otherwise
you'll blow the scriptengine in the plugin and loose lots of performance
Hi Michael -
What do you mean exactly? After the JSON param converts to a map, everything
is a native Groovy param.
- James
Michael Hunger wrote
I understood you were just templating the params in there (string
replacement) which would result in different groovy strings for every set
of different parameters. Is this correct?
The string replacement is done on the client side. When the script is
presented to the
Michael Hunger wrote
The gremlin plugin (as does the cypher plugin) take an map (a json map) as
params, each of which which you then can refer to everywhere in the
gremlin script (key == variable name, value == value). So no need for
JSONSlurper.
Ahh, that's different than Rexster's
Michael -
If I understand you correctly, then this modified Gremlin script and request
format should solve problem 2:
Gremlin Script:
https://gist.github.com/1453964
Script Engine REST Request that uses params:
https://gist.github.com/1453966
- James
--
View this message in context:
Michael -
What if each Gremlin script was scoped inside a Groovy function?
Example: https://gist.github.com/1454298
Would that help keep things clean?
- James
--
View this message in context:
Brendan cheng-2 wrote:
What design pattern do you recommend for user authentication and
authorization in neo4j graph? I'm searching a simple and flexible way to
restrict the access to certain part of graph which is dynamically depends
on the user and role...etc.How to avoid excessive
/tinkerpop/rexster/wiki/), which is another Neo4j REST
server, but the principles are the same.
You can view the source code here:
https://github.com/espeed/bulbs/tree/master/bulbs
Here are the module layers from lowest to highest:
rest.py, element.py, index.py graph.py, model.py
Hi Yaniv -
Something to keep in mind...
It's now easy to use an external full-text index such as Solr,
ElasticSearch, or IndexTank
(http://indextank.com/) for full-text search and then use Neo4j for
rankings.
For example, you could do the full-text query using Solr and have it
return a list of
Hi Xavier -
If you would, provide a more detailed description of what the query is
trying to do.
You might look at the Gremlin aggregate, scatter, and gather methods, and I
thought there was a collect() method, but I don't see it in the docs --
Marko, isn't/wasn't that method?).
Here are some
I added a ticket for this here...
https://github.com/neo4j/community/issues/18
--
View this message in context:
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Write-Performance-tp3323638p3327618.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
Hi Guys -
I have been working on loading WordNet (http://wordnet.princeton.edu/) into
Neo4j, and have been using it as an opportunity to tune write performance on
Linux for a Web application I am developing.
My initial idea was to load WordNet RDF
(http://semanticweb.cs.vu.nl/lod/wn30/) through
Xavier Shay wrote:
I have just upgraded to neo4j 1.5 (brew install neo4j --HEAD) and am
getting
the following exception whenever I try to use a pipe:
curl -H Accept:application/json -X POST -d
'{script:g.v(1)._().both;}'
Hi Xavier -
Gremlin and Pipes has been undergoing a massive
Marko Rodriguez-2 wrote:
For all nodes in a particular index, how many other nodes are they
connected to at depth X?
Here is how I would do it -- groupCount is not needed.
g.idx(index_name)[[key:value]].both.loop(1){it.loops depth}.count()
Thanks Marko. A couple
Hi Guys -
I'm trying to compile and run the write test
(https://svn.neo4j.org/laboratory/users/johan/write-test) from
http://wiki.neo4j.org/content/Linux_Performance_Guide, and I'm getting this
error:
https://gist.github.com/1205327
Is there a newer version of this?
Thanks.
- James
--
Bryce Ewing wrote:
You can get this working by replacing the parent pom reference in the
pom.xml file with:
parent
groupIdorg.neo4j.build/groupId
artifactIdparent-central/artifactId
version25/version
/parent
Instead of the current:
parent
groupIdorg.neo4j/groupId
Xavier Shay wrote:
For all nodes in a particular index, how many other nodes are they
connected to at depth X?
Marko will be able to improve upon this, but try something like this (this
is untested)...
m = [:]
depth = 10
index_name = vertices
index_key = name
index_nodes =
Peter Neubauer wrote:
I would try the blueprints rdf importer. look at my github home
(peterneubauer) for a project to import rdf from dbpedia which should
work for any rdf.
Thanks Peter!
--
View this message in context:
Has anyone here loaded WordNet 3.0 (http://wordnet.princeton.edu/) into Neo4j
or have pointers for doing so?
WordNet 2.0 is in RDF form (http://www.w3.org/2006/03/wn/wn20/) as well as
3.0 (http://semanticweb.cs.vu.nl/lod/wn30/).
What's the best way to load/convert RDF data into Neo4j?
Thanks!
to write custom,
user-defined Gremlin steps in Jython.
The library is called mogwai, and it's on Github
(https://github.com/espeed/mogwai).
You should be able to adapt it for any JVM language.
Here's the example code:
Jython module:
https://github.com/espeed/mogwai/blob/master/mogwai/steps
Michael Hunger wrote:
What one could do at a lower level is to create operations like
db.obtainUniqueNode(Map properties,String...idProperties);
node.obtainUniqueRelationship(dir, type, props, String...idProperties);
node.obtainUniqueRelationship(dir, type, targetNode, props,
Michael Hunger wrote:
Probably we have to add this unique property behavior to the auto-indexing
framework.
Right now we have no means to mark properties as unique.
So whenever you take a different node and set one of its unique
properties to a value already contained in an unique
Hi -
The issue of unique indices came up several times earlier this summer:
http://neo4j.org/forums/#nabble-td3047393
http://neo4j.org/forums/#nabble-td3148364
http://lists.neo4j.org/pipermail/user/2011-June/009809.html
And Mattias created a support ticket:
The Gremlin Wiki (https://github.com/tinkerpop/gremlin/wiki) is where you can
find the Gremlin documentation.
Specifically look at the Gremlin Methods
(https://github.com/tinkerpop/gremlin/wiki/Gremlin-Methods) and Gremlin
Steps (https://github.com/tinkerpop/gremlin/wiki/Gremlin-Steps) cheat
Hey guys -
I just released Bulbflow, a new Python framework for graph databases.
It supports Neo4j and Gremlin through Rexster, and it's online at
http://bulbflow.com .
Enjoy!
- James
--
View this message in context:
Hi Javier -
Thanks! Yeah, Bulbflow (Bulbs) is what I was talking in when we were
commenting in Hacker News a few weeks ago
(http://news.ycombinator.com/item?id=2684816). I have used your API for the
Neo4j REST server, but I didn't know you were working on one for Rexster too
-- we should exchange
It depends on the traversal you are running.
--
View this message in context:
http://neo4j-user-list.438527.n3.nabble.com/Neo4j-Traversals-versus-Indexing-tp3057515p3057538.html
Sent from the Neo4J User List mailing list archive at Nabble.com.
___
How do you configure neo4j not to reuse IDs?
Thanks.
- James
--
View this message in context:
http://neo4j-user-list.438527.n3.nabble.com/How-Do-You-Configure-neo4j-Not-to-Reuse-IDs-tp2874501p2874501.html
Sent from the Neo4J User List mailing list archive at Nabble.com.
I found the mentions of a patch from about a year ago...
http://lists.neo4j.org/pipermail/user/2010-June/003964.html
Has something like this with a configuration param made it into the main
branch?
Thanks.
- James
--
View this message in context:
29 matches
Mail list logo