forked from apdavison/fairgraph
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolving certain reverse links is broken #92
Labels
bug
Something isn't working
Comments
Merged
apdavison
added a commit
that referenced
this issue
Sep 15, 2024
The remaining broken cases are where some forward links to the same type have singular names and others plural. Running builder/update_openminds.py gives ``` Multiple forward link names found: {'specifications', 'specification'}, using specification Multiple forward link names found: {'digitalIdentifier', 'digitalIdentifiers'}, using digitalIdentifier Multiple forward link names found: {'formats', 'format'}, using format Multiple forward link names found: {'licenses', 'license'}, using license Multiple forward link names found: {'specifications', 'specification'}, using specification Multiple forward link names found: {'dataLocations', 'dataLocation'}, using dataLocation Multiple forward link names found: {'origins', 'origin'}, using origin Multiple forward link names found: {'ageCategories', 'ageCategory'}, using ageCategories Multiple forward link names found: {'preparationDesigns', 'preparationDesign'}, using preparationDesign Multiple forward link names found: {'origins', 'origin'}, using origin Multiple forward link names found: {'origins', 'origin'}, using origin Multiple forward link names found: {'biologicalSexes', 'biologicalSex'}, using biologicalSex Multiple forward link names found: {'type', 'types'}, using type ```
This was partially fixed in 28da285 but there are still some cases that fail. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
e.g.
This fails, and gives
len(files) => 10000
The problem is that in the
FileRepository
class the reverse propertyfiles
hasreverse="file_repositories"
, which does not match the forward property name inFile
, which isfile_repository
. This results in the query being built incorrectly.The text was updated successfully, but these errors were encountered: