Re: [Neo4j] REST and dijkstra

2011-01-25 Thread Mattias Persson
There are some graph algos
exposedhttp://components.neo4j.org/neo4j-server/0.6-SNAPSHOT/rest.html#Finding_paths_between_two_nodes(which
I wrote), but the Dijkstra algo isn't available there... Either dig
in and extend it with Dijkstra support or write an extension as Jim
mentioned.

2011/1/24 Jim Webber j...@neotechnology.com

 Hi Michael,

 AFIAK, I don't think there's an OOB solution directly but it's quite easy
 to wire up a graph algo to the REST managed extensions.

 See: org.neo4j.server.plugins.GraphCloner for an example of such an algo
 and how it's implemented.

 Has anyone else hacked together a REST binding for the graph algos?

 Jim

 ___
 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] Shell, LuceneIndex and Matching Questions

2011-01-25 Thread Konstanze . Lorenz
Hi, 
thank you for making these things clear.
I think I can handle these fake iterables. I just wanted to clearify that, 
because I did not find this in the doc for graphmatching.

About the second problem. I see my fault. Everywhere the valuecontext.numeric 
has to be used. Thank you for that.

I have tried to run the shell wie Eclipse. Starting the StartClient with 
arguments via run and that ends in the loop. Now I have downloaded the 
distribution without maven and run it with the windows console and it works 
fine.

Regards,

-Ursprüngliche Nachricht-
Von: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] Im 
Auftrag von Mattias Persson
Gesendet: Mittwoch, 19. Januar 2011 09:15
An: Neo4j user discussions
Betreff: Re: [Neo4j] Shell, LuceneIndex and Matching Questions

2011/1/11 Konstanze.Lorenz konstanze.lor...@fh-zwickau.de:
 Hello and a happy new year List,

Hi!
and sorry for late response

 I have got a problem with the PatternMatcher.getMatcher().match(PatternNode 
 start, Node start)
 The returntype should be an Iterable, but it doesnt behave like an Iterable. 
 I could not call it twice in a for-each-loop.
 A simple example:
 --
 IterablePatternMatch iter = matcher.match(matchStartNode, neoStartNode);
                for(PatternMatch i : iter){
                        System.out.println(i);
                }
                System.out.println(second call);
                for(PatternMatch i : iter){
                        System.out.println(i);
                }
 
 Results on the console:
 org.neo4j.graphmatching.PatternMatch@1542a75
 org.neo4j.graphmatching.PatternMatch@af993e
 Second call

 
 I'm expecting the two Patternmatch-objects after the second call too.

I'm sorry to say that there are a couple of these fake Iterables which
really are Iterators and just implements Iterable to be able to
participate in for-each loops. Is this a show stopper for you?

 ---
 The second problem concerns the IndexNode. get(String key, Object value) 
 method.
 If the IndexNode has the LuceneIndexProvider.Exact_config it is not 
 possible to get a result if a value of type number is called AND the 
 transaction is restarted after adding the key-entity-value-triple to the 
 index. I know the value is correctly in the index, because the 
 IndexNode.query() Method returns a result. Only the get-Method doesnt.
 By the way, the get-Method works fine with String, but it is necessary for 
 the project to handle with Number.
 Here is a small example:
 -
                String indexName = number;
                String key = anyNumber;
                beginTx();
                IndexNode indexService = neo.index().forNodes(indexName, 
 LuceneIndexProvider.EXACT_CONFIG);

                int property50 = 50;

                Node numberNode50 = neo.createNode(); 
 numberNode50.setProperty(key, property50);
                indexService.add(numberNode50, 
 key,ValueContext.numeric(property50));
                restartTx();
                System.out.println(indexService.get(key, 
 ValueContext.numeric(property50)).getSingle());
 ---
 Results on the console:
 Null

 If I do not restartTx(), then the result is the expected node numberNode50

