Skip to content

Commit

Permalink
Added update_onto.xlsx
Browse files Browse the repository at this point in the history
  • Loading branch information
francescalb committed Jan 19, 2023
1 parent 3fa5188 commit 66f8178
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ontopy/excelparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ def create_ontology_from_pandas( # pylint:disable=too-many-locals,too-many-bran
name = row["prefLabel"]
try:
onto.get_by_label(name)
print(onto.get_by_label(name).iri)
if onto.base_iri in [
a.namespace.base_iri
for a in onto.get_by_label_all(name)
Expand Down Expand Up @@ -278,7 +277,6 @@ def create_ontology_from_pandas( # pylint:disable=too-many-locals,too-many-bran
parents = [owlready2.Thing]

concept = onto.new_entity(name, parents)
print("baseiri_after_defintion:", onto.get_by_label(name).iri)
added_rows.add(index)
# Add elucidation
try:
Expand Down Expand Up @@ -394,13 +392,6 @@ def create_ontology_from_pandas( # pylint:disable=too-many-locals,too-many-bran
onto.sync_attributes(
name_policy="uuid", name_prefix="EMMO_", class_docstring="elucidation"
)
print(
[
a.iri
for a in onto.get_by_label_all("*")
if a.namespace.base_iri == onto.base_iri
]
)
onto.dir_label = False
concepts_with_errors = {
key: set(value) for key, value in concepts_with_errors.items()
Expand Down
Binary file added tests/test_excelparser/onto_update.xlsx
Binary file not shown.

0 comments on commit 66f8178

Please sign in to comment.