Skip to content

Commit 43e6fae

Browse files
Rerun graph mining
1 parent 649e8b5 commit 43e6fae

54,153 files changed

Lines changed: 495498 additions & 532796 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
7 Bytes
Binary file not shown.

bindings/python/ensmallen/datasets/freebase.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
from ensmallen import Graph # pylint: disable=import-error
2424
from .graph_retrieval import RetrievedGraph
2525

26-
def FreeBase2WikiData(
26+
def FreeBase(
2727
directed=False, preprocess="auto", bioregistry=False, load_nodes=True, load_node_types=True,
2828
load_edge_types=True, load_edge_weights=True, auto_enable_tradeoffs=True,
2929
sort_tmp_dir=None, verbose=2, ring_bell=False, cache=True, cache_path=None,
3030
cache_sys_var="GRAPH_CACHE_DIR", version="latest", **kwargs
3131
) -> Graph:
32-
"""Return FreeBase2WikiData graph
32+
"""Return FreeBase graph
3333
3434
Parameters
3535
----------
@@ -52,17 +52,17 @@ def FreeBase2WikiData(
5252
Version to retrieve
5353
"""
5454
return RetrievedGraph(
55-
"FreeBase2WikiData", version, "freebase", directed, preprocess, bioregistry, load_nodes,
55+
"FreeBase", version, "freebase", directed, preprocess, bioregistry, load_nodes,
5656
load_node_types, load_edge_types, load_edge_weights, auto_enable_tradeoffs, sort_tmp_dir,
5757
verbose, ring_bell, cache, cache_path, cache_sys_var, kwargs
5858
)()
59-
def FreeBase(
59+
def FreeBase2WikiData(
6060
directed=False, preprocess="auto", bioregistry=False, load_nodes=True, load_node_types=True,
6161
load_edge_types=True, load_edge_weights=True, auto_enable_tradeoffs=True,
6262
sort_tmp_dir=None, verbose=2, ring_bell=False, cache=True, cache_path=None,
6363
cache_sys_var="GRAPH_CACHE_DIR", version="latest", **kwargs
6464
) -> Graph:
65-
"""Return FreeBase graph
65+
"""Return FreeBase2WikiData graph
6666
6767
Parameters
6868
----------
@@ -85,7 +85,7 @@ def FreeBase(
8585
Version to retrieve
8686
"""
8787
return RetrievedGraph(
88-
"FreeBase", version, "freebase", directed, preprocess, bioregistry, load_nodes,
88+
"FreeBase2WikiData", version, "freebase", directed, preprocess, bioregistry, load_nodes,
8989
load_node_types, load_edge_types, load_edge_weights, auto_enable_tradeoffs, sort_tmp_dir,
9090
verbose, ring_bell, cache, cache_path, cache_sys_var, kwargs
9191
)()
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-614 Bytes
Binary file not shown.

bindings/python/ensmallen/datasets/kghub.py

Lines changed: 78 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -40,90 +40,11 @@ def EcoKG(
4040
load_node_types, load_edge_types, load_edge_weights, auto_enable_tradeoffs, sort_tmp_dir,
4141
verbose, ring_bell, cache, cache_path, cache_sys_var, kwargs
4242
)()
43-
def KGIDG(
44-
directed=False, preprocess="auto", bioregistry=False, load_nodes=True, load_node_types=True,
45-
load_edge_types=True, load_edge_weights=True, auto_enable_tradeoffs=True,
46-
sort_tmp_dir=None, verbose=2, ring_bell=False, cache=True, cache_path=None,
47-
cache_sys_var="GRAPH_CACHE_DIR", version="current", **kwargs
48-
) -> Graph:
49-
"""Return KG-IDG graph
50-
51-
Parameters
52-
----------
53-
directed = False
54-
preprocess = "auto"
55-
Preprocess for optimal load time & memory peak.
56-
Will preprocess in Linux/macOS but not Windows.
57-
bioregistry=False
58-
load_nodes = True
59-
Load node names or use numeric range
60-
load_node_types = True
61-
load_edge_types = True
62-
auto_enable_tradeoffs = True
63-
Enable when graph has < 50M edges
64-
cache_path = None
65-
Path to store graphs
66-
Defaults either to `GRAPH_CACHE_DIR` sys var or `graphs`
67-
cache_sys_var = "GRAPH_CACHE_DIR"
68-
version = "current"
69-
Version to retrieve
70-
The available versions are:
71-
- 20211029
72-
- 20211101
73-
- 20211112
74-
- 20211123
75-
- 20211201
76-
- 20211202
77-
- 20211207
78-
- 20211210
79-
- 20211213
80-
- 20211215
81-
- 20211221
82-
- 20211223
83-
- 20220101
84-
- 20220106
85-
- 20220107
86-
- 20220119
87-
- 20220201
88-
- 20220203
89-
- 20220204
90-
- 20220216
91-
- 20220223
92-
- 20220303
93-
- 20220325
94-
- 20220329
95-
- 20220401
96-
- 20220501
97-
- 20220512
98-
- 20220525
99-
- 20220601
100-
- 20220606
101-
- 20220701
102-
- 20220722
103-
- 20221209
104-
- 20230101
105-
- 20230530
106-
- 20230601
107-
- 20230701
108-
- 20230801
109-
- 20230901
110-
- 20231001
111-
- 20231101
112-
- 20231201
113-
- current
114-
115-
116-
"""
117-
return RetrievedGraph(
118-
"KGIDG", version, "kghub", directed, preprocess, bioregistry, load_nodes,
119-
load_node_types, load_edge_types, load_edge_weights, auto_enable_tradeoffs, sort_tmp_dir,
120-
verbose, ring_bell, cache, cache_path, cache_sys_var, kwargs
121-
)()
12243
def KGCOVID19(
12344
directed=False, preprocess="auto", bioregistry=False, load_nodes=True, load_node_types=True,
12445
load_edge_types=True, load_edge_weights=True, auto_enable_tradeoffs=True,
12546
sort_tmp_dir=None, verbose=2, ring_bell=False, cache=True, cache_path=None,
126-
cache_sys_var="GRAPH_CACHE_DIR", version="current", **kwargs
47+
cache_sys_var="GRAPH_CACHE_DIR", version="contact the KG-Hub team by email", **kwargs
12748
) -> Graph:
12849
"""Return kg-covid-19 graph
12950
@@ -144,47 +65,10 @@ def KGCOVID19(
14465
Path to store graphs
14566
Defaults either to `GRAPH_CACHE_DIR` sys var or `graphs`
14667
cache_sys_var = "GRAPH_CACHE_DIR"
147-
version = "current"
68+
version = "contact the KG-Hub team by email"
14869
Version to retrieve
14970
The available versions are:
150-
- 20200925
151-
- 20200927
152-
- 20200929
153-
- 20201001
154-
- 20201012
155-
- 20201101
156-
- 20201202
157-
- 20210101
158-
- 20210128
159-
- 20210201
160-
- 20210218
161-
- 20210301
162-
- 20210412
163-
- 20210725
164-
- 20210726
165-
- 20210727
166-
- 20210823
167-
- 20210902
168-
- 20211002
169-
- 20211102
170-
- 20211202
171-
- 20220102
172-
- 20220202
173-
- 20220217
174-
- 20220223
175-
- 20220225
176-
- 20220228
177-
- 20220328
178-
- 20220330
179-
- 20220402
180-
- 20220502
181-
- 20220610
182-
- 20220702
183-
- 20220802
184-
- 20220902
185-
- 20221102
186-
- 20230102
187-
- current
71+
- contact the KG-Hub team by email
18872
18973
References
19074
----------
@@ -208,13 +92,13 @@ def KGCOVID19(
20892
load_node_types, load_edge_types, load_edge_weights, auto_enable_tradeoffs, sort_tmp_dir,
20993
verbose, ring_bell, cache, cache_path, cache_sys_var, kwargs
21094
)()
211-
def SLDB(
95+
def KGIDG(
21296
directed=False, preprocess="auto", bioregistry=False, load_nodes=True, load_node_types=True,
21397
load_edge_types=True, load_edge_weights=True, auto_enable_tradeoffs=True,
21498
sort_tmp_dir=None, verbose=2, ring_bell=False, cache=True, cache_path=None,
215-
cache_sys_var="GRAPH_CACHE_DIR", version="20220522", **kwargs
99+
cache_sys_var="GRAPH_CACHE_DIR", version="contact the KG-Hub team by email", **kwargs
216100
) -> Graph:
217-
"""Return sldb graph
101+
"""Return KG-IDG graph
218102
219103
Parameters
220104
----------
@@ -233,15 +117,15 @@ def SLDB(
233117
Path to store graphs
234118
Defaults either to `GRAPH_CACHE_DIR` sys var or `graphs`
235119
cache_sys_var = "GRAPH_CACHE_DIR"
236-
version = "20220522"
120+
version = "contact the KG-Hub team by email"
237121
Version to retrieve
238122
The available versions are:
239-
- 20220522
123+
- contact the KG-Hub team by email
240124
241125
242126
"""
243127
return RetrievedGraph(
244-
"SLDB", version, "kghub", directed, preprocess, bioregistry, load_nodes,
128+
"KGIDG", version, "kghub", directed, preprocess, bioregistry, load_nodes,
245129
load_node_types, load_edge_types, load_edge_weights, auto_enable_tradeoffs, sort_tmp_dir,
246130
verbose, ring_bell, cache, cache_path, cache_sys_var, kwargs
247131
)()
@@ -402,6 +286,38 @@ def KGPhenio(
402286
- 20240408
403287
- 20240411
404288
- 20240514
289+
- 20240606
290+
- 20240607
291+
- 20240608
292+
- 20240708
293+
- 20240802
294+
- 20240808
295+
- 20240809
296+
- 20240904
297+
- 20241008
298+
- 20241104
299+
- 20241105
300+
- 20241108
301+
- 20241127
302+
- 20241203
303+
- 20241208
304+
- 20241210
305+
- 20250108
306+
- 20250130
307+
- 20250208
308+
- 20250210
309+
- 20250216
310+
- 20250307
311+
- 20250308
312+
- 20250321
313+
- 20250408
314+
- 20250414
315+
- 20250522
316+
- 20250604
317+
- 20250608
318+
- 20250708
319+
- 20250808
320+
- 20250912
405321
- current
406322
407323
@@ -411,3 +327,40 @@ def KGPhenio(
411327
load_node_types, load_edge_types, load_edge_weights, auto_enable_tradeoffs, sort_tmp_dir,
412328
verbose, ring_bell, cache, cache_path, cache_sys_var, kwargs
413329
)()
330+
def SLDB(
331+
directed=False, preprocess="auto", bioregistry=False, load_nodes=True, load_node_types=True,
332+
load_edge_types=True, load_edge_weights=True, auto_enable_tradeoffs=True,
333+
sort_tmp_dir=None, verbose=2, ring_bell=False, cache=True, cache_path=None,
334+
cache_sys_var="GRAPH_CACHE_DIR", version="20220522", **kwargs
335+
) -> Graph:
336+
"""Return sldb graph
337+
338+
Parameters
339+
----------
340+
directed = False
341+
preprocess = "auto"
342+
Preprocess for optimal load time & memory peak.
343+
Will preprocess in Linux/macOS but not Windows.
344+
bioregistry=False
345+
load_nodes = True
346+
Load node names or use numeric range
347+
load_node_types = True
348+
load_edge_types = True
349+
auto_enable_tradeoffs = True
350+
Enable when graph has < 50M edges
351+
cache_path = None
352+
Path to store graphs
353+
Defaults either to `GRAPH_CACHE_DIR` sys var or `graphs`
354+
cache_sys_var = "GRAPH_CACHE_DIR"
355+
version = "20220522"
356+
Version to retrieve
357+
The available versions are:
358+
- 20220522
359+
360+
361+
"""
362+
return RetrievedGraph(
363+
"SLDB", version, "kghub", directed, preprocess, bioregistry, load_nodes,
364+
load_node_types, load_edge_types, load_edge_weights, auto_enable_tradeoffs, sort_tmp_dir,
365+
verbose, ring_bell, cache, cache_path, cache_sys_var, kwargs
366+
)()
6.82 KB
Binary file not shown.

0 commit comments

Comments
 (0)