This is inconsistent behaviour for sure and I'll see what can be done
about it. To query numeric values you have to use the query method
with a specific query, since Lucene handles numeric values in a very
special way. See
http://wiki.neo4j.org/content/Index_Framework#Numeric_ranges for more
information about that.

 -

 The third problem is about the internal shell. If I start the shell from 
 local path it runs into a loop, with repeating this line:
 neo4j-sh (0)$ java.lang.NullPointerException: nullnull
 Any clues how to resolve this?

 All above problems occur for the 1.2 release.

I have the neo4j-shell 1.2 locally installed and work with it quite
frequently without errors. Is it for a certain database only, or for
all you try? Do you use the bin/neo4j-shell from the Neo4j 1.2
distribution or do you hack your own classpath and run? Does something
like this give additional stacktraces:

   $ neo4j-shell -DSTACKTRACES=true -path my/path



 Regards,
 ___
 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

Re: [Neo4j] Multiple running databases

2011-01-25 Thread Andreas Kollegger
Hi Guillem,

I believe on both windows and *nix, neo4j install creates a single service.
So, just having two neo4j installation directories with different configuration
isn't enough if you want them to both run as a service. 

In *nix land, you could simply copy the /etc/init.d/ script to a new name and
then have both services running.

On Windows, you'd have to manually start and stop the server rather than
installing as a service to have two running. Unless someone smarter than
me could describe how to duplicate a Windows service entry. 

Cheers,
Andreas

ps. I'll try this out on a Windows machine and report back.

On Jan 24, 2011, at 9:34 PM, Guillem Medina wrote:

 Hi Jim,
 in fact I'm thinking that it could be related with the version I was trying
 before (it was the milestone 3 or 4 but not the current one). I've just try
 it half an hour ago in my mac and I didn't had any problem. Let's see how it
 goes tomorrow when I'll try it again with the windows server.
 
 Thanks again,
 Guillem
 
 On 24 January 2011 21:20, Jim Webber j...@neotechnology.com wrote:
 
 Hi Guillem,
 
 I think this might be a problem in 1.2. AFAIK, the web admin server in 1.2
 isn't actually configurable through config, but is in fact hard coded,
 sadly.
 
 I changed that a few weeks back, but I suspect it didn't make it into the
 1.2. release unless someone knows better. It's certainly there for the 1.3
 release.
 
 Jim
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 
 
 
 
 -- 
 Guillem Medina
 ___
 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] Multiple running databases

2011-01-25 Thread Guillem Medina Martínez
Hi Andreas,
It was related with the creation of services in Windows, but I've just make it 
work.
In order to create two different services for the neo4j servers the only thing 
necessary (besides the modifications explained before) it's to change the 
neo4j-wrapper, in the part related with Windows services and modify the line 
wrapper.name = neo4j in one of the servers folder in order to call it with 
another name, in my case neo4j_dev. That way we'll have to different services.

Cheers,
Guillem


-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Andreas Kollegger
Sent: martes, 25 de enero de 2011 13:07
To: Neo4j user discussions
Subject: Re: [Neo4j] Multiple running databases

Hi Guillem,

I believe on both windows and *nix, neo4j install creates a single service.
So, just having two neo4j installation directories with different configuration
isn't enough if you want them to both run as a service.

In *nix land, you could simply copy the /etc/init.d/ script to a new name and
then have both services running.

On Windows, you'd have to manually start and stop the server rather than
installing as a service to have two running. Unless someone smarter than
me could describe how to duplicate a Windows service entry.

Cheers,
Andreas

ps. I'll try this out on a Windows machine and report back.

On Jan 24, 2011, at 9:34 PM, Guillem Medina wrote:

 Hi Jim,
 in fact I'm thinking that it could be related with the version I was trying
 before (it was the milestone 3 or 4 but not the current one). I've just try
 it half an hour ago in my mac and I didn't had any problem. Let's see how it
 goes tomorrow when I'll try it again with the windows server.

 Thanks again,
 Guillem

 On 24 January 2011 21:20, Jim Webber j...@neotechnology.com wrote:

 Hi Guillem,

 I think this might be a problem in 1.2. AFAIK, the web admin server in 1.2
 isn't actually configurable through config, but is in fact hard coded,
 sadly.

 I changed that a few weeks back, but I suspect it didn't make it into the
 1.2. release unless someone knows better. It's certainly there for the 1.3
 release.

 Jim

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




 --
 Guillem Medina
 ___
 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

