Skip to content
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

Refactor SimpleStatement class in knowledge_data_access_layer.py #7832

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Jan 17, 2024

While writing the follow-up for KnowledgeCommunity in #6214, I realized that the order of attributes in the SimpleStatement could be changed to appear more natural, following the (subject, predicate, object) notation.

Ref:

@drew2a drew2a marked this pull request as ready for review January 17, 2024 13:48
@drew2a drew2a requested review from a team and kozlovsky and removed request for a team January 17, 2024 13:48
The SimpleStatement class in knowledge_data_access_layer.py has been refactored to change the order of attributes. The attribute "predicate" is now placed before "object". This change improves readability and consistency within the codebase.
@drew2a drew2a force-pushed the refactoring/simple_statement branch from a5d2f8d to 98aa2f4 Compare January 18, 2024 10:30
@drew2a drew2a merged commit 21e628c into Tribler:main Jan 18, 2024
20 checks passed
@drew2a drew2a deleted the refactoring/simple_statement branch January 18, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants