Skip to content

Add SPARQL filtering - #174

Merged
AlexeyMz merged 1 commit into
reactodia:masterfrom
kvistgaard:feat/sparql-query-filter
Nov 22, 2026
Merged

AlexeyMz merged 1 commit into
reactodia:masterfrom
kvistgaard:feat/sparql-query-filter

Conversation

@kvistgaard

Copy link
Copy Markdown
Contributor

This change adds elementIris support to lookup params and SearchCriteria, allowing entity searches to be restricted to a specific set of candidate elements. SparqlDataProvider applies this as a VALUES restriction and RdfDataProvider supports the same filtering semantics. The UI renders this as a removable “Among N given entities” criterion.

It also adds renderCriteriaActions to InstancesSearch and SearchSectionEntities so custom actions can be displayed next to the search criteria. The SPARQL example now includes a dialog that runs a SELECT query against the connected endpoint and uses the first projected variable as the candidate set. Translation keys, schema entries, and a provider test were updated to cover the new behavior.

… SELECT query to `sparql` example:

This change provides an example to custom search criteria option `FilterBySparqlQueryCriterion`, allowing entity searches to be restricted to a specific set of candidate elements by running a SPARQL `SELECT` query and use the first projected variable as the candidate set.

Co-authored-by: Alexey Morozov <[email protected]>
@AlexeyMz
AlexeyMz force-pushed the feat/sparql-query-filter branch from 4b00fa3 to b58b08d Compare November 22, 2026 20:49
@AlexeyMz

Copy link
Copy Markdown
Member

@kvistgaard Thanks for the provided PR! I rebased and updated the changes based on new functionality with custom search criteria options, this makes it integrate nicely with other search criteria patterns i.e. it's possible to search by "connected by (specific link) to (entities from SPARQL query)" from the UI 😀

image

@AlexeyMz
AlexeyMz merged commit e256a78 into reactodia:master Nov 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants