[Neo4j] Re: Neo web interface; closing nodes with the mouse?

2016-09-16 Thread vicente.rives via Neo4j
Hi,

Is there any updates on this topic?

Thanks!

--
Vicente J. Rives Molina

On Friday, 6 February 2015 10:27:13 UTC+1, Josef Karthauser wrote:
>
> I was wondering.. in the Neo4J web interface shell, you can double click 
> on nodes in the visual output, and they "open up" to show their 
> relationships and the connected nodes.
>
> Is there a way to collapse a node from the user interface?
>
> I'd like to be able to navigate my graph, but without the ability to close 
> nodes it rapidly gets unwieldy.
>
> Thanks,
> Joe
>

-- 
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] Need solution for below err.

2016-09-16 Thread lahu sakhare
org.neo4j.driver.v1.exceptions.value.Uncoercible: Cannot coerce PATH to 
Java List
at 
org.neo4j.driver.internal.value.ValueAdapter.asList(ValueAdapter.java:131)
at 
com.kpit.diagnostics.driver.cypher.BoltCypherExecutor.convert(BoltCypherExecutor.java:78)
at 
com.kpit.diagnostics.driver.cypher.BoltCypherExecutor$$Lambda$4/1639043718.apply(Unknown
 
Source)
at org.neo4j.driver.internal.util.Extract.map(Extract.java:124)
___My code is..._

static Object convert(Value value) {
switch (value.type().name()) {

case "PATH":

   return value.asList(BoltCypherExecutor::convert);
//return Values.ofList(BoltCypherExecutor::convert);
//Listli= (List) value.asEntity().asMap();
//Values.ofList().apply(value).toString();
//return Values.ofList().apply(value).toString();

case "NODE":
case "RELATIONSHIP":
return value.asMap();
}
return value.asObject();
}


/* (non-Javadoc)
* @see 
com.kpit.diagnostics.driver.cypher.CypherExecutor#query(java.lang.String)
*/
public Iterator> query(String statement) {
try (Session session = driver.session()) {
//Retrieve list by executing the query
List> list = session.run(statement)
.list( r -> r.asMap(BoltCypherExecutor::convert));
//Return the list
return list.iterator();
}
}

-- 
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] Introducing koa-neo4j - a NodeJs package for serving Neo4j as domain-specific REST APIs

2016-09-16 Thread Keyvan Mir Mohammad Sadeghi
Hi everyone,

I have developed and open-sourced a NodeJs package that allows serving 
Neo4j as domain-specific REST APIs. Using this package, one can define her 
own REST routes instead of endpoints (REST or Bolt) provided by Neo4j 
instance.

Comments and feedback very much appreciated!

https://www.npmjs.com/package/koa-neo4j

koa-neo4j is a framework for creating web servers that embody application's 
> logic powered by a Neo4j Graph Database  backend.
>
> In a Neo4j enabled application, conducting queries directly from client 
> side might not be the best choice:
>
>- Database is exposed to the client, unless some explicit security 
>mechanism is in place; one can *see* the innards of the database by View 
>page source
>- There is no one server to rule them all, queries are strings, 
>scattered around different clients (web, mobile, etc.)
>- Third-party developers might not be familiar with Cypher
>
> koa-neo4j addresses all of the above issues:
>
>- Stands as a middle layer between clients and database
>- Gives structure to your server's logic in form of a file-based 
>project; finally a home for Cypher! All of the clients can then talk to an 
>instance of this server
>- Converts Cypher files to REST routes, a cross-platform web standard 
>that developers are familiar with, it does so on top of the widely-adapted 
>koa  server, ripe for further customization
>
> In addition it comes with *goodies*:
>
>- Lifecycle hooks, enabling one to tweak incoming and outgoing data 
>based on one's needs, allowing her to utilize the full power of nodejs
> and javascript ecosystem in the process
>- Non-opinionated user management, you describe (in Cypher) how your 
>users and roles are stored, the framework provides authentication and 
>role-based access management
>
> Cheers,
Keyvan

