[Neo4j] ODBC connection

2011-12-06 Thread patenlee
I want to access from an external application Neo4j objects. Does anybody
know if a Neo4J ODBC driver is available to access the Neo4j objects.

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/ODBC-connection-tp3566658p3566658.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


[Neo4j] println and Table Projections

2011-12-06 Thread Romiko Derbynew
Hi,

I have this statement.
g.v('0').outE[[label:'HOSTS']].inV.filter{ 
it['Key'].equalsIgnoreCase('romikoagency') 
}.inE[[label:'USER_BELONGS_TO']].outV.filter{ 
it['Username'].equalsIgnoreCase('romiko.derbynew') 
}.ifThenElse{it.outE[[label:'USER_LINKED_TO_CENTRE']].inV.hasNext()}{it.outE[[label:'USER_LINKED_TO_CENTRE']].inV.Name}{println
 ${it} "Unknown"}.as('Centre')

I then take this query and do a table projection, however I get the following 
error.
println java.lang.String cannot be cast to com.tinkerpop.blueprints.pgm.Vertex

Is there a better way to do this then? I want to reduce our calls to the DB for 
performance and finding it a bit tough wrapping everything into one  query. 
Currently the above query is split into two different queries.

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


Re: [Neo4j] Help needed - Gremlin IfThenElse and As Clause with Table Projections - Cap

2011-12-06 Thread Romiko Derbynew
Current workaround is 3 db calls, and then I merge the results and take the 
most significant, but this is very slow.

var incompleteReferralsWithParticipants = graphClient
.RootNode
.Out(Hosts.TypeKey, a => a.Key == 
userIdentifier.AgencyKey)
.In(UserBelongsTo.TypeKey, u => u.Username == 
userIdentifier.Username)
.Out(UserLinkedToCentre.TypeKey)
.As("Centre")
.In(UserLinkedToCentre.TypeKey)
.As("UserGivenName")
.As("UserFamilyName")
.In(CreatedBy.TypeKey, r => r.Completed == false)
.As("ReferralId")
.Out(ReferralHasWhoSection.TypeKey)
.As("ReferralDate")
.Out(HasParticipant.TypeKey)
.As("ParticipantDisplayOrder")
.As("ParticipantName")
.Table(
centre => centre.Name,
user => user.FamilyName,
user => user.GivenName,
referral => referral.UniqueId,
who => who.ReferralDate,
participant => participant.Name,
participant => participant.DisplayOrder
);

var allIncompleteReferralsWhoSection = graphClient
.RootNode
.Out(Hosts.TypeKey, a => a.Key == 
userIdentifier.AgencyKey)
.In(UserBelongsTo.TypeKey, u => u.Username == 
userIdentifier.Username)
.Out(UserLinkedToCentre.TypeKey)
.As("Centre")
.In(UserLinkedToCentre.TypeKey)
.As("UserGivenName")
.As("UserFamilyName")
.In(CreatedBy.TypeKey, r => r.Completed == false)
.As("ReferralId")
.Out(ReferralHasWhoSection.TypeKey)
.As("ReferralDate")
.Table(
centre => centre.Name,
user => user.FamilyName,
user => user.GivenName,
referral => referral.UniqueId,
who => who.ReferralDate
);

var allIncompleteReferrals = graphClient
.RootNode
.Out(Hosts.TypeKey, a => a.Key == 
userIdentifier.AgencyKey)
.In(UserBelongsTo.TypeKey, u => u.Username == 
userIdentifier.Username)
.Out(UserLinkedToCentre.TypeKey)
.As("Centre")
.In(UserLinkedToCentre.TypeKey)
.As("UserGivenName")
.As("UserFamilyName")
.In(CreatedBy.TypeKey, r => r.Completed == false)
.As("ReferralId")
.Table(
centre => centre.Name,
user => user.FamilyName,
user => user.GivenName,
referral => referral.UniqueId
);

-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Romiko Derbynew
Sent: Wednesday, 7 December 2011 3:34 PM
To: Neo4j user discussions
Subject: Re: [Neo4j] Help needed - Gremlin IfThenElse and As Clause with Table 
Projections - Cap

I also tried this, with as statements in the else statements, I am noticing I 
cannot get access to the nest ifthenelse as data in the table projection, will 
try other ways of doing it in the meantime.

g.v('0').outE[[label:'HOSTS']].inV.filter{ 
it['Key'].equalsIgnoreCase('romikoagency') 
}.inE[[label:'USER_BELONGS_TO']].outV.filter{ 
it['Username'].equalsIgnoreCase('romiko.derbynew') 
}.outE[[label:'USER_LINKED_TO_CENTRE']].inV.as('Centre').inE[[label:'USER_LINKED_TO_CENTRE']].outV.as('UserGivenName').as('UserFamilyName').inE[[label:'CREATED_BY']].outV.filter{
 it['Completed'] == false 
}.as('ReferralId').ifThenElse{it.outE[[label:'REFERRAL_HAS_WHO_SECTION']].inV.hasNext()}{it.outE[[label:'REFERRAL_HAS_WHO_SECTION']].inV.as('ReferralDate').ifThenElse{it.outE[[label:'HAS_PARTICIPANT']].inV.hasNext()}{it.outE[[label:'HAS_PARTICIPANT']].inV.as('ParticipantDisplayOrder').as('ParticipantName')}{it.as('ParticipantDisplayOrder').as('ParticipantName')}}{it.as('ReferralDate')}.table(new
 
Table()){it['Name']}{it['FamilyName']}{it['GivenName']}{it['UniqueId']}{it['ReferralDate']}{it['Name']}{it['DisplayOrder']}.cap


