# Example (ba)sh script using DBRDF for reasoning with a running PostgreSQL # It is assumed that the databases are created, are in release mode and the data has been imported # Reasoning using DBRDF on MonetDB is performed by executing the class RunDirectReasoning on DBRDF # RunDirectReasoning takes 9 or 10 arguments. # The first argument is "DIRECT" # The 10th argument is not mandatory. It is the filename in which the SQL script passed to PostgreSQL is saved. # Not given, the only difference is that the SQL script is not output to the user. DBRDFPATH=./tools/DBRDF # path to the DBRDF folder ONTOFILE=DBPedia.owl # OWL ontology file EQUALITY="true" # "true" or "false", sets whether equality reasoning is turned on(="true") or # off(="false"). Of turned off, sameAs is treated as conventional role name # if turned on, sameAs is treated as equality, i.e. its reflexive, symmetric and # transitive closure is computed and elements in sameAs relation will satisfy # the exact same properties. # 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 # The database name with which the database was created when setting up the # database server. STORETYPE=TT # The store type with which the database was created when setting up the # database server: "VP" or "TT". # 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.RunScriptReasoning "DIRECT" $ONTOFILE $EQUALITY $HOSTNAME $USERNAME $PASSWORD $TESTTOOL $REPONAME $STORETYPE