[Neo4j] Auto-index fulltext?

2011-07-16 Thread Aseem Kishore
Is the 1.4 auto-index only exact? Or can it be configured to be a
fulltext index?

(Btw, it would be awesome if we could have two auto-indexes: one exact, one
full-text. It would be great in general if all indexing could be auto. Not
sure when you would ever want/need manual indexing.)

Aseem
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Auto-indexing feature request: transform

2011-07-16 Thread Aseem Kishore
We transform some of our properties currently before (manually) indexing
them. Simple examples are lowercase (fulltext indexes supports a
lowercase config that defaults to true, but exact ones don't, I was
disappointed to find), but more complex ones are e.g. stripping special
characters.

It would be great if the auto-indexer could support this notion of
transforming property values (and queries) through user-defined function,
just like traversal accepts a user-defined filter function.

(And, fwiw, we're users of the REST API, so ideally this functionality would
be exposed over REST too.)

Cheers,
Aseem
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] GSoC 2011 Neo4j Geoprocessing | Weekly Report #7

2011-07-16 Thread Andreas Wilhelm
Hi,

This week I added just more spatial functions:

ST_LengthInMeters
ST_LengthInMiles
ST_LongestLine
ST_DistanceInMeters
ST_DistanceInMiles
ST_MaxDistance
ST_MaxDistanceInMeter
ST_MaxDistanceInMiles
ST_ShortestLine
ST_SymDifference
ST_DelaunayTriangle
ST_Difference
ST_ConvexHull
ST_Boundary
ST_CoordDim
ST_Dimension
ST_Envelope
ST_IsSimple
ST_IsNotSimple
ST_NumGeometries
ST_NumPoints
ST_PointN
ST_SRID
ST_GeometryN
ST_GeometryType
ST_NumInteriorRings
ST_ExteriorRing


Best Regards

Andreas Wilhelm
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] GSoC 2011 Neo4j Geoprocessing | Weekly Report #7

2011-07-16 Thread Peter Neubauer
Wilhelm,
You are crunching it! Good work, hope to help out with the docs.

/peter

Sent from my phone.
On Jul 16, 2011 9:56 AM, Andreas Wilhelm a...@kabelbw.de wrote:
 Hi,

 This week I added just more spatial functions:

 ST_LengthInMeters
 ST_LengthInMiles
 ST_LongestLine
 ST_DistanceInMeters
 ST_DistanceInMiles
 ST_MaxDistance
 ST_MaxDistanceInMeter
 ST_MaxDistanceInMiles
 ST_ShortestLine
 ST_SymDifference
 ST_DelaunayTriangle
 ST_Difference
 ST_ConvexHull
 ST_Boundary
 ST_CoordDim
 ST_Dimension
 ST_Envelope
 ST_IsSimple
 ST_IsNotSimple
 ST_NumGeometries
 ST_NumPoints
 ST_PointN
 ST_SRID
 ST_GeometryN
 ST_GeometryType
 ST_NumInteriorRings
 ST_ExteriorRing


 Best Regards

 Andreas Wilhelm
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] GSoC 2011 Neo4j Geoprocessing | Weekly Report #7

2011-07-16 Thread Peter Neubauer
Btw,
Is this all generic or implemented for OSM only?

/peter

Sent from my phone.
On Jul 16, 2011 9:56 AM, Andreas Wilhelm a...@kabelbw.de wrote:
 Hi,

 This week I added just more spatial functions:

 ST_LengthInMeters
 ST_LengthInMiles
 ST_LongestLine
 ST_DistanceInMeters
 ST_DistanceInMiles
 ST_MaxDistance
 ST_MaxDistanceInMeter
 ST_MaxDistanceInMiles
 ST_ShortestLine
 ST_SymDifference
 ST_DelaunayTriangle
 ST_Difference
 ST_ConvexHull
 ST_Boundary
 ST_CoordDim
 ST_Dimension
 ST_Envelope
 ST_IsSimple
 ST_IsNotSimple
 ST_NumGeometries
 ST_NumPoints
 ST_PointN
 ST_SRID
 ST_GeometryN
 ST_GeometryType
 ST_NumInteriorRings
 ST_ExteriorRing


 Best Regards

 Andreas Wilhelm
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Best practice to avoid Unable to lock store error?

2011-07-16 Thread Michael Hunger
better that a singleton: get it injected!

And you don't need a DI framework for that just System separation in Bootstrap 
and Runtime.

PS I recommend the cleancoders.com videos to everyone. Great content  fun



mobile mail please excuse brevity and typos

Am 16.07.2011 um 01:19 schrieb Rick Bullotta rick.bullo...@thingworx.com:

 Why would you do that?  Keep the database open as a singleton instead.
 
 
 
 - Reply message -
 From: noppanit noppani...@gmail.com
 Date: Fri, Jul 15, 2011 7:00 pm
 Subject: [Neo4j] Best practice to avoid Unable to lock store error?
 To: user@lists.neo4j.org user@lists.neo4j.org
 
 Such as. Unable to lock store [/Users/xxx/db/neostore], this is usually
 caused by another Neo4j kernel already running in this JVM for this
 particular store
 
 I'm getting this error when the the user tries to insert into the database
 really fast (e.g, multiple clicks). The design that I use is to open and
 shutdown after each commit. So, sometime may be the database is not finish
 and the user clicks again. I think one way would be to disable the button
 after one click, but is there a better way to deal with that?
 
 --
 View this message in context: 
 http://neo4j-user-list.438527.n3.nabble.com/Best-practice-to-avoid-Unable-to-lock-store-error-tp3173592p3173592.html
 Sent from the Neo4J User List mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] unique relationships?

2011-07-16 Thread Niels Hoogeveen

It makes perfect sense to be able to create multiple relatationships between 
two nodes, once you consider that relationships have properties.
For example:
Elizabeth Taylor --MARRIED_TO [from: 1964, to: 1974]-- Richard BurtonElizabeth 
Taylor --MARRIED_TO [from: 1975, to: 1976]-- Richard Burton
Having a multigraph (a graph allowing multiple relationships between two nodes) 
is especially useful for temporal information. Many relationships we 
customarily define as singular are in fact temporal. Your example the LIKES 
relationship is in principle temporal too.
Alice --Likes [from: 1990, to: 2004]-- BobAlice --Likes [from: 2010]-- Bob
Alice liked Bob for many years, but they had a fall out over something Bob did 
in 2004. 
For a couple years Alice was really angry with Bob and didn't like him 
anymore.When they met again in 2010, Alice realized that despite what happened 
in 2004, Bob is still a swell guy and now she likes him again.
You cannot turn off the creation of multiple relationships between two nodes, 
but you can check for the existence of a relationship before creating one.

 From: bo...@popcha.com
 Date: Fri, 15 Jul 2011 22:57:33 -0400
 To: user@lists.neo4j.org
 Subject: [Neo4j] unique relationships?
 
 If I create the same relationship between two nodes, say a-LIKES-b, more
 than once, a new relationship with a new id is created such that when I look
 up all of a's LIKES relationships I get b multiple times. I know I can
 unique this away, but I wonder what the logic of doing it this way is and if
 I can turn it off.
 
 I'm on 1.4
 
 Thanks!
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
  
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] GSoC 2011 Neo4j Geoprocessing | Weekly Report #7

2011-07-16 Thread Andreas Wilhelm
It should be working with all layers which are implementing the 
EditLayer or Layer interface, but I tested it only with OSMLayer.


Am 16.07.2011 10:03, schrieb Peter Neubauer:
 Btw,
 Is this all generic or implemented for OSM only?

 /peter

 Sent from my phone.
 On Jul 16, 2011 9:56 AM, Andreas Wilhelma...@kabelbw.de  wrote:
 Hi,

 This week I added just more spatial functions:

 ST_LengthInMeters
 ST_LengthInMiles
 ST_LongestLine
 ST_DistanceInMeters
 ST_DistanceInMiles
 ST_MaxDistance
 ST_MaxDistanceInMeter
 ST_MaxDistanceInMiles
 ST_ShortestLine
 ST_SymDifference
 ST_DelaunayTriangle
 ST_Difference
 ST_ConvexHull
 ST_Boundary
 ST_CoordDim
 ST_Dimension
 ST_Envelope
 ST_IsSimple
 ST_IsNotSimple
 ST_NumGeometries
 ST_NumPoints
 ST_PointN
 ST_SRID
 ST_GeometryN
 ST_GeometryType
 ST_NumInteriorRings
 ST_ExteriorRing


 Best Regards

 Andreas Wilhelm
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user


