Ejemplo n.º 1
0
        public SparqlQuery(string sparql, string baseUri)
        {
            Base = baseUri;
            itsBoundingStrategy = new CbdBoundingStrategy();
            QueryParser parser = new QueryParser();

            parser.ParseInto(this, sparql);
        }
Ejemplo n.º 2
0
 /// <returns>A bounded description generated according to the specified strategy.</returns>
 public virtual ResourceDescription GetDescriptionOf(Node theNode, BoundingStrategy strategy)
 {
     return(GetDescriptionOf(GetResourceDenotedBy(theNode), strategy));
 }
Ejemplo n.º 3
0
 /// <returns>A bounded description generated according to the specified strategy.</returns>
 public virtual ResourceDescription GetDescriptionOf(Resource theResource, BoundingStrategy strategy)
 {
     return(strategy.GetDescriptionOf(theResource, this));
 }
Ejemplo n.º 4
0
 public SparqlQuery()
 {
     Base = DEFAULT_BASE;
     itsBoundingStrategy = new CbdBoundingStrategy();
 }
Ejemplo n.º 5
0
 public bool WasGetDescriptionOfCalledWith(Node theNode, BoundingStrategy strategy)
 {
     return(itsMethodCalls.WasMethodCalledWith("GetDescriptionOf", theNode, strategy));
 }
Ejemplo n.º 6
0
 /// <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));
 }
Ejemplo n.º 7
0
 /// <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));
 }