Re: Import dbpedia data into neo4j using clojure

2013-12-09 Thread Himakshi Mangal
Hi... I have query regarding the clojure and neo4j.. I have started the program to load the dataset and also allocated 4G ram to it. But after processing around 272000 records, the process hangs and nothing happens. If i try to stop the process then, and copy the data in neo4j folder i get this

Re: Import dbpedia data into neo4j using clojure

2013-12-06 Thread Joseph Guhlin
Glad it worked, if you have any further questions feel free to ask. I'm using it extensively and it and Clojure seem to be a perfect match these days, especially on very large datasets. --Joseph On Friday, December 6, 2013 12:56:40 AM UTC-6, Himakshi Mangal wrote: > > Hi Joseph Guhlin, > > Than

Re: Import dbpedia data into neo4j using clojure

2013-12-05 Thread Himakshi Mangal
Hi Joseph Guhlin, Thanks your idea helped and i could send some sample data to my neo4j database. Thank you very much... :) On Monday, December 2, 2013 3:41:53 PM UTC+5:30, Himakshi Mangal wrote: > > Hi... > > > I am using clojure to import dbpedia data into neo4j. > > Here's the code: > (ns o

Re: Import dbpedia data into neo4j using clojure

2013-12-03 Thread Joseph Guhlin
What version of neo4j are you using? For your swap! you are mixing transients and atoms (swap! id-map #(assoc! % res id)) should be: (swap! id-map assoc res id) The swap! fn will apply the value of the atom id-map to the fn as the first argument, followed by the remaining arguments, and then se

Re: Import dbpedia data into neo4j using clojure

2013-12-02 Thread Joel Holdbrooks
I'm not certain where the Transient error is coming from but as far as Neo4J is concerned have you considered using the neocons library to help you with your import? It provides a decent wrapper for working with Neo4J and perhaps it will spare you some headache. IIRC it does batch inserts. Have

Import dbpedia data into neo4j using clojure

2013-12-02 Thread Himakshi Mangal
Hi... I am using clojure to import dbpedia data into neo4j. Here's the code: (ns opal.dbpedia (:use [clojure.tools.logging :only [log]]) (:require [clojure.java.io :as io]) (:import [uk.ac.manchester.cs.owl.owlapi.turtle.parser TurtleParser] [org.neo4j.unsafe.batchinsert BatchIn