___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Synchronization of EmbeddedReadOnlyGraphDatabase - Bug?

2011-07-16 Thread Mathias Hensel

Hello, 

I try to use Neo4J in a Ruby on Rails application (MRI Ruby not JRuby). Due to 
Rails process-based model I run one instance of the EmbeddedGraphDatabase in a 
separate process. All write updates coming in from user actions are delegated 
to this process. The EmbeddedGraphDatabase here serves as a pure writeable 
database. All reads are handled directly in the web app through multiple 
instances of EmbeddedReadOnlyGraphDatabase (one instance for each web server 
process).

Unfortunately I encountered the following problem: When adding a new 
relationship to a node (via the EmbeddedGraphDatabase), this relationship is 
not visible to the EmbeddedReadOnlyGraphDatabase. I can reopen the 
EmbeddedReadOnlyGraphDatabase from time to time or even at each request, but 
this ends up with an InvalidRecordException: Record[9180] not in use when 
trying to traverse the node or trying to get the relationships. 9180 is the 
newly created relationship. 

Only when I restart the EmbeddedGraphDatabase this relationship is visible to 
the EmbeddedReadOnlyGraphDatabase without any exceptions but this shouldn't be 
the use case. Is this a bug or is there an explicit way to synchronize both 
types of database instances?

Thank you very much!

Regards,
Mathias


  
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] GSoC 2011 Neo4j Geoprocessing | Weekly Report #7

2011-07-16 Thread Peter Neubauer
Ok,
Cool, will take a look.

/peter

Sent from my phone.
On Jul 16, 2011 12:49 PM, Andreas Wilhelm a...@kabelbw.de wrote:
 It should be working with all layers which are implementing the
 EditLayer or Layer interface, but I tested it only with OSMLayer.


 Am 16.07.2011 10:03, schrieb Peter Neubauer:
 Btw,
 Is this all generic or implemented for OSM only?

 /peter

 Sent from my phone.
 On Jul 16, 2011 9:56 AM, Andreas Wilhelma...@kabelbw.de wrote:
 Hi,

 This week I added just more spatial functions:

 ST_LengthInMeters
 ST_LengthInMiles
 ST_LongestLine
 ST_DistanceInMeters
 ST_DistanceInMiles
 ST_MaxDistance
 ST_MaxDistanceInMeter
 ST_MaxDistanceInMiles
 ST_ShortestLine
 ST_SymDifference
 ST_DelaunayTriangle
 ST_Difference
 ST_ConvexHull
 ST_Boundary
 ST_CoordDim
 ST_Dimension
 ST_Envelope
 ST_IsSimple
 ST_IsNotSimple
 ST_NumGeometries
 ST_NumPoints
 ST_PointN
 ST_SRID
 ST_GeometryN
 ST_GeometryType
 ST_NumInteriorRings
 ST_ExteriorRing


 Best Regards

 Andreas Wilhelm
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user


 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Synchronization of EmbeddedReadOnlyGraphDatabase - Bug?

2011-07-16 Thread Jim Webber
Hi Mattias,

If  I understand you correctly, you're pointing two database instances (one 
being read-only) at the same on-disk location. Is that correct?

Jim

