public static int[] getStatsTripleList(ArrayList<Triple> triples,
			HashSet<String> blankNodes, HashSet<String> USUs){
		int[] stats=new int[6];
		stats[0]+=triples.size();
		//Iterate over all triples
		for (Triple t:triples){
			//Check subject, predicate and object
			for (int i=0; i<3; i++){
				String resource=t.getByIndex(i);
				char first=resource.charAt(0);
				switch (first){
					//IRI
					case '<':
						stats[1]++;
						//Unique Subject URIs
						if (i==0){
							if (!USUs.contains(resource)){
								USUs.add(resource);
								stats[5]++;
							}
						}
						break;
					//Literal
					case '"':
						stats[2]++;
						break;
					//Blank Node
					case '_':
						stats[3]++;
						//Distinct?
						if (!blankNodes.contains(resource)){
							blankNodes.add(resource);
							stats[4]++;
						}
						break;
					//Others - assume that it is a IRI (prefixed IRI or 'a')
					default:
						stats[1]++;
				}
			}
		}
		return stats;
	}