openllet.query.sparqldl.model.QueryImpl.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(91)

本文整理了Java中openllet.query.sparqldl.model.QueryImpl.<init>方法的一些代码示例,展示了QueryImpl.<init>的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryImpl.<init>方法的具体详情如下:
包路径:openllet.query.sparqldl.model.QueryImpl
类名称:QueryImpl
方法名:<init>

QueryImpl.<init>介绍

暂无

代码示例

代码示例来源:origin: com.github.galigator.openllet/openllet-owlapi

public void reset()
{
  _query = new QueryImpl(_reasoner.getKB(), false);
}

代码示例来源:origin: Galigator/openllet

public void reset()
{
  _query = new QueryImpl(_reasoner.getKB(), false);
}

代码示例来源:origin: Galigator/openllet

public void reset()
{
  _query = new QueryImpl(_reasoner.getKB(), false);
}

代码示例来源:origin: com.github.galigator.openllet/openllet-query

/**
 * {@inheritDoc}
 */
@Override
public Query reorder(final int[] ordering)
{
  if (ordering.length != _allAtoms.size())
    throw new InternalReasonerException("Ordering permutation must be of the same size as the query : " + ordering.length);
  final QueryImpl newQuery = new QueryImpl(this);
  // shallow copies for faster processing
  for (final int element : ordering)
    newQuery._allAtoms.add(_allAtoms.get(element));
  newQuery._allVars = _allVars;
  newQuery._distVars = _distVars;
  newQuery._individualsAndLiterals = _individualsAndLiterals;
  newQuery._resultVars = _resultVars;
  newQuery._ground = _ground;
  return newQuery;
}

代码示例来源:origin: Galigator/openllet

/**
 * {@inheritDoc}
 */
@Override
public Query reorder(final int[] ordering)
{
  if (ordering.length != _allAtoms.size())
    throw new InternalReasonerException("Ordering permutation must be of the same size as the query : " + ordering.length);
  final QueryImpl newQuery = new QueryImpl(this);
  // shallow copies for faster processing
  for (final int element : ordering)
    newQuery._allAtoms.add(_allAtoms.get(element));
  newQuery._allVars = _allVars;
  newQuery._distVars = _distVars;
  newQuery._individualsAndLiterals = _individualsAndLiterals;
  newQuery._resultVars = _resultVars;
  newQuery._ground = _ground;
  return newQuery;
}

代码示例来源:origin: Galigator/openllet

/**
 * {@inheritDoc}
 */
@Override
public Query reorder(final int[] ordering)
{
  if (ordering.length != _allAtoms.size())
    throw new InternalReasonerException("Ordering permutation must be of the same size as the query : " + ordering.length);
  final QueryImpl newQuery = new QueryImpl(this);
  // shallow copies for faster processing
  for (final int element : ordering)
    newQuery._allAtoms.add(_allAtoms.get(element));
  newQuery._allVars = _allVars;
  newQuery._distVars = _distVars;
  newQuery._individualsAndLiterals = _individualsAndLiterals;
  newQuery._resultVars = _resultVars;
  newQuery._ground = _ground;
  return newQuery;
}

代码示例来源:origin: Galigator/openllet

private Query query(final QueryAtom... atoms)
{
  final Query q = new QueryImpl(_kb, true);
  for (final QueryAtom atom : atoms)
    q.add(atom);
  return q;
}

代码示例来源:origin: Galigator/openllet

/**
 * {@inheritDoc}
 */
@Override
public Query apply(final ResultBinding binding)
{
  final List<QueryAtom> atoms = new ArrayList<>();
  for (final QueryAtom atom : getAtoms())
    atoms.add(atom.apply(binding));
  final QueryImpl query = new QueryImpl(this);
  query._resultVars.addAll(_resultVars);
  query._resultVars.removeAll(binding.getAllVariables());
  for (final VarType type : VarType.values())
    for (final ATermAppl atom : getDistVarsForType(type))
      if (!binding.isBound(atom))
        query.addDistVar(atom, type);
  for (final QueryAtom atom : atoms)
    query.add(atom);
  return query;
}

