BlueBrain / nexus-forge

Building and Using Knowledge Graphs made easy
https://nexus-forge.readthedocs.io
GNU Lesser General Public License v3.0
38 stars 19 forks source link

Filter takes str as input for the operator, not FilterOperator #343

Closed ssssarah closed 10 months ago

ssssarah commented 10 months ago

https://github.com/BlueBrain/nexus-forge/blob/cece1ce471cc4c97382e9a9803c060dbf9547d55/kgforge/core/wrappings/paths.py#L31C76-L31C76

Filter for forge.search:

Filter takes str as parameter type for the operator, not FilterOperator

I haven't looked into why that's the case but it creates the enum from the str afterwards. If that's intentional then the querying notebook should be updated because in the Filter construction it passes the enum, and not its value.

https://github.com/BlueBrain/nexus-forge/blob/master/examples/notebooks/getting-started/04%20-%20Querying.ipynb