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

Retrieving elastic search view: mapping containing @id field breaks #299

Closed ssssarah closed 1 year ago

ssssarah commented 1 year ago

When retrieving elastic search views, the content of the object may include mappings containing "@id" fields ("@id" as a key, and the associated value as a dict). This fails in the following file: https://github.com/BlueBrain/nexus-forge/blob/master/kgforge/core/conversions/rdf.py In line 467, the condition that the key should be equal to "@id" is passed when it shouldn't in this particular case, because the value associated to the key does not contain an id string, but an object, so context.resolve fails (applies a string operation on a dictionary). I haven't looked at further at which if case it should be treated under (maybe the case that handles dicts)

crisely09 commented 1 year ago

@ssssarah could you provide an example query?