HumanBrainProject / fairgraph

High-level Python API for the EBRAINS Knowledge Graph
Apache License 2.0
10 stars 6 forks source link

Implement "indirect reverse" fields, those which pass via an EmbeddedMetadata #82

Open apdavison opened 1 year ago

apdavison commented 1 year ago

81 implemented #72 for the direct case, where two KG objects are linked.

However, reverse links that pass via EmbeddedMetadata instances are not yet supported.

For example: SoftwareVersion has a field copyright, which contains embedded metadata of type Copyright (which does not have its own ID). Copyright has a field holders which links to Person, among others. At present, it is not possible to access the SoftwareVersion from a Person by way of a reverse field, since the link is not direct. (You can still make a forward query, though).