Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(gravsearch): Start implementing optimisation. * fix the compiling problem * fix the pattern matching problem * feature (gravsearch) add 'inferredfromProperty' flags to types * refactor (gravsearch) remove the unnecessary statement to check `rdf:type knora-base:Resource` from `AbstractPrequeryGenerator` * fix (gravsearch) correct the flag * feature (gravsearch) NonPropertyTypeInfo should contain the classIris instead of type iri * refactor (gravsearch) rule names and comments * feature (gravsearch) refine the detected types * test (gravsearch) unit test for removing a type from `IntermediateTypeInspectionResult` * refactor (gravsearch) make the type refiner recursive * test (gravsearch) test for the `refineDeterminedTypes` * refactor (gravsearch) correct refining the inferred types, and inferring type from filter rule * feature (gravsearch) use the isResourceType flag * fix (gravsearch) correct the failing tests * refactor (gravsearch) get read of unused method * feature (gravsearch) turn the `entitiesInferredFromProperty` to a map, and remove a type from it if necessary * test (gravsearch) tests for checking if the collection `entitiesInferredFromProperty` is populated correctly * refactor (gravsearch) get rid of `GravsearchTypeIris` * refactor (gravsearch) use the `isResourceType` flag * fix (gravsearch) missing import * feature (gravsearch) store the actual resource class of the object property. * feature (gravsearch) remove statements whose subject is a resource and its type can be inferred from a property * fix (gravsearch) do not remove entity type is the property it should be inferred from is in an Optional * refactor (gravsearch) codacy refactor * fix (gravsearch) wrong condition * fix (gravsearch) unit tests for queries with optional should have the rdf:type * fix (test) correct the wrong test * feature (gravsearch) sanitize inconsistent types resulted from storing multiple distinct resource types * fix (gravsearch) type annotation must be added to objects of optional patterns that are in entitiesInferredFromProperties * refactor (gravsearch) run the code through code formatter * feature (gravsearch) move lucene statements to begining * refactor (gravsearch) merge two optimize functions * refactor (gravsearch) applied PR review points * refactor (gravsearch) comment about optimization * refactor (gravsearch) add explanation to methods * test (gravsearch) unit tests for transformation and type inspection of a query with an optional block * feature (gravsearch) replace inconsistent types with a common base class * refactor (gravsearch) remove unnecessary refinement. * fix (gravsearch) fix the failing test * fix (gravsearch) remove the valueHasString statement * fix (gravsearch) leave the valueHasString statement be in handleMatchTextInStandoffFunction * fix (gravsearch) fix the bug in finding common base classes * fix (gravsearch) merge types in entitiesInferredFromProperties instead of replacing them * fix (gravsearch) only remove a type from entitiesInferredFromProperties, not the entire set of types. * refactor (gravsearch) change comment * refactor (gravsearch) rename `findCommonBaseClass` to `findCommonBaseResourceClass` * doc (gravsearch) updated the Gravsearch design document. * docs (gravsearch) edit documentation * refactor(gravsearch): Clean up a few things. * fix(gravsearch): Don't run optimisation in AnnotationRemovingWhereTransformer. - Clean up doc a bit. Co-authored-by: Benjamin Geer <benjaminlewis.geer@unibas.ch>
- Loading branch information
1 parent
1c88651
commit fa48e61
Showing
151 changed files
with
9,640 additions
and
8,972 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.