예제 #1
0
 /// <summary>
 /// Expands the graph expression with the specified property and terminal object, the return the terminal object
 /// The new graph expression will bind a given context if and only if both the old expression and the addition bind
 /// </summary>
 /// <param name="property">property along which to expand</param>
 /// <param name="object">object required at the end of the property, can be left null to insert a variable</param>
 /// <returns>a queryable graph</returns>
 public IQueryableGraph Select(Resource property, Term @object = null)
 {
     return(new QueryableGraph(GraphProvider, GraphExpression.Select(property, @object)));
 }
예제 #2
0
 /// <summary>
 /// Expands the graph expression with the specified property and terminal query, then return the terminal query
 /// The new graph expression will bind a given context if and only if both the old expression and the addition bind
 /// </summary>
 /// <param name="property">property along which to expand</param>
 /// <param name="query">queryable graph required at the end of the property</param>
 /// <returns>a queryable graph</returns>
 public IQueryableGraph Select(Resource property, IQueryableGraph query)
 {
     return(new QueryableGraph(GraphProvider, GraphExpression.Select(property, query.GraphExpression)));
 }