Skip to content

Commit 32ad2eb

Browse files
committed
Omit TopologicalLPAlphaEndpoints from GDS sessions
They dont work for sessions as they target the underlying database of the GDS instance
1 parent e11ba35 commit 32ad2eb

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

doc/modules/ROOT/pages/tutorials/gds-sessions.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ to have the `graphdatascience` Python library installed, version
2828

2929
[source, python, role=no-test]
3030
----
31-
%pip install --pre "graphdatascience>1.10"
31+
%pip install --pre "graphdatascience>1.11a3"
3232
----
3333

34+
== Limitations
35+
36+
* Topological Link Prediction algorithms are not yet supported.
37+
3438
== Aura API credentials
3539

3640
A GDS Session is created and accessed via the Aura API. In order to use

graphdatascience/endpoints.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, query_runner: QueryRunner, namespace: str, server_version: Se
4444

4545

4646
"""
47-
This class should inherit endpoint classes that only expose calls of the `gds.beta` namespace.
47+
This class should inherit endpoint classes that only expose calls of the `gds.alpha` namespace.
4848
Example of such endpoints: "gds.alpha.listProgress".
4949
"""
5050

@@ -65,6 +65,21 @@ def __getattr__(self, attr: str) -> IndirectAlphaCallBuilder:
6565
return IndirectAlphaCallBuilder(self._query_runner, f"{self._namespace}.{attr}", self._server_version)
6666

6767

68+
class AlphaRemoteEndpoints(
69+
GraphAlphaEndpoints,
70+
PipelineAlphaEndpoints,
71+
ModelAlphaEndpoints,
72+
SingleModeAlphaAlgoEndpoints,
73+
SystemAlphaEndpoints,
74+
AlphaConfigEndpoints,
75+
):
76+
def __init__(self, query_runner: QueryRunner, namespace: str, server_version: ServerVersion):
77+
super().__init__(query_runner, namespace, server_version)
78+
79+
def __getattr__(self, attr: str) -> IndirectAlphaCallBuilder:
80+
return IndirectAlphaCallBuilder(self._query_runner, f"{self._namespace}.{attr}", self._server_version)
81+
82+
6883
"""
6984
This class should inherit endpoint classes that only expose calls of the `gds.beta` namespace.
7085
Example of such endpoints: "gds.beta.listProgress".

graphdatascience/session/aura_graph_data_science.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pandas import DataFrame
44

55
from graphdatascience.call_builder import IndirectCallBuilder
6-
from graphdatascience.endpoints import AlphaEndpoints, BetaEndpoints, DirectEndpoints
6+
from graphdatascience.endpoints import AlphaRemoteEndpoints, BetaEndpoints, DirectEndpoints
77
from graphdatascience.error.uncallable_namespace import UncallableNamespace
88
from graphdatascience.graph.graph_remote_proc_runner import GraphRemoteProcRunner
99
from graphdatascience.query_runner.arrow_query_runner import ArrowQueryRunner
@@ -103,8 +103,8 @@ def graph(self) -> GraphRemoteProcRunner:
103103
return GraphRemoteProcRunner(self._query_runner, f"{self._namespace}.graph", self._server_version)
104104

105105
@property
106-
def alpha(self) -> AlphaEndpoints:
107-
return AlphaEndpoints(self._query_runner, "gds.alpha", self._server_version)
106+
def alpha(self) -> AlphaRemoteEndpoints:
107+
return AlphaRemoteEndpoints(self._query_runner, "gds.alpha", self._server_version)
108108

109109
@property
110110
def beta(self) -> BetaEndpoints:

0 commit comments

Comments
 (0)