On 16 Jul 2011, at 07:37, Mathias Hensel wrote:

 
 Hello, 
 
 I try to use Neo4J in a Ruby on Rails application (MRI Ruby not JRuby). Due 
 to Rails process-based model I run one instance of the EmbeddedGraphDatabase 
 in a separate process. All write updates coming in from user actions are 
 delegated to this process. The EmbeddedGraphDatabase here serves as a pure 
 writeable database. All reads are handled directly in the web app through 
 multiple instances of EmbeddedReadOnlyGraphDatabase (one instance for each 
 web server process).
 
 Unfortunately I encountered the following problem: When adding a new 
 relationship to a node (via the EmbeddedGraphDatabase), this relationship is 
 not visible to the EmbeddedReadOnlyGraphDatabase. I can reopen the 
 EmbeddedReadOnlyGraphDatabase from time to time or even at each request, but 
 this ends up with an InvalidRecordException: Record[9180] not in use when 
 trying to traverse the node or trying to get the relationships. 9180 is the 
 newly created relationship. 
 
 Only when I restart the EmbeddedGraphDatabase this relationship is visible to 
 the EmbeddedReadOnlyGraphDatabase without any exceptions but this shouldn't 
 be the use case. Is this a bug or is there an explicit way to synchronize 
 both types of database instances?
 
 Thank you very much!
 
 Regards,
 Mathias
 
 
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] updated Neoclipse for 1.4.M06

2011-07-16 Thread Dharmendra Kumar
Hi,

Is there an updated version for Neoclipe for M06? I'm not able to open the
DB created with the latest version in the older Neoclipse?

Any other suggestions?

Regards,
Dharmendra.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] updated Neoclipse for 1.4.M06

2011-07-16 Thread Jim Webber
Hi Dharmendra,

I'm happily using the 1.4 M04 Neoclipse with the 1.4GA release of Neo4j on mac 
osx. What symptoms are you seeing?

Jim
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] updated Neoclipse for 1.4.M06

2011-07-16 Thread Dharmendra Kumar
It works as a charm :) Thanks Jim!

- Dharmendra.

On Sat, Jul 16, 2011 at 9:30 PM, Dharmendra Kumar
dharmendra...@gmail.comwrote:

 Thanks for the reply Jim! I'm getting the following error when trying to
 open the DB in Neoclipse (1.4 M04):

 TransactionFailureException: Could not create data source [nioneodb]
 Cause of exception: *Store version [Neo store v0.9.9]. Please make sure
 you are not running old Neo4j kernel towards a store that has been created
 by newer version of Neo4j.*

 I think I've some issue with my project configuration.I was using Jo4Neo
 for persistence (v0.5), which is compiled with Neo4j 1.4.M06. But I used the
 neo4j 1.5 at runtime. I'll try to correct the version mismatch issue and
 retry.

 -Dharmendra.

 On Sat, Jul 16, 2011 at 9:19 PM, Jim Webber j...@neotechnology.com wrote:

 Hi Dharmendra,

 I'm happily using the 1.4 M04 Neoclipse with the 1.4GA release of Neo4j on
 mac osx. What symptoms are you seeing?

 Jim
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user



___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Hyperedges and Objects

2011-07-16 Thread Norbert Tausch
That's clear. Such mappings are more difficult to traverse since the
traverser has to know if there is such a hyper edge vertex. I'm
wondering if there is no need to provide an embedded solution for such a
transformation. Each user who is confronted with hyper edges has to
implement some kind of such mapping. It would be helpful, for example,
if each Neo4j relationship can manage hyper edges automatically and
provide an additional 'isHyper' method pointing out that there are
additional methods allowing to get all further incident nodes. This is
also a matter of performance. I think such a handling is implemented
most efficiently within the Neo4j engine.

Best regards

Norbert Tausch

Am 16.07.2011 00:52, schrieb Niels Hoogeveen:
 Hyper edges can be emulated. 
 Suppose you want to store the fact John gives Pete a book. 
 This is indeed a ternary relationship, which would call for an hyper edge.
 This fact can be stored as follows:
 Some act of giving --Giver--JohnSome act of giving --Recipient-- PeteSome 
 act of giving --Gift-- book
 N-ary relationships can generally be decomposed into N binary relationships, 
 where a central node is used to used as a placeholder for the N-ary 
 relationship.
 Complex types can either be stored into a byte array or if appropriate in 
 multiple properties.


 Date: Sat, 16 Jul 2011 00:04:15 +0200
 From: ntausc...@gmail.com
 To: user@lists.neo4j.org
 Subject: [Neo4j] Hyperedges and Objects

 Hi,

 is there a possibility to store hyper edges in Neo4j? Is there a plan to
 implement this?

 Will Neo4j get the ability to store complex types in addition to
 primitve data types for properties of nodes and relationships?

 -- 
 Best regards

 Norbert Tausch

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Bulbflow: a Python framework for Neo4j