NOTA LEGAL
Le informamos que el correo electrónico y las comunicaciones por medio de 
Internet no permiten asegurar ni garantizar la confidencialidad de los mensajes 
transmitidos, así como tampoco su integridad o su correcta recepción, por lo 
que el emisor no asume responsabilidad alguna por tales circunstancias. Este 
mensaje va dirigido, de manera exclusiva, a su destinatario y contiene 
información confidencial y sujeta al secreto profesional, cuya divulgación esta 
prohibida. En caso de haber recibido este mensaje por error, le rogamos que nos 
lo comunique mediante correo electrónico remitido a nuestra atención y proceda 
a su eliminación, así como a la de cualquier documento adjunto al mismo. 
Asimismo, le comunicamos que la distribución, copia o utilización de este 
mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su 
finalidad, están prohibidas por la ley.
La información que haya puesto en nuestro conocimiento, consta en un fichero 
titularidad de APHELION SOLUCIONES INFORMATICAS, S.L. con el objeto de mantener 
el contacto comercial con Ud. establecido. Puede ejercer los derechos de 
acceso, rectificación, cancelación y en su caso oposición enviando un escrito 
al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: 
APHELION SOLUCIONES INFORMATICAS, S.L. C/ El Salvador 35 C.P. 46900 Torrent 
(Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus 
archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran 
eliminarlos.

LEGAL NOTICE
Please note that e-mail and communications through the Internet can not assure 
or guarantee the confidentiality of messages transmitted, and neither their 
integrity or proper receipt, so the issuer does not assume any responsibility 
for such circumstances. This message is addressed, exclusively to its recipient 
and contains confidential information and subject to professional secrecy, 
disclosure of which is forbidden. If you have received this message in error, 
please notify us by e-mail and delete the message as well as any document 
attached to it. Please also note that the distribution, use or copy of this 
message or any attachment to it, whatever its purpose, is prohibited by law.
The information which you have placed in our knowledge is registered in a file 
owned by APHELION SOLUCIONES INFORMATICAS, S.L. and is aimed 

[Neo4j] Expanding nodespace in Neo 1.3

2011-01-25 Thread Rick Bullotta
Maybe this is a stupid question (or not), but I'm assuming that the
relationship id will also be expanded as well?  Supporting a large # of
nodes without also supporting a large # of relationships would obviously not
make sense, but just wanted to confirm.

 

Thanks,

 

Rick

 

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


Re: [Neo4j] default server extensions, where to put them and how to expose them

2011-01-25 Thread Peter Neubauer
Yeah,
that would be great. I think the extension you are talking about would
be to have a traversal running, so I would make it an implementation
of the yet-to-come Script execution extension with a JavaScript or
Gremlin Snippet in it. Would be  good test for that one. Tobias, you
had started on that one at some point? Could we add that traversal as
a test to it?

For a collection of cool traversals, that sounds great. Maybe we could
have a place for scripts at GIThub, and you can then in your request
point at scripts from URLs? That way, things could just be picked up
from others without the strict need for a centralized repo (making it
optional).

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://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Jan 25, 2011 at 11:35 AM, Michael Hunger
michael.hun...@neotechnology.com wrote:
 While looking at the bad imdb performance, I also noticed that there are 
 already a few extensions provided with the neo4j-server package.

 Things like this could be useful (will there a place / repo to collect those 
 extensions?):

 get a node with all properties, all its relationships (perhaps filtered by 
 type/directions) and via those all neighbors and all their properties in one 
 go.

 That would at least for imdb provide a great performance boost.

 It would be nice if the extensions could be easily exposed by the Rest-GDS 
 wrapper (i.e. I provide an interface with a method name which is mapped to 
 the rest URL and parameters and a return type (like rails/grails/hades finder 
 methods) and the wrapper returns a proxy that handles the rest call.

 WDYAT?

 Cheers

 Michael


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


Re: [Neo4j] Multiple running databases

2011-01-25 Thread Peter Neubauer
Thanks for reporting that back, Guillem!

We will put it into the reference docs so others can benefit fro your findings!

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://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



2011/1/25 Guillem Medina Martínez guillem.med...@addinformatica.com:
 Hi Andreas,
 It was related with the creation of services in Windows, but I've just make 
 it work.
 In order to create two different services for the neo4j servers the only 
 thing necessary (besides the modifications explained before) it's to change 
 the neo4j-wrapper, in the part related with Windows services and modify the 
 line wrapper.name = neo4j in one of the servers folder in order to call it 
 with another name, in my case neo4j_dev. That way we'll have to different 
 services.

 Cheers,
 Guillem


 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
 Behalf Of Andreas Kollegger
 Sent: martes, 25 de enero de 2011 13:07
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Multiple running databases

 Hi Guillem,

 I believe on both windows and *nix, neo4j install creates a single service.
 So, just having two neo4j installation directories with different 
 configuration
 isn't enough if you want them to both run as a service.

 In *nix land, you could simply copy the /etc/init.d/ script to a new name and
 then have both services running.

 On Windows, you'd have to manually start and stop the server rather than
 installing as a service to have two running. Unless someone smarter than
 me could describe how to duplicate a Windows service entry.

 Cheers,
 Andreas

 ps. I'll try this out on a Windows machine and report back.

 On Jan 24, 2011, at 9:34 PM, Guillem Medina wrote:

 Hi Jim,
 in fact I'm thinking that it could be related with the version I was trying
 before (it was the milestone 3 or 4 but not the current one). I've just try
 it half an hour ago in my mac and I didn't had any problem. Let's see how it
 goes tomorrow when I'll try it again with the windows server.

 Thanks again,
 Guillem

 On 24 January 2011 21:20, Jim Webber j...@neotechnology.com wrote:

 Hi Guillem,

 I think this might be a problem in 1.2. AFAIK, the web admin server in 1.2
 isn't actually configurable through config, but is in fact hard coded,
 sadly.

 I changed that a few weeks back, but I suspect it didn't make it into the
 1.2. release unless someone knows better. It's certainly there for the 1.3
 release.

 Jim

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




 --
 Guillem Medina
 ___
 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

 NOTA LEGAL
 Le informamos que el correo electrónico y las comunicaciones por medio de 
 Internet no permiten asegurar ni garantizar la confidencialidad de los 
 mensajes transmitidos, así como tampoco su integridad o su correcta 
 recepción, por lo que el emisor no asume responsabilidad alguna por tales 
 circunstancias. Este mensaje va dirigido, de manera exclusiva, a su 
 destinatario y contiene información confidencial y sujeta al secreto 
 profesional, cuya divulgación esta prohibida. En caso de haber recibido este 
 mensaje por error, le rogamos que nos lo comunique mediante correo 
 electrónico remitido a nuestra atención y proceda a su eliminación, así como 
 a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la 
 distribución, copia o utilización de este mensaje, o de cualquier documento 
 adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por la 
 ley.
 La información que haya puesto en nuestro conocimiento, consta en un fichero 
 titularidad de APHELION SOLUCIONES INFORMATICAS, S.L. con el objeto de 
 mantener el contacto comercial con Ud. establecido. Puede ejercer los 
 derechos de acceso, rectificación, cancelación y en su caso oposición 
 enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la 
 siguiente dirección: APHELION SOLUCIONES INFORMATICAS, S.L. C/ El Salvador 35 
 C.P. 46900 Torrent (Valencia). Asimismo, es su responsabilidad comprobar que 
 este mensaje o sus archivos adjuntos no contengan virus informáticos, y en 
 caso que los tuvieran eliminarlos.

 LEGAL NOTICE
 Please note that e-mail and communications through the Internet can not 
 assure or guarantee the confidentiality of messages transmitted, and neither 
 their integrity or proper receipt, so the issuer does not assume any 
 

Re: [Neo4j] Expanding nodespace in Neo 1.3

2011-01-25 Thread Peter Neubauer
Yes,
this is in the roadmap for 1.3, and getting working on very soon (TM).
The ID space is for both properties, relationships and nodes, so
expansion will affect all of them.

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://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Jan 25, 2011 at 3:12 PM, Rick Bullotta
rick.bullo...@burningskysoftware.com wrote:
 Maybe this is a stupid question (or not), but I'm assuming that the
 relationship id will also be expanded as well?  Supporting a large # of
 nodes without also supporting a large # of relationships would obviously not
 make sense, but just wanted to confirm.



 Thanks,



 Rick



 ___
 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] Expanding nodespace in Neo 1.3

2011-01-25 Thread Andreas Kollegger
That's a good point to clarify:

The number of possible nodes, relationships, and properties will each increase 
with complementary id sizes. 

Best,
Andreas

On Jan 25, 2011, at 3:12 PM, Rick Bullotta wrote:

 Maybe this is a stupid question (or not), but I'm assuming that the
 relationship id will also be expanded as well?  Supporting a large # of
 nodes without also supporting a large # of relationships would obviously not
 make sense, but just wanted to confirm.
 
 
 
 Thanks,
 
 
 
 Rick
 
 
 
 ___
 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] Multiple running databases

