-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Binh Vu
committed
Jan 19, 2024
1 parent
801e6f9
commit 1ace2dc
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from __future__ import annotations | ||
|
||
from collections import defaultdict | ||
from dataclasses import dataclass | ||
from typing import Dict, List, Optional, Tuple, Union | ||
|
||
import orjson | ||
from kgdata.dataset import Dataset | ||
from kgdata.wikidata.config import WikidataDirCfg | ||
from kgdata.wikidata.datasets.entities import entities | ||
from kgdata.wikidata.datasets.entity_types import entity_types | ||
from kgdata.wikidata.models.wdentity import WDEntity | ||
|
||
# def get_meta_graph_dataset(with_dep: bool = True): | ||
# cfg = WikidataDirCfg.get_instance() | ||
|
||
# if with_dep: | ||
# deps = [entities(), entity_types()] | ||
# else: | ||
# deps = [] | ||
|
||
# return Dataset( | ||
# cfg.main_property_connections / "*.gz", | ||
# deserialize=deser_connection, | ||
# name="property-connections", | ||
# dependencies=deps, | ||
# ) | ||
|
||
|
||
# def meta_graph(): | ||
# entity_outlinks() |