Skip to content

Resolving certain reverse links is broken #92

Description

@apdavison

e.g.

repo = omcore.FileRepository.from_id("c569b826-9d2e-4ba0-9363-561906c67cd6", kg_client)
files = repo.files.resolve(kg_client)
assert len(files) == 37

This fails, and gives len(files) => 10000

The problem is that in the FileRepository class the reverse property files has reverse="file_repositories", which does not match the forward property name in File, which is file_repository. This results in the query being built incorrectly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions