本文整理汇总了Java中org.eclipse.rdf4j.sail.inferencer.fc.ForwardChainingRDFSInferencer类的典型用法代码示例。如果您正苦于以下问题:Java ForwardChainingRDFSInferencer类的具体用法?Java ForwardChainingRDFSInferencer怎么用?Java ForwardChainingRDFSInferencer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ForwardChainingRDFSInferencer类属于org.eclipse.rdf4j.sail.inferencer.fc包,在下文中一共展示了ForwardChainingRDFSInferencer类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import org.eclipse.rdf4j.sail.inferencer.fc.ForwardChainingRDFSInferencer; //导入依赖的package包/类
@Before
public final void setUp() throws Exception {
before();
this.sail = createSail();
sail.initialize();
if (sail instanceof NotifyingSail) {
try (SailConnection sc = getConnection()) {
if (sc instanceof InferencerConnection) {
inferencer = new ForwardChainingRDFSInferencer((NotifyingSail) sail);
}
}
}
}
示例2: createInMemoryRepository
import org.eclipse.rdf4j.sail.inferencer.fc.ForwardChainingRDFSInferencer; //导入依赖的package包/类
/**
* Creates a local in-memory Sesame repository which is disposed when the VM shuts down.
*/
private Repository createInMemoryRepository(Configuration configuration) {
LOG.trace("Creating local in-memory repository.");
final MemoryStore ms = new MemoryStore();
if (configuration.is(SesameConfigParam.USE_INFERENCE)) {
return new SailRepository(new ForwardChainingRDFSInferencer(ms));
} else {
return new SailRepository(ms);
}
}