[Neo4j] Representing Text

2014-07-09 Thread Jim Slade
I have been researching a problems and trying to figure out how suitable 
Neo 4J would be to solve it.

The problem is the representation of legal documents. The reason for 
considering Neo 4J is that the citations within court opinions form 
directed graphs. A citation from one document to another forms a 
relationship. That relationship can be refined by giving a legal issue (A 
cites B for C)---in fact the issues could be represented by a graph as well.

The process of legal research usually starts with text searching. After 
identifying matches, the research process switches to network analysis. If 
X is found to be match for research purposes through searching, the set of 
documents that cite X or are cited by X are likely to contain matches as 
well. Currently, network analysis is done manually and is very tedious.

A single court opinion usually has many citations for a number of different 
issues.

That part of the problem appears to match Neo4j well.


The part that I am not certain about is handling the textual nature of the 
source. 

A document needs to be text searchable.
A document can be huge (some, thousands of pages). A court opinion can 
range from one word (Affirmed.) to tens of pages.

A document is more than plain text. It will include formatting. The 
document may include figures or  tables. 
The document needs to be exportable (e.g., conversion to Word)

The document may have layers of metadata. For example, one might one to 
identify judges referenced in the text.
A citation relationship is from a specific point in the text of one 
document to a specific point in another document (e.g., page, paragraph, 
section--possibly a sentence could be identified).

The current trend is to us XML for this kind of representation but, IMHO, 
this is not an effective solution.


My question then is how effective would Neo4J be for this kind of problem. 
How might one approach storing large bodies of text?

I know this is a large question (and would get spiked on SO). Maybe there 
is something to point to. I guess you could call this large document 
representation in Neo 4J.




-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] batch-import and database errors

2014-07-09 Thread Ryan Hunt
Hi Michael,
I'm having the exact same issue and I can open it with a neo4j 2.0.3 
database, wondering if you had any other solutions? 
Thanks, Ryan.

