public static String GraphToSPARQLString(Graph g){
		ExtendedIterator<Triple> ti = GraphUtil.findAll(g);
		String ret="";
		int i=0;
		while(ti.hasNext()){
			ret+=TripleToSPARQLString(ti.next());
			i++;
		}
		if(i>1){
			ret = "{ "+ret+" }";
		}

		return ret;
	}