blazegraph / database

Blazegraph High Performance Graph Database
GNU General Public License v2.0
887 stars 172 forks source link

Error when loading a bulk .zip containing database #43

Open gatemezing opened 7 years ago

gatemezing commented 7 years ago

Hi, I am trying to use Blazegraph to load a .zip database triples of over 4GB on disk. I am on windows and this is the error I get: No parser factory for available for RDF format null. Is it that .zip compressed files are not accepted by the loader? I am using the command: java -cp blazegraph.jar com.bigdata.rdf.store.DataLoader myfile.properties d:\path\to\dataset\name.zip

beebs-systap commented 7 years ago

If you name the file such that the extension can be guessed, it will work, i.e. name.rdf.zip for RDF/XML, name.ttl.zip.

gatemezing commented 7 years ago

Thanks! In my case, it as name.nq.zip. Did it, but now I have a different error “ERROR: Banner.java:160: Uncaught exception in thread”.

Le 22 déc. 2016 à 19:42, Brad Bebee notifications@github.com a écrit :

If you name the file such that the extension can be guessed, it will work, i.e. name.rdf.zip for RDF/XML, name.ttl.zip.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/blazegraph/database/issues/43#issuecomment-268863418, or mute the thread https://github.com/notifications/unsubscribe-auth/AA4VA9Qz5mFsJaMHicIypLrPf8nM0UAFks5rKsSvgaJpZM4LUQMj.


Ghislain A. Atemezing, Ph.D Mail: ghislain.atemezing@gmail.com Web: https://w3id.org/people/gatemezing http://www.atemezing.org/ Twitter: @gatemezing About Me: https://about.me/ghislain.atemezing https://about.me/ghislain.atemezing

beebs-systap commented 7 years ago

Can you try with a valid file URI such as below?

java -cp blazegraph.jar com.bigdata.rdf.store.DataLoader myfile.properties file:///d:/path/to/dataset/name.rdf.zip

if that doesn't work, please post the Exception.

gatemezing commented 7 years ago

I've found the right way by passing directly java -cp blazegraph.jar com.bigdata.rdf.store.DataLoader myfile.properties d:\path\to\dataset\name.rdf.zip However, if I rename my zip file .nq.zip or .rdf.zip, there are no errors but nothing is loaded. In contrast, I can load a simple .nq file like this: java -cp blazegraph.jar com.bigdata.rdf.store.DataLoader myfile.properties d:\path\to\dataset\name.nq Would that mean there Blazegraph does not digest .zip?

beebs-systap commented 7 years ago

What version are you using? The relevant code should detect the RDFFormat based on the .zip or .gz extenstion.

gatemezing commented 7 years ago

Indeed, I see that in the code but... I downloaded the version on sourceforge on the 21rst, December (v 2.1.4?). It's the .jar file hosted in sourceforge without building myself. That was the latest version. Have you released a new version? Btw I just download a new .jar and after starting it says buildVersion=2.1.1 while the one I was testing against is buildVersion=2.1.4. Is it normal?