Re: [Neo4j] Using JUNG framework over Neo4j.
Very cool Marko, Could you add a small example of using the visualization support in Jung, e.g. To produce the pic on the page? /Peter On Friday, November 12, 2010, Marko Rodriguez okramma...@gmail.com wrote: Hi, I thought many of you might be interested in using JUNG over Neo4j. http://github.com/tinkerpop/blueprints/wiki/JUNG-Graph-Implementation This support has been in Blueprints for many months now, I just never documented it. Take care, 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
Re: [Neo4j] Using JUNG framework over Neo4j.
Real nice! Could you add a small example of using the visualization support in Jung, e.g. To produce the pic on the page? +1 On Sat, Nov 13, 2010 at 9:17 AM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Very cool Marko, Could you add a small example of using the visualization support in Jung, e.g. To produce the pic on the page? /Peter On Friday, November 12, 2010, Marko Rodriguez okramma...@gmail.com wrote: Hi, I thought many of you might be interested in using JUNG over Neo4j. http://github.com/tinkerpop/blueprints/wiki/JUNG-Graph-Implementation This support has been in Blueprints for many months now, I just never documented it. Take care, 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 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Questions on custom query using the index framework
Hi, I am new to neo4j. I am using a custom analyzer in index in order to support Chinese. chnIndex = this.graphDb.index().forNodes(product_chinese, MapUtil.stringMap(analyzer, org.wltea.analyzer.lucene.IKAnalyzer)); Below is the usage of the IKAnalyzer in lucence. IndexSearcher isearcher = new IndexSearcher(directory); isearcher.setSimilarity(new IKSimilarity()); // A custom Similarity String word = OLYMPUS 奥林巴斯 E-PL1 时尚白 微型4/3系统相机 套机 含14-42mm镜头; Query query = IKQueryParser.parse(fieldName, word ); // A custom QueryParser TopDocs topDocs = isearcher.search(query, 5); // Got the top 5 System.out.println(Found + topDocs.totalHits); ScoreDoc[] scoreDocs = topDocs.scoreDocs; for (int i = 0; i topDocs.totalHits; i++) { System.out.println(scoreDocs[i].score); // Got the score of each matched doc Document targetDoc = isearcher.doc(scoreDocs[i].doc); System.out.println(Document content is + targetDoc.toString()); } How can I use the query method of neo4j's indexing to implement 1) Add my custom Similartiy implemtation 2) The TopDocs interface can replaced by the iterator of IndexHits, right? 3) Possible to get the score for each node in the IndexHits? Thank you for the help and time spent on this. Samuel ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] QuadStore 'look and feel' now with relationship/edge property indexing?
Hi Neo4j/TinkerPop people, I am wondering if Neo4j will become more efficient in its representation of RDF named graphs now that it has relationship property indexing. Efficient in terms of space. If I remember correctly, a quad statement is ?2? neo4j relationships. The reason being, there was no way to get the 'g' in 'spog' in an efficient (index) manner without such a representation. Thus, without this ?2?-statement construction, a getStatements(null,null,null,tg:someGraph) would require a scan of all relationships. Now with being able to index relationship properties, its possible to have tail_node [value: uri/bnode] relationship: [graph: uri/bnode] [label: uri] head_node [value: uri/bnode/literal] - See https://github.com/tinkerpop/gremlin/wiki/Modeling-RDF-as-a-Property-Graph For the Blueprints scene, I'm wondering if it would be good to implement Sail in Blueprints (we currently have Blueprints implementing Sail). As such, we could turn any multi-index graph database into an RDF quad store without requiring the multi-index graph database to even support, know about, or contribute a Sail implementation... (of course, they would have to have a Blueprints implementation). Thoughts? Marko. http://markorodriguez.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Spatial search using Lucene-spatial?
Hi there, I just tried the examples for searching spatial with Lucene at http://develop.nydi.ch/2010/10/lucene-spatial-example/ I am wondering if this still fits into the current Lucene framework integration, so we could add spatial indexing for simple Nodes with lat/lon properties into the existing index component, or simply have another (spatial) index backed by neo4j-lucene-index and exposed through the index framework? This is not on the level of Neo4j Spatial, but it would give a simple geo-lookup boundary for nodes or relationships. Is the support for adding the required Lucene spatial document fields already exposed so this could be added without bigger modifications to existing code? WDYT? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Spatial search using Lucene-spatial?
Hi, I think Lucene provides a simple way to do distance queries. The limit is, that you can use only points (and a circle to define a distance). No interception with lines, polylines or stuff like that is possible. If you do not need it - fine... BTW: There is currently a discussion about changing lucenes spatial implementation. See http://www.mail-archive.com/d...@lucene.apache.org/msg03593.html and http://www.mail-archive.com/d...@lucene.apache.org/msg09654.html. Mainly due to the sinusoidal projection. (and if you are interested, I did Mikes spatial example with Lucene 3.0.2 and in Scala http://blog.fakod.eu/2010/11/02/spatial-lucene-example-in-scala/) -- Christopher twitter: @fakod blog: http://blog.fakod.eu On Sat, Nov 13, 2010 at 11:05 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Hi there, I just tried the examples for searching spatial with Lucene at http://develop.nydi.ch/2010/10/lucene-spatial-example/ I am wondering if this still fits into the current Lucene framework integration, so we could add spatial indexing for simple Nodes with lat/lon properties into the existing index component, or simply have another (spatial) index backed by neo4j-lucene-index and exposed through the index framework? This is not on the level of Neo4j Spatial, but it would give a simple geo-lookup boundary for nodes or relationships. Is the support for adding the required Lucene spatial document fields already exposed so this could be added without bigger modifications to existing code? WDYT? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ 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