Skip to content

Commit 085b0c3

Browse files
Merge pull request #51 from CivicDataLab/revert-50-dataspace_sdk
Revert "Corrected getdataset query"
2 parents 8fc54f2 + b84ed1e commit 085b0c3

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

dataspace_sdk/resources/datasets.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ def get_by_id(self, dataset_id: str) -> Dict[str, Any]:
7171
"""
7272
query = """
7373
query GetDataset($id: UUID!) {
74-
getDataset(datasetId: $id) {
74+
dataset(id: $id) {
7575
id
7676
title
7777
description
7878
status
7979
accessType
8080
license
81-
created
82-
modified
81+
createdAt
82+
updatedAt
8383
organization {
8484
id
8585
name
@@ -99,16 +99,12 @@ def get_by_id(self, dataset_id: str) -> Dict[str, Any]:
9999
}
100100
resources {
101101
id
102-
name
102+
title
103103
description
104-
fileDetails {
105-
format
106-
}
107-
schema {
108-
fieldName
109-
}
110-
created
111-
modified
104+
fileDetails
105+
schema
106+
createdAt
107+
updatedAt
112108
}
113109
}
114110
}

0 commit comments

Comments
 (0)