2011-01-25 Thread Peter Neubauer
Guillem,
docs are updated to reflect this, see
http://docs.neo4j.org/chunked/snapshot/server-installation.html#_multiple_server_instances_on_one_machine

Is that information correct or is there more to it?

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://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Jan 25, 2011 at 3:21 PM, Peter Neubauer
peter.neuba...@neotechnology.com wrote:
 Thanks for reporting that back, Guillem!

 We will put it into the reference docs so others can benefit fro your 
 findings!

 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://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



 2011/1/25 Guillem Medina Martínez guillem.med...@addinformatica.com:
 Hi Andreas,
 It was related with the creation of services in Windows, but I've just make 
 it work.
 In order to create two different services for the neo4j servers the only 
 thing necessary (besides the modifications explained before) it's to change 
 the neo4j-wrapper, in the part related with Windows services and modify the 
 line wrapper.name = neo4j in one of the servers folder in order to call it 
 with another name, in my case neo4j_dev. That way we'll have to different 
 services.

 Cheers,
 Guillem


 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
 Behalf Of Andreas Kollegger
 Sent: martes, 25 de enero de 2011 13:07
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Multiple running databases

 Hi Guillem,

 I believe on both windows and *nix, neo4j install creates a single service.
 So, just having two neo4j installation directories with different 
 configuration
 isn't enough if you want them to both run as a service.

 In *nix land, you could simply copy the /etc/init.d/ script to a new name and
 then have both services running.

 On Windows, you'd have to manually start and stop the server rather than
 installing as a service to have two running. Unless someone smarter than
 me could describe how to duplicate a Windows service entry.

 Cheers,
 Andreas

 ps. I'll try this out on a Windows machine and report back.

 On Jan 24, 2011, at 9:34 PM, Guillem Medina wrote:

 Hi Jim,
 in fact I'm thinking that it could be related with the version I was trying
 before (it was the milestone 3 or 4 but not the current one). I've just try
 it half an hour ago in my mac and I didn't had any problem. Let's see how it
 goes tomorrow when I'll try it again with the windows server.

 Thanks again,
 Guillem

 On 24 January 2011 21:20, Jim Webber j...@neotechnology.com wrote:

 Hi Guillem,

 I think this might be a problem in 1.2. AFAIK, the web admin server in 1.2
 isn't actually configurable through config, but is in fact hard coded,
 sadly.

 I changed that a few weeks back, but I suspect it didn't make it into the
 1.2. release unless someone knows better. It's certainly there for the 1.3
 release.

 Jim

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




 --
 Guillem Medina
 ___
 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

 NOTA LEGAL
 Le informamos que el correo electrónico y las comunicaciones por medio de 
 Internet no permiten asegurar ni garantizar la confidencialidad de los 
 mensajes transmitidos, así como tampoco su integridad o su correcta 
 recepción, por lo que el emisor no asume responsabilidad alguna por tales 
 circunstancias. Este mensaje va dirigido, de manera exclusiva, a su 
 destinatario y contiene información confidencial y sujeta al secreto 
 profesional, cuya divulgación esta prohibida. En caso de haber recibido este 
 mensaje por error, le rogamos que nos lo comunique mediante correo 
 electrónico remitido a nuestra atención y proceda a su eliminación, así como 
 a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que 
 la distribución, copia o utilización de este mensaje, o de cualquier 
 documento adjunto al mismo, cualquiera que fuera su finalidad, están 
 prohibidas por la ley.
 La información que haya puesto en nuestro conocimiento, consta en un fichero 
 titularidad de APHELION SOLUCIONES INFORMATICAS, S.L. con el objeto de 
 mantener el contacto comercial con Ud. establecido. Puede ejercer los 
 derechos de 

