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

Load and insert class and property assertions from a YAML file #17

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename aBoxYamlLoader class
  • Loading branch information
Sushant-Chavan committed Mar 13, 2020
commit 3028ad8ed5938bf795a12bdb26fbf7525b271024
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)