Skip to content

Commit

Permalink
Fixed import error for import_attr function
Browse files Browse the repository at this point in the history
  • Loading branch information
punith300i committed Jun 2, 2023
1 parent 196f634 commit bf78795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sand/extensions/export/drepr/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sand.models.ontology import OntProperty, OntPropertyAR, OntPropertyDataType
from sand.models.table import Table, TableRow
import sm.outputs.semantic_model as O
import sm.misc as M
from sm.misc.funcs import import_attr
from hugedict.chained_mapping import ChainedMapping
from drepr.models import (
DRepr,
Expand Down Expand Up @@ -67,7 +67,7 @@ def export_data_model(self, table: Table, sm: O.SemanticModel) -> DRepr:

id2props = ChainedMapping(
OntPropertyAR(),
M.import_attr(SETTINGS["ont_props"]["default"]),
import_attr(SETTINGS["ont_props"]["default"]),
)
dsm = get_drepr_sm(sm, id2props, get_attr_id, get_ent_attr_id)

Expand Down

0 comments on commit bf78795

Please sign in to comment.