Hi Karen,

   Have you looked into neo4j.py?
   It abstracts a lot of the stuff away and should get you up an
running fairly quick.

   Cheers,

Vasco
Bueda, Inc

On Tue, Oct 19, 2010 at 3:25 PM, Karen Nomorosa
<karen.nomor...@reardencommerce.com> wrote:
> Hi all,
>
> Relatively new to Jpype, and encountering some issues.
>
> I'm trying to make Neo4j a triple store by loading some RDF data.  Looked at 
> some documentation and found the following Java example to initialize the 
> store:
> GraphDatabaseService graphDb = new 
> EmbeddedGraphDatabase("target/var/examples" );
> IndexService indexService = new LuceneIndexService( graphDb );
> RdfStore rdfStore = new VerboseQuadStore( graphDb, indexService );
> Sail sail = new GraphDatabaseSail( graphDb, rdfStore );
>
> Transforming it into JPype, I came up with the following:
>
> import jpype
> import os
>
> JAVA_EXT_DIRS = os.path.join(os.path.abspath('.'), 'lib')         #folder lib 
> contains all jars, including jars I created for neo4j-rdf, neo4j-rdf-sail and 
> neo4j-rdf-sparql
> jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % 
> JAVA_EXT_DIRS)
>
> EmbeddedGraphDatabase = jpype.JClass("org.neo4j.kernel.EmbeddedGraphDatabase")
> LuceneIndexService = jpype.JClass("org.neo4j.index.lucene.LuceneIndexService")
> VerboseQuadStore = jpype.JClass("org.neo4j.rdf.store.VerboseQuadStore")
>
> ------> This is where I run into trouble.  When I try to run the 
> VerboseQuadStore command, I run into a Class Not Found exception.  I tried 
> creating different classes from the same JAR (like Uri, or RDFStoreImpl) and 
> I do not encounter the same issues. Only with VerboseQuadStore.
>
> Wondering what I am doing wrong (or if there is a standard / known way of 
> doing this using JPype).
>
> Thanks much!
> Karen
>
> ----
> Karen Joy Nomorosa
> Semantic Analyst
> REARDEN COMMERCE
> 1051 E Hillsdale Blvd, Sixth Floor
> Foster City CA 94404
>
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Vasco Calais Pedro
Founder/CEO
Bueda
412.880.7785
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to