Skip to content

A set of hacks to setup a dbpedia endpoint through neo4j

Notifications You must be signed in to change notification settings

oleiade/dbpedia4neo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DBpedia4Neo

A java util to setup a dbpedia endpoint through neo4j.

Installation

You will need maven2 (a java package installer) to run dbpedia4neo. So install it using your favorite package manager : aptitude, brew, or whatever, you can even compile it... And clone the repo wherever you'd like.

sudo aptitude install maven2
git clone git@therepo whereveridlike

As the project is quite old, it's dependencies has been updated a lot, and you'll need to refresh it.

cd therepo
mvn --update-snapshots clean install

Usage

To run dbpedia4neo, use the maven command-line util mvn, passing it the dbpedia4neo loader class and as arguments :

  • the desired output database folder path/name
  • the dbpedia dump triple file(s) you'd like to use. And there you go; if everything goes fine, you'll have, sooner or later, a dbpath neo4j database directory, fulfilled with a dbpedia dump graph.
mvn exec:java\
-Dexec.mainClass=org.acaro.dbpedia4neo.inserter.DBpediaLoader\
-Dexec.args="dbpath fstntfile secntfile etc, etc..."

####Tips In order to use a lot of nt files without having to manually list them in -Dexec.args, you could use your shell backquote feature like this:

[...]\
-Dexec.args="dbpath `ls fstfolder secfolder` etc, etc..."

And Tadaaaa every it will automatically handle the content of the folder you listed as files to process. Be aware that using this method, dbpedia4neo will try to load every file from these folders, including those which are not nt files...

Nota

I'm not a javaist at all and made this Readme as a memo on how to run dbpedia4neo for everyone that's not coming from the java ecosystem. I'm widely opened to modifications :-)

About

A set of hacks to setup a dbpedia endpoint through neo4j

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 96.1%
  • Shell 3.9%