Repository navigation
Conversation
AlexeyMz
force-pushed
the
lookup-patterns
branch
6 times, most recently
from
November 14, 2026 23:10
db095e1 to
3758e6c
Compare
AlexeyMz
force-pushed
the
lookup-patterns
branch
4 times, most recently
from
November 21, 2026 21:35
cda38f5 to
6bafe81
Compare
…ty search components: `DataProvider` changes: * Support AST-based `LookupPattern` via `DataProvider.lookup()`; * Add `lookupElementTypes()`, `lookupPropertyTypes()` and `lookupLinkTypes()` methods to `DataProvider`; * Only provide `inLinks` and `outLinks` for result items from `DataProvider.lookup()` when `withLinks: true` is specified and there is a top-level `connectedTo`-pattern with constant `fromValues` sub-pattern (i.e. including just passing `refElementId`); * Fix incorrect limiting in `SparqlDataProvider.lookup()` query if connected element has more than one type (including transitive super-types) or it is connected by more than one link or direction; * Remove `?link` and `?direction` projections from `SparqlDataProviderSettings.lookupQuery` (separate links query is issued instead of a complex single query); * Remove no entity type fallback to `owl:Thing` in `filterElementInfoPattern` for `OwlRdfsSettings` and `WikidataSettings`; * Add `RdfDataProvider` options `propertyOrLinkBaseTypes` and `propertyTypeBaseTypes` (in addition to existing `linkTypeBaseTypes`) to distinguish between link and property types * Always compute counts for implicit element/link/property types in `RdfDataProvider`; * Update `IndexedDbCachedProvider.DB_VERSION` to `5` * Refactor `SparqlDataProvider` query generation into separate module `SparqlGenerator`; * Add thorough unit tests for `lookup()` in `SparqlDataProvider` and `RdfDataProvider`; `InstancesSearch`/`SearchSectionEntities` changes: * Add `SearchPattern`-derived types (separate from `LookupPattern`) to allow customizable search pattern display and editors; * Add built-in search criterion options: `SearchCriterionAnd`, `SearchCriterionOr`, `SearchCriterionHasType` `SearchCriterionConnectedTo`, `SearchCriterionFromValues`, `SearchCriterionHasProperty`; * Add utility 'building blocks" for custom search criterions: `SearchCriterionBlock`, `SearchCriterionWhereGroup`, `SearchCriterionWhere`; Utility changes: * Use `@floating-ui/react-dom` for properly placed dropdown floating panels; * Add base `Autocomplete` component based on `Dropdown` and `SearchInput`; * Refactor `SearchInput` and its usages to have proper slots to display additional components inside; * Add `EntitySelect` component based on `Autocomplete` to lookup one or multiple entities by label; * Add `SchemaTypeSelect` component with default suggestions for select element/property/link types; * Extract `SchemaTypeView` from class tree to display an element/property/link type; * Add `ErrorMessage` component to display a formatted error message from an exception when possible; * Add block display mode to `InlineEntity`; * Add `useCombinedRef()`, extract `useFetchStatus()` hook; * Clarify `useAsync()` behavior on `undefined` return value from `load` callback; Other changes: * Add storybook-like `components` example page as an interactive playground for exported and internal components;
AlexeyMz
force-pushed
the
lookup-patterns
branch
from
November 21, 2026 23:27
6bafe81 to
2875d4a
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TODO:
SparqlDataProvider.lookup()andRdfDataProvider.lookup()SearchPatternlookup pattern generation and serialization;inLinks/outLinks" expected behavior forSparqlDataProviderAdd custom search criteria (entities from SPARQL query) example(in the follow-up)