public SparqlQuery(string sparql, string baseUri) { Base = baseUri; itsBoundingStrategy = new CbdBoundingStrategy(); QueryParser parser = new QueryParser(); parser.ParseInto(this, sparql); }
/// <returns>A bounded description generated according to the specified strategy.</returns> public virtual ResourceDescription GetDescriptionOf(Node theNode, BoundingStrategy strategy) { return(GetDescriptionOf(GetResourceDenotedBy(theNode), strategy)); }
/// <returns>A bounded description generated according to the specified strategy.</returns> public virtual ResourceDescription GetDescriptionOf(Resource theResource, BoundingStrategy strategy) { return(strategy.GetDescriptionOf(theResource, this)); }
public SparqlQuery() { Base = DEFAULT_BASE; itsBoundingStrategy = new CbdBoundingStrategy(); }
public bool WasGetDescriptionOfCalledWith(Node theNode, BoundingStrategy strategy) { return(itsMethodCalls.WasMethodCalledWith("GetDescriptionOf", theNode, strategy)); }
/// <returns>A bounded description generated according to the specified strategy.</returns> public virtual ResourceDescription GetDescriptionOf(Node theNode, BoundingStrategy strategy) { itsMethodCalls.RecordMethodCall("GetDescriptionOf", theNode, strategy); return(GetDescriptionOf(GetResourceDenotedBy(theNode), strategy)); }
/// <returns>A bounded description generated according to the specified strategy.</returns> public virtual ResourceDescription GetDescriptionOf(Resource theResource, BoundingStrategy strategy) { itsMethodCalls.RecordMethodCall("GetDescriptionOf", theResource, strategy); return(strategy.GetDescriptionOf(theResource, this)); }