-- 
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] Need solution for below err.

2016-09-16 Thread 'Michael Hunger' via Neo4j
can you please raise this at the github.com/neo4j/neo4j-java-driver/issues ?

Thanks

On Fri, Sep 16, 2016 at 9:54 AM, lahu sakhare 
wrote:

> org.neo4j.driver.v1.exceptions.value.Uncoercible: Cannot coerce PATH to
> Java List
> at org.neo4j.driver.internal.value.ValueAdapter.asList(
> ValueAdapter.java:131)
> at com.kpit.diagnostics.driver.cypher.BoltCypherExecutor.
> convert(BoltCypherExecutor.java:78)
> at com.kpit.diagnostics.driver.cypher.BoltCypherExecutor$$
> Lambda$4/1639043718.apply(Unknown Source)
> at org.neo4j.driver.internal.util.Extract.map(Extract.java:124)
> ___My code is..._
>
> static Object convert(Value value) {
> switch (value.type().name()) {
>
> case "PATH":
>
>return value.asList(BoltCypherExecutor::convert);
> //return Values.ofList(BoltCypherExecutor::convert);
> //Listli= (List) value.asEntity().asMap();
> //Values.ofList().apply(value).toString();
> //return Values.ofList().apply(value).toString();
>
> case "NODE":
> case "RELATIONSHIP":
> return value.asMap();
> }
> return value.asObject();
> }
>
>
> /* (non-Javadoc)
> * @see com.kpit.diagnostics.driver.cypher.CypherExecutor#query(
> java.lang.String)
> */
> public Iterator> query(String statement) {
> try (Session session = driver.session()) {
> //Retrieve list by executing the query
> List> list = session.run(statement)
> .list( r -> r.asMap(BoltCypherExecutor::convert));
> //Return the list
> return list.iterator();
> }
> }
>
> --
> 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.


[Neo4j] Djikstra with Cost Cypher Implementation?

2016-09-16 Thread Ben Campbell
Anyone know when the Djikstra/A* with cost implementation is being 
implemented in cypher? It appears to have been accessible from the Web API 
for a long time, but no easy way to use it when using bolt? 

Is there a reliable workaround? I basically want to call shortestPath but 
specify a cost parameter stored on each relationship. I've seen workarounds 
on stackoverflow, but these appear to work after obtaining all the results 
so become inefficient? 

-- 
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] Introducing koa-neo4j - a NodeJs package for serving Neo4j as domain-specific REST APIs

2016-09-16 Thread 'Michael Hunger' via Neo4j
Really nice,

do you have an an example project and perhaps a blog post or screencasts
that demoes it in action?

It's kinda similar to my github.com/jexp/cypher-rs project, that stores
cypher queries at an endpoint and then allows GET/POST requests on those?

Michael

On Thu, Sep 15, 2016 at 12:20 PM, Keyvan Mir Mohammad Sadeghi <
keyvan.m.sade...@gmail.com> wrote:

> Hi everyone,
>
> I have developed and open-sourced a NodeJs package that allows serving
> Neo4j as domain-specific REST APIs. Using this package, one can define her
> own REST routes instead of endpoints (REST or Bolt) provided by Neo4j
> instance.
>
> Comments and feedback very much appreciated!
>
> https://www.npmjs.com/package/koa-neo4j
>
> koa-neo4j is a framework for creating web servers that embody
>> application's logic powered by a Neo4j Graph Database
>>  backend.
>>
>> In a Neo4j enabled application, conducting queries directly from client
>> side might not be the best choice:
>>
>>- Database is exposed to the client, unless some explicit security
>>mechanism is in place; one can *see* the innards of the database by View
>>page source
>>- There is no one server to rule them all, queries are strings,
>>scattered around different clients (web, mobile, etc.)
>>- Third-party developers might not be familiar with Cypher
>>
>> koa-neo4j addresses all of the above issues:
>>
>>- Stands as a middle layer between clients and database
>>- Gives structure to your server's logic in form of a file-based
>>project; finally a home for Cypher! All of the clients can then talk to an
>>instance of this server
>>- Converts Cypher files to REST routes, a cross-platform web standard
>>that developers are familiar with, it does so on top of the widely-adapted
>>koa  server, ripe for further customization
>>
>> In addition it comes with *goodies*:
>>
>>- Lifecycle hooks, enabling one to tweak incoming and outgoing data
>>based on one's needs, allowing her to utilize the full power of nodejs
>> and javascript ecosystem in the process
>>- Non-opinionated user management, you describe (in Cypher) how your
>>users and roles are stored, the framework provides authentication and
>>role-based access management
>>
>> Cheers,
> Keyvan
>
> --
> 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] Djikstra with Cost Cypher Implementation?