2011-07-16 Thread espeed
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: 
http://neo4j-community-discussions.438527.n3.nabble.com/Bulbflow-a-Python-framework-for-Neo4j-tp3175275p3175275.html
Sent from the Neo4J Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Bulbflow: a Python framework for Neo4j

2011-07-16 Thread Javier de la Rosa
On Sat, Jul 16, 2011 at 15:40, espeed ja...@jamesthornton.com wrote:
 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 .

That's really cool!
It seems like we were doing same similar things: python-rexster [1].

Regards.



[1] http://pypi.python.org/pypi/python-rexster/

--
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Hyperedges and Objects

2011-07-16 Thread Michael Hunger
I completely agree,

hyperedges and the accompanying traversers should be handled in a library. As 
you probably know the traversal framework currently also uses the core API 
under the hood to perform the traversals (and no black magic (yet)).

So it should be fairly easy to take that approach/code and create a library 
that abstracts the hyper-edge issues (creation, deletion, traversal). The 
position semantics based approach sounds interesting.

Would love to see that as community contribution.

Cheers

Michael

Am 16.07.2011 um 23:08 schrieb Niels Hoogeveen:

 
 The question is how much easier a traverser can become when there were 
 dedicated hyper edges. In a binary relation it is fairly easy to define one 
 end of the relation as the source and the other as the target (start and end 
 node), 
 but in n-ary relationships the roles of the attached nodes become more 
 complicated. 
 
 Suppose we have the GIVES relationship, where one attached node takes the 
 role of subject (the giver), 
 one node takes the role of direct object (the gift), and another node takes 
 the role of indirect object (the recipient). 
 To traverse such a graph, we need to know these different roles, otherwise we 
 may end up traversing the wrong nodes.
 
 Suppose we the following statements:
 
 John gives Paul a servant.
 Paul visited Albania.
 Paul's servant visited Albania.
 
 We now want to know all people that received a gift from John and who visited 
 Albania.
 
 Without properly denoting the roles in the ternary relationship stated by 
 John gives Paul a servant, 
 the answer to the query may well be: Paul and Paul's servant. 
 Both are persons, both have visited Albania and both are part of the GIVES 
 relationship defined. 
 
 When we have to define the exact roles of each part of an n-ary relationship 
 for each traversal,
 it is just as complicated as defining a traversal based on binary 
 relationships, 
 where different relationship types denote the roles of each part of the n-ary 
 relationship.
 
 If hyperedges were to be introduced, either as a library or in core, 
 the entire notion of the graph and how traversals are performed need to be 
 rethought.
 
 The concept of an edge as having a start and an end node doesn't translate 
 well into the world of hyper edges. 
 There is not necessarily a start node and an end node, 
 instead there are various nodes that are distinctly attached to the hyper 
 edge. 
 
 One way to think about an edge in both the graph and in the hypergraph world 
 is as a tuple.
 
 A binary relationship can be thought of as the tuple:
 
 (node1, node2, RelationshipType, Set(property))
 
 A ternary relationship can be thought of as the tuple:
 
 (node1, node2, node3, RelationshipType, Set(property))
 
 etc...
 
 Instead of marking a binary relationship as outgoing or incoming, we can use 
 the position in the tuple to denote its role. 
 We can say the first node in the tuple corresponds to the start node, and the 
 second node in the tuple corresponds to the end node. 
 Having two possible permutations relates to the two possible directions an 
 edge can have.
 
 Position based definitions of relationships translate well into the domain of 
 n-ary relationships, 
 though the semantics of such relationships can easily become difficult. 
 A ternary relationship already has 6 permutations for the attached nodes, 
 while a 10-ary relationship has 3,628,800 possible permutations. 
 
 It would be an interesting project to design a tuple-position-based 
 traverser. 
 For binary relationships it should have the exact same features as the 
 current direction based traverser, 
 but it would be possible to generalize that design to n-ary relationships. 
 This can all be done as a libary. 
 
 Only when perfomance can be really improved in core, does it make sense to 
 request for native support.
 
 Niels
 Date: Sat, 16 Jul 2011 19:31:22 +0200
 From: ntausc...@gmail.com
 To: user@lists.neo4j.org
 Subject: Re: [Neo4j] Hyperedges and Objects
 
 That's clear. Such mappings are more difficult to traverse since the
 traverser has to know if there is such a hyper edge vertex. I'm
 wondering if there is no need to provide an embedded solution for such a
 transformation. Each user who is confronted with hyper edges has to
 implement some kind of such mapping. It would be helpful, for example,
 if each Neo4j relationship can manage hyper edges automatically and
 provide an additional 'isHyper' method pointing out that there are
 additional methods allowing to get all further incident nodes. This is
 also a matter of performance. I think such a handling is implemented
 most efficiently within the Neo4j engine.
 
 Best regards
 
 Norbert Tausch
 
 Am 16.07.2011 00:52, schrieb Niels Hoogeveen:
 Hyper edges can be emulated. 
 Suppose you want to store the fact John gives Pete a book. 
 This is indeed a ternary relationship, which would call for an hyper edge.
 This fact can be stored as follows:
 Some act of 

