Skip to content

Commit

Permalink
update sem-desc & rsoup
Browse files Browse the repository at this point in the history
  • Loading branch information
Binh Vu committed Mar 3, 2024
1 parent 3bb7b97 commit 53e5e91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "web-sand"
version = "4.0.0"
version = "4.0.1"
description = "UI for browsing/editing semantic descriptions"
authors = ["Binh Vu <binh@toan2.com>"]
repository = "https://github.com/usc-isi-i2/sand"
Expand All @@ -16,7 +16,7 @@ sand = 'sand.__main__:cli'
# restricting the upper bound python version to 3.12, due to RestrictedPython dependency.
python = ">=3.9, <3.12"
kgdata = "^6.0.0"
sem-desc = "^6.0.0"
sem-desc = "^6.8.0"
peewee = "^3.15.2"
Flask = "^2.2.2"
python-dotenv = ">= 0.19.0, < 0.20.0"
Expand All @@ -25,7 +25,7 @@ gena = "^1.6.4"
loguru = "^0.7.0"
orjson = ">= 3.9.0, < 4.0.0"
drepr = "^2.10.0"
rsoup = "^3.0.2"
rsoup = "^3.1.7"
nh3 = "^0.2.13"
RestrictedPython = "^6.1"

Expand Down
6 changes: 2 additions & 4 deletions sand/commands/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,14 @@ def convert_linked_table(tbl: FullTable) -> Tuple[Table, List[TableRow]]:
Note that the project of the table is not set, which is supposed to be set later.
"""
context_values = [
Value("entityid", str(entityid)) for entityid in tbl.context.page_entities
Value("entityid", str(entityid)) for entityid in tbl.context.entities
]

if tbl.context.page_url is not None:
context_page = ContextPage(
tbl.context.page_url,
tbl.context.page_title or "",
str(tbl.context.page_entities[0])
if len(tbl.context.page_entities) > 0
else None,
(str(tbl.context.entities[0]) if len(tbl.context.entities) > 0 else None),
)
else:
context_page = None
Expand Down
7 changes: 2 additions & 5 deletions sand/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ def serialize_graph(
{
"id": str(n.id),
"uri": n.abs_uri,
"label": assert_not_null(n.readable_label),
# "label": tmp.readable_label
# if (tmp := ontclass_ar.get_by_uri(n.abs_uri)) is not None
# else n.rel_uri,
"label": n.label,
"approximation": n.approximation,
"type": "class_node",
}
Expand Down Expand Up @@ -121,7 +118,7 @@ def serialize_graph(
"source": str(e.source),
"target": str(e.target),
"uri": e.abs_uri,
"label": assert_not_null(e.readable_label),
"label": e.label,
# "label": e.readable_label
# or (
# tmp.readable_label
Expand Down

0 comments on commit 53e5e91

Please sign in to comment.