Re: [Neo4j] Modeling subrelationships in Neo4j

2011-12-07 Thread Niels Hoogeveen
I think my explanation was not clear as it should be. I wasn't suggesting to replace the relationships with a node, but to shadow the relationshiptypes with a node. Let's say we have two relationshiptypes, KNOWS and FRIEND, where we want to state that friends form a subset of the people a perso

Re: [Neo4j] Modeling subrelationships in Neo4j

2011-12-06 Thread Niels Hoogeveen
It cannot directly be done through the standard API, but of course it can be implemented. I do this myself in an application I am building. For every RelationshipType, i create a Node and between those Nodes there can have subtyping relationships. To make lookup fast, I use the node-id of the R

Re: [Neo4j] Moving to u...@neo4j.org

2011-11-30 Thread Niels Hoogeveen
Good decision. Immediately signed up. > From: peter.neuba...@neotechnology.com > Date: Wed, 30 Nov 2011 13:55:44 +0100 > To: user@lists.neo4j.org > Subject: [Neo4j] Moving to u...@neo4j.org > > Hi all, > we are going to move from mailman to google groups, > http://groups.google.com/a/neo4j.org/g

Re: [Neo4j] collation and wild card queries

2011-11-28 Thread Niels Hoogeveen
be a patch out there to provide some additional > wildcard/range capabilities for these Analyzers. Note also that in general, > Solr analyzers/filters can be used with Lucene by themselves. > > Rick > > -Original Message- > From: user-boun...@lists.neo4j.org [mailto:user

[Neo4j] collation and wild card queries

2011-11-28 Thread Niels Hoogeveen
In order to have proper sort order for Strings with diacritical characters, I started using Lucene's ICUCollationKeyAnalyzer. This indeed gives the proper sort order for queries, but for some reason wild card queries no longer seem to work. This applies for both the normal CollationKeyAnalyzer

Re: [Neo4j] Neo4j upcoming features importance poll

2011-11-22 Thread Niels Hoogeveen
I noticed work on supernodes being committed to GitHub. Looking forward seeing this and in 1.6-SNAPSHOT. I would like to test this sooner rather than later. The node#getDegree methods are a great addition. Niels > From: peter.neuba...@neotechnology.com > Date: Tue, 22 Nov 2011 15:51:15 +0100 >

Re: [Neo4j] Lucene sort with diacritic characters

2011-11-11 Thread Niels Hoogeveen
hopefully this will help get you pointed in the right direction. > > Rick > > > > ____ > From: user-boun...@lists.neo4j.org [user-boun...@lists.neo4j.org] On Behalf > Of Niels Hoogeveen [pd_aficion...@hotmail.com] > Sent: Friday, N

Re: [Neo4j] Lucene sort with diacritic characters

2011-11-11 Thread Niels Hoogeveen
this will help get you pointed in the right direction. > > Rick > > > > > From: user-boun...@lists.neo4j.org [user-boun...@lists.neo4j.org] On Behalf > Of Niels Hoogeveen [pd_aficion...@hotmail.com] > Sent: Friday, November 11, 2011 9:27 AM > To: user@lists.neo4j.org >

Re: [Neo4j] Lucene sort with diacritic characters

2011-11-11 Thread Niels Hoogeveen
anyone? > From: pd_aficion...@hotmail.com > To: user@lists.neo4j.org > Date: Thu, 10 Nov 2011 20:20:46 +0100 > Subject: [Neo4j] Lucene sort with diacritic characters > > > When retrieving items from a Lucene index, using the sort method, it seems > the order doesn't abide proper rules for sort

[Neo4j] Lucene sort with diacritic characters

2011-11-10 Thread Niels Hoogeveen
When retrieving items from a Lucene index, using the sort method, it seems the order doesn't abide proper rules for sorting diacritic characters. For example, Århus comes later in the list than Zürich and Ḩalab comes later than Žužemberk. Can someone help me solve this? Niels

Re: [Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Niels Hoogeveen
my brain is in jet lag mode :-\ > On Oct 27, 2011 7:26 PM, "Niels Hoogeveen" > wrote: > > > > > I see I made a bit of a mistake with this one. The gist of the solution > > remains, but I made a mistake dealing with the directions of relationship. > > It s

Re: [Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Niels Hoogeveen
I see I made a bit of a mistake with this one. The gist of the solution remains, but I made a mistake dealing with the directions of relationship. It should be something like this. public boolean areConnected(Node n1,Node n2, RelationshipType relType,Direction dir) { Direction dir2 = null; i

Re: [Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Niels Hoogeveen
I gave a different approach in another post, but I am actually not sure if I understand the problem correctly. You give a signature: public boolean areConnected(Node n1,Node n2,Relationship rel,Direction dir) If you simply want to check if the given Relationship connects n1 and n2 with the gi

Re: [Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Niels Hoogeveen
There is one caveat to this method, you'd have to know which node is most densely connected. Suppose one of the nodes has 100,000 relationships (incoming and outgoing) and the other node has only a few relationships, then you'd want to iterate over the relationships of the second node. A sol

Re: [Neo4j] Article: "The Coming SQL Collapse"

2011-10-14 Thread Niels Hoogeveen
I concur. In my opinion Neo4j is more a storage engine with certain storage features than a database management system. This is already exemplified by the absence of a query language as primary interface. The author is therefore wrong in his assessment that there is no separation of logical mo

Re: [Neo4j] Article: "The Coming SQL Collapse"

2011-10-14 Thread Niels Hoogeveen
Hijack alert (going completely off topic) I noticed the following statement: "all reasoning is best with a linked list data structure." When looking at the underlying store we see that the RelationshipRecord indeed forms two linked lists, one for the incoming side of the relationship and one fo

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Niels Hoogeveen
ith types > WORKS_AT and REFERS_TO might have something in common (e.g. they both have > to specify a boss who gives them orders). > > For now I don't think my problem requires interfaces before it can be be > solved, but I only just started so who knows :) > > Jon > O

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Niels Hoogeveen
e kind like "object blobs"), so in our metamodel, they are not stored as > nodes, relationships, and properties, but rather, as a JSON blob, serialized > as a string to a node property. That has worked out really well. When we do > need to filter/manipulate those, we do them

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Niels Hoogeveen
in > > for which it was OK to be "opaque" - e.g. although the structures were deep > > and complex, they did not require searchability or traversability (e.g. > > they were kind like "object blobs"), so in our metamodel, they are not > > stored as no

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Niels Hoogeveen
You raise interesting questions, most of them very much related to the work I did on Enhanced API. Let me start with the distinction between Node and Relationship, which in my opinion too is a bit artificial. I understand when creating a graph database, it is helpful to have something like ver

Re: [Neo4j] HyperRelationship example

2011-09-24 Thread Niels Hoogeveen
> > On Sat, Sep 24, 2011 at 5:00 PM, loldrup wrote: > > > > > Niels Hoogeveen wrote: > > > > > > I just posted an example on how to use HyperRelationships: > > > > > > > > https://github.com/peterneubauer/graph-collections/wiki/Hyper

Re: [Neo4j] Unrolled Linked List

2011-09-23 Thread Niels Hoogeveen
when > reading, or fails with a ConcurrentModificationException when reading and > data is changed. > > On Sat, Sep 24, 2011 at 6:00 AM, Niels Hoogeveen > wrote: > > > > > A quick skim of the code shows me you have a baseNode which is an > > entrypoint for the UL

Re: [Neo4j] Unrolled Linked List

2011-09-23 Thread Niels Hoogeveen
the data within the graph, not of > the given instantiation of the class, e.g. what happens when one thread gets > an instance of ULL based off a given node and is iterating over it, then > another thread gets an instance of a ULL and writes into it. > > Cheers > Bryce > > On

Re: [Neo4j] Unrolled Linked List

2011-09-22 Thread Niels Hoogeveen
It looks really cool. I always find it fun to create something and later find out it is an already known construction (something worth inventing). Anyway, I pulled your code and will removed the dependencies to the Enhanced API stuff this week. After that we can start adding some documentation.

Re: [Neo4j] Neo4j graph collections introduction of NodeCollection interface

2011-09-20 Thread Niels Hoogeveen
into a collection stored in a graph data structure. > > Thoughts? > > Cheers > Bryce > > P.S. Peter, I had thought to remove the passing in of the graph database and > instead just getting it from the node, or only passing in the graph database > and creating

Re: [Neo4j] Neo4j graph collections introduction of NodeCollection interface

2011-09-16 Thread Niels Hoogeveen
Hi Bryce, I really like what you are trying to achieve here. One question: Instead of having NodeCollection, why not have GraphCollection. That way we can have collections of both Relationships and Nodes. Niels > Date: Fri, 16 Sep 2011 17:37:29 +1200 > From: bryc...@gmail.com > To: user@lists.n

Re: [Neo4j] Neo4j graph collections introduction of NodeCollection interface

2011-09-16 Thread Niels Hoogeveen
Bryce's point makes perfect sense. The argument graphDb().createNode() gives the constructor an instance of Node, which contains a reference to the database, so there is no real need to additionally supply the database instance. Of course his example would have been less confusing if he'd writte

Re: [Neo4j] Radix tree

2011-09-16 Thread Niels Hoogeveen
a's coolest Bring-a-Thing party. > > > > On Thu, Sep 15, 2011 at 1:48 PM, Niels Hoogeveen > wrote: > > > > Thanks to the good work of Davide, graph-collections now contains an > > implementation of Radix-tree. See: http://en.wikipedia.org/wiki/Radix_tree

[Neo4j] Radix tree

2011-09-15 Thread Niels Hoogeveen
Thanks to the good work of Davide, graph-collections now contains an implementation of Radix-tree. See: http://en.wikipedia.org/wiki/Radix_tree This particular datastructure can be used to store nodes sorted by a String value, very handy when you want to create associative arrays in Neo4j. Niels

Re: [Neo4j] regarding supernode

2011-09-09 Thread Niels Hoogeveen
Peter, I'd gladly put out a piece of code demonstrating the use of IndexRelationships, using this "LIVES_IN" example. Though I get the impression the question here relates to the normal relationship index. However when "supernodes" (still don't like that term for densely connected nodes) come

Re: [Neo4j] Issues with IndexedRelationship

2011-09-08 Thread Niels Hoogeveen
or given different situations. > > That does bring up a question though, there was some discussion a while ago > about some functionality along the lines of IndexedRelationship being pulled > into the core, so is that overkill for now if there is going to be another > core offering lat

Re: [Neo4j] Issues with IndexedRelationship

2011-09-08 Thread Niels Hoogeveen
good for given different situations. > > > > That does bring up a question though, there was some discussion a while ago > > about some functionality along the lines of IndexedRelationship being pulled > > into the core, so is that overkill for now if there is goi

Re: [Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Niels Hoogeveen
a large change? > > Maybe SortedTree would have two iterator's available a key_value > relationship iterator, and a node iterator. Having a quick look at it now > it seems that it could work ok that way without introducing much code > duplication. > > On Thu, Sep 8, 2011 at 12:46

Re: [Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Niels Hoogeveen
and these are all stored as strings. If it was going to help > with either memory or performance then I would be keen to migrate this to > two longs. > > Cheers > Bryce > > On Thu, Sep 8, 2011 at 11:07 AM, Niels Hoogeveen > wrote: > > > > > Great work Bry

Re: [Neo4j] Issues with IndexedRelationship

2011-09-07 Thread Niels Hoogeveen
Great work Bryce, I do have a question though. What is the rationale for the restriction mentioned under "1)". Do you need this for the general case (to make IndexedRelationshipExpander work correctly), or do you need it for your own application to throw that exception? If the latter is the cas

Re: [Neo4j] IndexedRelationship some observations and questions

2011-09-05 Thread Niels Hoogeveen
Hi Bryce, Sorry for my belated response. I have been away for a couple of days and wasn't able to check my emails. I am glad you took the time to look into the IndexRelationship module. It certainly could use some scrutiny. Remarks: 1) Good catch... Something the unit test didn't catch because

Re: [Neo4j] Hyperedges in Neo4j

2011-09-01 Thread Niels Hoogeveen
Correct, turing completeness is not the lower bound for non-guaranteed termination. It is however possible to have some forms of recursion without sacrificing guaranteed termination. Neo4j traversals, memorizing visited paths, relationships or nodes are an example (Note, it would be nice to hav

Re: [Neo4j] Hyperedges in Neo4j

2011-09-01 Thread Niels Hoogeveen
Hi Peter, Thanks for sharing this. Layout-wise, the solution you present is not really different from what Enhanced API does with regard to n-ary relationships. I would like to know if there is an elegant creation pattern for n-ary relationships, or do you have to rely on a manual creation of t

Re: [Neo4j] API adventures in Scalaland

2011-08-29 Thread Niels Hoogeveen
hs at any point and thus visualize > what's happening in the graph to illustrate :) > > /Peter > > On Monday, August 29, 2011, Niels Hoogeveen > wrote: > > > > In the last week I have been working on a Neo4j API in Scala, taking > navigation in the graph a

[Neo4j] API adventures in Scalaland

2011-08-28 Thread Niels Hoogeveen
In the last week I have been working on a Neo4j API in Scala, taking navigation in the graph as primary. Just like the Enhanced API written in Java, the Scala API generalizes each element (Node, Relationship, RelationshipType, property name and property value) of the Neo4j database as being a

Re: [Neo4j] Enhanced API rewrite

2011-08-23 Thread Niels Hoogeveen
w.linkedin.com/in/neubauer > Twitter http://twitter.com/peterneubauer > > http://www.neo4j.org - Your high performance graph database. > http://startupbootcamp.org/- Öresund - Innovation happens HERE. > http://www.thoughtmade.com - Scandinavia's coolest Brin

Re: [Neo4j] partitioning the relationship store

2011-08-18 Thread Niels Hoogeveen
Jim, Can you tell me how to add my suggestions for a solution to this problem to your issue tracker? Niels > From: pd_aficion...@hotmail.com > To: user@lists.neo4j.org > Date: Tue, 16 Aug 2011 16:33:04 +0200 > Subject: Re: [Neo4j] partitioning the relationship store > > > The partitioning is

Re: [Neo4j] partitioning the relationship store

2011-08-16 Thread Niels Hoogeveen
The partitioning is a solution to the densely-connected node problem, but would also allow for the iteration over RelationshipTypes/Directions, another feature I would very much like to see. I have posted suggestions on how to approach this problem and would like to add those suggestions to the

Re: [Neo4j] Subtyping

2011-08-16 Thread Niels Hoogeveen
> Sent from my phone. > On Aug 16, 2011 1:52 PM, "Niels Hoogeveen" > wrote: > > > > Yesterday, I added subtyping to Enhanced API. > > > > Suppose an application has UserGroups, Users and Roles, where both > UserGroups and Users are Vertices and

[Neo4j] partitioning the relationship store

2011-08-16 Thread Niels Hoogeveen
At the risk of coming off as an utter bore, I would like once more to raise awareness for the fact that the relationships of a node are currently stored as one linked list. The downside of this has been discussed in many posts, so I shan't rehash the points. It's just that whatever I try to i

[Neo4j] Subtyping

2011-08-16 Thread Niels Hoogeveen
Yesterday, I added subtyping to Enhanced API. Suppose an application has UserGroups, Users and Roles, where both UserGroups and Users are Vertices and Roles are BinaryEdges. There can be different predefined Roles, such as ADMINISTRATOR, EDITOR, MEMBER, GUEST. With subtyping it is possible to

Re: [Neo4j] Is data lost if the object graph and relationships are changed?

2011-08-15 Thread Niels Hoogeveen
, but after making changes to the relationships, does the graph service > automatically allow me to navigate from Person to ContactInfo to Address? > > -Original Message- > From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On > Behalf Of Niels Hoogeveen

Re: [Neo4j] Is data lost if the object graph and relationships are changed?

2011-08-15 Thread Niels Hoogeveen
All your existing relationships will remain the same, unless you remove them yourself. If you make your hypothetical changes, all Persons will keep a relationship to Address through the RESIDES_AT relationship, even though you now create a new ContactInfo entity that connects to Address too.

Re: [Neo4j] n-ary relationships

2011-08-15 Thread Niels Hoogeveen
Hi Emerson, Over the last couple of weeks, I have been working on an implementation of n-ary relationships on top of Neo4j. I also detailed how n-ary relationships could in principle be implemented in the database kernel (see: http://lists.neo4j.org/pipermail/user/2011-August/011191.html). Ri

Re: [Neo4j] Enhanced API wiki page

2011-08-13 Thread Niels Hoogeveen
volved in creating connections between facts. Is anyone seeing a > > more fluent/concise approach to this? Also, did you have some ideas > > about how to traverse or query these hyperedges? > > > > Cheers, > > > > /peter neubauer > > > > GTalk:

Re: [Neo4j] Enhanced API wiki page

2011-08-12 Thread Niels Hoogeveen
r > Twitter http://twitter.com/peterneubauer > > http://www.neo4j.org - Your high performance graph database. > http://startupbootcamp.org/- Öresund - Innovation happens HERE. > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. &g

Re: [Neo4j] Enhanced API wiki page

2011-08-11 Thread Niels Hoogeveen
eubauer > Twitter http://twitter.com/peterneubauer > > http://www.neo4j.org - Your high performance graph database. > http://startupbootcamp.org/- Öresund - Innovation happens HERE. > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. > >

Re: [Neo4j] length of property names

2011-08-10 Thread Niels Hoogeveen
which maps from String to internal ID (integer) > used in Neo4j). > > 2011/8/10 Niels Hoogeveen > > > > > I find myself using some pretty long property names, like > > "org.neo4j.collections.graphdb.node_id" and wonder if this has an impact on > > per

Re: [Neo4j] length of property names

2011-08-10 Thread Niels Hoogeveen
I find myself using some pretty long property names, like "org.neo4j.collections.graphdb.node_id" and wonder if this has an impact on performance. Niels From: pd_aficion...@hotmail.com To: user@lists.neo4j.org Subject: length of property names Date: Mon, 8 Aug 2011 15:44:20 +0200 Quick

Re: [Neo4j] Enhanced API wiki page

2011-08-09 Thread Niels Hoogeveen
I should of course market this work better. So hereby the statement: NOW with nice and handy images, free of charge!!! Niels > From: pd_aficion...@hotmail.com > To: user@lists.neo4j.org > Date: Wed, 10 Aug 2011 01:19:42 +0200 > Subject: [Neo4j] Enhanced API wiki page > > > Today I updated the

[Neo4j] Enhanced API wiki page

2011-08-09 Thread Niels Hoogeveen
Today I updated the wiki page for Enhanced API. Since the last edit many changes have taken place, so it was to to reflect those changes on the wiki page. See: https://github.com/peterneubauer/graph-collections/wiki/Enhanced-API I also changed what was previously called an "EdgeRole" into a "C

Re: [Neo4j] Enhanced API rewrite

2011-08-08 Thread Niels Hoogeveen
il.com > To: user@lists.neo4j.org > Subject: Re: [Neo4j] Enhanced API rewrite > > I ready to jump in too ;-) > > On Mon, Aug 8, 2011 at 3:37 PM, Niels Hoogeveen > wrote: > > > > > I can probably find the time for that. It would be fun working on these > > i

[Neo4j] length of property names

2011-08-08 Thread Niels Hoogeveen
Quick question: what is the performance impact of the length of a property name? Niels ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Enhanced API rewrite

2011-08-08 Thread Niels Hoogeveen
o4j.org - Your high performance graph database. > http://startupbootcamp.org/- Öresund - Innovation happens HERE. > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. > > > > On Sun, Aug 7, 2011 at 4:30 PM, Niels Hoogeveen > wrote:

[Neo4j] sub-graphs

2011-08-07 Thread Niels Hoogeveen
While I am at it, let's post another brain dump. A couple of weeks ago, I worked on SortedTree/IndexRelationships in an attempt to solve the densely-connected-node-problem. SortedTree is a Btree layed-out in the graph, sorted by some function on a node (eg. the nodeId, or a property value).

Re: [Neo4j] Node#getRelationshipTypes

2011-08-07 Thread Niels Hoogeveen
eotechnology.com > To: user@lists.neo4j.org > Subject: Re: [Neo4j] Node#getRelationshipTypes > > 2011/8/6 Niels Hoogeveen > > > > > This is the thread about store layer changes for type/direction, and in my > > opinion this is still quite low hanging fruit. Sure, t

[Neo4j] Store refactoring suggestions

2011-08-07 Thread Niels Hoogeveen
Over the last couple of weeks, I have been working on an Enhanced API for Neo4j, and would like to make some suggestions on how some changes to the store layout can improve Neo4j and make the implementation of the Enhanced API simpler and more transparent. Let me start with a definition of a r

Re: [Neo4j] Enhanced API rewrite

2011-08-07 Thread Niels Hoogeveen
er.com/peterneubauer > > http://www.neo4j.org - Your high performance graph database. > http://startupbootcamp.org/- Öresund - Innovation happens HERE. > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. > > > > On Sat, Aug 6, 2011

Re: [Neo4j] Enhanced API rewrite

2011-08-06 Thread Niels Hoogeveen
Today I added fluency to the API design. It is now possible to write: Db().createVertex() .setProperty(Name, "John") .setProperty(Age, 29) .addEdgeTo(june, WIFE) I also added support for VertexTypes, which is nothing more and nothing less than a Vertex with a unique name and a class name to in

Re: [Neo4j] Node#getRelationshipTypes

2011-08-06 Thread Niels Hoogeveen
low hanging. > > Den lördagen den 6:e augusti 2011 skrev Mattias > Persson: > > I would not consider this low hanging fruit btw > > > > Den onsdagen den 3:e augusti 2011 skrev Niels > > Hoogeveen: > >> > >> Hmmm... Does that require the inclus

Re: [Neo4j] Keeping context information in the Graph

2011-08-06 Thread Niels Hoogeveen
What you describe here is a ternary edge, something I try to cover in the Enhanced API. Your film example can be modeled as follows: There is an Edge "STARS" with the EdgeRoles: "Actor", "Film", "Role". We can now state: STARS -- Actor -- Brad Pitt -- Film -- Fight club -- Role -- Tyler Durd

[Neo4j] Enhanced API rewrite

2011-08-05 Thread Niels Hoogeveen
Today I pushed a major rewrite of the Enhanced API. See: https://github.com/peterneubauer/graph-collections/tree/master/src/main/java/org/neo4j/collections/graphdb Originally the Enhanced API was a drop-in replacement of the standard Neo4j API. This resulted in lots of wrapper classes that need

Re: [Neo4j] graph weight scheme design advice

2011-08-03 Thread Niels Hoogeveen
Hi Boris, What will be your decision procedure to determine what edges will be marked as heavy and which will be marked as light? Even if you establish a fixed ratio, you will still need to decide what relationships belong in one category and which belong in the other? Could you elaborate a lit

Re: [Neo4j] Memory overflow while creating big graph

2011-08-03 Thread Niels Hoogeveen
Is it possible for you to use the batch inserter, or does the data you are loading require a lot of lookups? Niels > From: jvcole...@gmail.com > Date: Wed, 3 Aug 2011 17:57:20 -0300 > To: user@lists.neo4j.org > Subject: [Neo4j] Memory overflow while creating big graph > > Hi, > > I'm trying to

Re: [Neo4j] Node#getRelationshipTypes

2011-08-03 Thread Niels Hoogeveen
. Niels > Date: Wed, 3 Aug 2011 16:31:04 +0200 > From: matt...@neotechnology.com > To: user@lists.neo4j.org > Subject: Re: [Neo4j] Node#getRelationshipTypes > > A golden helicopter might do the trick :) > > 2011/8/3 Niels Hoogeveen > > > > > How does one p

Re: [Neo4j] Batch find

2011-08-03 Thread Niels Hoogeveen
That should be "without having to do any lookups" > From: pd_aficion...@hotmail.com > To: user@lists.neo4j.org > Date: Wed, 3 Aug 2011 13:37:44 +0200 > Subject: Re: [Neo4j] Batch find > > > The batch insert is intended to push data into the database with having to do > any look ups. > You coul

Re: [Neo4j] Batch find

2011-08-03 Thread Niels Hoogeveen
The batch insert is intended to push data into the database with having to do any look ups. You could preprocess your input data, such that it can be loaded in one go. You could for example read you input file against an existing database, fetch the ID's of nodes and relationships that contain

Re: [Neo4j] Composable traversals

2011-08-03 Thread Niels Hoogeveen
e methods to TraversalDescription will in > effect do the same thing up until the time where Neo4j is less ambivalent > regarding traversal frameworks. > > 2011/8/2 Niels Hoogeveen > > > > > It looks like this does the same I suggested. It's a bit clunkier, but I &g

Re: [Neo4j] Node#getRelationshipTypes

2011-08-03 Thread Niels Hoogeveen
eniences to have it on par with production quality. And > that kind of time haven't been allocated yet. > > I appreciate your thoughts and time on all this! > > Best, > Mattias > > 2011/8/3 Niels Hoogeveen > > > > > I would like to make a

Re: [Neo4j] Node#getRelationshipTypes

2011-08-02 Thread Niels Hoogeveen
least making sure the whole chain have been loaded). > > I've never found a use case for it myself and this is the first I've heard. > > > > 2011/8/1 Niels Hoogeveen > > > > > > > > I have two specific use cases for these methods: >

Re: [Neo4j] Composable traversals

2011-08-02 Thread Niels Hoogeveen
raverse( Path startPath, Path... > additionalStartPaths ); > TraversalDescription#traverse( Iterable startPaths ); > > that would be rather similar, wouldn't it? > > 2011/7/30 Niels Hoogeveen > > > > > I would be all for it if this could become par

Re: [Neo4j] Node#getRelationshipTypes

2011-08-02 Thread Niels Hoogeveen
quire a > full iteration (or at least making sure the whole chain have been loaded). > I've never found a use case for it myself and this is the first I've heard. > > 2011/8/1 Niels Hoogeveen > > > > > I have two specific use cases for these methods: > >

[Neo4j] HyperEdges unify Relationships and Properties

2011-08-01 Thread Niels Hoogeveen
Last couple of days I have worked improving upon the Enhanced API and made some progress unifying Properties and Relationships. For some time, I have wanted to have a traverser which I can set up so that it returns a collection of properties. After all what we want to present in an application

Re: [Neo4j] Node#getRelationshipTypes

2011-07-31 Thread Niels Hoogeveen
his operation again? > > Cheers > > Michael > > Am 31.07.2011 um 18:59 schrieb Niels Hoogeveen: > > > > > Good point. > > It could for all practical purposes even be Iterable so > > they can be lazily fetched, as long as the underlying implementat

Re: [Neo4j] Brainstorming on my project: neo4john

2011-07-31 Thread Niels Hoogeveen
> To: user@lists.neo4j.org > Subject: Re: [Neo4j] Brainstorming on my project: neo4john > > Hey Niels, thanks for the concise reply. > > On Sun, Jul 31, 2011 at 5:10 PM, Niels Hoogeveen > wrote: > > > > > Hi John, > > > > I think when appro

Re: [Neo4j] Brainstorming on my project: neo4john

2011-07-31 Thread Niels Hoogeveen
Interesting thought, and it is certainly true that indexing is much less of a concern in a graph database than in a normal RDBMS where generally every table needs to have a primary key and where you need to have an index on the primary key to be able to do joins (at least to do them somewhat qu

Re: [Neo4j] Node#getRelationshipTypes

2011-07-31 Thread Niels Hoogeveen
Good point. It could for all practical purposes even be Iterable so they can be lazily fetched, as long as the underlying implementation makes certain that any iteration of the RelationshipTypes forms a set (no duplicates). There is no need to have RelationshipTypes in any particular order, and

Re: [Neo4j] Brainstorming on my project: neo4john

2011-07-31 Thread Niels Hoogeveen
Hi John, I think when approaching a project there are two distinct issues at play, one is the tooling level, another is the actual solution you are trying to create for an actual problem. When looking at the tooling level it is great to have as much covered as possible. Neo4j offers a graph

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
d. > > > > neo4j-kernel-1.4-SNAPSHOT.jar 817,935 bytes > > sha1: a20720ece824b372520b7afde080cdc83abb5501 > > > > Thanks for the hints! All this maven knowledge will prove useful. > > John. > > > > > > On Sun, Jul 31, 2011 at 12:57

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
a20720ece824b372520b7afde080cdc83abb5501 > > Thanks for the hints! All this maven knowledge will prove useful. > John. > > > On Sun, Jul 31, 2011 at 12:57 AM, Niels Hoogeveen > wrote: > > > > > Could you check if the neo4j kernel jar file maven adds to class

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
-- > [INFO] Total time: 2 seconds > [INFO] Finished at: Sun Jul 31 00:37:19 CEST 2011 > [INFO] Final Memory: 38M/359M > [INFO] > > e:\down\13th-floor-bdb

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
7;ve > >>>> already fixed this) > >>>> > >>>> Either way, my impression of what was happening is that some files got > >>>> deleted, except some ie. the log, which were still open/in use, and maybe > >>>> when recovery was tr

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
annot yet figure out who creates that file > and to make sure it's being closed > > John. > > On Sat, Jul 30, 2011 at 11:09 PM, Niels Hoogeveen > wrote: > > > > > The problem is indeed related to not properly closing the bdb database, and > > that i

[Neo4j] Node#getRelationshipTypes

2011-07-30 Thread Niels Hoogeveen
While working on Enhanced API, I realize two crucial method are missing on the Node interface of the standard API: RelationshipType[] getRelationshipTypes(); RelationshipType[] getRelationshipTypes(Direction); For Enhanced API, I'd like to be able to plug in different Relationship implementati

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
; [WARNING] The POM for org.apache.maven:maven-plugin-api:jar:2.0.6 is > >>>> missing, no dependency information available > >>>> [WARNING] The POM for org.apache.maven:maven-project:jar:2.0.6 is > >>>> missing, no dependency information av

Re: [Neo4j] bdb-index

2011-07-30 Thread Niels Hoogeveen
tivePath' points at wrong local POM @ line 3, > column 11 -> [Help 2] > > before I could do anything with maven... > I'll skip trying to make maven to work for me for now, don't feel like it :) > > *I'm not qualified to fix this with maven, sorry* > Joh

Re: [Neo4j] Composable traversals

2011-07-30 Thread Niels Hoogeveen
g we've been discussing :) > > 2011/7/29 Niels Hoogeveen > > > > > Great, I would much rather see this become part of the core API than have > > this as part of the Enhanced API. > > To make things work correctly, one important change to core is needed: The

Re: [Neo4j] Composable traversals

2011-07-29 Thread Niels Hoogeveen
dding stuff to the framework in a side track and will surely add some > aspect of composable traversers also. > > 2011/7/29 Niels Hoogeveen > > > > > I'd like to take a stab at implementing traversals in the Enhanced API. One > > of the things I'd like

Re: [Neo4j] bdb-index

2011-07-29 Thread Niels Hoogeveen
. Parsing A then X of B-> in > dbBackward for example can only be done with a cursor... > > Either way, I'm taking a look on that bdb-index thingy; will report back if > I have any ideas heh > > John. > > On Thu, Jul 28, 2011 at 9:42 PM, Niels Hoogeveen > wrote:

Re: [Neo4j] bdb-index

2011-07-29 Thread Niels Hoogeveen
sn't look pretty if you're trying > to see what changed > > John. > > > On Thu, Jul 28, 2011 at 7:36 PM, Niels Hoogeveen > wrote: > > > > > Trying to find something useful to hide the implementation book keeping of > > Enhanced API, I tried o

Re: [Neo4j] Composable traversals

2011-07-29 Thread Niels Hoogeveen
rocesses that cannot access the same java resource ie. in > another jvm or computer tho accessing the same database - I guess this rules > out embedded?) ? if any locks... > > On Fri, Jul 29, 2011 at 1:30 AM, Niels Hoogeveen > wrote: > > > > > I'd like to take

[Neo4j] Composable traversals

2011-07-28 Thread Niels Hoogeveen
I'd like to take a stab at implementing traversals in the Enhanced API. One of the things I'd like to do, is to make traversals composable. Right now a Traverser is created by either calling the traverse method on Node, or to call the traverse(Node) method on TraversalDescription. This makes

Re: [Neo4j] bdb-index

2011-07-28 Thread Niels Hoogeveen
g/- Öresund - Innovation happens HERE. > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. > > > > On Thu, Jul 28, 2011 at 10:36 AM, Niels Hoogeveen > wrote: > > > > Trying to find something useful to hide the implementation book kee

Re: [Neo4j] bdb-index

2011-07-28 Thread Niels Hoogeveen
Should read: The retrieved indexName is actually garbage. > From: pd_aficion...@hotmail.com > To: user@lists.neo4j.org > Date: Thu, 28 Jul 2011 19:36:21 +0200 > Subject: [Neo4j] bdb-index > > > Trying to find something useful to hide the implementation book keeping of > Enhanced API, I tried

[Neo4j] bdb-index

2011-07-28 Thread Niels Hoogeveen
Trying to find something useful to hide the implementation book keeping of Enhanced API, I tried out dbd-index as can be found here:https://github.com/peterneubauer/bdb-index It looks interesting, but fails its tests. When recovering it performs BerkeleyDbCommand#readCommand from the log. The r

  1   2   3   >