public SparqlLCase(SparqlExpression value) : base(value.AggregateLevel, value.IsStoreUsed) { if (value.Const != null) { this.Const = value.Const.Change(o => o.ToLower()); } else { this.Operator = result => value.Operator(result).ToLower(); this.TypedOperator = result => value.TypedOperator(result).Change(o => o.ToLower()); } }
public SparqlBnode(SparqlExpression value, RdfQuery11Translator q) : base(value.AggregateLevel, value.IsStoreUsed) { //IsDistinct = value.IsDistinct; //value.SetExprType(ObjectVariantEnum.Str); //SetExprType(ObjectVariantEnum.Iri); var litConst = value.Const; if (litConst != null) { Operator = TypedOperator = result => q.Store.NodeGenerator.CreateBlankNode(value.Const.Content + result.Id); } else { Operator = TypedOperator = result => q.Store.NodeGenerator.CreateBlankNode(value.Operator(result) + result.Id); //OvConstruction = o => q.Store.NodeGenerator.CreateBlankNode((string) o); } }