[Neo4j] Fwd: unique relationships?

2011-07-16 Thread Boris Kizelshteyn
Thanks! This makes perfect sense and has deepened my understanding of how to
use graphs.

Nonetheless, I still have a practical problem, I am using REST to interact
with the datastore and if I query if a relationship exists before creating
every relationship, it's going to be really slow. I am creating
relationships in bulk now. Perhaps there is some Gremlin kung foo I can run
after I batch create my relationships which will clean out all the redundant
relationships (those which have all duplicate properties). Can someone help?

Thanks!


On Sat, Jul 16, 2011 at 6:23 AM, Niels Hoogeveen
pd_aficion...@hotmail.comwrote:


 It makes perfect sense to be able to create multiple relatationships
 between two nodes, once you consider that relationships have properties.
 For example:
 Elizabeth Taylor --MARRIED_TO [from: 1964, to: 1974]-- Richard
 BurtonElizabeth Taylor --MARRIED_TO [from: 1975, to: 1976]-- Richard Burton
 Having a multigraph (a graph allowing multiple relationships between two
 nodes) is especially useful for temporal information. Many relationships we
 customarily define as singular are in fact temporal. Your example the LIKES
 relationship is in principle temporal too.
 Alice --Likes [from: 1990, to: 2004]-- BobAlice --Likes [from: 2010]--
 Bob
 Alice liked Bob for many years, but they had a fall out over something Bob
 did in 2004.
 For a couple years Alice was really angry with Bob and didn't like him
 anymore.When they met again in 2010, Alice realized that despite what
 happened in 2004, Bob is still a swell guy and now she likes him again.
 You cannot turn off the creation of multiple relationships between two
 nodes, but you can check for the existence of a relationship before creating
 one.

  From: bo...@popcha.com
  Date: Fri, 15 Jul 2011 22:57:33 -0400
  To: user@lists.neo4j.org
  Subject: [Neo4j] unique relationships?
 
  If I create the same relationship between two nodes, say a-LIKES-b, more
  than once, a new relationship with a new id is created such that when I
 look
  up all of a's LIKES relationships I get b multiple times. I know I can
  unique this away, but I wonder what the logic of doing it this way is and
 if
  I can turn it off.
 
  I'm on 1.4
 
  Thanks!
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Bulbflow: a Python framework for Neo4j

2011-07-16 Thread espeed
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 notes :)

- James 

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Bulbflow-a-Python-framework-for-Neo4j-tp3175275p3176095.html
Sent from the Neo4J Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user