// Path: src/de/uni_koblenz/west/splendid/index/Graph.java
// public class Graph {
// 	
// 	String name;
// 	
// 	public Graph(String name) {
// 		this.name = name;
// 	}
// 	
// 	@Override
// 	public boolean equals(Object object) {
// 		if (object instanceof Graph)
// 			return this.name.equals(((Graph) object).name);
// 		return false;
// 	}
// 	
// 	@Override
// 	public int hashCode() {
// 		return this.name.hashCode();
// 	}
// 	
// 	public String toString() {
// 		return this.name;
// 	}
// 	
// 	public String getNamespaceURL() {
// 		// TODO: implement proper hamespace handling
// 		return this.name.replaceFirst("http://lodse.west.uni-koblenz.de:8080/openrdf-sesame/repositories/", "west:");
// 	}
// 
// }
// 
// Path: src/de/uni_koblenz/west/splendid/vocabulary/VOID2.java
// public enum VOID2 {
// 	
// 	// concepts
// 	Dataset,
// 	Linkset,
// 	EquiWidthHist,
// 	EuqiDepthHist,
// 	
// 	// predicates
// 	vocabulary,
// 	sparqlEndpoint,
// 	distinctSubjects,
// 	distinctObjects,
// 	triples,
// 	classes,
// 	entities,
// 	properties,
// 	classPartition,
// 	clazz("class"),
// 	propertyPartition,
// 	property,
// 	target,
// 	linkPredicate,
// 	
// 	histogram,
// 	minValue,
// 	maxValue,
// 	bucketLoad,
// 	buckets,
// 	bucketDef;
// 	
// 	public static final String NAMESPACE = "http://rdfs.org/ns/void#";
// 	
// 	private final String uri;
// 	
// 	private VOID2(String name) {
// 		this.uri = NAMESPACE + name;
// 	}
// 	
// 	private VOID2() {
// 		this.uri = NAMESPACE + super.toString();
// 	}
// 	
// 	public String toString() {
// 		return this.uri;
// 	}
// 	
// }


import static org.openrdf.query.QueryLanguage.SPARQL;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.openrdf.model.Resource;
import org.openrdf.model.Statement;
import org.openrdf.model.URI;
import org.openrdf.model.ValueFactory;
import org.openrdf.model.impl.ValueFactoryImpl;
import org.openrdf.model.vocabulary.RDF;
import org.openrdf.query.MalformedQueryException;
import org.openrdf.query.QueryEvaluationException;
import org.openrdf.query.TupleQuery;
import org.openrdf.query.TupleQueryResult;
import org.openrdf.repository.Repository;
import org.openrdf.repository.RepositoryConnection;
import org.openrdf.repository.RepositoryException;
import org.openrdf.repository.RepositoryResult;
import org.openrdf.repository.sail.SailRepository;
import org.openrdf.rio.RDFFormat;
import org.openrdf.rio.RDFParseException;
import org.openrdf.rio.Rio;
import org.openrdf.sail.memory.MemoryStore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.uni_koblenz.west.splendid.index.Graph;
import de.uni_koblenz.west.splendid.vocabulary.VOID2;
/*
 * This file is part of RDF Federator.
 * Copyright 2011 Olaf Goerlitz
 * 
 * RDF Federator is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * RDF Federator is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with RDF Federator.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * RDF Federator uses libraries from the OpenRDF Sesame Project licensed 
 * under the Aduna BSD-style license. 
 */
package de.uni_koblenz.west.splendid.statistics;





/**
 * voiD-based statistics implementation.
 * 
 * @author Olaf Goerlitz
 */
public class VoidStatistics implements RDFStatistics {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(VoidStatistics.class);
	
	private static final String USER_DIR = System.getProperty("user.dir") + File.separator;
	
// Path: src/de/uni_koblenz/west/splendid/index/Graph.java
// public class Graph {
// 	
// 	String name;
// 	
// 	public Graph(String name) {
// 		this.name = name;
// 	}
// 	
// 	@Override
// 	public boolean equals(Object object) {
// 		if (object instanceof Graph)
// 			return this.name.equals(((Graph) object).name);
// 		return false;
// 	}
// 	
// 	@Override
// 	public int hashCode() {
// 		return this.name.hashCode();
// 	}
// 	
// 	public String toString() {
// 		return this.name;
// 	}
// 	
// 	public String getNamespaceURL() {
// 		// TODO: implement proper hamespace handling
// 		return this.name.replaceFirst("http://lodse.west.uni-koblenz.de:8080/openrdf-sesame/repositories/", "west:");
// 	}
// 
// }
// 
// Path: src/de/uni_koblenz/west/splendid/vocabulary/VOID2.java
// public enum VOID2 {
// 	
// 	// concepts
// 	Dataset,
// 	Linkset,
// 	EquiWidthHist,
// 	EuqiDepthHist,
// 	
// 	// predicates
// 	vocabulary,
// 	sparqlEndpoint,
// 	distinctSubjects,
// 	distinctObjects,
// 	triples,
// 	classes,
// 	entities,
// 	properties,
// 	classPartition,
// 	clazz("class"),
// 	propertyPartition,
// 	property,
// 	target,
// 	linkPredicate,
// 	
// 	histogram,
// 	minValue,
// 	maxValue,
// 	bucketLoad,
// 	buckets,
// 	bucketDef;
// 	
// 	public static final String NAMESPACE = "http://rdfs.org/ns/void#";
// 	
// 	private final String uri;
// 	
// 	private VOID2(String name) {
// 		this.uri = NAMESPACE + name;
// 	}
// 	
// 	private VOID2() {
// 		this.uri = NAMESPACE + super.toString();
// 	}
// 	
// 	public String toString() {
// 		return this.uri;
// 	}
// 	
// }


// Path: src/de/uni_koblenz/west/splendid/statistics/VoidStatistics.java
import static org.openrdf.query.QueryLanguage.SPARQL;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.openrdf.model.Resource;
import org.openrdf.model.Statement;
import org.openrdf.model.URI;
import org.openrdf.model.ValueFactory;
import org.openrdf.model.impl.ValueFactoryImpl;
import org.openrdf.model.vocabulary.RDF;
import org.openrdf.query.MalformedQueryException;
import org.openrdf.query.QueryEvaluationException;
import org.openrdf.query.TupleQuery;
import org.openrdf.query.TupleQueryResult;
import org.openrdf.repository.Repository;
import org.openrdf.repository.RepositoryConnection;
import org.openrdf.repository.RepositoryException;
import org.openrdf.repository.RepositoryResult;
import org.openrdf.repository.sail.SailRepository;
import org.openrdf.rio.RDFFormat;
import org.openrdf.rio.RDFParseException;
import org.openrdf.rio.Rio;
import org.openrdf.sail.memory.MemoryStore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.uni_koblenz.west.splendid.index.Graph;
import de.uni_koblenz.west.splendid.vocabulary.VOID2;

/*
 * This file is part of RDF Federator.
 * Copyright 2011 Olaf Goerlitz
 * 
 * RDF Federator is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * RDF Federator is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with RDF Federator.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * RDF Federator uses libraries from the OpenRDF Sesame Project licensed 
 * under the Aduna BSD-style license. 
 */
package de.uni_koblenz.west.splendid.statistics;





/**
 * voiD-based statistics implementation.
 * 
 * @author Olaf Goerlitz
 */
public class VoidStatistics implements RDFStatistics {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(VoidStatistics.class);
	
	private static final String USER_DIR = System.getProperty("user.dir") + File.separator;
	
	private static final String VOID_PREFIX = "PREFIX void: <" + VOID2.NAMESPACE + ">\n";