Skip to content

Commit

Permalink
Rename aBoxYamlLoader class
Browse files Browse the repository at this point in the history
  • Loading branch information
Sushant-Chavan committed Mar 13, 2020
1 parent 1add5a6 commit 1c826d5
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)

0 comments on commit 1c826d5

Please sign in to comment.