forked from asyml/forte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse user specified ontology file (asyml#692)
* implement parse_onto_file * implement parse_onto_file * implement parse onto file v1; add _is_subclass signature * fix typo * add _get_entry_attributes_by_class to data store class * move get_entry_attribute_by_class to data store * fix pylint * add OntologyCodeGenerator check to onto parse * change black version to 22.3.0 * reformat with black * remove unused import * delete type_generator from data.rst * update type_attribute and _parse_onto_file's docstring * format * add top and core classes * delete _get_type_parent; improve docstrings * use parse_schema_for_no_import_onto_specs_file to parse ontology_spec * add test_check_onto_file.json for testing * Fix black issue * Update docstring with the assumption of ontology file * Create constants for type_attributes fields * Replace deprecated assertDictContainsSubset Co-authored-by: qinzzz <[email protected]> Co-authored-by: Hector <[email protected]> Co-authored-by: Suqi Sun <[email protected]> Co-authored-by: mylibrar <[email protected]>
- Loading branch information
1 parent
5e966b9
commit 52857c2
Showing
5 changed files
with
207 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.