public static void main(String[] args) {

		Graphium g = GraphiumLoader.open(args[0]);

		Vertex nut = g.getVertexURI("http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugcategory/micronutrient");

		GraphIterator<Edge> it1, it2, it3;
		it1 = nut.getEdgesIn();
		while (it1.hasNext()) {
			Vertex drug = it1.next().getStart();
			it2 = drug.getEdgesOut();
			while (it2.hasNext()) {
				Edge e = it2.next();
				Vertex dn = e.getEnd();
				if (dn.isLiteral()) continue;
				System.out.println(drug.getURI() + "\t<a>\t" + dn.getURI() + " .");
				if (e.getURI().equals("http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/target")) {
					it3 = dn.getEdgesOut();
					while (it3.hasNext()) {
						Vertex a = it3.next().getEnd();
						if (a.isLiteral()) continue;
						System.out.println(dn.getURI() + "\t<a>\t" + a.getURI() + " .");
					}
					it3.close();
				}
			}
			it2.close();
		}
		it1.close();

		g.close();
	}