var incompleteReferrals = graphClient
.RootNode
.Out(Hosts.TypeKey, a => a.Key == 
userIdentifier.AgencyKey)
.In(UserBelongsTo.TypeKey, u => u.Username == 
userIdentifier.Username)
.Out(UserLinkedToCentre.TypeKey)
.As("Centre")
.In(UserLinkedToCentre.TypeKey)
.As("UserGivenName")
.As("UserFamilyName")
.In(CreatedBy.TypeKey, r => r.Completed == false)
.As("ReferralId")
.IfThenElse(new 
GremlinIterator().Out(ReferralHasWhoSecti

Re: [Neo4j] Help needed - Gremlin IfThenElse and As Clause with Table Projections - Cap

2011-12-06 Thread Romiko Derbynew
I also tried this, with as statements in the else statements, I am noticing I 
cannot get access to the nest ifthenelse as data in the table projection, will 
try other ways of doing it in the meantime.

g.v('0').outE[[label:'HOSTS']].inV.filter{ 
it['Key'].equalsIgnoreCase('romikoagency') 
}.inE[[label:'USER_BELONGS_TO']].outV.filter{ 
it['Username'].equalsIgnoreCase('romiko.derbynew') 
}.outE[[label:'USER_LINKED_TO_CENTRE']].inV.as('Centre').inE[[label:'USER_LINKED_TO_CENTRE']].outV.as('UserGivenName').as('UserFamilyName').inE[[label:'CREATED_BY']].outV.filter{
 it['Completed'] == false 
}.as('ReferralId').ifThenElse{it.outE[[label:'REFERRAL_HAS_WHO_SECTION']].inV.hasNext()}{it.outE[[label:'REFERRAL_HAS_WHO_SECTION']].inV.as('ReferralDate').ifThenElse{it.outE[[label:'HAS_PARTICIPANT']].inV.hasNext()}{it.outE[[label:'HAS_PARTICIPANT']].inV.as('ParticipantDisplayOrder').as('ParticipantName')}{it.as('ParticipantDisplayOrder').as('ParticipantName')}}{it.as('ReferralDate')}.table(new
 
Table()){it['Name']}{it['FamilyName']}{it['GivenName']}{it['UniqueId']}{it['ReferralDate']}{it['Name']}{it['DisplayOrder']}.cap


var incompleteReferrals = graphClient
.RootNode
.Out(Hosts.TypeKey, a => a.Key == 
userIdentifier.AgencyKey)
.In(UserBelongsTo.TypeKey, u => u.Username == 
userIdentifier.Username)
.Out(UserLinkedToCentre.TypeKey)
.As("Centre")
.In(UserLinkedToCentre.TypeKey)
.As("UserGivenName")
.As("UserFamilyName")
.In(CreatedBy.TypeKey, r => r.Completed == false)
.As("ReferralId")
.IfThenElse(new 
GremlinIterator().Out(ReferralHasWhoSection.TypeKey).GremlinHasNext(),
new 
GremlinIterator().Out(ReferralHasWhoSection.TypeKey)
.As("ReferralDate")
.IfThenElse(new 
GremlinIterator().Out(HasParticipant.TypeKey).GremlinHasNext(),
new 
GremlinIterator().Out(HasParticipant.TypeKey)
.As("ParticipantDisplayOrder")
.As("ParticipantName")
,
 new GremlinIterator()
.As("ParticipantDisplayOrder")
.As("ParticipantName"))
,
 new GremlinIterator()
 .As("ReferralDate"))
.Table(
centre => centre.Name,
user => user.FamilyName,
user => user.GivenName,
referral => referral.UniqueId,
who => who.ReferralDate,
participant => participant.Name,
participant => participant.DisplayOrder
);

[ [ {
  "data" : [ [ "Centre2", "Derbynew", "Romiko", 402 ], [ "null", "null", 
"null", "null" ], [ "null", "Romiko", "null", "null" ], [ "Centre2", "null", 
"null", "null" ], [ "null", "null", "null", "null" ], [ "null", "null", 
"Derbynew", "null" ], [ 11, "null", "null", "null" ], [ "Centre2", "Derbynew", 
"Romiko", 371 ], [ "null", "null", "null", "null" ], [ "null", "Bob", "null", 
"null" ], [ "Centre", "null", "null", "null" ], [ "null", "null", "null", 
"null" ], [ "null", "null", "Builder", "null" ], [ 1, "null", "null", "null" ], 
[ "Centre", "Builder", "Bob", 31 ], [ "null", "null", "null", "null" ], [ 
"null", "Bob", "null", "null" ], [ "Centre", "null", "null", "null" ], [ 
"null", "null", "null", "null" ], [ "null", "null", "Builder", "null" ], [ 1, 
"null", "null", "null" ], [ "Centre", "Builder", "Bob", 81 ], [ "null", "null", 
"null", "null" ], [ "null", "Bob", "null", "null" ], [ "Centre", "null", 
"null", "null" ], [ "null", "null", "null", "null" ], [ "null", "null", "Builde
 r", "null" ], [ 1, "null", "null", "null" ], [ "Centre", "Builder", "Bob", 121 
], [ "null", "null", "null", "null" ], [ "null", "Bob", "null", "null" ], [ 
"Centre", "null", "null", "null" ], [ "null", "null", "null", "null" ], [ 
"null", "null", "Builder", "null" ], [ 1, "null", "null", "null" ], [ "Centre", 
"Builder", "Bob", 141 ], [ "null", "null", "null", "null" ], [ "null", "Bob", 
"null", "null" ], [ "Centre", "null", "null", "null" ], [ "null", "null", 
"null", "null" ], [ "null", "null", "Builder", "null" ], [ 1, "null", "null", 
"null" ], [ "Centre", "Builder", "Bob", 171 ], [ "null", "null", "null", "null" 
], [ "null", "Bob", "null", "null" ], [ "Centre", "null", "null", "null" ], [ 
"null", "null", "null", "null" ], [ "null", "null", "Builder", "null" ], [ 1, 
"null", "null", "null" ], [ "Centre", "Builder", "Bob", 182 ], [ "null", 
"null", "null", "null" ], [ "null", "Bob", "null", "null" ], [ "Centre", 
"null", "null", "null" ], [ "null", "null", "null", "null" ], [ "nul
 l", "null", "Builder", "null" ], [ 1, "null", "null", "null" ], [ "Centre", 
"Builder", "Bob", 184 ], [

[Neo4j] Help needed - Gremlin IfThenElse and As Clause with Table Projections - Cap

2011-12-06 Thread Romiko Derbynew
Hi,

I am trying to write a query that does a table projection, however, there is 
two nested ifthenelse statements. I find that the As clause does not work 
correctly when I mark the iterator and I cannot find a way to get a consistent 
projection.

Ideally. Each THEN statement should contribute to the projection, but this does 
not occur.

I think perhaps the problem is in my ELSE conditions, where I would need to 
created fake nodes for the AS Statements to work with null values when 
deserializing. Any ideas?

Below is two sample Gremlin, and .Net c# equivalent and then the REST outputs. 
(NOTE there is a bug with table projectons in gremlin, and column order is 
reversed from data, but I can work around this. 
https://github.com/neo4j/community/issues/114)

This script is try to get nodes and if those nodes have further relationships 
then go get those nodes and mark them with AS statements and if those nodes 
have relationships, then mark those end nodes with as statements, and then put 
them all in a table

So I imagine the table like this if there were 3 levels deep, and one property 
per node to project

Sample desired output if there is 3 nodes at level 0, 1 node at level 2 and 1 
node at level 3.
Column1 Column2 Column3
PropertyA, null, null
PropertyA, PropertyB, null
PropertyA, PropertyB, PropetyC


e.g.

g.v('0').outE[[label:'HOSTS']].inV.filter{ 
it['Key'].equalsIgnoreCase('romikoagency') 
}.inE[[label:'USER_BELONGS_TO']].outV.filter{ 
it['Username'].equalsIgnoreCase('romiko.derbynew') 
}.outE[[label:'USER_LINKED_TO_CENTRE']].inV.as('Centre').inE[[label:'USER_LINKED_TO_CENTRE']].outV.as('UserGivenName').as('UserFamilyName').inE[[label:'CREATED_BY']].outV.filter{
 it['Completed'] == false }.as('ReferralId')

.ifThenElse{it.outE[[label:'REFERRAL_HAS_WHO_SECTION']].inV.hasNext()}
{it.outE[[label:'REFERRAL_HAS_WHO_SECTION']].inV
.as('ReferralDate')
.ifThenElse{it.outE[[label:'HAS_PARTICIPANT']].inV.hasNext()}
{it.outE[[label:'HAS_PARTICIPANT']].inV.inE[[label:'HAS_PARTICIPANT']].outV.inE[[label:'REFERRAL_HAS_WHO_SECTION']].outV.filter
{ it['Completed'] == false }
.as('ParticipantDisplayOrder')
.as('ParticipantName')}
{it}}
{it}
.table(new 
Table()){it['Name']}{it['FamilyName']}{it['GivenName']}{it['UniqueId']}{it['ReferralDate']}{it['Name']}{it['DisplayOrder']}.cap


var incompleteReferrals = graphClient
.RootNode
.Out(Hosts.TypeKey, a => a.Key == 
userIdentifier.AgencyKey)
.In(UserBelongsTo.TypeKey, u => u.Username == 
userIdentifier.Username)
.Out(UserLinkedToCentre.TypeKey)
.As("Centre")
.In(UserLinkedToCentre.TypeKey)
.As("UserGivenName")
.As("UserFamilyName")
.In(CreatedBy.TypeKey, r => r.Completed == false)
.As("ReferralId")
.IfThenElse(new 
GremlinIterator().Out(ReferralHasWhoSection.TypeKey).GremlinHasNext(),
new 
GremlinIterator().Out(ReferralHasWhoSection.TypeKey)
.As("ReferralDate")
.IfThenElse(new 
GremlinIterator().Out(HasParticipant.TypeKey).GremlinHasNext(),
new 
GremlinIterator().Out(HasParticipant.TypeKey)
.In(HasParticipant.TypeKey)
.In(ReferralHasWhoSection.TypeKey, r => 
r.Completed == false)
.As("ParticipantDisplayOrder")
.As("ParticipantName")
,
 new GremlinIterator())
,
 new GremlinIterator())
.Table(
centre => centre.Name,
user => user.FamilyName,
user => user.GivenName,
referral => referral.UniqueId,
who => who.ReferralDate,
participant => participant.Name,
participant => participant.DisplayOrder
);


Output:
[ [ {
  "data" : [ [ "Centre2", "Derbynew", "Romiko", 402 ], [ "null", "null", 
"null", "null" ], [ "null", "Romiko", "null", "null" ], [ "Centre2", "null", 
"null", "null" ], [ "null", "null", "null", "null" ], [ "null", "null", 
"Derbynew", "null" ], [ 11, "null", "null", "null" ], [ "Centre2", "Derbynew", 
"Romiko", 371 ], [ "null", "null", "null", "null" ], [ "null", "Bob", "null", 
"null" ], [ "Centre", "null", "null", "null" ], [ "null", "null", "null", 
"null" ], [ "null", "null", "Builder", "null" ], [ 1, "null", "null", "null" ], 
[ "Centre", "Builder", "Bob", 31 ], [ "null", "null", "null", "null" ], [ 
"null", "Bob", "null", "null" ], [ "Centre", "null", "null", "null" ], [ 
"null", "null", "null", "null" ], [ "null", "null", "Builder", "null" ], [ 1, 
"null", "null", "null" ], [ "Centre", "Builder", "Bob", 81 ], [ "null", "null", 
"null", "null" ], [ "null", "Bob", "null", "null" ], [ "Centre", "null

Re: [Neo4j] Clear database over REST

2011-12-06 Thread Michael Hunger
And if you follow the code, it does the hard-core action if the limit is 
reached.

if ((Long)result.get("nodes")>=MAX_NODES_TO_DELETE) {
result.putAll(cleanDbDirectory(database));
}

Michael

Am 07.12.2011 um 00:38 schrieb Krzysztof Raczyński:

> Hello Michael, I glanced through plugin's source code, and spank me if
> i'm wrong, but is the plugging limited to removing only 1k nodes at a
> time?
> 
> https://github.com/jexp/neo4j-clean-remote-db-addon/blob/master/src/main/java/org/neo4j/server/extension/test/delete/DeleteDatabaseResource.java#L58
> 
> calls
> 
> https://github.com/jexp/neo4j-clean-remote-db-addon/blob/master/src/main/java/org/neo4j/server/extension/test/delete/Neo4jDatabaseCleaner.java#L32
> 
> With a 1k limit. Maybe it's just a type, and you intended to use the
> parameter-less version of the function?
> 
> cheers and thanks for answers
> ___
> 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] Clear database over REST

2011-12-06 Thread Michael Hunger
> 
>> You would also want to get all indexes and delete them too.
> Don't indexes "retire" when a related node/relationship is gone?

Yes they have read-repair, but some things will hang around and if you for 
instance want to test
e.g. index creation or create an index with the same name but different config 
you might end up running into errors.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Clear database over REST

2011-12-06 Thread Dmytrii Nagirniak

On 07/12/2011, at 10:34 AM, Michael Hunger wrote:

> Without shutting down the server?
Preferably. Shutting down/starting up may take couple of seconds.
With a suite of 1000 tests it adds up to a pretty long wait.


> Only manually deleting the nodes, rels and indexes, 
> but then all your nodes have to be indexed (index-lookup) or connected 
> (travesal) -> to simulate getAllNodes().
> And then you can batch-delete them.
Hmm. Another option. Thanks.


> You would also want to get all indexes and delete them too.
Don't indexes "retire" when a related node/relationship is gone?

> The extension also does some hard-core action if your db contains more than 
> 10k elements. It just removes the disk-files and reinstates a new graphdb :)
This should never happen. Probably couple of hundreds elements max.


> 
> Am 07.12.2011 um 00:29 schrieb Dmytrii Nagirniak:
> 
>> Thanks Michael.
>> 
>> That's definitely the best way to go.
>> 
>> But I wonder if there is a way to do it without plugins.
>> 
>> 
>> On 07/12/2011, at 10:22 AM, Michael Hunger wrote:
>> 
>>> I wrote a plugin for that.
>>> 
>>> See here:
>>> 
>>> You can just download the jar, put it in your plugins folder and add it to 
>>> your config.
>>> https://github.com/jexp/neo4j-clean-remote-db-addon
>>> https://github.com/jexp/neo4j-clean-remote-db-addon/downloads
>>> 
>>> Am 07.12.2011 um 00:11 schrieb Dmytrii Nagirniak:
>>> 
 Hi,
 
 I wonder what is the easiest and fastest way to clear the database over 
 the REST API.
 
 The purpose is to use it during testing and this needs to be as fast as 
 possible.
 The data volume is not expected to be large, so maybe simple retrieval of 
 all relationships, nodes and then batch-deleting those would be sufficient.
 
 But the question is how do I get all nodes (not necessarily interconnected 
 or attached to ref-node) and relationships?
 
 Cheers,
 Dima
 http://www.ApproachE.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
> 
> ___
> 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] Clear database over REST

2011-12-06 Thread Krzysztof Raczyński
Hello Michael, I glanced through plugin's source code, and spank me if
i'm wrong, but is the plugging limited to removing only 1k nodes at a
time?

https://github.com/jexp/neo4j-clean-remote-db-addon/blob/master/src/main/java/org/neo4j/server/extension/test/delete/DeleteDatabaseResource.java#L58

calls

https://github.com/jexp/neo4j-clean-remote-db-addon/blob/master/src/main/java/org/neo4j/server/extension/test/delete/Neo4jDatabaseCleaner.java#L32

With a 1k limit. Maybe it's just a type, and you intended to use the
parameter-less version of the function?

cheers and thanks for answers
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] NeoEclipse overlapping relations

2011-12-06 Thread nrkkalyan
I would like to know if there is a way to see the relations on neoeclipse
propertly, I created a family relation and tried to view the relation in
neoeclipse, but it seems the relations are been overlapped.

Image: 
http://neo4j-community-discussions.438527.n3.nabble.com/file/n3565999/neo4j-family-relation.png
 

Am I doing something missing in settings?

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/NeoEclipse-overlapping-relations-tp3565999p3565999.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] Clear database over REST

2011-12-06 Thread Michael Hunger
Without shutting down the server?

Only manually deleting the nodes, rels and indexes, 
but then all your nodes have to be indexed (index-lookup) or connected 
(travesal) -> to simulate getAllNodes().
And then you can batch-delete them.

You would also want to get all indexes and delete them too.
Am not sure about deleting the auto-indexes.

Should work as well but much slower. The plugin is from the time before the 
batch-API.

The extension also does some hard-core action if your db contains more than 10k 
elements. It just removes the disk-files and reinstates a new graphdb :)

Michael

Am 07.12.2011 um 00:29 schrieb Dmytrii Nagirniak:

> Thanks Michael.
> 
> That's definitely the best way to go.
> 
> But I wonder if there is a way to do it without plugins.
> 
> 
> On 07/12/2011, at 10:22 AM, Michael Hunger wrote:
> 
>> I wrote a plugin for that.
>> 
>> See here:
>> 
>> You can just download the jar, put it in your plugins folder and add it to 
>> your config.
>> https://github.com/jexp/neo4j-clean-remote-db-addon
>> https://github.com/jexp/neo4j-clean-remote-db-addon/downloads
>> 
>> Am 07.12.2011 um 00:11 schrieb Dmytrii Nagirniak:
>> 
>>> Hi,
>>> 
>>> I wonder what is the easiest and fastest way to clear the database over the 
>>> REST API.
>>> 
>>> The purpose is to use it during testing and this needs to be as fast as 
>>> possible.
>>> The data volume is not expected to be large, so maybe simple retrieval of 
>>> all relationships, nodes and then batch-deleting those would be sufficient.
>>> 
>>> But the question is how do I get all nodes (not necessarily interconnected 
>>> or attached to ref-node) and relationships?
>>> 
>>> Cheers,
>>> Dima
>>> http://www.ApproachE.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

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


Re: [Neo4j] Clear database over REST

2011-12-06 Thread Dmytrii Nagirniak
Thanks Michael.

That's definitely the best way to go.

But I wonder if there is a way to do it without plugins.


On 07/12/2011, at 10:22 AM, Michael Hunger wrote:

> I wrote a plugin for that.
> 
> See here:
> 
> You can just download the jar, put it in your plugins folder and add it to 
> your config.
> https://github.com/jexp/neo4j-clean-remote-db-addon
> https://github.com/jexp/neo4j-clean-remote-db-addon/downloads
> 
> Am 07.12.2011 um 00:11 schrieb Dmytrii Nagirniak:
> 
>> Hi,
>> 
>> I wonder what is the easiest and fastest way to clear the database over the 
>> REST API.
>> 
>> The purpose is to use it during testing and this needs to be as fast as 
>> possible.
>> The data volume is not expected to be large, so maybe simple retrieval of 
>> all relationships, nodes and then batch-deleting those would be sufficient.
>> 
>> But the question is how do I get all nodes (not necessarily interconnected 
>> or attached to ref-node) and relationships?
>> 
>> Cheers,
>> Dima
>> http://www.ApproachE.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] Clear database over REST

2011-12-06 Thread Michael Hunger
I wrote a plugin for that.

See here:

You can just download the jar, put it in your plugins folder and add it to your 
config.
https://github.com/jexp/neo4j-clean-remote-db-addon
https://github.com/jexp/neo4j-clean-remote-db-addon/downloads

Am 07.12.2011 um 00:11 schrieb Dmytrii Nagirniak:

> Hi,
> 
> I wonder what is the easiest and fastest way to clear the database over the 
> REST API.
> 
> The purpose is to use it during testing and this needs to be as fast as 
> possible.
> The data volume is not expected to be large, so maybe simple retrieval of all 
> relationships, nodes and then batch-deleting those would be sufficient.
> 
> But the question is how do I get all nodes (not necessarily interconnected or 
> attached to ref-node) and relationships?
> 
> Cheers,
> Dima
> http://www.ApproachE.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] Clear database over REST

2011-12-06 Thread Dmytrii Nagirniak
Hi,

I wonder what is the easiest and fastest way to clear the database over the 
REST API.

The purpose is to use it during testing and this needs to be as fast as 
possible.
The data volume is not expected to be large, so maybe simple retrieval of all 
relationships, nodes and then batch-deleting those would be sufficient.

But the question is how do I get all nodes (not necessarily interconnected or 
attached to ref-node) and relationships?

Cheers,
Dima
http://www.ApproachE.com




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


Re: [Neo4j] There's already an HA cluster managed by this ZooKeeper cluster

2011-12-06 Thread Michael Hunger
Answer from Mahesh:

Hi, 

Anirudha is a part of our team. 

We are using 1.5 in a 3 server setup on different physical machines. 

The messages.log from the server failing to start is as follows. 
(https://gist.github.com/1433340;cid=1323211777524-299)
Here is the messages.log file on the server that is failing 

Hope this helps you help us.. 

Cheers...

Mahesh

Am 05.12.2011 um 09:03 schrieb Peter Neubauer:

> Hi there,
> what version are you running, any chance you could collect the
> messages.log from the instances and send them over?
> 
> 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
> 
> brew install neo4j && neo4j start
> heroku addons:add neo4j
> 
> 
> 
> On Fri, Dec 2, 2011 at 3:08 PM, anirudha  wrote:
>> Hi,
>> 
>> We are trying to setup neo4j in high-availability mode with 3 nodes in the
>> cluster.
>> When we restart any of the neo4j servers, it fails. We get following
>> exception:
>> 
>> ==> neo4j-zookeeper.log <==
>> ERROR main-EventThread org.apache.zookeeper.ClientCnxn - Error while calling
>> watcher
>> java.lang.RuntimeException: There's already an HA cluster managed by this
>> ZooKeeper cluster
>>at org.neo4j.kernel.ha.zookeeper.ZooClient.getRoot(ZooClient.java:370)
>>at
>> org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager.getAllMachines(AbstractZooKeeperManager.java:194)
>>at
>> org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager.getMasterFromZooKeeper(AbstractZooKeeperManager.java:134)
>>at org.neo4j.kernel.ha.zookeeper.ZooClient.process(ZooClient.java:122)
>>at
>> org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:530)
>>at 
>> org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:506)
>> 
>> 
>> If we delete the database folder "graph.db" and then start the server, it
>> starts with no exception and syncs the data.
>> Am I missing any configuration?
>> 
>> Thanks.
>> 
>> --
>> View this message in context: 
>> http://neo4j-community-discussions.438527.n3.nabble.com/There-s-already-an-HA-cluster-managed-by-this-ZooKeeper-cluster-tp3554731p3554731.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
> ___
> 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] There's already an HA cluster managed by this ZooKeeper cluster

2011-12-06 Thread Michael Hunger
Answer from Mahesh (not getting through nabble):

Hi, 

The issue is with any server that is a part of the cluster. 

It is reproducible at will. 
The method we were following was - 
1) start all three co-ordinators 
2) start all three servers 
3) shut down one server 
4) start the same server again - it fails 

You can take a look at all the three messages.log files here. The file called 
slave2_messages_failing.log is the server that fails to start. 

The other two instances' messages.log files are also present in the same 
location. 


I tried the scenario outlined -> 
- Create the cluster from scratch 
- Restart one cluster member 
- It will fail as you have described 
- Wipe that member's database, start it 
- It will successfully join the cluster, as you have described. 
- What happens if you restart it again? 

Even in the above case, the server fails to start. 

The issue can be reproduced on any machine - not necessarily a slave or a 
master. 

Mahesh
Am 05.12.2011 um 15:52 schrieb Chris Gioran:

> Hi,
> 
> Two questions, two requests:
> 
> 1) Does this happen only on one machine or any member of the cluster?
> Is it reproducible at will?
> 1) Could you please provide the messages.log for the other two machines as 
> well?
> 2) Can you please tell me the result of this scenario:
>- Create the cluster from scratch
>- Restart one cluster member
>  - It will fail as you have described
>- Wipe that member's database, start it
>  - It will successfully join the cluster, as you have described.
>- What happens if you restart it again?
> 
> thank you,
> CG
> 
> On Mon, Dec 5, 2011 at 2:26 PM, anirudha  wrote:
>> Link for the messages.log file : https://gist.github.com/1433340
>> 
>> --
>> View this message in context: 
>> http://neo4j-community-discussions.438527.n3.nabble.com/There-s-already-an-HA-cluster-managed-by-this-ZooKeeper-cluster-tp3554731p3561268.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
> ___
> 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] [Neo4j-User] Queries about HA

