Skip to content

Commit 05ce579

Browse files
authored
Fix #79 (#80)
1 parent a5464d3 commit 05ce579

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

examples/PyST basic demo.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"metadata": {},
186186
"outputs": [],
187187
"source": [
188-
"response = client.post(\"/concept_scheme/\", json=scheme)\n",
188+
"response = client.post(\"api/v1/concept_schemes/\", json=scheme)\n",
189189
"response.status_code"
190190
]
191191
},
@@ -296,7 +296,7 @@
296296
"metadata": {},
297297
"outputs": [],
298298
"source": [
299-
"response = client.post(\"/concept/\", json=concept_top)\n",
299+
"response = client.post(\"api/v1/concepts/\", json=concept_top)\n",
300300
"response.status_code"
301301
]
302302
},
@@ -389,7 +389,7 @@
389389
"metadata": {},
390390
"outputs": [],
391391
"source": [
392-
"response = client.post(\"/concept/\", json=concept_mid)\n",
392+
"response = client.post(\"api/v1/concepts/\", json=concept_mid)\n",
393393
"response.status_code"
394394
]
395395
},
@@ -410,7 +410,7 @@
410410
"metadata": {},
411411
"outputs": [],
412412
"source": [
413-
"response = client.get(\"/relationships/\", params={\"iri\": \"http://data.europa.eu/xsp/cn2024/370021000090\"})\n",
413+
"response = client.get(\"api/v1/relationships/\", params={\"iri\": \"http://data.europa.eu/xsp/cn2024/370021000090\"})\n",
414414
"response.json()"
415415
]
416416
},
@@ -429,7 +429,7 @@
429429
"metadata": {},
430430
"outputs": [],
431431
"source": [
432-
"client.get(\"/concept/\", params={\"iri\": \"http://data.europa.eu/xsp/cn2024/280011000090\"}).json()"
432+
"client.get(\"api/v1/concepts/\", params={\"iri\": \"http://data.europa.eu/xsp/cn2024/280011000090\"}).json()"
433433
]
434434
},
435435
{
@@ -439,7 +439,7 @@
439439
"metadata": {},
440440
"outputs": [],
441441
"source": [
442-
"response = client.get(\"/relationships/\", params={\"iri\": \"http://data.europa.eu/xsp/cn2024/280011000090\", \"target\": \"1\"})\n",
442+
"response = client.get(\"api/v1/relationships/\", params={\"iri\": \"http://data.europa.eu/xsp/cn2024/280011000090\", \"target\": \"1\"})\n",
443443
"response.json()"
444444
]
445445
},
@@ -540,7 +540,7 @@
540540
"metadata": {},
541541
"outputs": [],
542542
"source": [
543-
"response = client.post(\"/concept/\", json=concept_low)\n",
543+
"response = client.post(\"api/v1/concepts/\", json=concept_low)\n",
544544
"response.status_code"
545545
]
546546
},
@@ -561,7 +561,7 @@
561561
"metadata": {},
562562
"outputs": [],
563563
"source": [
564-
"response = client.get(\"/concept/search/\", params={\"query\": \"kodak\", \"language\": \"es\"})\n",
564+
"response = client.get(\"api/v1/concepts/search/\", params={\"query\": \"kodak\", \"language\": \"es\"})\n",
565565
"response.json()"
566566
]
567567
},
@@ -580,7 +580,7 @@
580580
"metadata": {},
581581
"outputs": [],
582582
"source": [
583-
"response = client.get(\"/concept/suggest/\", params={\"query\": \"pape\", \"language\": \"es\"})\n",
583+
"response = client.get(\"api/v1/concepts/suggest/\", params={\"query\": \"pape\", \"language\": \"es\"})\n",
584584
"response.json()"
585585
]
586586
},
@@ -687,7 +687,7 @@
687687
"metadata": {},
688688
"outputs": [],
689689
"source": [
690-
"response = client.post(\"/concept/\", json=concept_film)\n",
690+
"response = client.post(\"api/v1/concepts/\", json=concept_film)\n",
691691
"response.status_code"
692692
]
693693
},
@@ -773,7 +773,7 @@
773773
"metadata": {},
774774
"outputs": [],
775775
"source": [
776-
"response = client.post(\"/correspondence/\", json=correspondence)\n",
776+
"response = client.post(\"api/v1/correspondences/\", json=correspondence)\n",
777777
"response.status_code"
778778
]
779779
},
@@ -817,7 +817,7 @@
817817
"metadata": {},
818818
"outputs": [],
819819
"source": [
820-
"response = client.post(\"/association/\", json=association)\n",
820+
"response = client.post(\"api/v1/associations/\", json=association)\n",
821821
"response.status_code"
822822
]
823823
},
@@ -855,7 +855,7 @@
855855
"metadata": {},
856856
"outputs": [],
857857
"source": [
858-
"response = client.post(\"/relationships/\", json=film_relationship)\n",
858+
"response = client.post(\"api/v1/relationships/\", json=film_relationship)\n",
859859
"response.status_code"
860860
]
861861
},
@@ -866,22 +866,22 @@
866866
"metadata": {},
867867
"outputs": [],
868868
"source": [
869-
"response = client.get(\"/relationships/\", params={\"iri\": \"http://data.europa.eu/xsp/cn2024/370400100080\"})\n",
869+
"response = client.get(\"api/v1/relationships/\", params={\"iri\": \"http://data.europa.eu/xsp/cn2024/370400100080\"})\n",
870870
"response.json()"
871871
]
872872
},
873873
{
874874
"cell_type": "code",
875875
"execution_count": null,
876-
"id": "50742a81-5579-44ad-a608-87faa525f8b9",
876+
"id": "0e064f72",
877877
"metadata": {},
878878
"outputs": [],
879879
"source": []
880880
}
881881
],
882882
"metadata": {
883883
"kernelspec": {
884-
"display_name": "Python 3 (ipykernel)",
884+
"display_name": "ds",
885885
"language": "python",
886886
"name": "python3"
887887
},
@@ -895,7 +895,7 @@
895895
"name": "python",
896896
"nbconvert_exporter": "python",
897897
"pygments_lexer": "ipython3",
898-
"version": "3.13.2"
898+
"version": "3.12.2"
899899
}
900900
},
901901
"nbformat": 4,

0 commit comments

Comments
 (0)