org.eclipse.rdf4j.query.Binding.getName()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(107)

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

Binding.getName介绍

[英]Gets the name of the binding (e.g. the variable name).
[中]获取绑定的名称(例如变量名)。

代码示例

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

/**
 * Adds a binding to the binding set.
 * 
 * @param binding
 *        The binding to add to the binding set.
 */
public void addBinding(Binding binding) {
  bindings.put(binding.getName(), binding);
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-query

/**
 * Adds a binding to the binding set.
 * 
 * @param binding
 *        The binding to add to the binding set.
 */
public void addBinding(Binding binding) {
  bindings.put(binding.getName(), binding);
}

代码示例来源:origin: eclipse/rdf4j

/**
 * Adds a binding to the binding set.
 * 
 * @param binding
 *        The binding to add to the binding set.
 */
public void addBinding(Binding binding) {
  bindings.put(binding.getName(), binding);
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

@Override
public boolean equals(Object o) {
  if (o instanceof Binding) {
    Binding other = (Binding)o;
    return name.equals(other.getName()) && value.equals(other.getValue());
  }
  return false;
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

@Override
public final int hashCode() {
  int hashCode = 0;
  for (Binding binding : this) {
    hashCode ^= binding.getName().hashCode() ^ binding.getValue().hashCode();
  }
  return hashCode;
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-query

@Override
public boolean equals(Object o) {
  if (o instanceof Binding) {
    Binding other = (Binding)o;
    return name.equals(other.getName()) && value.equals(other.getValue());
  }
  return false;
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-query

@Override
public final int hashCode() {
  int hashCode = 0;
  for (Binding binding : this) {
    hashCode ^= binding.getName().hashCode() ^ binding.getValue().hashCode();
  }
  return hashCode;
}

代码示例来源:origin: eclipse/rdf4j

@Override
public final int hashCode() {
  int hashCode = 0;
  for (Binding binding : this) {
    hashCode ^= binding.getName().hashCode() ^ binding.getValue().hashCode();
  }
  return hashCode;
}

代码示例来源:origin: eclipse/rdf4j

@Override
public boolean equals(Object o) {
  if (o instanceof Binding) {
    Binding other = (Binding)o;
    return name.equals(other.getName()) && value.equals(other.getValue());
  }
  return false;
}

代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-queryalgebra-evaluation

/**
 * Adds a new binding to the binding set. The binding's name must not already be part of this binding set.
 * 
 * @param binding
 *        The binding to add this this BindingSet.
 */
public void addBinding(Binding binding) {
  addBinding(binding.getName(), binding.getValue());
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

/**
 * Adds a new binding to the binding set. The binding's name must not already be part of this binding set.
 * 
 * @param binding
 *        The binding to add this this BindingSet.
 */
public void addBinding(Binding binding) {
  addBinding(binding.getName(), binding.getValue());
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation

/**
 * Adds a new binding to the binding set. The binding's name must not already be part of this binding set.
 * 
 * @param binding
 *        The binding to add this this BindingSet.
 */
public void addBinding(Binding binding) {
  addBinding(binding.getName(), binding.getValue());
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-repository-sparql

/**
 * Adds a new binding to the binding set. The binding's name must not already be part of this binding set.
 * 
 * @param binding
 *        The binding to add this this BindingSet.
 */
public void addBinding(Binding binding) {
  addBinding(binding.getName(), binding.getValue());
}

代码示例来源:origin: eclipse/rdf4j

/**
 * Adds a new binding to the binding set. The binding's name must not already be part of this binding set.
 * 
 * @param binding
 *        The binding to add this this BindingSet.
 */
public void addBinding(Binding binding) {
  addBinding(binding.getName(), binding.getValue());
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation

public void setBinding(Binding binding) {
  setBinding(binding.getName(), binding.getValue());
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-repository-sparql

public void setBinding(Binding binding) {
  setBinding(binding.getName(), binding.getValue());
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

public void setBinding(Binding binding) {
  setBinding(binding.getName(), binding.getValue());
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-sail-spin

private static void addBindings(Resource subj, Resource opResource, ParsedOperation parsedOp,
    Operation op, TripleSource tripleSource, SpinParser parser)
  throws OpenRDFException
{
  if (!parser.isThisUnbound(opResource, tripleSource)) {
    op.setBinding(THIS_VAR, subj);
  }
  if (parsedOp instanceof ParsedTemplate) {
    for (Binding b : ((ParsedTemplate)parsedOp).getBindings()) {
      op.setBinding(b.getName(), b.getValue());
    }
  }
}

代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-sail-spin

private static void addBindings(Resource subj, Resource opResource, ParsedOperation parsedOp,
    Operation op, TripleSource tripleSource, SpinParser parser)
  throws OpenRDFException
{
  if (!parser.isThisUnbound(opResource, tripleSource)) {
    op.setBinding(THIS_VAR, subj);
  }
  if (parsedOp instanceof ParsedTemplate) {
    for (Binding b : ((ParsedTemplate)parsedOp).getBindings()) {
      op.setBinding(b.getName(), b.getValue());
    }
  }
}

代码示例来源:origin: apache/incubator-rya

@Override
public void write(final Kryo kryo, final Output output, final VisibilityBindingSet visBindingSet) {
  output.writeString(visBindingSet.getVisibility());
  // write the number count for the reader.
  output.writeInt(visBindingSet.size());
  for (final Binding binding : visBindingSet) {
    output.writeString(binding.getName());
    final RyaType ryaValue = RdfToRyaConversions.convertValue(binding.getValue());
    final String valueString = ryaValue.getData();
    final IRI type = ryaValue.getDataType();
    output.writeString(valueString);
    output.writeString(type.toString());
  }
}

相关文章