2011-12-06 Thread Mattias Persson
2011/12/6 Samuel Feng 

> Thanks Peter,
>
> I studied how the HA works in
> http://docs.neo4j.org/chunked/snapshot/ha-how.html. It mentioned that "If
> the new master is elected and performs changes before the old master
> recovers, there will two different versions of the data. The old master
> will not be able to attach itself to the cluster and will require
> maintenance (replace the wrong version of the data with the one running in
> the cluster".
>
> Say, I have two neo4j instances(A & B) running, When instance A crashed, B
> continues to work and has many writes on it. Then Server A is recovered but
> it can not attach itself to the cluster as the wrong data version. So I
> need to manually replace the instance A's data using B's.
>
> But the graph size is around 4G, I have to copy all the 4G data to server
> A? Or any other simple and fast ways?
>
> Sorry that page seems outdated. Most often a previous master can rejoin
the cluster as a slave when it starts up and recovers, and if it sees that
its data has "branched" from the new master it will grab a new copy
automatically from the new master. I'll rewrite it right away.

And about moving to HA mode... the main difference code-wise is that you do:

new HighlyAvailableGraphDatabase(...)

instead of

new EmbeddedGraphDatabase(...)

So you can run HA in embedded or server mode, which ever you like.

Regards,
>
> Samuel
>
> 2011/12/6 Peter Neubauer 
>
> > Samuel,
> > I would recommend HA for your usecase, since then the Neo4j cluster
> > will handling new neo4j instances appearing and copying data etc. Look
> > at http://docs.neo4j.org/chunked/snapshot/ha.html for setup docs.
> >
> > There seems to be some interest in RMI remoting to neo4j. However, we
> > think this is not the ultimate way to go in the long run since it is
> > Java-centric and still not fast and stable enough for want we want to
> > achieve. However, if the community finds it useful, I am all up for
> > someone stepping up and invest the last mile to make it good, maybe
> > put it on GIThub for easier collaboration, of course.
> >
> > Tobias original code is at
> > https://svn.neo4j.org/components/remote-graphdb/trunk/, and the API
> > should not have moved terribly out of sync, so I guess it is not a LOT
> > of work to at least get it working.
> >
> > Anyone?
> >
> > 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
> >
> > brew install neo4j && neo4j start
> > heroku addons:add neo4j
> >
> >
> >
> > On Tue, Dec 6, 2011 at 4:43 AM, Samuel Feng  wrote:
> > > Dear List,
> > >
> > > I'm using neo4j 1.5GA and using embeddedGraphDatabase to access the
> > graph.
> > > Now the graph size is around 4G.
> > >
> > > Now I would like to try HA mode and have several questions.
> > >
> > > 1) Can I access the graph in some kind of remote mode? So that I can
> use
> > > many tomcat servers to access the graph remotely and do not need to
> > change
> > > any code. I understand neo4j can run as a server, however, we can only
> > use
> > > REST api to accessing the neo4j server, this will cause many many code
> > > changes for me. Please correct me if I have any misunderstanding.
> > >
> > > Seems there is a neo4j-remote-graphdb component which uses RMI to
> access
> > a
> > > graph remotely. BUT in the wiki
> > > http://components.neo4j.org/neo4j-remote-graphdb/stable/, you
> mentioned
> > "The
> > > implementation is not speedy enough to be used as the main access
> channel
> > > to a Graph Database for actual applications."
> > >
> > > 2) If I use neo4j embedded in HA mode, say, I have two neo4j
> instances(A
> > &
> > > B) running, When instance A crashed, B continues to work and has many
> > > writes on it. Then Server A is recovered but it can not attach itself
> to
> > > the cluster as the wrong data version. So I need to manually replace
> the
> > > instance A's data using B's.
> > >
> > > But the graph size is around 4G, I have to copy all the 4G data to
> server
> > > A? Or any other simple and fast ways?
> > >
> > > Thanks and Regards,
> > >
> > > Samuel
> > > ___
> > > Neo4j mailing list
> > > User@lists.neo4j.org
> > > https://lists.neo4j.org/mailman/listinfo/user
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> > Groups "Neo4j User Discussions" group.
> > > To post to this group, send email to u...@neo4j.org.
> > > To unsubscribe from this group, send email to
> user+unsubscr...@neo4j.org
> > .
> > > For more options, visit this group at
> > http://groups.google.com/a/neo4j.org/group/user/?hl=en.
> > >
> > ___
> > Neo4j mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> ___
> Neo4j mailing

