Skip to content

Commit

Permalink
Refactor SimpleStatement class in knowledge_data_access_layer.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
drew2a committed Jan 17, 2024
1 parent 26b0be8 commit a5d2f8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class ResourceType(IntEnum):
@dataclass
class SimpleStatement:
subject_type: ResourceType
object: str
predicate: ResourceType
subject: str
predicate: ResourceType
object: str


class KnowledgeDataAccessLayer:
Expand Down

0 comments on commit a5d2f8d

Please sign in to comment.