[Neo4j] about error

2011-01-25 Thread Jose Angel Inda Herrera
Hello list, i hope that all are fine,

i have this code ,

public class Particion()
{
  LinkedListClaseEquivalencia 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


Re: [Neo4j] about error

2011-01-25 Thread Peter Neubauer
Jose,
Arrays of objects are not supported as properties. In that case, you
should probably either model these as Nodes and Relationships, or
serialize them into a String and that way persist the List.

An example of using Spring to model Sets is in
https://github.com/SpringSource/spring-data-graph-examples/blob/master/imdb/src/main/java/org/neo4j/examples/imdb/domain/Actor.java
.

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://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Jan 25, 2011 at 8:16 PM, Jose Angel Inda Herrera
jai...@estudiantes.uci.cu wrote:
 Hello list, i hope that all are fine,

 i have this code ,

 public class Particion()
 {
  LinkedListClaseEquivalencia 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 mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Traversal Question

2011-01-25 Thread John Howard
Hello,

We are trying to use neo4j graph database in one of our applications.
I think we hit a roadblock with traversal framework. It could be due to our
limited knowledge of neo4j framework.

Here is what we are trying to accomplish:
We need to get a path(from the graph below) from the nodes A to E through
relations REL1, REL2, REL3  REL4.
All we know before the traversal is: Node A, REL1, REL2, REL3,
REL4..(sometime we even know the end node E)
So how can we get the path A to E? I can't seem to achieve it using
evaluator and/or relationships in TraversalDescription. It always returns me
nodes X, P,Q since they have one my relationships(REL1, REL3).


