Skip to content

Commit

Permalink
bump hugedict version
Browse files Browse the repository at this point in the history
  • Loading branch information
Binh Vu authored and binh-vu committed Jul 6, 2022
1 parent b6a1a02 commit f1ce9dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
31 changes: 0 additions & 31 deletions kgdata/wikidata/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <binh@toan2.com>"]
license = "MIT"
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit f1ce9dd

Please sign in to comment.