本文整理了Java中openllet.query.sparqldl.model.Query.rollUpTo
方法的一些代码示例,展示了Query.rollUpTo
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.rollUpTo
方法的具体详情如下:
包路径:openllet.query.sparqldl.model.Query
类名称:Query
方法名:rollUpTo
[英]Rolls up the query to the given variable.
[中]将查询上卷到给定变量。
代码示例来源:origin: Galigator/openllet
private Map<ATermAppl, Boolean> fastPrune(final Query q, final ATermAppl var)
{
final ATermAppl c = q.rollUpTo(var, Collections.<ATermAppl> emptySet(), STOP_ROLLING_ON_CONSTANTS);
if (_logger.isLoggable(Level.FINER))
_logger.finer(var + " rolled to " + c);
final CandidateSet<ATermAppl> set = _kb.getABox().getObviousInstances(c);
final Map<ATermAppl, Boolean> map = new HashMap<>();
for (final Object o : set.getKnowns())
map.put((ATermAppl) o, true);
for (final Object o : set.getUnknowns())
map.put((ATermAppl) o, false);
return map;
}
代码示例来源:origin: Galigator/openllet
private Map<ATermAppl, Boolean> fastPrune(final Query q, final ATermAppl var)
{
final ATermAppl c = q.rollUpTo(var, Collections.<ATermAppl> emptySet(), STOP_ROLLING_ON_CONSTANTS);
if (_logger.isLoggable(Level.FINER))
_logger.finer(var + " rolled to " + c);
final CandidateSet<ATermAppl> set = _kb.getABox().getObviousInstances(c);
final Map<ATermAppl, Boolean> map = new HashMap<>();
for (final Object o : set.getKnowns())
map.put((ATermAppl) o, true);
for (final Object o : set.getUnknowns())
map.put((ATermAppl) o, false);
return map;
}
代码示例来源:origin: com.github.galigator.openllet/openllet-query
private Map<ATermAppl, Boolean> fastPrune(final Query q, final ATermAppl var)
{
final ATermAppl c = q.rollUpTo(var, Collections.<ATermAppl> emptySet(), STOP_ROLLING_ON_CONSTANTS);
if (_logger.isLoggable(Level.FINER))
_logger.finer(var + " rolled to " + c);
final CandidateSet<ATermAppl> set = _kb.getABox().getObviousInstances(c);
final Map<ATermAppl, Boolean> map = new HashMap<>();
for (final Object o : set.getKnowns())
map.put((ATermAppl) o, true);
for (final Object o : set.getUnknowns())
map.put((ATermAppl) o, false);
return map;
}
代码示例来源:origin: com.github.galigator.openllet/openllet-query
final ATermAppl rolledUpClass = q.rollUpTo(currVar, Collections.<ATermAppl> emptySet(), STOP_ROLLING_ON_CONSTANTS);
代码示例来源:origin: Galigator/openllet
final ATermAppl clazz = q.rollUpTo(var, empty, false);
代码示例来源:origin: Galigator/openllet
final ATermAppl rolledUpClass = q.rollUpTo(currVar, Collections.<ATermAppl> emptySet(), STOP_ROLLING_ON_CONSTANTS);
代码示例来源:origin: Galigator/openllet
final ATermAppl rolledUpClass = q.rollUpTo(currVar, Collections.<ATermAppl> emptySet(), STOP_ROLLING_ON_CONSTANTS);
代码示例来源:origin: com.github.galigator.openllet/openllet-query
final ATermAppl clazz = q.rollUpTo(var, empty, false);
代码示例来源:origin: com.github.galigator.openllet/openllet-query
final ATermAppl rolledUpClass = q.rollUpTo(currVar, Collections.emptySet(), false);
代码示例来源:origin: Galigator/openllet
final ATermAppl clazz = q.rollUpTo(var, empty, false);
代码示例来源:origin: Galigator/openllet
final ATermAppl rolledUpClass = q.rollUpTo(currVar, Collections.emptySet(), false);
代码示例来源:origin: Galigator/openllet
final ATermAppl rolledUpClass = q.rollUpTo(currVar, Collections.emptySet(), false);
代码示例来源:origin: Galigator/openllet
final ATermAppl rolledUpClass = q.rollUpTo(currVar, Collections.emptySet(), false);
代码示例来源:origin: com.github.galigator.openllet/openllet-query
final ATermAppl rolledUpClass = q.rollUpTo(currVar, Collections.emptySet(), false);
代码示例来源:origin: Galigator/openllet
final ATermAppl rolledUpClass = q.rollUpTo(currVar, Collections.emptySet(), false);
代码示例来源:origin: Galigator/openllet
final ATermAppl testClass = query.rollUpTo(testInd, Collections.<ATermAppl> emptySet(), false);
final ATermAppl testClass = query.rollUpTo(testVar, Collections.<ATermAppl> emptySet(), false);
代码示例来源:origin: Galigator/openllet
final ATermAppl testClass = query.rollUpTo(testInd, Collections.<ATermAppl> emptySet(), false);
final ATermAppl testClass = query.rollUpTo(testVar, Collections.<ATermAppl> emptySet(), false);
代码示例来源:origin: com.github.galigator.openllet/openllet-query
final ATermAppl testClass = query.rollUpTo(testInd, Collections.<ATermAppl> emptySet(), false);
final ATermAppl testClass = query.rollUpTo(testVar, Collections.<ATermAppl> emptySet(), false);
代码示例来源:origin: com.github.galigator.openllet/openllet-query
final ATermAppl clazz = core.getQuery().rollUpTo(c, Collections.<ATermAppl> emptySet(), STOP_ROLLING_ON_CONSTANTS);
final ATermAppl c = core.getQuery().rollUpTo(var, Collections.<ATermAppl> emptySet(), STOP_ROLLING_ON_CONSTANTS);
final Collection<ATermAppl> instances = _kb.getInstances(c);
代码示例来源:origin: Galigator/openllet
final ATermAppl clazz = core.getQuery().rollUpTo(c, Collections.<ATermAppl> emptySet(), STOP_ROLLING_ON_CONSTANTS);
final ATermAppl c = core.getQuery().rollUpTo(var, Collections.<ATermAppl> emptySet(), STOP_ROLLING_ON_CONSTANTS);
final Collection<ATermAppl> instances = _kb.getInstances(c);
内容来源于网络,如有侵权,请联系作者删除!