Skip to content

Commit

Permalink
FIX: Send To NEL tag was not properly imported and exported.
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorink committed Apr 8, 2024
1 parent 293bb28 commit 714a70c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions knowledge/base/ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
from knowledge.base.access import TenantAccessRight
from knowledge.base.entity import EntityStatus, Label, Description, URI_TAG, IMAGE_TAG, DESCRIPTIONS_TAG, \
LABELS_TAG, TYPE_TAG, STATUS_FLAG_TAG, DATA_PROPERTIES_TAG, OBJECT_PROPERTIES_TAG, GROUP_IDS, OWNER_TAG, \
OWNER_ID_TAG, SOURCE_REFERENCE_ID_TAG, SOURCE_SYSTEM_TAG, TENANT_RIGHTS_TAG, SEND_TO_NEL_TAG, LOCALE_TAG, \
OWNER_ID_TAG, SOURCE_REFERENCE_ID_TAG, SOURCE_SYSTEM_TAG, TENANT_RIGHTS_TAG, LOCALE_TAG, \
IS_MAIN_TAG, USE_NEL_TAG, VALUE_TAG, DATA_PROPERTY_TAG, VISIBILITY_TAG, INFLECTION_CASE_SENSITIVE, \
INFLECTION_SETTING, INFLECTION_CONCEPT_CLASS, LANGUAGE_TAG, CONTENT_TAG, DATA_TYPE_TAG, RELATION_TAG, \
INCOMING_TAG, OUTGOING_TAG, COMMENT_TAG, LocalizedContent, COMMENTS_TAG
from knowledge.base.language import EN_US, SUPPORTED_LOCALES, EN, LanguageCode, LocaleCode


# ---------------------------------------------- Vocabulary base URI ---------------------------------------------------
PREFIX: str = "xsd"
BASE_URI: str = "http://www.w3.org/2001/XMLSchema#"
Expand Down Expand Up @@ -1961,7 +1960,7 @@ def __import_format_dict__(self, group_ids: List[str] = None):
OBJECT_PROPERTIES_TAG: [],
TENANT_RIGHTS_TAG: self.tenant_access_right.to_list(),
GROUP_IDS: group_ids if group_ids else [],
SEND_TO_NEL_TAG: self.use_for_nel
USE_NEL_TAG: self.use_for_nel
}
for _, items in self.data_properties.items():
dict_object[DATA_PROPERTIES_TAG].extend([i.__dict__() for i in items])
Expand Down

0 comments on commit 714a70c

Please sign in to comment.