本文整理汇总了Java中org.openrdf.query.algebra.evaluation.TripleSource类的典型用法代码示例。如果您正苦于以下问题:Java TripleSource类的具体用法?Java TripleSource怎么用?Java TripleSource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TripleSource类属于org.openrdf.query.algebra.evaluation包,在下文中一共展示了TripleSource类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FederationEvalStrategy
import org.openrdf.query.algebra.evaluation.TripleSource; //导入依赖的package包/类
/**
* Creates a new Evaluation strategy using the supplied source finder.
*
* @param finder the source finder to use.
* @param vf the value factory to use.
*/
public FederationEvalStrategy(final ValueFactory vf) {
// use a dummy triple source
// it can handle only single triple patterns but no basic graph patterns
super(new TripleSource() {
@Override public ValueFactory getValueFactory() {
return vf;
}
// @Override public Cursor<? extends Statement> getStatements(
// Resource subj, URI pred, Value obj, Resource... contexts) throws StoreException {
@Override public CloseableIteration<? extends Statement, QueryEvaluationException> getStatements(
Resource subj, URI pred, Value obj, Resource... contexts) throws QueryEvaluationException {
throw new UnsupportedOperationException("Statement retrieval is not supported in federation");
}
});
}
示例2: KiWiEvaluationStrategy
import org.openrdf.query.algebra.evaluation.TripleSource; //导入依赖的package包/类
public KiWiEvaluationStrategy(TripleSource tripleSource, KiWiConnection connection, KiWiValueFactory valueFactory) {
super(tripleSource);
this.connection = connection;
this.valueFactory = valueFactory;
// interruptible queries run in a separate thread
this.executorService = Executors.newCachedThreadPool();
}
示例3: RangeEvaluationStrategy
import org.openrdf.query.algebra.evaluation.TripleSource; //导入依赖的package包/类
public RangeEvaluationStrategy(TripleSource tripleSource, Dataset dataset) {
super(tripleSource, dataset);
}