Exemple #1
0
        /// <summary>
        /// Creates a new CONSTRUCT query
        /// </summary>
        public static IQueryBuilder Construct(Action <IDescribeGraphPatternBuilder> buildConstructTemplate)
        {
            if (buildConstructTemplate == null)
            {
                return(Construct());
            }

            var queryBuilder = new QueryBuilder(SparqlQueryType.Construct);
            DescribeGraphPatternBuilder graphPatternBuilder = new DescribeGraphPatternBuilder(new GraphPatternBuilder());

            buildConstructTemplate(graphPatternBuilder);
            return(queryBuilder.Construct(graphPatternBuilder));
        }
Exemple #2
0
 private IQueryBuilder Construct(DescribeGraphPatternBuilder graphPatternBuilder)
 {
     _constructGraphPatternBuilder = graphPatternBuilder;
     return(this);
 }