  REL1REL2REL8
  A - X - Y --- Z

   REL1  REL2REL3REL4
  A - B - C --- D - E

   REL1   REL3 REL9   REL10
  A - P - Q --- R - E


Nodes: A, B, C, D,E,X,Y,Z,P,Q,R,
Relations: REL1REL10


Thank you for your help.

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


Re: [Neo4j] about error

2011-01-25 Thread Mattias Persson
In fact, arrays of primitives+Strings are supported, but not List or
Collection or anything like that is.

2011/1/25 Peter Neubauer peter.neuba...@neotechnology.com

 Jose,
 Arrays of objects are not supported as properties. In that case, you
 should probably either model these as Nodes and Relationships, or
 serialize them into a String and that way persist the List.

 An example of using Spring to model Sets is in

 https://github.com/SpringSource/spring-data-graph-examples/blob/master/imdb/src/main/java/org/neo4j/examples/imdb/domain/Actor.java
 .

 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://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



 On Tue, Jan 25, 2011 at 8:16 PM, Jose Angel Inda Herrera
 jai...@estudiantes.uci.cu wrote:
  Hello list, i hope that all are fine,
 
  i have this code ,
 
  public class Particion()
  {
   LinkedListClaseEquivalencia 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 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] Traversal Question

2011-01-25 Thread Jim Webber
Hi John,

The graph algorithms package has a some useful features for path finding (e.g. 
shortest path). Do any of the approaches in 
http://components.neo4j.org/graph-algo/ seem useful to you?

Or do you think that a custom traverser is necessary instead?

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


Re: [Neo4j] Neo4j 1.2 server on Linux X86 - 64 bit

2011-01-25 Thread Peter Neubauer
Joshi,
I am a bit suspicious of your wrapper.log,

STATUS | wrapper  | 2011/01/24 11:34:47 | Launching a JVM...
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager: Initializing...
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager:
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager: WARNING -
Unable to load the Wrapper's native library because none of the
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager:
following files:
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager:
libwrapper-linux-x86-64.so
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager:
libwrapper.so
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager:
could be located on the following java.library.path:
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager:
/home/hjoshi/neo4j-1.2/bin/lib
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager:
Please see the documentation for the wrapper.java.library.path
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager:
configuration property.
INFO   | jvm 1| 2011/01/24 11:34:47 | WrapperManager:
System signals will not be handled correctly.

but that should not be fatal.

It seems you are accessing the webadmin from outside localhost with
the external name? In that case, you should tell the external address
in the conf/neo4j-server.properties:

# REST endpoint for the data API
# Note the / in the end is mandatory
org.neo4j.server.webadmin.data.uri=http://localhost:7474/db/data/

# REST endpoint of the administration API (used by Webadmin)
org.neo4j.server.webadmin.management.uri=http://localhost:7474/db/manage/

should be changed to

# REST endpoint for the data API
# Note the / in the end is mandatory
org.neo4j.server.webadmin.data.uri=http://gigdev8028.gig.acxiom.net:7474/db/data/

# REST endpoint of the administration API (used by Webadmin)
org.neo4j.server.webadmin.management.uri=http://gigdev8028.gig.acxiom.net:7474/db/manage/

Does that change things for the webadmin?

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://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Sat, Jan 22, 2011 at 9:08 AM, Peter Neubauer
peter.neuba...@neotechnology.com wrote:
 Joshi,
 Could youy send over the contents of the log files under data/log to
 me in order to take a look?

