/// <summary> /// Expands the graph expression with the specified property and 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 Require(Resource property, IQueryableGraph query) { return(new QueryableGraph(GraphProvider, GraphExpression.Join(property, query.GraphExpression))); }
/// <summary> /// Returns the union of two queries, the graph expressions are left unaltered. /// </summary> /// <param name="query"></param> /// <returns>a queryable graph</returns> public IQueryableGraph Union(IQueryableGraph query) { return(new QueryableGraph(GraphProvider, GraphExpression.Union(query.GraphExpression))); }
/// <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))); }
public SearchedGraphBuiltContext(IGraphDescriptor graphDescriptor, IMindSettings settings, IEnumerable<int> nodeIds, IQueryableGraph<int> idGraph) : base(graphDescriptor, settings, idGraph) { NodeIds = nodeIds; }
protected MindEventContext(IGraphDescriptor graphDescriptor, IMindSettings settings, IQueryableGraph<int> idGraph) { GraphDescriptor = graphDescriptor; Settings = settings; IdGraph = idGraph; }
public AllAssociationsGraphBuiltContext(IGraphDescriptor graphDescriptor, IMindSettings settings, IQueryableGraph<int> idGraph) : base(graphDescriptor, settings, idGraph) { }