From 1c826d5de09982764c221804d8ddfdbd91713d12 Mon Sep 17 00:00:00 2001 From: Sushant Chavan Date: Fri, 13 Mar 2020 18:05:54 +0100 Subject: [PATCH] Rename aBoxYamlLoader class --- .../mas_knowledge_utils/{ABox.py => abox_yaml_loader.py} | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename common/mas_knowledge_utils/{ABox.py => abox_yaml_loader.py} (96%) diff --git a/common/mas_knowledge_utils/ABox.py b/common/mas_knowledge_utils/abox_yaml_loader.py similarity index 96% rename from common/mas_knowledge_utils/ABox.py rename to common/mas_knowledge_utils/abox_yaml_loader.py index 48cb587..931a5bd 100644 --- a/common/mas_knowledge_utils/ABox.py +++ b/common/mas_knowledge_utils/abox_yaml_loader.py @@ -3,8 +3,7 @@ import os from ontology_query_interface import OntologyQueryInterface -# TODO: name of this class? -class PopulateABox: +class ABoxYAMLLoader: '''Updates an ontology with class and property assertions that are specified in a yaml file. @@ -130,5 +129,5 @@ def __load_assertions(self, assertions_file): if args.export_file is not None: export_file_path = "file://" + os.path.join(ontology_dir, args.export_file + ".owl") - aBox = PopulateABox(ontology_file_path, args.class_prefix, assertions_file_path) - aBox.update_ontology(export_file_path) + loader = ABoxYAMLLoader(ontology_file_path, args.class_prefix, assertions_file_path) + loader.update_ontology(export_file_path)