public static void main(String[] args) throws FileNotFoundException,
			ParseException, BlackboardException {
		
		final int TEST1 = 1;
		final int TEST2 = 2;

		int test = TEST2;
		
		BlackboardMediator slm = new BlackboardMediator(Agents.SL);

		switch (test) {
		case TEST1:

			// creates an instance of the BlackboardMediator class for the agent
			// SL


			int j = 1;
			while (j<100) {

				Calendar cal = Calendar.getInstance();
				Date begin = cal.getTime();
				for (int i = 0; i < 100; i++) {

					cal = Calendar.getInstance();
					if (validateSyntax(
							"src/main/resources/exampleOfHistoricalVmOutput.ttl",
							"TURTLE")) {
						String content = new Scanner(
								new File(
										"src/main/resources/exampleOfHistoricalVmOutput.ttl"))
								.useDelimiter("\\Z").next();
						slm.putNewGraph(cal.getTime(), content);
					}
				}

				Calendar cal1 = Calendar.getInstance();
				Date middle = cal1.getTime();
				System.out.print(j + "\t"
						+ (middle.getTime() - begin.getTime()) + "\t");

				List<String> l = slm.getRecentGraphNames(begin);

				// System.out.println(l);

				for (String s : l) {
					String responseStr = slm.getGraph(s);
					Model m = ModelFactory.createDefaultModel();
					m.read(new StringReader(responseStr), null, "TURTLE");
					// m.write(System.out);
				}
				Calendar cal2 = Calendar.getInstance();
				Date end = cal2.getTime();
				System.out.println(end.getTime() - middle.getTime());

				j++;

			}
			break;

		case TEST2:

			j = 1;
			while (j<10000) {

				Calendar cal = Calendar.getInstance();
				Date begin = cal.getTime();
				

					cal = Calendar.getInstance();
					if (validateSyntax(
							"src/main/resources/exampleOfHistoricalVmOutput.ttl",
							"TURTLE")) {
						String content = new Scanner(
								new File(
										"src/main/resources/exampleOfHistoricalVmOutput.ttl"))
								.useDelimiter("\\Z").next();
						slm.putNewGraph(cal.getTime(), content);
					}

				Calendar cal1 = Calendar.getInstance();
				Date middle = cal1.getTime();
				System.out.println(j + "\t"
						+ (middle.getTime() - begin.getTime()));

				j++;
			}			
			break;

		}
	}