예제 #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));
        }
예제 #2
0
 private IQueryBuilder Construct(DescribeGraphPatternBuilder graphPatternBuilder)
 {
     _constructGraphPatternBuilder = graphPatternBuilder;
     return(this);
 }