Re: [Neo4j] New user...

2011-12-06 Thread Jacob Hansson
Welcome to the list :)

/jake
On Dec 6, 2011 1:54 PM, "Lawrence"  wrote:

> Just sending my email
>
> --
> Lawrence C. Bandeira
> ___
> 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] HA starting issue

2011-12-06 Thread lawrence.bandeira
Follow the logs !!!

http://neo4j-community-discussions.438527.n3.nabble.com/file/n3565025/console.log
console.log 
http://neo4j-community-discussions.438527.n3.nabble.com/file/n3565025/neo4j.0.0.log
neo4j.0.0.log 
http://neo4j-community-discussions.438527.n3.nabble.com/file/n3565025/neo4j-zookeeper.log
neo4j-zookeeper.log 

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-HA-starting-issue-tp3260535p3565025.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


[Neo4j] KeyError in python

2011-12-06 Thread Jacopo Farina
Hi all!
I'm using python embedded in order to classify all the nodes in a neo4j
graph previously labeled with properties.
The graph is about 3.9GB with 7M nodes and 30-40M relationships. I've two
questions:
1- the program worked correctly for hours then crashed suddenly with this
error:
Traceback (most recent call last):
File ''assegnaCategoria.py'', line l4, in 
  for n in db.nodes:
File ''/usr/local/lib/python2.6/dist-packages/neo4)/ _ init _ .py'', line
44, in _ getitem _
 return sel_.get(items)
File ''/usr/local/lib/python2.6/dist-packages/neo4)/ _ init _ .py'', line
6l, in get
rethrow current exception as(KeyError)
File ''/usr/local/lib/python2.6/dist-packages/neo4)/util.py'', line 76, in
rethrow_current_exception_as
raise ErrorClass(msg)
KeyError: u'Node[9327924]'

2-the program is very slow.I started it at 18 pm end it crashed at ~65% of
the work at 4 am It only reads the database, never changing it, is there a
way to set it to use the cache intensively? I would put it in /dev/shm/ but
my RAM is 3GB and the database is bigger.

The code is this http://codepad.org/leSwqhnc

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


Re: [Neo4j] OSMImporter: Is there a way to do incremental imports?

2011-12-06 Thread Craig Taverner
There was only a method ending in 'WithCheck', or something like that,
lying unused in the code from last year. Nothing more than that. Except for
thinking about it, which is why I wrote the previous mail.
On Dec 2, 2011 12:50 PM, "Peter Neubauer"  wrote:

> Not sure,
> Craig, do you have the code somewhere?
>
> /peter
>
> On Tue, Nov 22, 2011 at 4:17 PM, grimace  wrote:
> > thanks for the response(s)!  The hardware I'm testing on is not the best
> and
> > only 4G of ram so I'm limited, but this seems the best opportunity for
> me to
> > learn this...that being said...
> >
> >>> For incremental imports, stitching osm files together, we re-activate
> the
> >>> old code that tests the lucene index before adding nodes and relations.
> >>> There might be some subtle edge cases to consider, but a set of tests
> >>> with
> >>> overlapping and non-overlapping osm files should flush them out.
> >
> > I'd love to play with this. Is the old code there for me to re-enable in
> > testing? Or can you point me to where this might be put in?
> >
> > Thx,
> > Greg
> >
> > --
> > View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/OSMImporter-Is-there-a-way-to-do-incremental-imports-tp3526941p3527995.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
> ___
> 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] Question about cypher prepared queries

2011-12-06 Thread Andres Taylor
On Tue, Dec 6, 2011 at 2:27 PM, jschweigl  wrote:

> I have a class with one String field to hold a query string and one for a
> compiled query which is created in the constructor. So, each instance has
> the query string (for documentation purposes) and the compiled query.
>
> Does CypherParser return the same Query instance for parse()'s with
> indentical input strings or is a new one created every time? Or, asked the
> other way round: do I lose any of the advantages of precompiled queries
> when
> I compile the same query string several times at different places in the
> code?
>

There is no query cache in place right now. Once it's in place, you'll get
the same query object every time you parse the same string.

Ah, btw, would be nice if one could ask a compiled Query instance for the
> query source from which it has been compiled ...
>

Of course it should. Why didn't I think of that?

It's been done in the Scala code now. I'll create the Javacompat equivalent
ASAP.

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


Re: [Neo4j] [Neo4j-User] Re: Gremlin Query - Help

2011-12-06 Thread Marko Rodriguez
Hi,

You can do nested ifThenElses. One way to think about things is not as "big ol' 
one-liners."


g.V.ifThenElse{ ifStatement } {
thenStatement
} {
elseStatement
}

With new lines, the embeddness then starts to look like plain ol' C-style 
syntax.

Also note that in Gremlin 1.4 (releasing this week), the _() will not be needed 
anymore for start objects. I learned how to solve that at SpringONE :).

Thanks,
Marko.

http://markorodriguez.com

On Dec 5, 2011, at 8:27 PM, Romiko Derbynew wrote:

> Marko,
> 
> I am thinking of using this statement.
> g.V.ifThenElse{it.out('hasCentre').filter{it == aCentre}.hasNext()}{}{println 
> "${it} has center unknown"}
> 
> to get nodes that DO NOT have a relationship, is this the best way to do it? 
> I guess so, if this is the case, I am now adding support to the .NET graph 
> client to support ifThenElse expressions. I am wondering though, as I am 
> designing the interface for it, can and ifThenElse have nested ifThenElse 
> expressions as well? I guess "it" and _() can be used within them?
> 
> Cheers
> 
> -Original Message-
> From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
> Behalf Of Marko Rodriguez
> Sent: Saturday, 3 December 2011 4:10 AM
> To: Neo4j user discussions
> Subject: Re: [Neo4j] Gremlin Query - Help
> 
> Hi,
> 
>> Scenario 1:
>> I would like to get all Nodes that do not have a relationship to another 
>> node. What is the best way to do this Gremlin?
>> 
>> Root => NodeA => NodeB
>> Root => NodeC
>> 
>> Output should be NodeC
> 
>   I don't understand the problem.
> 
>> Scenario 2:
>> Root = > User -> Centre
>> 
>> I would like to get all centres for userA, and then get all users who 
>> are also linked to the same centres of the userA
> 
>   userA.out('hasCentre').in('hasCentre').except([userA])
> 
>> Scenario 3:
>> User => Centre
>> I would like to get all users that do not have a link to a Centre, and if 
>> this is the case, do a projection that returns a fake centre with property 
>> "Unknown"
> 
>   g.V.ifThenElse{it.out('hasCentre').filter{it == 
> aCentre}.hasNext()}{}{println "${it} has center unknown"}
> 
> If you have an index of your Users, then its more efficient to hit that 
> index, then iterate through all vertices (g.V). E.g.
> 
>   g.idx(T.v)[[type:'User']].ifThenElse
> 
>> Scenario 4:
>> 
>> REFERRAL => PERSON
>> 
>> I would like to combine a query that gets all Referrals that are 
>> linked to a person and project a table result (contains referrals and 
>> person property values (this is easy to do) However, I then want to do a 
>> SPLIT query, that gets referrals without the persons, and then MERGE both 
>> back into the table projection? So table projecton might look like this.
>> I guess this is done with .table().it{}cap, but what I am not sure, is 
>> how to do a split and merge in parallel and then get that merge projected 
>> into the same table.
> 
> 
> I don't quite understand your problem, but here is an example of splitting 
> and merging.
> 
>   g.v(1).out('knows').copySplit(_().out('knows').name, 
> _().out('created').name).fairMerge
> 
> This will get all the people that v[1] knows and then generate two parallel 
> pipeline. Each friend of v[1] is copied to each of the 2 parallel pipelines. 
> One pipeline will get their friend's names and one will get their created 
> project's names. It will then merge those two parallel pipelines into a 
> single stream. You can do either fairMerge or exhaustMerge depending on the 
> merging algorithm you want. fairMerge is more memory efficient. I need to 
> write more about split/merge in the Gremlin documentation.
> 
>   https://github.com/tinkerpop/gremlin/wiki/Split-Merge-Pattern <-- will 
> work on it :)
> 
> HTH,
> Marko.
> 
> http://markorodriguez.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
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j User Discussions" group.
> To post to this group, send email to u...@neo4j.org.
> To unsubscribe from this group, send email to user+unsubscr...@neo4j.org.
> For more options, visit this group at 
> http://groups.google.com/a/neo4j.org/group/user/?hl=en.
> 

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


Re: [Neo4j] path finding using OSM ways

2011-12-06 Thread danielb

craig.taverner wrote
> 
> ...
> - Create a way-point node for these
> ...
> 

Hi together,

I wonder why to add extra nodes to the graph (if I understand Craig
correctly)? Wouldn't you then end up in expanding twice the node count
(way-point nodes and OSM nodes themself, because you have to query the OSM
id (or any other identification value of the end node) in every expand and
lat / lon if you don't have precompiled edge weights)? I would just connect
the OSM nodes directly with new edges to form a routing subgraph.

Best Regards,
Daniel  


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-path-finding-using-OSM-ways-tp3004328p3564688.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] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread Prajakta Kalmegh
Guys...thanks a lot!!
I tried out our code with the new index. After 3 days of messing around with
jars, finally..It works!! 

Thanks Ajinkya for keeping me in mind for the T-shirt!! 



--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3564471.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] [Neo4j-User] Queries about HA

2011-12-06 Thread Samuel Feng
Thanks Peter,

I studied how the HA works in
http://docs.neo4j.org/chunked/snapshot/ha-how.html. It mentioned that "If
the new master is elected and performs changes before the old master
recovers, there will two different versions of the data. The old master
will not be able to attach itself to the cluster and will require
maintenance (replace the wrong version of the data with the one running in
the cluster".

Say, I have two neo4j instances(A & B) running, When instance A crashed, B
continues to work and has many writes on it. Then Server A is recovered but
it can not attach itself to the cluster as the wrong data version. So I
need to manually replace the instance A's data using B's.

But the graph size is around 4G, I have to copy all the 4G data to server
A? Or any other simple and fast ways?

Regards,

Samuel

2011/12/6 Peter Neubauer 

> Samuel,
> I would recommend HA for your usecase, since then the Neo4j cluster
> will handling new neo4j instances appearing and copying data etc. Look
> at http://docs.neo4j.org/chunked/snapshot/ha.html for setup docs.
>
> There seems to be some interest in RMI remoting to neo4j. However, we
> think this is not the ultimate way to go in the long run since it is
> Java-centric and still not fast and stable enough for want we want to
> achieve. However, if the community finds it useful, I am all up for
> someone stepping up and invest the last mile to make it good, maybe
> put it on GIThub for easier collaboration, of course.
>
> Tobias original code is at
> https://svn.neo4j.org/components/remote-graphdb/trunk/, and the API
> should not have moved terribly out of sync, so I guess it is not a LOT
> of work to at least get it working.
>
> Anyone?
>
> 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
>
> brew install neo4j && neo4j start
> heroku addons:add neo4j
>
>
>
> On Tue, Dec 6, 2011 at 4:43 AM, Samuel Feng  wrote:
> > Dear List,
> >
> > I'm using neo4j 1.5GA and using embeddedGraphDatabase to access the
> graph.
> > Now the graph size is around 4G.
> >
> > Now I would like to try HA mode and have several questions.
> >
> > 1) Can I access the graph in some kind of remote mode? So that I can use
> > many tomcat servers to access the graph remotely and do not need to
> change
> > any code. I understand neo4j can run as a server, however, we can only
> use
> > REST api to accessing the neo4j server, this will cause many many code
> > changes for me. Please correct me if I have any misunderstanding.
> >
> > Seems there is a neo4j-remote-graphdb component which uses RMI to access
> a
> > graph remotely. BUT in the wiki
> > http://components.neo4j.org/neo4j-remote-graphdb/stable/, you mentioned
> "The
> > implementation is not speedy enough to be used as the main access channel
> > to a Graph Database for actual applications."
> >
> > 2) If I use neo4j embedded in HA mode, say, I have two neo4j instances(A
> &
> > B) running, When instance A crashed, B continues to work and has many
> > writes on it. Then Server A is recovered but it can not attach itself to
> > the cluster as the wrong data version. So I need to manually replace the
> > instance A's data using B's.
> >
> > But the graph size is around 4G, I have to copy all the 4G data to server
> > A? Or any other simple and fast ways?
> >
> > Thanks and Regards,
> >
> > Samuel
> > ___
> > Neo4j mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Neo4j User Discussions" group.
> > To post to this group, send email to u...@neo4j.org.
> > To unsubscribe from this group, send email to user+unsubscr...@neo4j.org
> .
> > For more options, visit this group at
> http://groups.google.com/a/neo4j.org/group/user/?hl=en.
> >
> ___
> 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] Question about cypher prepared queries

