public static void main(String[] args) {

		Statistics config = new Statistics("http://152.78.65.127:8080/openrdf-sesame/repositories/voidstore");
		ServiceRegistry sr = config.getServiceRegistry();
		List<RemoteService> services = sr.getAvailableServices();
		for(RemoteService rs:services) {
			processService(rs);
		}
		
		Model m = ModelFactory.createDefaultModel();
		String ns = "http://rdfs.org/ns/void#";
		m.setNsPrefix("void", ns);
		Resource root = m.createResource();
		Property triplenum = m.createProperty(ns,"triples");
		m.add(root,triplenum,String.valueOf(CostModel.TotalTriples));
		m.add(root,m.createProperty(ns,"properties"),String.valueOf(predct_occurrence.size()));
		m.add(root,m.createProperty(ns,"entities"),String.valueOf(CostModel.TotalEntities));
		
		Property in = m.createProperty(ns,"in");
		Property disSub = m.createProperty(ns,"distinctSubjects");
		Property disObj = m.createProperty(ns,"distinctObjects");
		Set<String> predicates = predct_occurrence.keySet();
		for(String pre:predicates) {
			Resource prdct = m.createResource(pre);
			List<RemoteService> srvs = predct_service.get(pre);
			for(RemoteService rs:srvs) {
				m.add(prdct,in,m.createResource(rs.getUrl()));
			}
			m.add(prdct,triplenum,predct_occurrence.get(pre).toString());
			m.add(prdct,disSub,predct_sub.get(pre).toString());
			m.add(prdct,disObj,predct_occurrence.get(pre).toString());
		}
		
		RDFWriter writer = m.getWriter("TURTLE");
		
		try {
			FileOutputStream os = new FileOutputStream("aggre.ttl");
			writer.write(m, os, null);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		
		
	}