On Saturday, June 21, 2014 10:40:26 AM UTC+1, Michael Hunger wrote:

 Can you open it with a neo4j 2.0.3 database, neo4j-shell and get it to 
 cleanly shut down?

 Sent from mobile device

 Am 21.06.2014 um 02:41 schrieb assaf...@gmail.com javascript::

 Hello Michael,

 Thanks for the quick reply.

 On Friday, June 20, 2014 8:23:52 PM UTC-4, Michael Hunger wrote:

 The batch-importer generates databases for Neo4j 2.0

 You have to set the upgrade flag allow_store_upgrade=true in 
 conf/neo4j.properties


 I tried enabling this property, but the server still fails to start.

 Here's what I've tried:
 ===

 # Stopping the server
 $ ./bin/neo4j stop

 # Removing existing 'graph.db'
 $ rm -rf ./data/graph.db

 # Copying the sample db from 'bacth-import'
 $ cp -r /data/gordon/sources/batch-import/target/graph.db ./data/

 # Verify the upgrade propery
 $ grep upgrade conf/*
 conf/neo4j.properties:# Enable this to be able to upgrade a store from an 
 older version
 conf/neo4j.properties:allow_store_upgrade=true

 # Start the server
 $ ./bin/neo4j start
 WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See 
 the Neo4j manual.
 Using additional JVM arguments:  -server -XX:+DisableExplicitGC 
 -Dorg.neo4j.server.properties=conf/neo4j-server.properties 
 -Djava.util.logging.config.file=conf/logging.properties 
 -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC 
 -XX:+CMSClassUnloadingEnabled
 Starting Neo4j Server...WARNING: not changing user
 process [10342]... waiting for server to be ready... Failed to start 
 within 120 seconds.
 Neo4j Server may have failed to start, please check the logs.
 ===

 The 'console.log' still says:
   Detected incorrectly shut down database, performing recovery..


 But 'data./graph.db/message.log' has this to say:
 ===
 $ tail ./data/graph.db/messages.log
 Caused by: 
 org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnexpectedUpgradingStoreVersionException:
  
 'neostore.nodestore.db' has a store version number that we cannot upgrade 
 from. Expected 'NodeStore v0.A.1' but file is version 'NodeStore v0.A.0'.
 at 
 org.neo4j.kernel.impl.storemigration.UpgradableDatabase.checkUpgradeable(UpgradableDatabase.java:69)
  
 ~[neo4j-kernel-2.1.2.jar:2.1.2]
 at 
 org.neo4j.kernel.impl.storemigration.StoreMigrator.needsMigration(StoreMigrator.java:100)
  
 ~[neo4j-kernel-2.1.2.jar:2.1.2]
 at 
 org.neo4j.kernel.impl.storemigration.StoreUpgrader.getParticipantsEagerToMigrate(StoreUpgrader.java:234)
  
 ~[neo4j-kernel-2.1.2.jar:2.1.2]
 at 
 org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:129)
  
 ~[neo4j-kernel-2.1.2.jar:2.1.2]
 at 
 org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.start(NeoStoreXaDataSource.java:350)
  
 ~[neo4j-kernel-2.1.2.jar:2.1.2]
 at 
 org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507)
  
 ~[neo4j-kernel-2.1.2.jar:2.1.2]
... 13 common frames omitted
 ===


 Any ideas how to fix it ?

 Thanks!
  -gordon

  -- 
 You received this message because you are subscribed to the Google Groups 
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to neo4j+un...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.



-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Neo4j] profiling neo4j hardware performance

2014-07-09 Thread jer
Hi,

I would like to profile the neo4j hardware performance, but I need 
suggestions in how to run set the framework up. As I understand, I can 
write python/neo4j-shell script that access the database. However, I think 
this is just from the client side, which is not the performance data I'm 
interested in. I don't quite know what I should do if I want to get server 
side performance data (such as cache miss rate)? 

Specificly, the tool I'm trying to attach neo4j with is intel's Pin tool. 
And if I could just write a python script so that I can attach Pin with to 
obtain the server result would be ideal. Thanks a lot!

Best Wishes,
Jer

-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Neo4j] Neo4j cypher compiler for Scala 2.11 - dependency on parboiled-scala_2_10

2014-07-09 Thread Andrzej Dębski
Hello

I am using Neo4j database in my Scala application and I encountered a 
problem with updating to Scala 2.11.1. 

After changing Scala version in my sbt build files I got the message that:

[error] Modules were resolved with conflicting cross-version suffixes in 
{file:somePathTo}SomeProject:
[error]org.parboiled:parboiled-scala _2.11, _2.10
java.lang.RuntimeException: Conflicting cross-version suffixes in: 
org.parboiled:parboiled-scala
at scala.sys.package$.error(package.scala:27)
at sbt.ConflictWarning$.processCrossVersioned(ConflictWarning.scala:47)
at sbt.ConflictWarning$.apply(ConflictWarning.scala:30)
at sbt.Classpaths$$anonfun$60.apply(Defaults.scala:1090)
at sbt.Classpaths$$anonfun$60.apply(Defaults.scala:1090)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at 
sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
[error] (*:update) Conflicting cross-version suffixes in: 
org.parboiled:parboiled-scala

At first I was thinking it is because on my dependency on Spray 
http://spray.io/which also uses parboiled so I asked the question on 
their user list:
 https://groups.google.com/forum/#!topic/spray-user/XY7ceh7a9t0 where I got 
a suggestion to compute dependency tree for my project. 

I discovered that neo4j-cypher-compiler depends on parboiled-scala_2.10 
http://mvnrepository.com/artifact/org.parboiled/parboiled-scala_2.10 which 
is causing the problem. Are there any plans to release version that 
supports Scala 2.11?

-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Neo4j] What are the plans for mixed-type arrays

2014-07-09 Thread Jason Gillman Jr.
Hello!

I was just wondering what, if any, plans there are in regard to mixed-type 
arrays for properties.

Thanks!

-Jason

-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Neo4j] Re: Cant see data browser's graphical view mode in web admin

2014-07-09 Thread reardelt
Same here, I have the same problem. I cannot visualise a query in the 
webadmin, although I can do it in the browser. 

On Wednesday, June 4, 2014 10:08:03 AM UTC+1, anand wrote:


 I seem to have the same problem. I am new to Neo4j and have installed 
 Neo4j2.1.1 binary version on windows 7. I have created few nodes I can see 
 them as a list in webadmin data browser but cannot visualise them.

 As long as the node count is below 1000 nodes I can visualise all of them 
 on localhost:7474/browser but not in webadmin data browser. Also as 
 suggested in one of the posts above I am able to visualise a single node 
 after clicking it from nodes list.. but I do need to visualise all nodes. 
 The fact that I will probably end up creating more then 10m nodes being 
 able to visualise the nodes and their relationships will be really good...

 On the developer debugging console i see below errors

 Failed to load resource: the server responded with a status of 400 (Bad 
 Request) http://localhost:7474/db/manage/server/console/
 3Uncaught TypeError: Cannot read property 'node' of null Renderer.js:238
 2

1. Uncaught TypeError: Cannot read property 'node' of null 
Renderer.js:238

 Failed to load resource: the server responded with a status of 404 (Not 
 Found) 
 http://localhost:7474/db/data/index/node/crmd_orderadm_h?_=1401870557436query=key%3A*
 3

1. Uncaught TypeError: Cannot read property 'node' of null 
Renderer.js:238

 Failed to load resource: the server responded with a status of 404 (Not 
 Found) http://localhost:7474/db/data/node/2?_=1401872307429
 any help will be greatly appreciated.

 Thanks,
 Anand

 On Wednesday, November 14, 2012 1:20:41 PM UTC, Nirmal Singh wrote:

 Hi Everyone,

 I could not see graphical view of my nodes (few days ago I could see it). 
 Can anyone help me with that.


 https://lh6.googleusercontent.com/-GE-CiJVxmQs/UKOagI72T6I/ABU/jT5bSiOTf8s/s1600/Untitled.png

 Thanks,
 Nirmal



-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] Re: Cant see data browser's graphical view mode in web admin

2014-07-09 Thread Michael Hunger
Can you detail your browser, OS etc.
What do you want to use the webadmin for?
And could you check the javascript error console for any error messages?



On Mon, Jul 7, 2014 at 4:31 PM, reardelt namjai...@gmail.com wrote:

 Same here, I have the same problem. I cannot visualise a query in the
 webadmin, although I can do it in the browser.


 On Wednesday, June 4, 2014 10:08:03 AM UTC+1, anand wrote:


 I seem to have the same problem. I am new to Neo4j and have installed
 Neo4j2.1.1 binary version on windows 7. I have created few nodes I can see
 them as a list in webadmin data browser but cannot visualise them.

 As long as the node count is below 1000 nodes I can visualise all of them
 on localhost:7474/browser but not in webadmin data browser. Also as
 suggested in one of the posts above I am able to visualise a single node
 after clicking it from nodes list.. but I do need to visualise all nodes.
 The fact that I will probably end up creating more then 10m nodes being
 able to visualise the nodes and their relationships will be really good...

 On the developer debugging console i see below errors

 Failed to load resource: the server responded with a status of 400 (Bad
 Request) http://localhost:7474/db/manage/server/console/
 3Uncaught TypeError: Cannot read property 'node' of null Renderer.js:238
 2

1. Uncaught TypeError: Cannot read property 'node' of null
Renderer.js:238

 Failed to load resource: the server responded with a status of 404 (Not
 Found) http://localhost:7474/db/data/index/node/crmd_orderadm_h?_=
 1401870557436query=key%3A*
 3

1. Uncaught TypeError: Cannot read property 'node' of null
Renderer.js:238

 Failed to load resource: the server responded with a status of 404 (Not
 Found) http://localhost:7474/db/data/node/2?_=1401872307429
 any help will be greatly appreciated.

 Thanks,
 Anand

 On Wednesday, November 14, 2012 1:20:41 PM UTC, Nirmal Singh wrote:

 Hi Everyone,

 I could not see graphical view of my nodes (few days ago I could see
 it). Can anyone help me with that.


 https://lh6.googleusercontent.com/-GE-CiJVxmQs/UKOagI72T6I/ABU/jT5bSiOTf8s/s1600/Untitled.png

 Thanks,
 Nirmal

  --
 You received this message because you are subscribed to the Google Groups
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] What are the plans for mixed-type arrays

2014-07-09 Thread Michael Hunger
There are no plans for that, rather for more complex data types at some
point (maps, nested documents) but not in the close future.

What do you want to do?

Michael


On Wed, Jul 9, 2014 at 7:13 PM, Jason Gillman Jr. mackdaddydie...@gmail.com
 wrote:

 Hello!

 I was just wondering what, if any, plans there are in regard to mixed-type
 arrays for properties.

 Thanks!

 -Jason

 --
 You received this message because you are subscribed to the Google Groups
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] neo4j cypher query too slow

2014-07-09 Thread Michael Hunger
This is a graph global query, with unlimited paths, so it might generate
many billions or trillions of paths to look at.
Esp. if you don't provide a direction.

if your nodes are all users, then you do the equivalent of finding all
paths between the cross product of 16M^2

Perhaps you can describe your actual use-case that you try to solve?

Michael



On Wed, Jul 9, 2014 at 4:23 PM, Guitao Ding dinggui...@baixing.com wrote:

 Hi all,

 I'm leaning to user neo4j for relation analysis recently. Today I found it
 took too long for my cypher query took to finish.

 I used the batch importer https://github.com/jexp/batch-import/tree/20
 to import all data into neo4j. And I wanted to find the smallest user_id
 connected (directly or undirectly, path length no limit) to each user_id.
 Below is the details:

 neo4j version: 2.1.2
 nodes num: 16M (three labels)
 relation num: 10M
 cypher query:

 match (n:user_id)-[:mapping*]-(d:user_id)
 with n.value as user_id,
 case when min(d.value)  n.value then n.value else min(d.value) end as
 people_id
 return user_id, people_id


 What should I do to improve my query performance? Any suggestions would be
 appreciated!

 Thanks in advance.

  Guitao

 --
 You received this message because you are subscribed to the Google Groups
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] access permissions to users in neo4j

2014-07-09 Thread Alex Frieden
You really need to do this at the application layer.  We currently restrict
access to the server and to the group able to connect to it then run the
rest api just on localhost.  One idea you can tinker with is add a group
property to certain nodes then restrict on those in your application.


On Fri, Jul 4, 2014 at 9:15 AM, Suman Patil smnpatil1...@gmail.com wrote:

 How to give different level of permissions to different hierarchies of
 users?Example:if we want to allow a group of users to access only first 10
 hierarchies of the graph and another set of users to access next 10
 hierarchies of the graph and so on.

 --
 You received this message because you are subscribed to the Google Groups
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Alexander Frieden

-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Neo4j] Re: neo4j cypher query too slow

2014-07-09 Thread Pavel
Hello Guitao,

I think I'm having the same issue here:

http://stackoverflow.com/questions/24620297/cypher-query-with-infinite-relationship-takes-forever

Hopefully we can get an answer :)

Good luck!

On Wednesday, July 9, 2014 10:23:19 AM UTC-4, Guitao Ding wrote:

 Hi all,

 I'm leaning to user neo4j for relation analysis recently. Today I found it 
 took too long for my cypher query took to finish.

 I used the batch importer https://github.com/jexp/batch-import/tree/20 
 to import all data into neo4j. And I wanted to find the smallest user_id 
 connected (directly or undirectly, path length no limit) to each user_id. 
 Below is the details:

 neo4j version: 2.1.2
 nodes num: 16M (three labels)
 relation num: 10M
 cypher query: 

 match (n:user_id)-[:mapping*]-(d:user_id)
 with n.value as user_id,
 case when min(d.value)  n.value then n.value else min(d.value) end as 
 people_id
 return user_id, people_id


 What should I do to improve my query performance? Any suggestions would be 
 appreciated!

 Thanks in advance.

  Guitao


-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] profiling neo4j hardware performance

2014-07-09 Thread Michael Hunger
Jer,

what is the actual performance use-case you want to test? Perhaps you can
explain more about it, and also about the hardware you plan to run it on.

You might want to look into the data exposed via jconsole (JMX) which also
contains cache information (at least in the enterprise version).
There are also some monitoring extensions but those are not publicly
documented yet.

Michael


On Wed, Jul 9, 2014 at 4:02 AM, jer yinzhuo...@gmail.com wrote:

 Hi,

 I would like to profile the neo4j hardware performance, but I need
 suggestions in how to run set the framework up. As I understand, I can
 write python/neo4j-shell script that access the database. However, I think
 this is just from the client side, which is not the performance data I'm
 interested in. I don't quite know what I should do if I want to get server
 side performance data (such as cache miss rate)?

 Specificly, the tool I'm trying to attach neo4j with is intel's Pin tool.
 And if I could just write a python script so that I can attach Pin with to
 obtain the server result would be ideal. Thanks a lot!

 Best Wishes,
 Jer

 --
 You received this message because you are subscribed to the Google Groups
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] What are the plans for mixed-type arrays

2014-07-09 Thread Clark Richey
Just to chime in, more complex types such as maps would be immensely valuable!


Sent from my iPhone

 On Jul 9, 2014, at 17:46, Michael Hunger michael.hun...@neotechnology.com 
 wrote:
 
 There are no plans for that, rather for more complex data types at some point 
 (maps, nested documents) but not in the close future.
 
 What do you want to do?
 
 Michael
 
 
 On Wed, Jul 9, 2014 at 7:13 PM, Jason Gillman Jr. 
 mackdaddydie...@gmail.com wrote:
 Hello!
 
 I was just wondering what, if any, plans there are in regard to mixed-type 
 arrays for properties.
 
 Thanks!
 
 -Jason
 -- 
 You received this message because you are subscribed to the Google Groups 
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] What are the plans for mixed-type arrays

2014-07-09 Thread Alan Robertson

On 7/9/2014 5:44 PM, Clark Richey wrote:
Just to chime in, more complex types such as maps would be immensely 
valuable!

Agreed.

I absolutely require maps -- so I store mine in JSON. Unfortunately, I 
can't query them.  But at least I have the data, and my software can 
process it.






Sent from my iPhone

On Jul 9, 2014, at 17:46, Michael Hunger 
michael.hun...@neotechnology.com 
mailto:michael.hun...@neotechnology.com wrote:


There are no plans for that, rather for more complex data types at 
some point (maps, nested documents) but not in the close future.


What do you want to do?

Michael


On Wed, Jul 9, 2014 at 7:13 PM, Jason Gillman Jr. 
mackdaddydie...@gmail.com mailto:mackdaddydie...@gmail.com wrote:


Hello!

I was just wondering what, if any, plans there are in regard to
mixed-type arrays for properties.

Thanks!

-Jason
-- 
You received this message because you are subscribed to the

Google Groups Neo4j group.
To unsubscribe from this group and stop receiving emails from it,
send an email to neo4j+unsubscr...@googlegroups.com
mailto:neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google 
Groups Neo4j group.
To unsubscribe from this group and stop receiving emails from it, 
send an email to neo4j+unsubscr...@googlegroups.com 
mailto:neo4j+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google 
Groups Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to neo4j+unsubscr...@googlegroups.com 
mailto:neo4j+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] What are the plans for mixed-type arrays

2014-07-09 Thread Clark Richey
Yes. We do the same thing and it is a bit of a pain. It's what almost made us 
go with Titan instead 

Sent from my iPhone

 On Jul 9, 2014, at 20:31, Alan Robertson al...@unix.sh wrote:
 
 On 7/9/2014 5:44 PM, Clark Richey wrote:
 Just to chime in, more complex types such as maps would be immensely 
 valuable!
 Agreed.
 
 I absolutely require maps -- so I store mine in JSON.  Unfortunately, I can't 
 query them.  But at least I have the data, and my software can process it.
 
 
 
 
 Sent from my iPhone
 
 On Jul 9, 2014, at 17:46, Michael Hunger michael.hun...@neotechnology.com 
 wrote:
 
 There are no plans for that, rather for more complex data types at some 
 point (maps, nested documents) but not in the close future.
 
 What do you want to do?
 
 Michael
 
 
 On Wed, Jul 9, 2014 at 7:13 PM, Jason Gillman Jr. 
 mackdaddydie...@gmail.com wrote:
 Hello!
 
 I was just wondering what, if any, plans there are in regard to mixed-type 
 arrays for properties.
 
 Thanks!
 
 -Jason
 -- 
 You received this message because you are subscribed to the Google Groups 
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 -- 
 You received this message because you are subscribed to the Google Groups 
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to neo4j+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] neo4j cypher query too slow

2014-07-09 Thread Guitao Ding

Hi Michael,

The data is from one website. The user_id is the ID of each registered 
user. And every user_id is linked to one or more cookie_ids (the value of 
one cookie).
Also one cookie_id is linked to one or more user_ids. So user_id and 
cookie_id are many to many mapping. My case is to find all user_ids linked 
with each other (via cookie_ids, and no limit on the path length) and 
assign them one unique ID (here i used then smallest user_id in the path).

for example:
All user_ids (user_id1, user_id2, user_id3) in the following path should be 
assigned one same ID (e.g. user_id1)
user_id1cookie_id1user_id2-cookie-id2-user_id3

I imported the data to neo4j and use different labels for user_id and 
cookie_id. There is only one type of relationship (cookie_id -- user_id) 
and the direction doesn't matter.

On Thursday, July 10, 2014 6:01:14 AM UTC+8, Michael Hunger wrote:

 This is a graph global query, with unlimited paths, so it might generate 
 many billions or trillions of paths to look at.
 Esp. if you don't provide a direction.

 if your nodes are all users, then you do the equivalent of finding all 
 paths between the cross product of 16M^2

 Perhaps you can describe your actual use-case that you try to solve?

 Michael



 On Wed, Jul 9, 2014 at 4:23 PM, Guitao Ding dingg...@baixing.com 
 javascript: wrote:

 Hi all,

 I'm leaning to user neo4j for relation analysis recently. Today I found 
 it took too long for my cypher query took to finish.

 I used the batch importer https://github.com/jexp/batch-import/tree/20 
 to import all data into neo4j. And I wanted to find the smallest user_id 
 connected (directly or undirectly, path length no limit) to each user_id. 
 Below is the details:

 neo4j version: 2.1.2
 nodes num: 16M (three labels)
 relation num: 10M
 cypher query: 

 match (n:user_id)-[:mapping*]-(d:user_id)
 with n.value as user_id,
 case when min(d.value)  n.value then n.value else min(d.value) end as 
 people_id
 return user_id, people_id


 What should I do to improve my query performance? Any suggestions would 
 be appreciated!

 Thanks in advance.

  Guitao

 -- 
 You received this message because you are subscribed to the Google Groups 
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to neo4j+un...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] What are the plans for mixed-type arrays

2014-07-09 Thread Jason Gillman Jr.
Didn't have any specific plans, but was rather just curious if mixed type 
arrays were on the road map.

Of course, maps would be nice!

On Wednesday, July 9, 2014 5:46:51 PM UTC-4, Michael Hunger wrote:

 There are no plans for that, rather for more complex data types at some 
 point (maps, nested documents) but not in the close future.

 What do you want to do?

 Michael


 On Wed, Jul 9, 2014 at 7:13 PM, Jason Gillman Jr. mackdad...@gmail.com 
 javascript: wrote:

 Hello!

 I was just wondering what, if any, plans there are in regard to 
 mixed-type arrays for properties.

 Thanks!

 -Jason

 -- 
 You received this message because you are subscribed to the Google Groups 
 Neo4j group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to neo4j+un...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
Neo4j group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.