From f1ce9ddc6b25ba7559aa08c1d30343ab3160fe93 Mon Sep 17 00:00:00 2001 From: Binh Vu Date: Tue, 5 Jul 2022 18:24:41 -0700 Subject: [PATCH] bump hugedict version --- kgdata/wikidata/db.py | 31 ------------------------------- pyproject.toml | 4 ++-- 2 files changed, 2 insertions(+), 33 deletions(-) diff --git a/kgdata/wikidata/db.py b/kgdata/wikidata/db.py index cc0f220..ac2bfef 100644 --- a/kgdata/wikidata/db.py +++ b/kgdata/wikidata/db.py @@ -21,37 +21,6 @@ class WDProxyDB(RocksDBDict, HugeMutableMapping[str, V]): - # def __new__( - # cls, - # EntClass, - # dbpath: Union[Path, str], - # dboptions: Optional[RocksDBOptions] = None, - # compression: bool = False, - # create_if_missing=True, - # readonly=False, - # ): - # obj = super().__new__( - # cls, - # path=str(dbpath), - # options=RocksDBOptions(create_if_missing=create_if_missing) - # if dboptions is None - # else dboptions, - # readonly=readonly, - # deser_key=partial(str, encoding="utf-8"), - # deser_value=zstd_decompress_custom(partial(deserialize, EntClass)) - # if compression - # else partial(deserialize, EntClass), - # ser_value=zstd6_compress_custom(serialize) if compression else serialize, - # ) - - # if not hasattr(EntClass, "from_entity"): - # obj.extract_ent_from_entity: Callable[[WDEntity], V] = identity - # else: - # obj.extract_ent_from_entity: Callable[[WDEntity], V] = getattr( - # EntClass, "from_entity" - # ) - # return obj - def __init__( self, EntClass, diff --git a/pyproject.toml b/pyproject.toml index 4729b06..b7bf86c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "kgdata" -version = "2.3.2" +version = "2.3.3" description = "Library to process dumps of knowledge graphs (Wikipedia, DBpedia, Wikidata)" authors = ["Binh Vu "] license = "MIT" @@ -31,7 +31,7 @@ requests = "^2.28.0" sem-desc = "^3.5.2" click = "^8.1.3" parsimonious = "^0.8.1" -hugedict = "^2.1.0" +hugedict = "^2.3.0" web-table-extractor = "^1.3.0" lxml = "^4.9.0"