Skip to content

Commit 120dd09

Browse files
committed
docs: Use edgeandnode namespace in docs
1 parent 92e0646 commit 120dd09

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

docs/inspecting_datasets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ for ds in results.datasets[:5]:
183183

184184
# Step 2: Inspect a dataset
185185
print("\nInspecting dataset structure:")
186-
registry.datasets.inspect('graphops', 'ethereum-mainnet')
186+
registry.datasets.inspect('edgeandnode', 'ethereum-mainnet')
187187

188188
# Step 3: Get schema programmatically
189-
schema = registry.datasets.describe('graphops', 'ethereum-mainnet')
189+
schema = registry.datasets.describe('edgeandnode', 'ethereum-mainnet')
190190

191191
# Step 4: Query based on discovered schema
192192
client = Client(query_url='grpc://your-server:1602', auth=True)

src/amp/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,9 @@ def registry(self):
508508
>>> # Search for datasets
509509
>>> results = client.registry.datasets.search('ethereum blocks')
510510
>>> # Get a specific dataset
511-
>>> dataset = client.registry.datasets.get('graphops', 'ethereum-mainnet')
511+
>>> dataset = client.registry.datasets.get('edgeandnode', 'ethereum-mainnet')
512512
>>> # Fetch manifest
513-
>>> manifest = client.registry.datasets.get_manifest('graphops', 'ethereum-mainnet', 'latest')
513+
>>> manifest = client.registry.datasets.get_manifest('edgeandnode', 'ethereum-mainnet', 'latest')
514514
"""
515515
if not self._registry_client:
516516
raise ValueError(

src/amp/registry/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
... print(f"{dataset.namespace}/{dataset.name} - Score: {dataset.score}")
1313
>>>
1414
>>> # Get a specific dataset
15-
>>> dataset = client.datasets.get('graphops', 'ethereum-mainnet')
16-
>>> manifest = client.datasets.get_manifest('graphops', 'ethereum-mainnet', 'latest')
15+
>>> dataset = client.datasets.get('edgeandnode', 'ethereum-mainnet')
16+
>>> manifest = client.datasets.get_manifest('edgeandnode', 'ethereum-mainnet', 'latest')
1717
>>>
1818
>>> # Authenticated operations
1919
>>> client = RegistryClient(auth_token='your-token')

src/amp/registry/datasets.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ def get(self, namespace: str, name: str) -> models.Dataset:
117117
"""Get detailed information about a specific dataset.
118118
119119
Args:
120-
namespace: Dataset namespace (e.g., 'graphops', 'edgeandnode')
120+
namespace: Dataset namespace (e.g., 'edgeandnode', 'edgeandnode')
121121
name: Dataset name (e.g., 'ethereum-mainnet')
122122
123123
Returns:
124124
Dataset: Complete dataset information
125125
126126
Example:
127127
>>> client = RegistryClient()
128-
>>> dataset = client.datasets.get('graphops', 'ethereum-mainnet')
128+
>>> dataset = client.datasets.get('edgeandnode', 'ethereum-mainnet')
129129
>>> print(f"Latest version: {dataset.latest_version}")
130130
>>> print(f"Visibility: {dataset.visibility}")
131131
"""
@@ -147,7 +147,7 @@ def list_versions(self, namespace: str, name: str) -> list[models.DatasetVersion
147147
148148
Example:
149149
>>> client = RegistryClient()
150-
>>> versions = client.datasets.list_versions('graphops', 'ethereum-mainnet')
150+
>>> versions = client.datasets.list_versions('edgeandnode', 'ethereum-mainnet')
151151
>>> for version in versions:
152152
... print(f" - v{version.version} ({version.status})")
153153
"""
@@ -168,7 +168,7 @@ def get_version(self, namespace: str, name: str, version: str) -> models.Dataset
168168
169169
Example:
170170
>>> client = RegistryClient()
171-
>>> version = client.datasets.get_version('graphops', 'ethereum-mainnet', 'latest')
171+
>>> version = client.datasets.get_version('edgeandnode', 'ethereum-mainnet', 'latest')
172172
>>> print(f"Version: {version.version}")
173173
>>> print(f"Created: {version.created_at}")
174174
"""
@@ -191,7 +191,7 @@ def get_manifest(self, namespace: str, name: str, version: str) -> dict:
191191
192192
Example:
193193
>>> client = RegistryClient()
194-
>>> manifest = client.datasets.get_manifest('graphops', 'ethereum-mainnet', 'latest')
194+
>>> manifest = client.datasets.get_manifest('edgeandnode', 'ethereum-mainnet', 'latest')
195195
>>> print(f"Dependencies: {list(manifest.get('dependencies', {}).keys())}")
196196
>>> print(f"Tables: {list(manifest.get('tables', {}).keys())}")
197197
"""
@@ -241,8 +241,8 @@ def inspect(self, namespace: str, name: str, version: str = 'latest') -> None:
241241
242242
Example:
243243
>>> client = RegistryClient()
244-
>>> client.datasets.inspect('graphops', 'ethereum-mainnet')
245-
Dataset: graphops/ethereum-mainnet@latest
244+
>>> client.datasets.inspect('edgeandnode', 'ethereum-mainnet')
245+
Dataset: edgeandnode/ethereum-mainnet@latest
246246
247247
blocks (4 columns)
248248
block_num UInt64 NOT NULL

0 commit comments

Comments
 (0)