代码示例来源:origin: com.github.galigator.openllet/openllet-query

/**
 * {@inheritDoc}
 */
@Override
public Query apply(final ResultBinding binding)
{
  final List<QueryAtom> atoms = new ArrayList<>();
  for (final QueryAtom atom : getAtoms())
    atoms.add(atom.apply(binding));
  final QueryImpl query = new QueryImpl(this);
  query._resultVars.addAll(_resultVars);
  query._resultVars.removeAll(binding.getAllVariables());
  for (final VarType type : VarType.values())
    for (final ATermAppl atom : getDistVarsForType(type))
      if (!binding.isBound(atom))
        query.addDistVar(atom, type);
  for (final QueryAtom atom : atoms)
    query.add(atom);
  return query;
}

代码示例来源:origin: Galigator/openllet

/**
 * {@inheritDoc}
 */
@Override
public Query apply(final ResultBinding binding)
{
  final List<QueryAtom> atoms = new ArrayList<>();
  for (final QueryAtom atom : getAtoms())
    atoms.add(atom.apply(binding));
  final QueryImpl query = new QueryImpl(this);
  query._resultVars.addAll(_resultVars);
  query._resultVars.removeAll(binding.getAllVariables());
  for (final VarType type : VarType.values())
    for (final ATermAppl atom : getDistVarsForType(type))
      if (!binding.isBound(atom))
        query.addDistVar(atom, type);
  for (final QueryAtom atom : atoms)
    query.add(atom);
  return query;
}

代码示例来源:origin: Galigator/openllet

public CoreNewImpl(final Collection<QueryAtom> atoms, final Collection<ATermAppl> uv, final KnowledgeBase kb)
  _query = new QueryImpl(kb, false);

代码示例来源:origin: com.github.galigator.openllet/openllet-query

public CoreNewImpl(final Collection<QueryAtom> atoms, final Collection<ATermAppl> uv, final KnowledgeBase kb)
  _query = new QueryImpl(kb, false);

代码示例来源:origin: Galigator/openllet

groundQuery = new QueryImpl(query);
newQuery = groundQuery;
if (newQuery == null)
  newQuery = new QueryImpl(query);
  queries.put(representative, newQuery);

代码示例来源:origin: Galigator/openllet

public CoreNewImpl(final Collection<QueryAtom> atoms, final Collection<ATermAppl> uv, final KnowledgeBase kb)
  _query = new QueryImpl(kb, false);

代码示例来源:origin: com.github.galigator.openllet/openllet-query

groundQuery = new QueryImpl(query);
newQuery = groundQuery;
if (newQuery == null)
  newQuery = new QueryImpl(query);
  queries.put(representative, newQuery);

代码示例来源:origin: Galigator/openllet

groundQuery = new QueryImpl(query);
newQuery = groundQuery;
if (newQuery == null)
  newQuery = new QueryImpl(query);
  queries.put(representative, newQuery);

代码示例来源:origin: com.github.galigator.openllet/openllet-query

private final void partitionQuery(final Query query)
  schemaQuery = new QueryImpl(query);
  aboxQuery = new QueryImpl(query);

代码示例来源:origin: Galigator/openllet

private final void partitionQuery(final Query query)
  schemaQuery = new QueryImpl(query);
  aboxQuery = new QueryImpl(query);

代码示例来源:origin: Galigator/openllet

private final void partitionQuery(final Query query)
  schemaQuery = new QueryImpl(query);
  aboxQuery = new QueryImpl(query);

代码示例来源:origin: Galigator/openllet

protected Query query(final ATermAppl[] vars, final QueryAtom[] atoms)
{
  final Query q = new QueryImpl(_kb, true);
  for (final ATermAppl var : vars)
    q.addResultVar(var);
  for (final QueryAtom atom : atoms)
    q.add(atom);
  for (final ATermAppl var : q.getUndistVars())
    q.addDistVar(var, VarType.INDIVIDUAL);
  return q;
}

相关文章