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.
e.g.
This fails, and gives
len(files) => 10000The problem is that in the
FileRepositoryclass the reverse propertyfileshasreverse="file_repositories", which does not match the forward property name inFile, which isfile_repository. This results in the query being built incorrectly.