Design note by Nikki Rogers
nikki.rogers@bristol.ac.uk
June 2004

The ConceptRelativesResults object in this directory is used by the getAllConceptsByPath methods, 
currently located in the DemoService. As results are obtained recursively, they are each appended 
to a single results object. This eventual results object is then returned to the original calling method in
DemoService.

This "results" directory was originally created as a placeholder 
for code that will handle the storage of results returned by a XXXRepo object in the "repository" directory.

Without using a results object, the SesameRepo object carries a fairly large burden in terms of querying
the backend RDF repository, retrieving a result set and then transforming each
result into Concept/Array of Concept objects as appropriate. We could distribute 
this responsibility a little by requiring the key "getConcept" methods in SesameRepo to append 
results to some Results objects in this directory (instead of returning data). 
These Results objects could then be responsible for transforming the results 
into the required format (e.g. Concept objects). Holding the results in this way would possibly 
allow for better layering - in terms of say adding  a browser 
view onto the service, or permitting threaded multi searches across several repositories. 

These are just thoughts I've had and at the moment I don't feel a strong pull in this 
direction and so am keeping the design as it is.