2011-12-06 Thread jschweigl
I have a class with one String field to hold a query string and one for a
compiled query which is created in the constructor. So, each instance has
the query string (for documentation purposes) and the compiled query. 

Does CypherParser return the same Query instance for parse()'s with
indentical input strings or is a new one created every time? Or, asked the
other way round: do I lose any of the advantages of precompiled queries when
I compile the same query string several times at different places in the
code?

Ah, btw, would be nice if one could ask a compiled Query instance for the
query source from which it has been compiled ...


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Question-about-cypher-prepared-queries-tp3564339p3564339.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] Modeling subrelationships in Neo4j

2011-12-06 Thread Rick Otten
Can you do this with properties on the relationship?

In your example a "KNOWS" relationship could have a "how well" property, with 
values 1 to 100.

You could define "KNOWS_BETTER" as  [ 50 < how well < 80 ].
"KNOWS_BEST" as [ 80 <= how well <= 100 ].

I'm not sure what the difference between a "sub relationship" and a 
"relationship qualified with properties" really is.


-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of Sourajit Basak
Sent: Tuesday, December 06, 2011 6:09 AM
To: user@lists.neo4j.org
Subject: [Neo4j] Modeling subrelationships in Neo4j

Is it possible to create subrelationships in neo4j ? For e.g. a relationship 
called KNOWS_BETTER as a subrelationship of KNOWS.

Do I need to explicitly connect the nodes using both relationships for the 
traversal to work ? Lets say, I create this

neo4j --> KNOWS_BETTER --> graphDB, does this entails the following ?
neo4j --> KNOWS --> graphDB.

Such a scenario can be modeled in OWL Ontology, wondering if neo4j has any 
capabilities.

Note: Under the hood, most OWL Ontology implementations do create these
*extra* inferred links internally.
___
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] HA starting issue

2011-12-06 Thread Peter Neubauer
Have you got the logs (probably mostly messages.log from the failing instance?

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

brew install neo4j && neo4j start
heroku addons:add neo4j



On Tue, Dec 6, 2011 at 1:55 PM, lawrence.bandeira
 wrote:
> Hi Ian,
>
> I already followed this steps and I couldn't run Neo4j in HA Mode.
>
> The following log has appeared when I type:
> ./neo4j-enterprise-1.5-1/bin/neo4j start
> Starting Neo4j Server...WARNING: not changing user
>  process [6226]... waiting for server to be ready... BAD.
> Neo4j Server may have failed to start, please check the logs.
>
> When I run in Single Mode it works, but when I run in HA mode, that just
> happens.
>
> I tried on Windows and Linux and I have the same problem.
>
> Thanks for your time.
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-HA-starting-issue-tp3260535p3564254.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
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] HA starting issue

2011-12-06 Thread lawrence.bandeira
Hi Ian, 

I already followed this steps and I couldn't run Neo4j in HA Mode. 

The following log has appeared when I type:
./neo4j-enterprise-1.5-1/bin/neo4j start 
Starting Neo4j Server...WARNING: not changing user 
 process [6226]... waiting for server to be ready... BAD. 
Neo4j Server may have failed to start, please check the logs. 

When I run in Single Mode it works, but when I run in HA mode, that just
happens. 

I tried on Windows and Linux and I have the same problem. 

Thanks for your time.

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-HA-starting-issue-tp3260535p3564254.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


[Neo4j] New user...

2011-12-06 Thread Lawrence
Just sending my email

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


Re: [Neo4j] Modeling subrelationships in Neo4j

2011-12-06 Thread Niels Hoogeveen

It cannot directly be done through the standard API, but of course it can be 
implemented.
I do this myself in an application I am building. For every RelationshipType, i 
create a Node and between those Nodes there can have subtyping relationships. 
To make lookup fast, I use the node-id of the RelationshipTypeNodes as the 
RelationshipType name, and give it a more meaningful name by means of a 
property on the RelationshipTypeNode.
This way the Node belonging to a RelationshipType can be fetched without 
overhead and it allows me to change the name of the relationhip type. Downside 
to the approach is that relationhips have no meaningful name when displayed in 
neoclipse.
Of course you need to write your own methods to fetch relationships from nodes, 
because you may want to fetch not only the ones with the RelationhipType you 
supply, but also those with a RelationshipType that is a subtype thereof.
Niels

> Date: Tue, 6 Dec 2011 16:39:19 +0530
> From: sourajit.ba...@gmail.com
> To: user@lists.neo4j.org
> Subject: [Neo4j] Modeling subrelationships in Neo4j
> 
> Is it possible to create subrelationships in neo4j ? For e.g. a relationship
> called KNOWS_BETTER as a subrelationship of KNOWS.
> 
> Do I need to explicitly connect the nodes using both relationships for the
> traversal to work ? Lets say, I create this
> 
> neo4j --> KNOWS_BETTER --> graphDB, does this entails the following ?
> neo4j --> KNOWS --> graphDB.
> 
> Such a scenario can be modeled in OWL Ontology, wondering if neo4j has any
> capabilities.
> 
> Note: Under the hood, most OWL Ontology implementations do create these
> *extra* inferred links internally.
> ___
> 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] Malmö Neo4j meetup tonight

2011-12-06 Thread Peter Neubauer
Hi all,
for those of you in Lund, Malmö, CPH or Helsingborg, come over to MINC
for some Heroku, Jruby and Cypher beering tonight!

http://www.meetup.com/Neo4j-Oresund/events/42155032/

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

brew install neo4j && neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Modeling subrelationships in Neo4j

2011-12-06 Thread Sourajit Basak
Is it possible to create subrelationships in neo4j ? For e.g. a relationship
called KNOWS_BETTER as a subrelationship of KNOWS.

Do I need to explicitly connect the nodes using both relationships for the
traversal to work ? Lets say, I create this

neo4j --> KNOWS_BETTER --> graphDB, does this entails the following ?
neo4j --> KNOWS --> graphDB.

Such a scenario can be modeled in OWL Ontology, wondering if neo4j has any
capabilities.

Note: Under the hood, most OWL Ontology implementations do create these
*extra* inferred links internally.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] IfTheElese - .Net GraphClient

2011-12-06 Thread Romiko Derbynew
Hi Guys,

IfThenElse is now supported with the Neo4jClient. Below are some examples, it 
supports nested declarations and parameters.

https://gist.github.com/1437793

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


[Neo4j] Anyone interested to present Neo4j at the JUG in Atlanta?

2011-12-06 Thread Peter Neubauer
Hi folks,
is anyone interested in presenting Neo4j at the JUG in Atlanta i 21-22
March 2012? Would love to promote some awesome Graphistas personal
brands there!

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

brew install neo4j && neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Graph algorithms

2011-12-06 Thread ajinkyar
Although this is a graph based db, why is the range of graph algorithms in
GraphAlgoFactory so narrow currently ? Is there a focus on this aspect in
future releases ?

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Graph-algorithms-tp3563943p3563943.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] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread ajinkyar
Hell yeah! Would love to flaunt that \m/

#504
935M, Marietta Street,
NW, Atlanta
GA - 30318

PS: if you are going to send tees please send 2 ...else there will be a
huge fight with my project mate :) (S, M)

On Tue, Dec 6, 2011 at 5:12 AM, Peter Neubauer [via Neo4j Community
Discussions]  wrote:

> Yes.
> Let me know your address, and I will send one. Green with a white
> Rabbit on it. Seriously.
>
> 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
>
> brew install neo4j && neo4j start
> heroku addons:add neo4j
>
>
>
> On Tue, Dec 6, 2011 at 11:09 AM, ajinkyar <[hidden 
> email]>
> wrote:
>
> > That reference cost us hell lotta time!! Do we get a free neo4j t-shirt
> for
> > pointing that out ;) !?
> >
> > On Tue, Dec 6, 2011 at 5:04 AM, Peter Neubauer [via Neo4j Community
> > Discussions] <[hidden 
> > email]>
> wrote:
> >
> >> Ajinkya,
> >> thanks for pointing this out. Killed and forwarded the wiki page.
> >>
> >> 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
> >>
> >> brew install neo4j && neo4j start
> >> heroku addons:add neo4j
> >>
> >>
> >>
> >> On Tue, Dec 6, 2011 at 10:34 AM, ajinkyar <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=3563901&i=0>>
> >> wrote:
> >>
> >> > Thanks for the suggestion .. I will give that a try.
> >> > I found the reference here
> >> > http://wiki.neo4j.org/content/Indexing_with_IndexService
> >> >
> >> > On Tue, Dec 6, 2011 at 4:10 AM, Michael Hunger [via Neo4j Community
> >> > Discussions] <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=3563901&i=1>>
> >> wrote:
> >> >
> >> >> You don't need LuceneIndexService, where did you find the
> documentation
> >> >> that said to use the old index service? We would like to update
> that.
> >> >>
> >> >> just
> >> >>
> >> >> Index myIndex = graphDb.index().forNodes("indexName");
> >> >> index.add(node, "key", value);
> >> >> index.get("key",value);
> >> >> index.query(query);
> >> >>
> >> >> etc.
> >> >>
> >> >> see: http://docs.neo4j.org/chunked/milestone/indexing.html
> >> >>
> >> >> Cheers,
> >> >>
> >> >> Michael
> >> >>
> >> >> Am 06.12.2011 um 09:50 schrieb ajinkyar:
> >> >>
> >> >> > In that case I cannot use LuceneIndexService ... can you please
> >> suggest
> >> >> me a
> >> >> > way so that I can use LuceneIndexService ?
> >> >> >
> >> >> > With neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-core-3.1.0.jar
> I
> >> am
> >> >> not
> >> >> > able to use LuceneIndexService ..
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > View this message in context:
> >> >>
> >>
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563787.html
> >> >>
> >> >> > Sent from the Neo4j Community Discussions mailing list archive at
> >> >> Nabble.com.
> >> >> > ___
> >> >> > Neo4j mailing list
> >> >> > [hidden email] <
> http://user/SendEmail.jtp?type=node&node=3563820&i=0>
> >>
> >> >> > https://lists.neo4j.org/mailman/listinfo/user
> >> >>
> >> >> ___
> >> >> Neo4j mailing list
> >> >> [hidden email] 
>
> >> >> https://lists.neo4j.org/mailman/listinfo/user
> >> >>
> >> >>
> >> >> --
> >> >>  If you reply to this email, your message will be added to the
> >> discussion
> >> >> below:
> >> >>
> >> >>
> >>
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563820.html
> >> >>  To unsubscribe from org.neo4j.graphdb.TransactionFailureException:
> >> Could
> >> >> not create data source lucene[lucene], click here<
> >>
> >> >> .
> >> >> NAML<
> >>
> http://neo4j-community-discussions.438527.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > Regards,
> >> > Ajinkya
> >> > http://ajinkya.info
> >> >
> >> >
> >> > .O.
> >> > ..O
> >> > OOO
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-sourc

Re: [Neo4j] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread Peter Neubauer
Yes.
Let me know your address, and I will send one. Green with a white
Rabbit on it. Seriously.

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

brew install neo4j && neo4j start
heroku addons:add neo4j



On Tue, Dec 6, 2011 at 11:09 AM, ajinkyar  wrote:
> That reference cost us hell lotta time!! Do we get a free neo4j t-shirt for
> pointing that out ;) !?
>
> On Tue, Dec 6, 2011 at 5:04 AM, Peter Neubauer [via Neo4j Community
> Discussions]  wrote:
>
>> Ajinkya,
>> thanks for pointing this out. Killed and forwarded the wiki page.
>>
>> 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
>>
>> brew install neo4j && neo4j start
>> heroku addons:add neo4j
>>
>>
>>
>> On Tue, Dec 6, 2011 at 10:34 AM, ajinkyar <[hidden 
>> email]>
>> wrote:
>>
>> > Thanks for the suggestion .. I will give that a try.
>> > I found the reference here
>> > http://wiki.neo4j.org/content/Indexing_with_IndexService
>> >
>> > On Tue, Dec 6, 2011 at 4:10 AM, Michael Hunger [via Neo4j Community
>> > Discussions] <[hidden 
>> > email]>
>> wrote:
>> >
>> >> You don't need LuceneIndexService, where did you find the documentation
>> >> that said to use the old index service? We would like to update that.
>> >>
>> >> just
>> >>
>> >> Index myIndex = graphDb.index().forNodes("indexName");
>> >> index.add(node, "key", value);
>> >> index.get("key",value);
>> >> index.query(query);
>> >>
>> >> etc.
>> >>
>> >> see: http://docs.neo4j.org/chunked/milestone/indexing.html
>> >>
>> >> Cheers,
>> >>
>> >> Michael
>> >>
>> >> Am 06.12.2011 um 09:50 schrieb ajinkyar:
>> >>
>> >> > In that case I cannot use LuceneIndexService ... can you please
>> suggest
>> >> me a
>> >> > way so that I can use LuceneIndexService ?
>> >> >
>> >> > With neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-core-3.1.0.jar I
>> am
>> >> not
>> >> > able to use LuceneIndexService ..
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > View this message in context:
>> >>
>> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563787.html
>> >>
>> >> > Sent from the Neo4j Community Discussions mailing list archive at
>> >> Nabble.com.
>> >> > ___
>> >> > Neo4j mailing list
>> >> > [hidden email] 
>>
>> >> > https://lists.neo4j.org/mailman/listinfo/user
>> >>
>> >> ___
>> >> Neo4j mailing list
>> >> [hidden email] 
>> >> https://lists.neo4j.org/mailman/listinfo/user
>> >>
>> >>
>> >> --
>> >>  If you reply to this email, your message will be added to the
>> discussion
>> >> below:
>> >>
>> >>
>> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563820.html
>> >>  To unsubscribe from org.neo4j.graphdb.TransactionFailureException:
>> Could
>> >> not create data source lucene[lucene], click here<
>>
>> >> .
>> >> NAML<
>> http://neo4j-community-discussions.438527.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>> >>
>> >
>> >
>> >
>> > --
>> >
>> > Regards,
>> > Ajinkya
>> > http://ajinkya.info
>> >
>> >
>> > .O.
>> > ..O
>> > OOO
>> >
>> >
>> > --
>> > View this message in context:
>> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563862.html
>>
>> > Sent from the Neo4j Community Discussions mailing list archive at
>> Nabble.com.
>> > ___
>> > Neo4j mailing list
>> > [hidden email] 
>> > https://lists.neo4j.org/mailman/listinfo/user
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Neo4j User Discussions" group.
>> > To post to this group, send email to [hidden 
>> > email].
>>
>> > To unsubscribe from this group, send email to [hidden 
>> > email].
>>
>> > For more options, visit this gr

Re: [Neo4j] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread ajinkyar
That reference cost us hell lotta time!! Do we get a free neo4j t-shirt for
pointing that out ;) !?

On Tue, Dec 6, 2011 at 5:04 AM, Peter Neubauer [via Neo4j Community
Discussions]  wrote:

> Ajinkya,
> thanks for pointing this out. Killed and forwarded the wiki page.
>
> 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
>
> brew install neo4j && neo4j start
> heroku addons:add neo4j
>
>
>
> On Tue, Dec 6, 2011 at 10:34 AM, ajinkyar <[hidden 
> email]>
> wrote:
>
> > Thanks for the suggestion .. I will give that a try.
> > I found the reference here
> > http://wiki.neo4j.org/content/Indexing_with_IndexService
> >
> > On Tue, Dec 6, 2011 at 4:10 AM, Michael Hunger [via Neo4j Community
> > Discussions] <[hidden 
> > email]>
> wrote:
> >
> >> You don't need LuceneIndexService, where did you find the documentation
> >> that said to use the old index service? We would like to update that.
> >>
> >> just
> >>
> >> Index myIndex = graphDb.index().forNodes("indexName");
> >> index.add(node, "key", value);
> >> index.get("key",value);
> >> index.query(query);
> >>
> >> etc.
> >>
> >> see: http://docs.neo4j.org/chunked/milestone/indexing.html
> >>
> >> Cheers,
> >>
> >> Michael
> >>
> >> Am 06.12.2011 um 09:50 schrieb ajinkyar:
> >>
> >> > In that case I cannot use LuceneIndexService ... can you please
> suggest
> >> me a
> >> > way so that I can use LuceneIndexService ?
> >> >
> >> > With neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-core-3.1.0.jar I
> am
> >> not
> >> > able to use LuceneIndexService ..
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563787.html
> >>
> >> > Sent from the Neo4j Community Discussions mailing list archive at
> >> Nabble.com.
> >> > ___
> >> > Neo4j mailing list
> >> > [hidden email] 
>
> >> > https://lists.neo4j.org/mailman/listinfo/user
> >>
> >> ___
> >> Neo4j mailing list
> >> [hidden email] 
> >> https://lists.neo4j.org/mailman/listinfo/user
> >>
> >>
> >> --
> >>  If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563820.html
> >>  To unsubscribe from org.neo4j.graphdb.TransactionFailureException:
> Could
> >> not create data source lucene[lucene], click here<
>
> >> .
> >> NAML<
> http://neo4j-community-discussions.438527.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
> >
> >
> > --
> >
> > Regards,
> > Ajinkya
> > http://ajinkya.info
> >
> >
> > .O.
> > ..O
> > OOO
> >
> >
> > --
> > View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563862.html
>
> > Sent from the Neo4j Community Discussions mailing list archive at
> Nabble.com.
> > ___
> > Neo4j mailing list
> > [hidden email] 
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Neo4j User Discussions" group.
> > To post to this group, send email to [hidden 
> > email].
>
> > To unsubscribe from this group, send email to [hidden 
> > email].
>
> > For more options, visit this group at
> http://groups.google.com/a/neo4j.org/group/user/?hl=en.
> >
> ___
> Neo4j mailing list
> [hidden email] 
> https://lists.neo4j.org/mailman/listinfo/user
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563901.html

