public ISelectBuilder As(string variableName)
        {
            _selectBuilder.And(mapper =>
            {
                var assignmentExpression = BuildAssignmentExpression(mapper);

                if (assignmentExpression is ISparqlAggregate)
                {
                    return(new SparqlVariable(variableName, (ISparqlAggregate)assignmentExpression));
                }

                return(new SparqlVariable(variableName, (ISparqlExpression)assignmentExpression));
            });
            return(_selectBuilder);
        }
Example #2
0
 public ISelectBuilder As(string variableName)
 {
     _selectBuilder.And(mapper => new SparqlVariable(variableName, BuildAssignmentExpression(mapper)));
     return(_selectBuilder);
 }