Skip to content

SolrQueryOperation

Created by: VeljkoMaksimovic

What's new?

  • Created an AbstractOperation class which all operations (SolrQuery, SPARQLQuery, and Templates) would extend, to avoid code duplication of functions common to all operations, such as validation of input.

  • Refactored SPARQLQuery and N3Template to extend newly created AbstractOperation

  • Created an SolrOperation class, and implemented methods for parsing text queries, inserting input values and creating a query to be executed by SearchEngine.

  • Created new action, parameter, parameter type, operation, step and rpc individuals within dynamic-api-individuals-testing.n3 to test SolrOperation

How should this be tested?

  • Created Unit Test class with few test scenarios, but more tests are to be added once we specify structure of OperationResult, and how exactly will the data be returned for operations.

Additional Notes:

More tests are to be added once we implement functionalities for running an entire action.

EDIT: Not sure why ActioPoolTest is failing

Merge request reports