Re: [Neo4j] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread Peter Neubauer
Ajinkya,
thanks for pointing this out. Killed and forwarded the wiki page.

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

brew install neo4j && neo4j start
heroku addons:add neo4j



On Tue, Dec 6, 2011 at 10:34 AM, ajinkyar  wrote:
> Thanks for the suggestion .. I will give that a try.
> I found the reference here
> http://wiki.neo4j.org/content/Indexing_with_IndexService
>
> On Tue, Dec 6, 2011 at 4:10 AM, Michael Hunger [via Neo4j Community
> Discussions]  wrote:
>
>> You don't need LuceneIndexService, where did you find the documentation
>> that said to use the old index service? We would like to update that.
>>
>> just
>>
>> Index myIndex = graphDb.index().forNodes("indexName");
>> index.add(node, "key", value);
>> index.get("key",value);
>> index.query(query);
>>
>> etc.
>>
>> see: http://docs.neo4j.org/chunked/milestone/indexing.html
>>
>> Cheers,
>>
>> Michael
>>
>> Am 06.12.2011 um 09:50 schrieb ajinkyar:
>>
>> > In that case I cannot use LuceneIndexService ... can you please suggest
>> me a
>> > way so that I can use LuceneIndexService ?
>> >
>> > With neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-core-3.1.0.jar I am
>> not
>> > able to use LuceneIndexService ..
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563787.html
>>
>> > Sent from the Neo4j Community Discussions mailing list archive at
>> Nabble.com.
>> > ___
>> > Neo4j mailing list
>> > [hidden email] 
>> > https://lists.neo4j.org/mailman/listinfo/user
>>
>> ___
>> Neo4j mailing list
>> [hidden email] 
>> https://lists.neo4j.org/mailman/listinfo/user
>>
>>
>> --
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563820.html
>>  To unsubscribe from org.neo4j.graphdb.TransactionFailureException: Could
>> not create data source lucene[lucene], click 
>> here
>> .
>> NAML
>>
>
>
>
> --
>
> Regards,
> Ajinkya
> http://ajinkya.info
>
>
> .O.
> ..O
> OOO
>
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563862.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
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Neo4j User Discussions" group.
> To post to this group, send email to u...@neo4j.org.
> To unsubscribe from this group, send email to user+unsubscr...@neo4j.org.
> For more options, visit this group at 
> http://groups.google.com/a/neo4j.org/group/user/?hl=en.
>
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread ajinkyar
Thanks for the suggestion .. I will give that a try.
I found the reference here
http://wiki.neo4j.org/content/Indexing_with_IndexService

On Tue, Dec 6, 2011 at 4:10 AM, Michael Hunger [via Neo4j Community
Discussions]  wrote:

> You don't need LuceneIndexService, where did you find the documentation
> that said to use the old index service? We would like to update that.
>
> just
>
> Index myIndex = graphDb.index().forNodes("indexName");
> index.add(node, "key", value);
> index.get("key",value);
> index.query(query);
>
> etc.
>
> see: http://docs.neo4j.org/chunked/milestone/indexing.html
>
> Cheers,
>
> Michael
>
> Am 06.12.2011 um 09:50 schrieb ajinkyar:
>
> > In that case I cannot use LuceneIndexService ... can you please suggest
> me a
> > way so that I can use LuceneIndexService ?
> >
> > With neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-core-3.1.0.jar I am
> not
> > able to use LuceneIndexService ..
> >
> >
> >
> > --
> > View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563787.html
>
> > Sent from the Neo4j Community Discussions mailing list archive at
> Nabble.com.
> > ___
> > Neo4j mailing list
> > [hidden email] 
> > https://lists.neo4j.org/mailman/listinfo/user
>
> ___
> Neo4j mailing list
> [hidden email] 
> https://lists.neo4j.org/mailman/listinfo/user
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563820.html
>  To unsubscribe from org.neo4j.graphdb.TransactionFailureException: Could
> not create data source lucene[lucene], click 
> here
> .
> NAML
>



-- 

Regards,
Ajinkya
http://ajinkya.info


.O.
..O
OOO


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563862.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] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread Michael Hunger
You don't need LuceneIndexService, where did you find the documentation that 
said to use the old index service? We would like to update that.

just 

Index myIndex = graphDb.index().forNodes("indexName");
index.add(node, "key", value);
index.get("key",value);
index.query(query);

etc.

see: http://docs.neo4j.org/chunked/milestone/indexing.html

Cheers,

Michael

Am 06.12.2011 um 09:50 schrieb ajinkyar:

> In that case I cannot use LuceneIndexService ... can you please suggest me a
> way so that I can use LuceneIndexService ?
> 
> With neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-core-3.1.0.jar I am not
> able to use LuceneIndexService ..
> 
> 
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563787.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

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


Re: [Neo4j] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread ajinkyar
In that case I cannot use LuceneIndexService ... can you please suggest me a
way so that I can use LuceneIndexService ?

With neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-core-3.1.0.jar I am not
able to use LuceneIndexService ..



--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563787.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] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread Michael Hunger
No please _remove_ neo4j-index-1.2-1.2.M06.jar this is an old library, from 
neo4j 1.2.

you just need neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-corejar

Michael

Am 06.12.2011 um 08:42 schrieb ajinkyar:

> I already have  neo4j-lucene-index-1.6-SNAPSHOT.jar in my classpath. I want
> to use LuceneIndexService which is why I am including
> neo4j-index-1.2-1.2.M06.jar Is there any better way to do this ?
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563695.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

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


Re: [Neo4j] [Neo4j-User] Queries about HA

2011-12-06 Thread Peter Neubauer
Samuel,
I would recommend HA for your usecase, since then the Neo4j cluster
will handling new neo4j instances appearing and copying data etc. Look
at http://docs.neo4j.org/chunked/snapshot/ha.html for setup docs.

There seems to be some interest in RMI remoting to neo4j. However, we
think this is not the ultimate way to go in the long run since it is
Java-centric and still not fast and stable enough for want we want to
achieve. However, if the community finds it useful, I am all up for
someone stepping up and invest the last mile to make it good, maybe
put it on GIThub for easier collaboration, of course.

Tobias original code is at
https://svn.neo4j.org/components/remote-graphdb/trunk/, and the API
should not have moved terribly out of sync, so I guess it is not a LOT
of work to at least get it working.

Anyone?

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

brew install neo4j && neo4j start
heroku addons:add neo4j



On Tue, Dec 6, 2011 at 4:43 AM, Samuel Feng  wrote:
> Dear List,
>
> I'm using neo4j 1.5GA and using embeddedGraphDatabase to access the graph.
> Now the graph size is around 4G.
>
> Now I would like to try HA mode and have several questions.
>
> 1) Can I access the graph in some kind of remote mode? So that I can use
> many tomcat servers to access the graph remotely and do not need to change
> any code. I understand neo4j can run as a server, however, we can only use
> REST api to accessing the neo4j server, this will cause many many code
> changes for me. Please correct me if I have any misunderstanding.
>
> Seems there is a neo4j-remote-graphdb component which uses RMI to access a
> graph remotely. BUT in the wiki
> http://components.neo4j.org/neo4j-remote-graphdb/stable/, you mentioned "The
> implementation is not speedy enough to be used as the main access channel
> to a Graph Database for actual applications."
>
> 2) If I use neo4j embedded in HA mode, say, I have two neo4j instances(A &
> B) running, When instance A crashed, B continues to work and has many
> writes on it. Then Server A is recovered but it can not attach itself to
> the cluster as the wrong data version. So I need to manually replace the
> instance A's data using B's.
>
> But the graph size is around 4G, I have to copy all the 4G data to server
> A? Or any other simple and fast ways?
>
> Thanks and Regards,
>
> Samuel
> ___
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Neo4j User Discussions" group.
> To post to this group, send email to u...@neo4j.org.
> To unsubscribe from this group, send email to user+unsubscr...@neo4j.org.
> For more options, visit this group at 
> http://groups.google.com/a/neo4j.org/group/user/?hl=en.
>
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user