当前位置: 首页>>代码示例>>Java>>正文


Java TripleSource类代码示例

本文整理汇总了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");
			}
		});
	}
 
开发者ID:goerlitz,项目名称:rdffederator,代码行数:23,代码来源:FederationEvalStrategy.java

示例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();
}
 
开发者ID:apache,项目名称:marmotta,代码行数:9,代码来源:KiWiEvaluationStrategy.java

示例3: RangeEvaluationStrategy

import org.openrdf.query.algebra.evaluation.TripleSource; //导入依赖的package包/类
public RangeEvaluationStrategy(TripleSource tripleSource, Dataset dataset) {
	super(tripleSource, dataset);
}
 
开发者ID:cumulusrdf,项目名称:cumulusrdf,代码行数:4,代码来源:RangeEvaluationStrategy.java


注:本文中的org.openrdf.query.algebra.evaluation.TripleSource类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。