Re: [Neo4j] question about remove and iterate in same transaction
El 5/24/2011 9:12 AM, Andreas Kollegger escribió: > Hi Jose, > > Perhaps the event framework[1] would suit your purpose. The > TransactionEventHandler [2] includes operations for intercepting a > transaction before it is committed. > > Otherwise, to intercept the Node.delete call itself, you'd have to look into > using AOP. > > Cheers, > Andreas > > [1] http://wiki.neo4j.org/content/Event_framework > [2] > http://components.neo4j.org/neo4j/1.4.M02/apidocs/org/neo4j/graphdb/event/TransactionEventHandler.html > > On May 24, 2011, at 6:59 AM, Jose Angel Inda Herrera wrote: > >> how could include a function in the Node class I check if a node is >> being removed or not. for example, have an attribute in the class that >> implements a node when it is created, and when it is called the delete >> function to change the value attribute and thus can control whether to >> delete or not. I need help on this >> ___ >> 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 thanks andreas, but you can explain to me that is AOP and how using thanks and cheers ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] question about remove and iterate in same transaction
how could include a function in the Node class I check if a node is being removed or not. for example, have an attribute in the class that implements a node when it is created, and when it is called the delete function to change the value attribute and thus can control whether to delete or not. I need help on this ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] question about remove and iterate in same transaction
El 24/05/11 04:17, Johan Svensson escribió: > Hi Jose, > > Does http://docs.neo4j.org/chunked/1.3/transactions-delete.html answer > your question? > > Regards, > Johan > > On Tue, May 24, 2011 at 4:34 AM, Jose Angel Inda Herrera > wrote: >> hello list, >> I wonder when a node will be removed in a transaction, since I have a >> transaction in which I delete a node in the graph, but I need to iterate >> lso nodes of the graph in the same transaction >> thanks, >> cheers > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user no this is not the answer, that I knew beforehand. What I do is that within a transaction that has not been entourage whether a given node will be removed when the transaction is completed (finish ()). thanks and cheers. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] question about remove and iterate in same transaction
hello list, I wonder when a node will be removed in a transaction, since I have a transaction in which I delete a node in the graph, but I need to iterate lso nodes of the graph in the same transaction thanks, cheers ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] how to make rolledback transaction
El 22/05/11 13:38, Mattias Persson escribió: > A transaction is typically done like this: > >Transaction tx = graphDb.beginTx(); >try >{ >// Do stuff >tx.success(); >} >finally >{ >tx.finish(); >} > > If you don't want that transaction committed just throw an exception in the > "Do stuff" block, or don't call tx.success(). You can even use tx.failure() > to mark a transaction to be rolled back in nested transactions, but rarely > used. See more here: > > http://docs.neo4j.org/chunked/1.3/transactions-interaction.html > http://wiki.neo4j.org/content/Transactions > > 2011/5/22 Jose Angel Inda Herrera > >> hello list >> how to make rolledback a transaction >> thanks >> cheers. >> >> >> ___ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > > thanks mattias cheers. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] how to make rolledback transaction
hello list how to make rolledback a transaction thanks cheers. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about relationship whit himself.
El 18/05/11 15:45, Tobias Ivarsson escribió: > Neo4j does not support relationships with the same start node as end node > yet. > > This is being worked on however. We actually had it working, passing even > the meanest test cases we could come up with, for a few minutes last friday. > But then we were given a choice between the functionality of these self > relationships, or a substantial performance improvement. We went for the > latter, putting self relationships on hold for a while. We have some ideas > that could make it possible to put self relationships back in, but I don't > know when we can get there. > > Cheers, > Tobias ok tobias thank you for your answer. cheers. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] about relationship whit himself.
hello list, I have a question you would like to clarify, in a graph may have a sibling with himself, that I have it clear. neo4j now allow this??, because when I create a relation from ni to nf, where ni = nf gives me a exetion, thanks very much, cheers. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about Dijkstra
El 5/15/2011 7:30 AM, Peter Neubauer escribió: > Jose, > I believe this is the lines you are looking for? * > https://github.com/neo4j/community/blob/master/graph-algo/src/main/java/org/neo4j/graphalgo/impl/shortestpath/Dijkstra.java#L272 > * > > Cheers, > > /peter neubauer > > GTalk: neubauer.peter > Skype peter.neubauer > Phone +46 704 106975 > LinkedIn http://www.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 Bring-a-Thing party. > > > On Sun, May 15, 2011 at 5:41 AM, Jose Angel Inda Herrera< > jai...@estudiantes.uci.cu> wrote: > >> El 15/05/11 07:04, Mattias Persson escribió: >>> Is there a particular reason to use that implementation instead of the >> one >>> provided by GraphAlgoFactory? >> the problem is I'm doing some tests and the implementation >> GraphAlgoFactory can not find where is the comparison in the dijkstra to >> select the lower edge. You know where I can find it in the >> implementation GraphAlgoFactory, >> thank mattias for all. >> ___ >> 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 thanks you peter for your answer. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about Dijkstra
El 15/05/11 07:04, Mattias Persson escribió: > Is there a particular reason to use that implementation instead of the one > provided by GraphAlgoFactory? the problem is I'm doing some tests and the implementation GraphAlgoFactory can not find where is the comparison in the dijkstra to select the lower edge. You know where I can find it in the implementation GraphAlgoFactory, thank mattias for all. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about Dijkstra
El 14/05/11 18:48, Saikat Kanjilal escribió: > Hi Jose, > See the following: > > https://github.com/neo4j-examples/java-dijkstra > > Andreas has done a great job in showing the use of this algorithm through > examples, is this what you need? I used this t get my POC off the ground. > > Regards > >> Date: Sat, 14 May 2011 17:32:21 -0700 >> From: jai...@estudiantes.uci.cu >> To: user@lists.neo4j.org >> Subject: Re: [Neo4j] about Dijkstra >> >> Peter, >> thanks for replying but the Dijkstra algorithm to which I refer is that >> development by Patrik Larssonand need to know if anyone can help me find >> some example of it. is in the package impl >> cheers, >> jose >> El 5/14/2011 7:44 AM, Peter Neubauer escribió: >>> Hi Jose, >>> there is documentation at >>> http://docs.neo4j.org/chunked/snapshot/graph-algo-path-finding.html. Would >>> that help? >>> >>> Cheers, >>> >>> /peter neubauer >>> >>> GTalk: neubauer.peter >>> Skype peter.neubauer >>> Phone +46 704 106975 >>> LinkedIn http://www.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 Bring-a-Thing party. >>> >>> >>> On Sat, May 14, 2011 at 7:40 AM, Jose Angel Inda Herrera< >>> jai...@estudiantes.uci.cu> wrote: >>> >>>> hello list, a greeting to all, >>>> I'm trying to use the class Dijkstra developed by Patrik Larsson and was >>>> wondering if anyone had some example of how it works. >>>> thanks beforehand >>>> ___ >>>> 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 this is the package where the class dijkstra to which I refer. If anyone has documentation on this I would be very helpful *org.neo4j.graphalgo.impl.shortestpath; *this is the class /public class Dijkstra implements SingleSourceSingleSinkShortestPath/ ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about Dijkstra
Peter, thanks for replying but the Dijkstra algorithm to which I refer is that development by Patrik Larssonand need to know if anyone can help me find some example of it. is in the package impl cheers, jose El 5/14/2011 7:44 AM, Peter Neubauer escribió: > Hi Jose, > there is documentation at > http://docs.neo4j.org/chunked/snapshot/graph-algo-path-finding.html. Would > that help? > > Cheers, > > /peter neubauer > > GTalk: neubauer.peter > Skype peter.neubauer > Phone +46 704 106975 > LinkedIn http://www.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 Bring-a-Thing party. > > > On Sat, May 14, 2011 at 7:40 AM, Jose Angel Inda Herrera< > jai...@estudiantes.uci.cu> wrote: > >> hello list, a greeting to all, >> I'm trying to use the class Dijkstra developed by Patrik Larsson and was >> wondering if anyone had some example of how it works. >> thanks beforehand >> ___ >> 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] about Dijkstra
hello list, a greeting to all, I'm trying to use the class Dijkstra developed by Patrik Larsson and was wondering if anyone had some example of how it works. thanks beforehand ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] about delete node
Hi list, There is some property that when I delete a node you mark me as to be removed to perform the operation to clear when the transaction is completed ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about two database
El 22/04/11 13:51, Michael Hunger escribió: > It is in principle possible but what is the issue of having an instance (ro > or rw) of the second db that does the parsing of the store files for you? hi michel if I have the instance of the second bd means that I have is a reference to the 2nd database ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about two database
Hi Jim, I am creating a package of algorithms to work in such databases NEO4J, then for that I have two graphs (DB), and what you want to know is how to obtain such a node in the graph G1 from G2, but without having an instance of G1, This can be done? ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about two database
hello Jim thanks you very much for your answer, but do not know where I can find some example about de HA. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] about two database
Hello list i have some query, 1-i have 2 database (graph), I need to get information from one database to another without having to take the target database instance of another database. 2- i need know how to open a database(graph) if it already exists. thanks beforehand ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Sobre neo
Gracias Javier por tu ayuda, muy utiles esos articulos ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about remove node
thanks michaels for your answer, Mattias i have a query, if I do EmbeddedGraphDbImpl G1 = G2;, means that if I delete information of the graph G1 is also deleted in G2, and if this is the best way to create a temporary graph - Mensaje original - De: "Mattias Persson" Para: "Neo4j user discussions" Enviados: Lunes, 11 de Abril 2011 17:50:02 (GMT-0500) Auto-Detected Asunto: Re: [Neo4j] about remove node Your question is very generic. The quality/correctness of answers you will get correlates to the amount of information/context you can supply. Michaels answer is very generic too, although maybe the correct one for your use case :) 2011/4/11 Jose Angel Inda Herrera : > hello list, > i need to know how to remove one node specific in my graph > thanks > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.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] about remove node
hello list, i need to know how to remove one node specific in my graph thanks ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] return all relationship
thanks mattias. - Mensaje original - De: "Mattias Persson" Para: "Neo4j user discussions" Enviados: Sábado, 19 de Febrero 2011 8:41:20 GMT -08:00 Región del Pacífico EE. UU./Canadá Asunto: Re: [Neo4j] return all relationship I'd do something like this: Iterator allRels = new NestingIterator( db.getAllNodes() ) { @Override protected Iterator createNestedIterator( Node item ) { return item.getRelationships( Direction.OUTGOING ).iterator(); } }; There's a NestingIterable also if an Iterable is desired. 2011/2/19 Jose Angel Inda Herrera > hello list, > how can i get all relationship of my graph, as iterator, > thank beforehand. > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.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] return all relationship
hello list, how can i get all relationship of my graph, as iterator, thank beforehand. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] source neo
hello how to download the source of neo4j 1.2 becouse i have a 1.1 version and it not have the interface RelationshipIndex - Mensaje original - De: "Mattias Persson" Para: "Neo4j user discussions" Enviados: Martes, 15 de Febrero 2011 15:51:54 (GMT-0500) Auto-Detected Asunto: Re: [Neo4j] about relationship Does this help: http://wiki.neo4j.org/content/Index_Framework#Relationship_indexes ? 2011/2/15 Jose Angel Inda Herrera > hello Mattias > the RelationshipIndex class which would. I have that to implement this > class. > thank befoorhand > - Mensaje original - > De: "Mattias Persson" > Para: "Neo4j user discussions" > Enviados: Lunes, 14 de Febrero 2011 4:18:33 (GMT-0500) Auto-Detected > Asunto: Re: [Neo4j] about relationship > > You mean in the most efficient way? Currently you'll have to go with a > relationship index if you have many edges and would like to do a fast > lookup > for a relationship between two nodes. You can index relationships just as > you do nodes: > > RelationshipIndex index = graphDb.index().forRelationships( > "my-relationships" ); > index.add( myRelationship, "myKey", "myValue" ); > ... > // Either if you query for a specific property: > index.get( "myKey", "myValue", startNode, endNode ); > // Or if you just query using the nodes > index.get( null, null, startNode, endNode ); > > The other way is to loop relationships from one node and see if the > otherNode of those relationships matches. Might be slower though > > Best, > Mattias > > 2011/2/10 Jose Angel Inda Herrera > > > > > hello list, > > How to get an edge in the graph (in this case a relationship) having the > > two nodes of this relationship, > > > > thank beforhand > > ___ > > Neo4j mailing list > > User@lists.neo4j.org > > https://lists.neo4j.org/mailman/listinfo/user > > > > > > -- > Mattias Persson, [matt...@neotechnology.com] > Hacker, Neo Technology > www.neotechnology.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 > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.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
Re: [Neo4j] about relationship
this is my class public class ReglasdeReescrituraImpl implements IReglassdeReescritura{ String subGrafo; ConjuntoImpl _in; ConjuntoImpl _out; /** * Crea una regla de reescritura con la parte izquierda a gl: {@link NodoPersistente} * como parte derecha el campo nodoComplejo: {@link String} y las lista de entrada y de salida * _in, _out : {@link ConjuntoImpl}. * * @param _in lista de las relaciones que entran * @param _out lista de las relaciones que salen * @param subGrafo */ public ReglasdeReescrituraImpl(ConjuntoImpl _in, ConjuntoImpl _out, String subGrafo) { this.subGrafo=subGrafo; this._in=_in; this._out=_out; } } public class InfoEmpotradoImpl implements IInformacionEmpotrado { /*** * u representa el resto del grafo */ protected INodoPersistente u;//nodo /** * v representa un vertice del grafo gr */ protected INodoPersistente v;//nodo /** * vp es el valor de la propiedad */ protected float vp;//Costo 2 real /** * c es el costo */ protected float c; public InfoEmpotradoImpl(float vp, INodoPersistente v,float c ,INodoPersistente u ) { this.u = u; this.v = v; this.vp = vp; this.c = c; } } thank you - Mensaje original - De: "Mattias Persson" Para: "Neo4j user discussions" Enviados: Martes, 15 de Febrero 2011 16:11:58 (GMT-0500) Auto-Detected Asunto: Re: [Neo4j] about relationship 2011/2/15 Jose Angel Inda Herrera > thank mattias, > and oder question, > I have a class attribute is a collection of objects, then neo4j not allow > me to take a collection property, as I can store the database in this > collection, > What kind of objects? Do the object represent other entities? in that case those should be modelled as Nodes and the connection between you object and those objects as Relationships. > Thanks and sorry for the trouble... > Not at all. It would be nice though if you could elaborate on your questions with as much information as you can and perhaps code/pseudo code. It keeps other people, like me, from guessing your intents and will consequently generate better answers for you. - Mensaje original - > De: "Mattias Persson" > Para: "Neo4j user discussions" > Enviados: Martes, 15 de Febrero 2011 15:51:54 (GMT-0500) Auto-Detected > Asunto: Re: [Neo4j] about relationship > > Does this help: > > http://wiki.neo4j.org/content/Index_Framework#Relationship_indexes > > ? > > 2011/2/15 Jose Angel Inda Herrera > > > hello Mattias > > the RelationshipIndex class which would. I have that to implement this > > class. > > thank befoorhand > > - Mensaje original - > > De: "Mattias Persson" > > Para: "Neo4j user discussions" > > Enviados: Lunes, 14 de Febrero 2011 4:18:33 (GMT-0500) Auto-Detected > > Asunto: Re: [Neo4j] about relationship > > > > You mean in the most efficient way? Currently you'll have to go with a > > relationship index if you have many edges and would like to do a fast > > lookup > > for a relationship between two nodes. You can index relationships just as > > you do nodes: > > > > RelationshipIndex index = graphDb.index().forRelationships( > > "my-relationships" ); > > index.add( myRelationship, "myKey", "myValue" ); > > ... > > // Either if you query for a specific property: > > index.get( "myKey", "myValue", startNode, endNode ); > > // Or if you just query using the nodes > > index.get( null, null, startNode, endNode ); > > > > The other way is to loop relationships from one node and see if the > > otherNode of those relationships matches. Might be slower though > > > > Best, > > Mattias > > > > 2011/2/10 Jose Angel Inda Herrera > > > > > > > > hello list, > > > How to get an edge in the graph (in this case a relationship) having > the > > > two nodes of this relationship, > > > > > > thank beforhand > > > ___ > > > Neo4j mailing list > > > User@lists.neo4j.org > > > https://lists.neo4j.org/mailman/listinfo/user > > > > > > > > > > > -- > > Mattias Persson, [matt...@neotechnology.com] > > Hacker, Neo Technology > > www.neotechnology.com > > ___ > > Neo4j mailing list > > User@lists.neo4j.org > > https://lists.neo4j.org/mailman/listinfo/user > > ___
Re: [Neo4j] about relationship
thank mattias, and oder question, I have a class attribute is a collection of objects, then neo4j not allow me to take a collection property, as I can store the database in this collection, Thanks and sorry for the trouble... - Mensaje original - De: "Mattias Persson" Para: "Neo4j user discussions" Enviados: Martes, 15 de Febrero 2011 15:51:54 (GMT-0500) Auto-Detected Asunto: Re: [Neo4j] about relationship Does this help: http://wiki.neo4j.org/content/Index_Framework#Relationship_indexes ? 2011/2/15 Jose Angel Inda Herrera > hello Mattias > the RelationshipIndex class which would. I have that to implement this > class. > thank befoorhand > - Mensaje original - > De: "Mattias Persson" > Para: "Neo4j user discussions" > Enviados: Lunes, 14 de Febrero 2011 4:18:33 (GMT-0500) Auto-Detected > Asunto: Re: [Neo4j] about relationship > > You mean in the most efficient way? Currently you'll have to go with a > relationship index if you have many edges and would like to do a fast > lookup > for a relationship between two nodes. You can index relationships just as > you do nodes: > > RelationshipIndex index = graphDb.index().forRelationships( > "my-relationships" ); > index.add( myRelationship, "myKey", "myValue" ); > ... > // Either if you query for a specific property: > index.get( "myKey", "myValue", startNode, endNode ); > // Or if you just query using the nodes > index.get( null, null, startNode, endNode ); > > The other way is to loop relationships from one node and see if the > otherNode of those relationships matches. Might be slower though > > Best, > Mattias > > 2011/2/10 Jose Angel Inda Herrera > > > > > hello list, > > How to get an edge in the graph (in this case a relationship) having the > > two nodes of this relationship, > > > > thank beforhand > > ___ > > Neo4j mailing list > > User@lists.neo4j.org > > https://lists.neo4j.org/mailman/listinfo/user > > > > > > -- > Mattias Persson, [matt...@neotechnology.com] > Hacker, Neo Technology > www.neotechnology.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 > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.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
Re: [Neo4j] about relationship
hello Mattias the RelationshipIndex class which would. I have that to implement this class. thank befoorhand - Mensaje original - De: "Mattias Persson" Para: "Neo4j user discussions" Enviados: Lunes, 14 de Febrero 2011 4:18:33 (GMT-0500) Auto-Detected Asunto: Re: [Neo4j] about relationship You mean in the most efficient way? Currently you'll have to go with a relationship index if you have many edges and would like to do a fast lookup for a relationship between two nodes. You can index relationships just as you do nodes: RelationshipIndex index = graphDb.index().forRelationships( "my-relationships" ); index.add( myRelationship, "myKey", "myValue" ); ... // Either if you query for a specific property: index.get( "myKey", "myValue", startNode, endNode ); // Or if you just query using the nodes index.get( null, null, startNode, endNode ); The other way is to loop relationships from one node and see if the otherNode of those relationships matches. Might be slower though Best, Mattias 2011/2/10 Jose Angel Inda Herrera > > hello list, > How to get an edge in the graph (in this case a relationship) having the > two nodes of this relationship, > > thank beforhand > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.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
Re: [Neo4j] about relationship
thanks craig - Mensaje original - De: "Craig Taverner" Para: "Neo4j user discussions" Enviados: Lunes, 14 de Febrero 2011 10:39:32 (GMT-0500) Auto-Detected Asunto: Re: [Neo4j] about relationship I thought he was asking 'if I have the two nodes, how do I get the edge?'. In that case iterate over all relationships from the one node using nodeA.getRelationships()<http://api.neo4j.org/current/org/neo4j/graphdb/Node.html#getRelationships()> and test the end node to see if it is nodeB. On Mon, Feb 14, 2011 at 10:18 AM, Mattias Persson wrote: > You mean in the most efficient way? Currently you'll have to go with a > relationship index if you have many edges and would like to do a fast > lookup > for a relationship between two nodes. You can index relationships just as > you do nodes: > > RelationshipIndex index = graphDb.index().forRelationships( > "my-relationships" ); > index.add( myRelationship, "myKey", "myValue" ); > ... > // Either if you query for a specific property: > index.get( "myKey", "myValue", startNode, endNode ); > // Or if you just query using the nodes > index.get( null, null, startNode, endNode ); > > The other way is to loop relationships from one node and see if the > otherNode of those relationships matches. Might be slower though > > Best, > Mattias > > 2011/2/10 Jose Angel Inda Herrera > > > > > hello list, > > How to get an edge in the graph (in this case a relationship) having the > > two nodes of this relationship, > > > > thank beforhand > > ___ > > Neo4j mailing list > > User@lists.neo4j.org > > https://lists.neo4j.org/mailman/listinfo/user > > > > > > -- > Mattias Persson, [matt...@neotechnology.com] > Hacker, Neo Technology > www.neotechnology.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] about relationship
thaks mattias, - Mensaje original - De: "Mattias Persson" Para: "Neo4j user discussions" Enviados: Lunes, 14 de Febrero 2011 4:18:33 (GMT-0500) Auto-Detected Asunto: Re: [Neo4j] about relationship You mean in the most efficient way? Currently you'll have to go with a relationship index if you have many edges and would like to do a fast lookup for a relationship between two nodes. You can index relationships just as you do nodes: RelationshipIndex index = graphDb.index().forRelationships( "my-relationships" ); index.add( myRelationship, "myKey", "myValue" ); ... // Either if you query for a specific property: index.get( "myKey", "myValue", startNode, endNode ); // Or if you just query using the nodes index.get( null, null, startNode, endNode ); The other way is to loop relationships from one node and see if the otherNode of those relationships matches. Might be slower though Best, Mattias 2011/2/10 Jose Angel Inda Herrera > > hello list, > How to get an edge in the graph (in this case a relationship) having the > two nodes of this relationship, > > thank beforhand > ___ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.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] about relationship
hello list, How to get an edge in the graph (in this case a relationship) having the two nodes of this relationship, thank beforhand ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] about relationship
hello list, How to get an edge in the graph (in this case a relationship) having the two nodes of this relationship, thank beforhand ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] hello
Hello list an instance of a class can not be stored on a property, for example, I have a class person Pesrson class { String name; ... Trolley car; Node node; public Person (...) { this.node = paramNode; node.setProperty ("car", car); } } this can be done. quiesira also explain to me neo4j storage, for instance when I do, Node node = graph.createNode (); Person p = new Person (node); because you have a field of type Node in person if what is stored is not the only instance of Node Person. The neo4j how to handle this? thank beforhand ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] About relation
hello list, i hope that all are fine, i have to know the number of relationships in my database, how i can do, thanks beforehand. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] about error
Hello list, i hope that all are fine, i have this code , public class Particion() { LinkedList elements; Node node; public Particion(Node node) { this.node = node; this.node.setProperty("elements", elements); } ... } and me compiler return, Exception in thread "main" java.lang.IllegalArgumentException: Unknown property type on: [] ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] test
test!!! ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about class list and node
Andreas sorry for my ignorance but could you tell me where I can find these classes, we pack Thank you Jose - Mensaje original - De: "Andreas Kollegger" Para: "Neo4j user discussions" Enviados: Lunes, 10 de Enero 2011 1:29:27 (GMT-0500) Auto-Detected Asunto: Re: [Neo4j] about class list and node Happy new year to you Jose, The natural approach would be to arrange nodes into a linked-list, with either NEXT or PREVIOUS (or both) relationships between the nodes. Take a look at neo4j-utils. The NodeQueue or the FixedLengthNodeList may be what you want, or would at least provide some reference on how to make your own. Best, Andreas On Jan 10, 2011, at 3:11 AM, Jose Angel Inda Herrera wrote: > hello all and happy new year, > i'm need to know how to implement a list in Neo4j, > thank you very much and good look in this year for all. > ___ > 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] about class list and node
Thank you Andreas I will try what you tell me thank you again - Mensaje original - De: "Andreas Kollegger" Para: "Neo4j user discussions" Enviados: Lunes, 10 de Enero 2011 1:29:27 (GMT-0500) Auto-Detected Asunto: Re: [Neo4j] about class list and node Happy new year to you Jose, The natural approach would be to arrange nodes into a linked-list, with either NEXT or PREVIOUS (or both) relationships between the nodes. Take a look at neo4j-utils. The NodeQueue or the FixedLengthNodeList may be what you want, or would at least provide some reference on how to make your own. Best, Andreas On Jan 10, 2011, at 3:11 AM, Jose Angel Inda Herrera wrote: > hello all and happy new year, > i'm need to know how to implement a list in Neo4j, > thank you very much and good look in this year for all. > ___ > 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] about class list and node
hello all and happy new year, i'm need to know how to implement a list in Neo4j, thank you very much and good look in this year for all. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] hello people
Hello for all, i have a Person class, for example, class Person { String name; int age; } i want to know if the Person class shuld implement or extends of the another class of Neo4j. Thanks ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] sobre neo
Gracias Javier por tu ayuda, muy utiles esos articulos ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] sobre neo
Hola Andres , Si me interesa saber como es que neo almacena los datos, seria eso de mucha ayuda para mi. Sobre el modelo de datos, me dices que es la teoria de grafos, pero existe algun documento que tenga neo que trate sobre como utiliza el la teoria de grafo en su modelo de datos, Gracias de ante mano PD: es genial poder hablar en espanol. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] sobre neo
Gracias de antemano Max, mira todo sistema gestor de bases de daos utiliza un modelo de datos, por ejemplo, PostgreSQL utiliza el modelo relacional. Entonces, neo4j tiene que tener un modelo de datos, que por su puesto debe ser un modelo de dato orientado a grafos. Entonces lo que me hace falta es la especificacion de ese modelo. gracias lista ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Hello list
Andrea Taylor sorry by my english, realy is bad. My quetion is, What is the data model that use neo4j or your specification. thanks you very much. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] what is the neo model
Hello, What is the neo model? and neo model a node can handle me like a graph, ie, I can be stored in a node type, a graph. Thank you ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] about neo4j
tory at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216) ... 22 more [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Thu Oct 21 17:16:34 CDT 2010 [INFO] Final Memory: 1M/43M [INFO] - Cheers, Jose. - Mensaje original - De: "Andreas Kollegger" Para: "Neo4j user discussions" Enviados: Jueves, 21 de Octubre 2010 3:42:40 (GMT-0500) Auto-Detected Asunto: Re: [Neo4j] about neo4j Hi Jose, The Neo4j source is built using maven. There isn't a top-level build-everything-in-the-repository build script, so in general you need to switch to the directory of the code you'd like to build, then run `mvn clean install`. Are you interested in contributing patches, or are you just looking for the latest code? You could consider using the snapshot repository to get the latest build artifacts. Instructions for doing that are here: http://wiki.neo4j.org/content/Java_Setup_HowTo#Building_from_source Cheers, Andreas On Oct 21, 2010, at 2:44 AM, Jose Angel Inda Herrera wrote: > I need to know how to compile the neo4j I downloaded it the repository > http://svn.neo4j.org, > thank you before hand. > ___ > 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] about neo4j
I need to know how to compile the neo4j I downloaded it the repository http://svn.neo4j.org, thank you before hand. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user