Re: newbie question casting java classes/interfaces

2010-07-28 Thread Tobias Ivarsson
Yes, this is a perfectly valid error, it simply means what it says. That
it's impossible to cast an instance of EmbeddedGraphDatabase to the
NeoService interface. The reason for this is of course that
EmbeddedGraphDatabase does not implement the NeoService interface. As you
said, you were mixing incompatible versions of the Neo4j packages, the
NeoService interface was renamed to GraphDatabaseService before the release
of Neo4j version 1.0.

Cheers,
Tobias

On Thu, Jul 29, 2010 at 5:57 AM, Sandeep Puri lexla...@gmail.com wrote:

 Sorry didn't answer your question..
 The error I got was Cannot cast GraphDBService to NeoService

 On Jul 28, 8:54 pm, Sandeep Puri lexla...@gmail.com wrote:
  It's not the JPA one. It's the meta-model work-in-progress for the
  neo4j project.
 
  It so happens I was using neo4j-1.1-snapshot with an older meta-model
  implementation.
  I pulled the meta-model-0.9 snapshot which seems to work.fine.
 
  But the above question is still valid in a generic sense..
 
  On Jul 28, 4:27 am, Chas Emerick cemer...@snowtide.com wrote:
 
 
 
   What error or other message do you get?  Also, which MetaModelImpl is
   this?  I assume it's not the JPA one.
 
   - Chas
 
   On Jul 27, 2010, at 2:38 PM, Sandeep Puri wrote:
 
The snippet below works fine
GraphDatabaseService neo = new EmbeddedGraphDatabase(dbpath);
MetaModel model = new MetaModelImpl((NeoService) neo);
 
Where MetaModelImpl expects a NeoService
 
trying to do the same thing in clojure
 
(let [^NeoService neo (EmbeddedGraphDatabase. dbpath)
 model (MetaModelImpl. neo)]
...)
 
does not..
am I allowed to typecast any class
what am I doing wrong?
 
Am a newbie to clojure and am trying to us the neo4j libraries
includin gthe MetaModel components of neo4j
 
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient
with your first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/clojure?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Neo4j and clojure which project to use

2010-01-11 Thread Tobias Ivarsson
If you don't get any answers here, I would suggest trying the Neo4j mailing
list, the sign up page is at https://lists.neo4j.org/mailman/listinfo/user

Cheers,
Tobias

On Mon, Jan 11, 2010 at 5:32 PM, pl6306 phat@gmail.com wrote:

 Hi All,

 I am new to Clojure and Neo4j. I see a couple of different wrappers
 for neo4j

 http://github.com/ato/clojars-web#readme

 http://github.com/JulianMorrison/neo4j-clojure/

 http://github.com/rosejn/clj-libs

 http://github.com/mattrepl/clojure-neo4j

 http://github.com/pelle/clojure-neo4j

 does anyone have a recommendation on which to go with?

 Thank you!

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: New Year and New Library

2010-01-02 Thread Tobias Ivarsson
Cool stuff Mark!

Hope you don't mind me forwarding this to the Neo4j community.

Happy new year!
/Tobias

On Fri, Jan 1, 2010 at 5:16 PM, Mark Baran meba...@gmail.com wrote:

 Hey Clojurians,

 To kick off the New Year, I'm releasing my neo4j wrapper.  It has both a
 comprehensive low level api that lets you deal with nodes and
 relationships and a higher level api that uses nested hashmaps.  Check
 it out at:

 http://bitbucket.org/mebaran/appledelhi2

 I've also uploaded a version to clojars to make it easy to integrate
 into anybody's project.

 Tests are forthcoming though running it at the repl, I haven't spotted
 any problems.

 Feedback and comments much appreciated,
 Mark

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.comclojure%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Directed Graphs for Contrib

2009-02-24 Thread Tobias Ivarsson

On Feb 24, 1:33 am, Jeff Rose ros...@gmail.com wrote:

 That would be great.  Especially if the algorithms can operate over some
 kind of generalized interface, so the algorithms can run over different
 graph implementations.  I'm writing a semi-structured storage library on
 top of the neo4j graph database, and it would be great if I could
 analyze properties like connectedness, degree distribution, etc.  I'm
 writing a graph query engine too, so it would also be cool if it could
 run over the in-memory graphs from your library.

Neo4j has a component for doing those kinds of computations:
http://components.neo4j.org/graph-algo/

It's still in alpha stage, but the Neo team is working on improving
it, and one day make a production ready tool from it. With your input
that process would be greatly aided. You don't have to contribute
code, comments from users are very valuable as well.

/Tobias

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Clojure group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---