 /peter

 On Friday, January 21, 2011, Joshi Hemant - hjoshi
 hemant.jo...@acxiom.com wrote:
 I downloaded Neo4j 1.2 release for linux from 
 http://neo4j.org/get?file=neo4j-1.2-unix.tar.gz and extracted it to a 
 directory using tar -zxvf file. I installed the service using bin/neo4j 
 install option. Next, I followed documentation at 
 http://wiki.neo4j.org/content/Getting_Started_With_Neo4j_Server. After the 
 neo4j server is started successfully, when I try the curl command
 curl -H Accept:application/json http://localhost:7474/db/data/

 I get the following response:
 HTML
 HEADTITLERedirection/TITLE/HEAD
 BODYH1Redirect/H1/BODY

 Also from firefox, when I try to access webadmin at 
 http://gigdev8028.gig.acxiom.net:7474/webadmin/
 I get the following error message:
 Server connection lost
 Attempting to re-establish connection..

 I have not changed any config files. uname-a command returns the following:
 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 
 GNU/Linux

 The 2 log files neo4j.log and wrapper.log under data/log directory do not 
 show any error messages.

 Am I missing something?
 -Hemant
 ***
 The information contained in this communication is confidential, is
 intended only for the use of the recipient named above, and may be legally
 privileged.

 If the reader of this message is not the intended recipient, you are
 hereby notified that any dissemination, distribution or copying of this
 communication is strictly prohibited.

 If you have received this communication in error, please resend this
 communication to the sender and delete the original message or any copy
 of it from your computer system.

 Thank You.
 

 ___
 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