Filter Query Spec for Catalog API #356
Unanswered
frankbharath
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Unfortunately, we do not support queries that inspect every dataset like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are fetching catalogs for all the participants using Catalog API with the query spec. We tried to filter the assets with id which is working fine and below is the query spec we are sending as part of the request,
{ "@context": { "@vocab": "[https://w3id.org/edc/v0.0.1/ns/"](https://w3id.org/edc/v0.0.1/ns/%22) }, "@type": "QuerySpec", "filterExpression": [ { "operandLeft": "datasets.id", "operator": "=", "operandRight": "hello-eonax-v1" } ] }
Our need is we want to filter assets using other properties like name or any custom attribute while we added it when we created an asset. Some examples we used to filter the data assets,
{ "@context": { "@vocab": "[https://w3id.org/edc/v0.0.1/ns/"](https://w3id.org/edc/v0.0.1/ns/%22) }, "@type": "QuerySpec", "filterExpression": [ { "operandLeft": "datasets.name", "operator": "=", "operandRight": "asset name" } ] }
{ "@context": { "@vocab": "[https://w3id.org/edc/v0.0.1/ns/"](https://w3id.org/edc/v0.0.1/ns/%22) }, "@type": "QuerySpec", "filterExpression": [ { "operandLeft": "datasets.customProperty", "operator": "=", "operandRight": "some value" } ] }
but the above mentioned query spec is not working. How can we filter the data asset using properties apart from the id field?
Beta Was this translation helpful? Give feedback.
All reactions