// 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:");
// 	}
// 
// }


import org.openrdf.model.Value;
import org.openrdf.query.algebra.StatementPattern;
import de.uni_koblenz.west.splendid.index.Graph;
import java.util.Set;
/*
 * 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.sources;




/**
 * Source selection for the supplied basic graph patterns.
 * Pattern subsets are built for the same set of matched sources. 
 * 
 * @author Olaf Goerlitz
 */
public class IndexSelector extends SourceSelectorBase {
	
	private boolean useTypeStats = true; 
	
	/**
	 * Creates a source finder using the supplied statistics.
	 * 
	 * @param stats the statistics to use.
	 */
	public IndexSelector(boolean useTypeStats) {
// 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/sources/IndexSelector.java
import org.openrdf.model.Value;
import org.openrdf.query.algebra.StatementPattern;
import de.uni_koblenz.west.splendid.index.Graph;
import java.util.Set;

/*
 * 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.sources;




/**
 * Source selection for the supplied basic graph patterns.
 * Pattern subsets are built for the same set of matched sources. 
 * 
 * @author Olaf Goerlitz
 */
public class IndexSelector extends SourceSelectorBase {
	
	private boolean useTypeStats = true; 
	
	/**
	 * Creates a source finder using the supplied statistics.
	 * 
	 * @param stats the statistics to use.
	 */
	public IndexSelector(boolean useTypeStats) {
		this.useTypeStats = useTypeStats;