private IParameterBindingSet GetParameterBindingSetFromQuery(ITriple t, IQuery q) { IParameterBindingSet qpbs = RootFactory.GetInstance().MakeParameterBindingSet(); IParameterBinding qpb = null; if (q.IsParameter(QueryPart.QuerySubject)) { //compare the bindings with the query+triple subject value qpb = qpbs.MakeParameterBinding(); qpb.Parameter.Value = q.SubjectValue.Value; qpb.Binding.Value = t.Subject.Value; qpbs.Add(qpb); } if (q.IsParameter(QueryPart.QueryPredicate)) { //compare the bindings with the query+triple subject value qpb = qpbs.MakeParameterBinding(); qpb.Parameter.Value = q.PredicateValue.Value; qpb.Binding.Value = t.Predicate.Value; qpbs.Add(qpb); } if (q.IsParameter(QueryPart.QueryObject)) { //compare the bindings with the query+triple subject value qpb = qpbs.MakeParameterBinding(); qpb.Parameter.Value = q.ObjectValue.Value; qpb.Binding.Value = t.Object.Value; qpbs.Add(qpb); } return qpbs; }