package dk.aau.kah.bits.main;

import java.io.IOException;

import org.apache.jena.rdf.model.Model;

import da.aau.kah.bits.exceptions.InvalidDatabaseConfig;
import dk.aau.kah.bits.database.DatabaseConfig;
import dk.aau.kah.bits.database.DatabaseHandler;
import dk.aau.kah.bits.helpers.ConfigurationLoader;
import dk.aau.kah.bits.helpers.PrintHelper;


public class Bits {

	public static void main(String[] args) {	
		DatabaseHandler databaseHandler;
		DatabaseConfig databaseConfig;
	
		try {
			databaseConfig = ConfigurationLoader.load("onto0st-fact0st-dim0st.json");
			databaseHandler = new DatabaseHandler(databaseConfig);
			Model factModel = databaseHandler.getFactModel();
			PrintHelper.printModel(factModel);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (InvalidDatabaseConfig e) {
			e.printStackTrace();
		} 
		

		//Query database
		
		//display/save results

	}
	


}

@@ -80,25 +80,597 @@
 ena.
-rdf.model.Model;%0A
+graph.NodeFactory;%0Aimport org.apache.jena.propertytable.Column;%0Aimport org.apache.jena.propertytable.PropertyTable;%0Aimport org.apache.jena.propertytable.Row;%0Aimport org.apache.jena.propertytable.graph.GraphPropertyTable;%0Aimport org.apache.jena.propertytable.impl.PropertyTableArrayImpl;%0Aimport org.apache.jena.query.Query;%0Aimport org.apache.jena.query.QueryExecution;%0Aimport org.apache.jena.query.QueryExecutionFactory;%0Aimport org.apache.jena.query.QueryFactory;%0Aimport org.apache.jena.query.ResultSet;%0Aimport org.apache.jena.rdf.model.Model;%0Aimport org.apache.jena.rdf.model.ModelFactory;
 %0Aimp
@@ -876,52 +876,8 @@
 er;%0A
-import dk.aau.kah.bits.helpers.PrintHelper;%0A
 %0A%0Apu
@@ -938,16 +938,19 @@
 rgs) %7B%09%0A
+%09%09%0A
 %09%09Databa
@@ -1018,24 +1018,26 @@
 %0A%09%09try %7B%0A%09%09%09
+//
 databaseConf
@@ -1098,16 +1098,93 @@
 json%22);%0A
+%09%09%09databaseConfig = ConfigurationLoader.load(%22onto0st-fact1pt-dim#pt.json%22);%0A
 %09%09%09datab
@@ -1289,16 +1289,18 @@
 l();%0A%09%09%09
+//
 PrintHel
@@ -1449,16 +1449,19 @@
 %09%7D %0A%09%09%0A%0A
+%09%09%0A
 %09%09//Quer

Clean up