Chris, the current approach to that is through the Tinkerpop Sail implementation on top of Neo4j, see https://github.com/tinkerpop/blueprints/wiki/Sail-Ouplementation.
Basically, you do Sail sail = new GraphSail(new Neo4jGraph('rdf-store')); SailConnection sc = sail.getConnection(); ValueFactory vf = sail.getValueFactory(); sc.addStatement(vf.createURI("http://tinkerpop.com#1"), vf.createURI("http://tinkerpop.com#knows"), vf.createURI("http://tinkerpop.com#3"), vf.createURI("http://tinkerpop.com")); sc.addStatement(vf.createURI("http://tinkerpop.com#1"), vf.createURI("http://tinkerpop.com#name"), vf.createLiteral("marko"), vf.createURI("http://tinkerpop.com")); sc.addStatement(vf.createURI("http://tinkerpop.com#3"), vf.createURI("http://tinkerpop.com#name"), vf.createLiteral("josh"), vf.createURI("http://tinkerpop.com")); System.out.println("get statements: ?s ?p ?o ?g"); CloseableIteration<? extends Statement, SailException> results = sc.getStatements(null, null, null, false); while(results.hasNext()) { System.out.println(results.next()); } System.out.println("\nget statements: http://tinkerpop.com#3 ?p ?o ?g"); results = sc.getStatements(vf.createURI("http://tinkerpop.com#3"), null, null, false); while(results.hasNext()) { System.out.println(results.next()); } HTH? Let me know if you need help setting this up! 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://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Thu, Mar 17, 2011 at 3:01 AM, Chris Spencer <chriss...@gmail.com> wrote: > Hi, > > I'm new to Neo4j, and I'm trying to evaluate it as an RDF quadstore. > Specifically, where a quad is a 4-tuple of the format (id, subject, > predicate, object), quadstores can represent statements about > statements by using the id from one quad as the subject, predicate, or > object in another quad. Some stores also support a feature called > named graphs, where entire sets of quads are grouped, allowing the > group to have statements bound to it in a similar way. > > Has anyone used Neo4j to do anything like this? If so, how is it > accomplished, and what is the Neo4j-equivalent terminology? > > Regards, > Chris > _______________________________________________ > 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