[~/backup/src/neo4j/community] $ mvn -version
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_26
Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre
Default locale: ru_RU, platform encoding: UTF-8
OS name: "linux" version: "2.6.38-10-generic" arch: "i386" Family: "unix"
[~/backup/src/neo4j/community
So,
now, with another merge from Toni, you should be able to build
https://github.com/neo4j/neo4j-osgi with just
mvn clean install
Enjoy!
Cheers,
/peter neubauer
GTalk: neubauer.peter
Skype peter.neubauer
Phone +46 704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twit
Nikolai,
what JDK are you running?
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 gra
Hi, guys.
I try to compile neo4j from sources.
I execute following commands and got some error messages.
How can I fix it?
> git clone https://github.com/neo4j/community.git
> cd community
> mvn
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Neo4j - Graph Database Kernel
[IN
about this, should I create an issue?
On Thu, Jul 21, 2011 at 5:15 AM, cyuczi eekc wrote:
> Ok there, I found out something new, if I do the count outside of the
> transaction (ie. after tx.finish() ) then it works right,
> ie. in a different example:
> Node `one` has 100,100 out rels, time=7,95
now looking back at HA, I see here:
"
Porting your application to run on Neo4j-HA
As mentioned earlier the only thing that needs to change is the creation of
the graph database service. In single machine operations the
EmbeddedGraphDatabase class should be used while in multi machine HA
environmen
Yeah sorry about that :)
Bottom line is, EmbeddedReadOnlyGraphDb works.
It only displays the `lucene index not found error` when the database(path)
is already in use by another program. Otherwise it just works.
I should've said this, it's simpler to understand.
To answer your question, I was tryin
Summary: it works if you set "\lucene-index\src\main\resources" as source
folder (no need to set it as class folder)
--
yes, if I add it as source folder instead of add it as class folder
let's see, reproducing...
wow, it is working now, how odd... (so adding it as source folder works)
wel
If you run into errors, please make sure to include the exceptions in the
e-mail.
Verbal descriptions are sometimes hard to follow without having the code and
the environment.
You mean you take the same program and exchange the code line to use
EmbeddedReadOnlyGraphDb ?
Why do you do that? Wh
It is not necessary however your reply made me retest, and it works as it
were, but it only shows that error, if, I run the program with
EmbeddedGraphDatabase and put it in an 100 second sleep(so that it keeps the
database open), and then I change it to EmbeddedReadOnlyGraphDatabase and
run it agai
Anyway as Peter said it should work to add the
> .\lucene-index\src\main\resources
as source path to your eclipse project. You said you were getting exceptions
with eclipse.
What kind of exceptions are those?
Michael
Am 20.07.2011 um 20:25 schrieb Peter Neubauer:
> Hehe,
>
> On Wed, Jul 20
Probably you have to add that for the other project too ?
Am 21.07.2011 um 05:57 schrieb cyuczi eekc:
> Thanks Michael, that is good to know...
> I would've tried that right now, for tests, but unfortunately I get that
> silly error "No index provider 'lucene' found", but only when using
> Embedd
Thanks Michael, that is good to know...
I would've tried that right now, for tests, but unfortunately I get that
silly error "No index provider 'lucene' found", but only when using
EmbeddedReadOnlyGraphDatabase, not EmbeddedGraphDatabase. Perhaps it would
be worth mentioning that in order to not g
I you want to have a "read-only-snapshot" view of the database you can also use
new EmbeddedReadOnlyGraphDatabase(path);
Cheers
Michael
Am 21.07.2011 um 05:31 schrieb Jim Webber:
> Hi Cyuczi,
>
> You can't open the same database twice in two programs. If you want data to
> be replicated betw
I took a quick glance, though it seems they are duplicating(replicating?)
the database, but I was hoping I could use only one database (instead of
having multiple copies of it, though this would be good in the future of
course).
With this in mind, what should I look for? maybe neo4j server ? that
Hi Cyuczi,
You can't open the same database twice in two programs. If you want data to be
replicated between Neo4j instances, look into HA:
http://docs.neo4j.org/chunked/stable/ha-how.html
http://wiki.neo4j.org/content/High_Availability_Cluster
Jim
__
When trying to use the same database (or path) from two different java
programs, the second one cannot open it. Is this normal ? Can't two or more
java programs work on the same (embedded)database ? I used BerkeleyDB (java
edition) before, and this was possible, hence why I was expecting this with
Ok there, I found out something new, if I do the count outside of the
transaction (ie. after tx.finish() ) then it works right,
ie. in a different example:
Node `one` has 100,100 out rels, time=7,954,653,001
tx.finish() time=1,525,669,261
Node `one` has 1,200,546 out rels
And as long as I create r
I should probably mention that I am using neo4j community (embedded) latest
sources up to date from github
On Thu, Jul 21, 2011 at 4:59 AM, cyuczi eekc wrote:
> Trying to count the relationships "the normal way" I find that oddly, I
> cannot see more than 100+x relationships, where x is the maxi
Trying to count the relationships "the normal way" I find that oddly, I
cannot see more than 100+x relationships, where x is the maximum number of
relations ever added within a transaction.
For example, if I add 91 relationships in a transation, and I count them,
I have 91. I run the program agai
Seattlite Graphistas,
No need for a border crossing next Wednesday the 27th to talk about graphs,
because we'll be meeting in Seattle, making an appearance at the monthly Hadoop
meetup[2].
After a brief introduction to graph databases for the uninitiated, we'll review
the new features of the N
Javier,
what is the concrete error that happens if you send over that space + slash
encoded property?
Cheers
Michael
Am 21.07.2011 um 01:15 schrieb Javier de la Rosa:
> Hi, Peter
>
> On Wed, Jul 20, 2011 at 18:32, Peter Neubauer
> wrote:
>> Javier,
>> do you have the curl command for this?
Graphistas of the North,
Join us at Mozilla Labs in Vancouver next Wednesday, the 27th, for a graph
meetup with the inimitable Peter Neubauer[1]...
Every graph starts with a single node, then branches out. So, we'll start with
a general introduction to graphs, discussing the concepts, available
Caching that result would require synchronizing it with every change using up
memory and performance (at every change) for something that can be computed
So far it has not been worth the effort.
If you really need that value very often you could write a small
TransactionEventHandler that keeps
To answer a few of your questions:
Neo4j is a database, GraphDatabaseService encapsulates your "connection" to
that database.
You don't mind using other databases from J2EE. If you run clustered just use
Neo4j's High Availability mode across the cluster.
As Neo4j has no concept of a connection
Thank Peter.
I did a write up on IndexedRelationships on the Github wiki:
https://github.com/peterneubauer/graph-collections/wiki/Indexed-relationships
That one needs to be updated to reflect property-indexed-relationships.
SortedTree, PropertySortedTree, IndexedRelationship all implement Iterab
Hi, Peter
On Wed, Jul 20, 2011 at 18:32, Peter Neubauer
wrote:
> Javier,
> do you have the curl command for this? We can just add a test case and
> fix it. Thanks!
The server works great, but the problem is, in practice, it's not
possible to set property keys with spaces and slashes. What kind o
Very cool stuff Nils!
Now, a good question is how to document this. Are the interfaces all
like normal collections? Maybe we could write some introductory text
and pull code from the tests into the docs. Have you been able to get
the manual buidl working at your machine, see
https://github.com/neo
There is another point in the doc that is not correct. The doc states
out that you can call tx.success after tx.failure. In this case the
transaction stays at being fault. So one call to tx.failure causes a
rollback when calling tx.finish, also when there are further calls to
tx.success before or a
Javier,
do you have the curl command for this? We can just add a test case and
fix it. Thanks!
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
ht
btw, sorry about the Tinybundles disruption. The group id "org.ops4j.pax"
was actually wrong since ripping out tinybundles from pax swissbox.
Actually there will be just one tinybundles artifact and it will carry 1.0
really soon.
Until then you may grab latest artifacts from
https://oss.sonatype.o
And, there was a bug in Pax Exam not shutting down the bundles
properly. Fixed by Toni Menzel in 5 minutes. Thanks!
I added some build instructions to https://github.com/neo4j/neo4j-osgi
to get things working. Give it a try!
Cheers,
/peter neubauer
GTalk: neubauer.peter
Skype peter.n
Hi there,
I would love to check this out, but will be traveling for the next week. Is
it ok if this takes a few weeks to get to? Otherwise, maybe someone else can
get his hands dirty to update the GeoServer tutorial?
/peter
On Wed, Jul 20, 2011 at 10:41 PM, reyman wrote:
> Hi,
> Sorry, but i kn
Yes, right.
Neo4j right now is only using Java Service Loader. Reason for that is
that, as stated in the other thread, it's very hard to decide on the
granularity of exposed services without spamming the Service Registry
with Neo4j internal stuff. If we register every index provider and
kernel exte
Does it auto fail? Considering how I see in the examples, it does
auto-fail... if it doesn't then maybe the doc for tx.finish() should specify
what happens, or even throw ? if there isn't a specified default.
Ah, I just read the javadoc for Transaction (interface):
"
If an exception is raised in th
Ahh,
sorry, seems Tinybundles changes groupId and API since my last pull.
Pushed the updates. Please try again :)
Cheers,
/peter neubauer
GTalk: neubauer.peter
Skype peter.neubauer
Phone +46 704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twitter http://twitter.co
Hi,
Sorry, but i know anything about the core structure of neo4j-spatial and the
code source of the project is really big, so i don't know how to begin to
search for patch this error :-/
I have only a null pointer exception in the geoserver.log, it's few :/
If a dev contributor of neo4j-spatial gi
> @Marko I am using neo4j 1.4 server so I guess I am running gremlin 1.1.
> It would be cool if you can send me the compatible query when you have time.
Good, cause time is all I have.
m = [:]
g.idx('id')[[object_type:'A']].transform{it.out('USES'){it.object_type.equals('B')}.c
Just curious - as I traced down OSGI service loading from the neo4j
Service class it commented out, so the only Java META-INF/services
used in any environment. May be that's the case ?
On Wed, Jul 20, 2011 at 4:55 AM, Jörg Richter wrote:
>
> Thanks for replies!
>
> Yes, the super bundle approach
Hi all,
I'm trying to implement full support for unicode in my neo4j Python
REST client, but I'm finding some dificulties:
- I send a property key such as "p r öp€rtŷ", and I'm able to get
everything working using a URL encoding, that converts that string
into "'p%20r%20%C3%83%C2%B6p%C3%A2%C2%82%C
@Marko I am using neo4j 1.4 server so I guess I am running gremlin 1.1.
It would be cool if you can send me the compatible query when you have time.
--
View this message in context:
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-request-with-where-clause-on-relations-count-
Hey,
> @Marko thanks. I just tried to do it with Gremlin but I have not your
> knowledge of gremlin. I will try to do that.
If you use Neo4j Server 1.4, then you will be in Gremlin 1.1 land. I don't know
what you are rolling with (embedded, server, etc.), but if you want the query
in Gremlin 1.
@Michael I am glad that this feature will be added in 1.5 and I already did
the java code but I wanted to do it with server.
@Marko thanks. I just tried to do it with Gremlin but I have not your
knowledge of gremlin. I will try to do that.
--
View this message in context:
http://neo4j-community-
To simplify the use of IndexedRelationships, I added support for the use case
where relationships are placed in an index based on the value of a property of
the node added.
Hereto, I added wrappers for property types for all data types supported.
There is also a specialized version of SortedTre
I guess I was hoping it(size/count) was cached in the database or the
underlaying database would provide this somehow, ie. in berkeleydb (java
edition) there's a cursor.count() I could use (though I don't know how they
did it implementation-wise)
Thanks! I needed to know that.
On Wed, Jul 20, 201
Hi Peter
When I ran mvn install, I got:
...
[WARNING] Warning building bundle
org.ops4j.pax.tinybundles:tinybundles:bundle:1.0.0-SNAPSHOT
...
[INFO] Installing
org/ops4j/pax/tinybundles/tinybundles/1.0.0-SNAPSHOT/tinybundles-1.0.0-SNAPSHOT.jar
I think there is a "tinybundles" to much in between.
Hi Peter,
thanks for reply!
Is there any chance to get the old index API back, as an *alternative* to the
new one?
Within an OSGi environment the old index API worked perfectly in Neo4j 1.0,
1.1, and 1.2. In the latter ones the old index API friendly coexists with the
new (serviceloader-base
My understanding of the J2EE standard is that you should *not* do file I/O
from inside a bean (my assumption is to avoid issues if you run in a
clustered environment). If I access Neo4j directly from a bean, wouldn't I
be violating that?
I am not currently clustered, and my app is small enough I
Hi Jean-Pierre,
sorry for the inconvenience, the Tinybundles version is not yet
released by the OPS4J team, so you can build it yourself from
https://github.com/ops4j/org.ops4j.pax.tinybundles
with
mvn clean install
Feedback is appreciated!
Cheers,
/peter neubauer
GTalk: neubauer.peter
Hello everyone
May I chime in here...
We are really interested to see neo4j working in an OSGi environment
esp. together with Spring Data Graph. After an unsuccessful attempt to
get it up and running a couple of weeks ago we gave it another chance
today after seeing this post and after a whole da
Hi,
Responses from calling the Neo4j APIs are typically lazy, for performance
reasons. So there's no way of eagerly counting the number of relationships
unless you force eager evaluation as you've suggested below.
Jim
On 20 Jul 2011, at 11:13, cyuczi eekc wrote:
> Is there a way to get the nu
Hey,
> How would I go about retrieving all nodes for a certain relationship Type
> (ie. assuming I don't know any of them nodes) ?
Use an index. I don't know in native Neo4j off the top of my head, but the
analogous to this in Blueprints:
g.getIndex("edges", Edge.class).get("label",myT
How would I go about retrieving all nodes for a certain relationship Type
(ie. assuming I don't know any of them nodes) ? (in java code, the other
variants rest/cypher I will probably not need to use)
ie. rel.getAllNodes(Direction.INCOMING)
or rel.getAllNodes(Direction.OUTGOING)
or Direction.BOTH e
Hehe,
On Wed, Jul 20, 2011 at 8:22 PM, cyuczi eekc wrote:
> PS: you mispelled "programmatic" =)) (I'm actually laughing with you, not at
> you xD)
As I am a Gmail fanboy, I blame Google for not introducing a "Do not
send if misspelled" button. The "Undo send" I use in around 60% of my
mails. So d
Thanks Peter, I now understand :) However that is too advanced for my little
brain so I'm not going to get into it, the current solution is acceptable
for me.
PS: you mispelled "programmatic" =)) (I'm actually laughing with you, not at
you xD)
Cheers, Good day!
W3doYXQgZG8geW91IG1lYW4gSSBtaXNzcGV
Hey guys,
>> I have 2 kind of nodes (let's say A and B) which are related using a
>> relation of type 'USES'.
>> I want to count all the type A nodes which have only 1 relation to B type
>> node and all the type A nodes which have more than one relation to B type
>> node.
>>
>> I am using neo4
Hi there,
this is not Neo4j using this file, but the Java Service Loader
requiring this,
http://download.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html
If you find some programatic way to add services, that could be good
for the OSGi setup scenarios, too :)
Cheers,
/peter neubauer
GT
that is awesome! that file is there:
..\workspace\neo4j-community\lucene-index\src\main\resources\META-INF\services\
though if I add "lucene-index\src\main\resources\" as source folder, i get
some weird java exception and no-class def found error :))
but you probably only wanted me to add it in cl
Yup,
have pulled and can see it. Thanks! Will ask the Toni for a way to
cleanly shut down the framework so we can get both tests working.
/peter
On Mon, Jul 18, 2011 at 11:58 PM, Peter Neubauer
wrote:
> Nicolas,
> I am away for 2 days, will try it out after that. Thanks for chipping in!
>
> /pet
Guillaume,
sorry, your mail seem to have slipped through the cracks.
Aggregate functions in the where clause don't work.
We intend to add a having clause to cypher in the 1.5 timeframe.
Then it should be possible to do something like this.
> start A=(id,object_type,"A") match (A)-[r:USES]->(B)
For sources,
I guess you would need to mount the src/main/resources folders as
source folders in order to have the META-INF/services files on the
classpath. Does that work?
Cheers,
/peter neubauer
GTalk: neubauer.peter
Skype peter.neubauer
Phone +46 704 106975
LinkedIn http://
but but I don't know what osgi and project bundle stuff really is :) I
don't think I would need that for what I want. (if those mean building as
.jar or using jars)
What I actually want is to keep the neo4j-community project (which is git
linked to the github sources), keep this as source only (
Hi Jörg,
I understand your view. However, as there is no support for scopes in
OSGi, the reasonable approach would be to import ALL dependencies for
all Neo4j code. That would require quite substancial numbers of
bundles for e.g. the enterprise edition that pollute the Bundle Space
for the whole sy
Hi there,
That again is OSGi playing against Java Service Loader. Look at the neo4j /
osgi / bundle project to build a working superbundle with the default
community jars and report back!
/peter
Sent from my phone.
On Jul 20, 2011 7:02 PM, "cyuczi eekc" wrote:
> Hi!
> I've been trying to fix thi
Hi SRay,
If you want test out and update the Wiki, that would be most appreciated!
Both Craig and me are low on cycles right now, Saikat is working on the
RTree and Andreas on putting PostGIS functions into place.
If if you fork the codebase, please send in the CLA as described in the code
contrib
Is there a way to get the number of relationships without having to iterate
through (and count++) them?
ie. rels=firstNode.getRelationships();
rels.size(); //doesn't actually exist
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/ma
Hi!
I've been trying to fix this error, and I've kind of succeeded.
My context is, that I've pulled neo4j sources from github and using
them in eclipse (without maven and such), and I have the
neo4j-community sources as a project, and I am including this project
in any of my projects that require n
Hello devs,
First i refer for my problem to this previous message on neo4j list (
http://lists.neo4j.org/pipermail/user/2011-July/010158.html)
because i have the same issue/error with geoserver and neo4j-spatial plugin
:/
*
Error creating data store, check the parameters. Error message: Could not
Neo4jists,
Was my question dumb or was it really not clear ?
Cheers
--
View this message in context:
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cypher-request-with-where-clause-on-relations-count-tp3172481p3185907.html
Sent from the Neo4J Community Discussions mailing list
Thanks for replies!
Yes, the super bundle approach (putting *all* neo modules and *all* their
dependencies in one bundle) works in principle. But to be a deployable solution
...
1) it must exist in the Maven repo and be on a par with the Neo4j release
2) A configuration mechanism is required to
Dear Graphistas,
I'd like to inform you that we released the M2 milestone of Spring Data Graph
1.1.0.
The most obvious change is repackaging, sorry for that but the Spring Data
project decided to move all packages to
"org.springsource.data." so ours will be
"org.springsource.data.neo4j"
For t
Hi there,
Could you please try the OSGi neo4j super bundle built in github / neo4j /
Neo4j - osgi / bundle?
Fine grained bundle deployment interferes with the java service loader which
only looks in its own classpath.
/peter
Sent from my phone.
On Jul 20, 2011 5:27 AM, "cyuczi eekc" wrote:
> I
72 matches
Mail list logo