Package org.openrdf.query.impl

Examples of org.openrdf.query.impl.BindingImpl


  public Binding getBinding(String bindingName) {
    Value value = getValue(bindingName);

    if (value != null) {
      return new BindingImpl(bindingName, value);
    }

    return null;
  }
View Full Code Here


    return new ConvertingIterator<Map.Entry<String, Value>, Binding>(entries) {

      @Override
      protected Binding convert(Map.Entry<String, Value> entry) {
        return new BindingImpl(entry.getKey(), entry.getValue());
      }
    };
  }
View Full Code Here

  }

  private Binding getBinding(Resource bindingNode) {
    Literal name = (Literal)model.filter(bindingNode, VARIABLE, null).objects().iterator().next();
    Value value = model.filter(bindingNode, VALUE, null).objects().iterator().next();
    return new BindingImpl(name.getLabel(), value);
  }
View Full Code Here

  private Binding getBinding(Resource bindingNode)
    throws GraphUtilException
  {
    Literal name = GraphUtil.getUniqueObjectLiteral(graph, bindingNode, VARIABLE);
    Value value = GraphUtil.getUniqueObject(graph, bindingNode, VALUE);
    return new BindingImpl(name.getLabel(), value);
  }
View Full Code Here

  public Binding getBinding(String bindingName) {
    Value value = getValue(bindingName);

    if (value != null) {
      return new BindingImpl(bindingName, value);
    }

    return null;
  }
View Full Code Here

    return new ConvertingIterator<Map.Entry<String, Value>, Binding>(entries) {

      @Override
      protected Binding convert(Map.Entry<String, Value> entry)
      {
        return new BindingImpl(entry.getKey(), entry.getValue());
      }
    };
  }
View Full Code Here

TOP

Related Classes of org.openrdf.query.impl.BindingImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.