We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c272fef commit fb74b8aCopy full SHA for fb74b8a
1 file changed
databusclient/client.py
@@ -253,6 +253,8 @@ def create_dataset(
253
# was not sure if there are edge cases BASE=http://databus.example.org/"base"/...
254
group_id = _versionId.rsplit("/", 2)[0]
255
256
+ artifact_id = _versionId.rsplit("/", 1)[0]
257
+
258
distribution_list = []
259
for dst_string in distributions:
260
__url = str(dst_string).split("|")[0]
@@ -303,6 +305,17 @@ def create_dataset(
303
305
304
306
graphs.append(group_dict)
307
308
+ # add the artifact graph
309
310
+ artifact_graph = {
311
+ "@id": artifact_id,
312
+ "@type": "Artifact",
313
+ "title": title,
314
+ "abstract": abstract,
315
+ "description": description
316
+ }
317
+ graphs.append(artifact_graph)
318
319
# add the dataset graph
320
321
dataset_graph = {
0 commit comments