2016-09-16 Thread 'Michael Hunger' via Neo4j
Hi Ben,

it is exposed as user defined procedure in the apoc library.

You can find it here:
https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_graph_algorithms_work_in_progress

Install Instructions (just download and drop the jar into
NEO4J_HOME/plugins) are in the readme:
https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_download_latest_release_for_the_regular_user



apoc.algo.dijkstra(startNode, endNode, 'KNOWS|',
'distance') YIELD path, weight

run dijkstra with relationship property name as cost function

apoc.algo.dijkstraWithDefaultWeight(startNode, endNode,
'KNOWS|', 'distance', 10) YIELD path, weight

run dijkstra with relationship property name as cost function and a default
weight if the property does not exist




In Neo4j 3.0+ shortest path functions pull in predicates into the
evaluation, so something like

 WHERE reduce(sum = 0 , x in rels(path) |  sum + x.weight )  < 100

should work




On Fri, Sep 16, 2016 at 12:47 PM, Ben Campbell 
wrote:

> Anyone know when the Djikstra/A* with cost implementation is being
> implemented in cypher? It appears to have been accessible from the Web API
> for a long time, but no easy way to use it when using bolt?
>
> Is there a reliable workaround? I basically want to call shortestPath but
> specify a cost parameter stored on each relationship. I've seen workarounds
> on stackoverflow, but these appear to work after obtaining all the results
> so become inefficient?
>
> --
> 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] Schema index doesn't slow insertion

2016-09-16 Thread 'Michael Hunger' via Neo4j
Can you share more details on what you do?

do you have a constraint on the label property combination? otherwise teh
lookup portion of merge always has to do a full label scan.

Run your merge statement with PROFILE or EXPLAIN and share it with us.



On Wed, Sep 14, 2016 at 1:59 AM, Sebastian Puscas <
puscas.sebast...@gmail.com> wrote:

> Hi all,
>
> I have a feeling something is wrong with my neo4j 3.0.3 because ,when I
> insert 50 milions of nodes, insertion is constant with or without schema
> index on the only property.
> Values of the properties look something like this : name1, name2 ,name3
> ...name5000 .
> Does anybody have any experience on this
> ?
> It would be really helpful
>
> --
> 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.


[Neo4j] Support for chef cookbook for Neo4j 3.x

2016-09-16 Thread Saad Khan
I have no been able to find any valid script that helps the users to use 
chef cookbook for Neo4j 3.x installation. Though it might be an easy script 
to write, but I believe Neo4j should provide the community members with a 
cookbook which supports 3.x installation. 

-- 
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: ANN Neo4J Server Chef cookbook updates

2016-09-16 Thread Saad Khan
Hi Micheal,

I have seen that there were changes in the attributes to support 3.x 
neo4j.properties but does the provided script support the installation for 
Neo4j 3.x?

On Saturday, October 5, 2013 at 11:01:34 AM UTC-7, Michael Klishin wrote:
>
> It has been some time since Neo4J Chef cookbook [1] was updated.
>
> I'm happy to report that it now provisions Neo4J Server 1.9 and 2.0.
>
> 1. https://github.com/michaelklishin/neo4j-server-chef-cookbook
> -- 
> MK
>
> http://github.com/michaelklishin
> http://twitter.com/michaelklishin
>

-- 
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.