You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ISparqlResultsHandler.cs you guys defined a function of: bool HandleResult(ISparqlResult result);. However the parser always create a new instance of SparqlResult.
Is it possible add one more function inside ISparqlResultsHandler:
ISparqlResult CreateResult();
The parser will invoke this function to create the ISparqlResult object. In this case, if I want to create my own implementation of ISparqlResultsHandler, I can construct my own implementation of ISparqlResult object.
Thanks
Tao
The text was updated successfully, but these errors were encountered:
I think it would maybe be better to allow a factory to be injected when you build the query processor rather than in the handler as generating the results is really the concern of the query processor.
I'm thinking we could add support for this by extending VDS.RDF.Query.LeviathanQueryOptions to allow a factory instance to be passed in, this would implement a simple interface with a MakeResult method on it that would be invoked with an IEnumerable<KeyValuePair<string, INode>> that provides the bindings for the result and returns a single ISparqlResult instance. Would that work for your use case?
In ISparqlResultsHandler.cs you guys defined a function of:
bool HandleResult(ISparqlResult result);
. However the parser always create a new instance ofSparqlResult
.Is it possible add one more function inside ISparqlResultsHandler:
The parser will invoke this function to create the ISparqlResult object. In this case, if I want to create my own implementation of ISparqlResultsHandler, I can construct my own implementation of ISparqlResult object.
Thanks
Tao
The text was updated successfully, but these errors were encountered: