Re: [Neo4j] HyperRelationship example

2011-09-24 Thread Bryce
Here you go: https://github.com/neo4j/graph-collections/wiki/HyperRelationship-example Though that page just has a link to: https://github.com/neo4j/graph-collections/wiki/Enhanced-API Bryce On Sat, Sep 24, 2011 at 5:00 PM, loldrup lold...@gmail.com wrote: Niels Hoogeveen wrote: I just

Re: [Neo4j] HyperRelationship example

2011-09-24 Thread Niels Hoogeveen
When I wrote the wiki page for Enhanced-API, I ended up using all the words I had spent on the hyperrelationship example, so I decided to keep the original page alive, but link it to the enhanced API page. Date: Sat, 24 Sep 2011 19:45:47 +1200 From: bryc...@gmail.com To:

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

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Rick Bullotta
That's a great summary, Niels. Very similar to how we've applied Neo4J here at ThingWorx, though we've done most of the type system work (nodes and relationships are all typed/subtyped) in our application domain layer. A few other items that we leveraged in our implementation that you may

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Rick Bullotta
We're using Neo4J to model the real world with things here at ThingWorx as well. See my responses to Niels for some specifics. From: user-boun...@lists.neo4j.org [user-boun...@lists.neo4j.org] On Behalf Of loldrup [lold...@gmail.com] Sent: Saturday,

Re: [Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-24 Thread st.pa
Ahoy and thx, that is helpful. but here comes yet another newbie question. is it possible to do smth like the following START source = (nodeIndexSources,querySources), target = (nodeIndexTargets,queryTargets) MATCH (source)-![:unwantedRelationshipType]-(target) RETURN source,target where

Re: [Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-24 Thread Andres Taylor
Right now it's not possible. It's a planned feature, but it's not done. It will not make into 1.5. That's all I know right now. Sorry, and thanks for your patience and feedback! Andrés On Sat, Sep 24, 2011 at 3:45 PM, st.pa st...@web.de wrote: Ahoy and thx, that is helpful. but here

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Peter Neubauer
Great thoughts guys! I think it would be interesting to break out the Enhanced API from graph-collections, rename it into something better (we can think of a name together) and provide a more fully fledged example that we can document and evolve. WDYT? Cheers, /peter neubauer GTalk:     

Re: [Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-24 Thread Peter Neubauer
Hi there, Maybe you can create an issue so we can track it? /peter Sent from my phone. On Sep 24, 2011 3:52 PM, Andres Taylor andres.tay...@neotechnology.com wrote: Right now it's not possible. It's a planned feature, but it's not done. It will not make into 1.5. That's all I know right now.

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Niels Hoogeveen
+1 Enhanced API grew out of a couple of classes I added to make IndexedRelationship work more easily (not exposing comparators), but it is essentially a separate component. Giving it that status would help other's improve it. Having laid some of the ground work, I feel it needs other people's

Re: [Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-24 Thread st.pa
done. -- https://github.com/neo4j/community/issues/30 24.09.2011 16:15, Peter Neubauer wrote: Hi there, Maybe you can create an issue so we can track it? /peter Sent from my phone. On Sep 24, 2011 3:52 PM, Andres Taylorandres.tay...@neotechnology.com wrote: Right now it's not

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread loldrup
Subtyping of relationship types sounds like the cure to my problems. When creating a relationship IS_A_JANITOR_OF, will a corresponding relationship type IS_A_JANITOR_OF-relationship-type automatically be created? If I have a simple relationship can I then ask which relationship types it's type

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Niels Hoogeveen
I too think that much of the type system of the application actually belongs in the application domain layer. There are so many trade-offs that can be made that a one-size-fits-all typing of a graph is not the way to go. This is why I decided that enhanced-api should only provide the nuts and

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Niels Hoogeveen
Subtyping works as follows in Enhanced API. When calling getRelationships(RelationshipType, Direction) or any of its alternatives, the API looks up all subtypes of that relationship type and then call getRelationshipTypes(Direction, RelationshipType and its subtypes). All you need to do is

Re: [Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-24 Thread Peter Neubauer
Thanks! /peter Sent from my phone. On Sep 24, 2011 5:08 PM, st.pa st...@web.de wrote: done. -- https://github.com/neo4j/community/issues/30 24.09.2011 16:15, Peter Neubauer wrote: Hi there, Maybe you can create an issue so we can track it? /peter Sent from my phone. On Sep 24, 2011

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Thad Guidry
Quite wrong. IS_JANITOR_OF will stick you into a boxed node ordinal. What you really want when modeling the world is to only capture the semantic relationships themselves. IS_A being a core semantic relationship. I am a janitor. He IS_A janitor. What is a janitor ? What properties does a

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread loldrup
Hmm.. Which book would you recommend me to read? Jon On Sep 24, 2011 7:55 PM, Thad Guidry [via Neo4j Community Discussions] ml-node+s438527n3364798...@n3.nabble.com wrote: Quite wrong. IS_JANITOR_OF will stick you into a boxed node ordinal. What you really want when modeling the world is

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Thad Guidry
Unfortunately, most of what I describe as best practices in modeling semantic relationships has not been written well ENOUGH in most books. However the W3C community lists such as SKOS and RDFa have many experts that have deep knowledge around those best practices. Asking your questions there on

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread loldrup
What if: Joe WORKS_AT the school Joe WORKS_AS a janitor The school HAS_A janitor How do I denote that Joe works as I janitor at that exact school? Do you see other problems in the notation above? Also, thank you very much for your thought inspiring reply! Jon On Sep 24, 2011 7:55 PM, Thad

Re: [Neo4j] performance guide

2011-09-24 Thread Mattias Persson
2011/9/10 Linan Wang tali.w...@gmail.com Andreas, thanks. can't wait for your result. one correction on my list: Retrieve a certain types of relationships of a node should be faster than retrieve all. i mis-read the source code in NodeImpl.java, in which private volatile RelIdArray[]

Re: [Neo4j] Neo4j Write Performance

2011-09-24 Thread Mattias Persson
For the record, that branch is outdated and not working correctly in HA mode. 2011/9/12 Peter Neubauer pe...@neubauer.se James, we are experimenting with that feature, namely, not forcing a flush() at the end of a transaction and let the OS take care of the actual flushing. You potentially

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Thad Guidry
So... that type of modeling is more inline with NLP and Noun / Verb Property linkage. Which you can do. Do you need to also then describe semantically the WORKS_AT relationship ? You could give all relationships themselves describing properties, OR perhaps just link them to a SKOS_CONCEPT of

[Neo4j] Has been blocked when i get the node's property

2011-09-24 Thread iamyuanlong
hi all , This is my code: When the method been requested in a concurrent request . 100 concurrent I got the log like this: http://neo4j-community-discussions.438527.n3.nabble.com/file/n3365819/zuse.png I have been blocked? why? Waiting the answer .Thank you. -- View this message in

Re: [Neo4j] Modelling with neo4j

2011-09-24 Thread Peter Hunsberger
I'm going to take a slightly different tack here than the responses you've got so far... First as others have pointed out, this is three entities and two relationships joe - is a - janitor - at the - school This is important, the lighter weight the relationships, the less problem you are

Re: [Neo4j] Has been blocked when i get the node's property

2011-09-24 Thread McKinley
Your code did not come through for me. You might want to use http://pastebin.com/ and post a link in your message. Kind regards, McKinley On Sat, Sep 24, 2011 at 8:03 PM, iamyuanlong yuanlong1...@gmail.com wrote: hi all , This is my code: When the method been requested in a concurrent