public SparqlQueryContext GetSparqlQuery(bool useDescribe) { if (_isInstanceQuery) { return(new SparqlQueryContext(_instanceUri, _typeUri)); } return (new SparqlQueryContext( useDescribe && !_queryBuilder.IsDistinct && !_queryBuilder.IsOrdered ? _queryBuilder.GetSparqlDescribeString() : _queryBuilder.GetSparqlString(), _queryBuilder.AnonymousMembersMap, _queryBuilder.Constructor, _queryBuilder.ConstructorArgs, _queryBuilder.MembersMap, _queryBuilder.MemberInitExpression)); }
public SparqlLinqQueryContext GetSparqlQuery(bool useConstruct) { if (_isInstanceQuery) { return new SparqlLinqQueryContext(_instanceUri, _typeUri); } return new SparqlLinqQueryContext( useConstruct && !(_queryBuilder.SelectVariables.Count() > 1 && _queryBuilder.IsOrdered) ? _queryBuilder.GetSparqlConstructString() : _queryBuilder.GetSparqlString(), _queryBuilder.AnonymousMembersMap, _queryBuilder.Constructor, _queryBuilder.ConstructorArgs, _queryBuilder.MembersMap, _queryBuilder.MemberInitExpression, _queryBuilder.GetOrdering()); }