# Example (ba)sh script to import data in Turtle format with DBRDF # Note that the MonetDB and PostgreSQL database respectively must have been created and released. # To import data with DBRDF using either MonetDB or PostgreSQL the class RunDropImport of DBRDF is called # RunDropImport expects 9 arguments. # The first is "IN_MEMORY", always used when importing. # The last one is either "true" or "false", where "true" reports the importing progress. DBRDFPATH=./tools/DBRDF # path to the DBRDF folder HOSTNAME=localhost # host where on which MonetDB/PostgreSQL are listening USERNAME= # username for MonetDB/PostgreSQL (set when installing the database system) PASSWORD= # password of the username TESTTOOL=MonetDB # either "MonetDB" or "PostgreSQL" REPONAME=DBPedia-TT # Is a concatenation of a freely chosen prefix together with $STORETYPE # separated by a dash. E.g. DBPedia-VP if $STORETYPE == VP. Note that the # database is the name under which the database was created when setting up the # database server. STORETYPE=TT # Either TT for Triple Table or VP for Vertical Partitioning. It must be the # the store type with which the database was created when setting up the # database server. TTLFILE=./input/DBPedia/ttl/DBPedia.ttl # name of the file containing data in Turtle format # The java program call java -classpath $DBRDFPATH/bin:$DBRDFPATH/lib/postgresql-9.2-1003.jdbc4.jar:$DBRDFPATH/lib/openrdf-sesame-2.6.6-onejar.jar:$DBRDFPATH/lib/sesame-http-client-2.6.6.jar:$DBRDFPATH/lib/owlapi-3.2.2.jar:$DBRDFPATH/lib/monetdb-jdbc-2.9.jar uk.ac.ox.cs.DBRDF.run.RunDropImport "IN_MEMORY" $HOSTNAME $USERNAME $PASSWORD $TESTTOOL $REPONAME $STORETYPE $TTLFILE "false"