|
22 | 22 | "- [Querying data](#Querying-data)" |
23 | 23 | ] |
24 | 24 | }, |
| 25 | + { |
| 26 | + "metadata": {}, |
| 27 | + "cell_type": "markdown", |
| 28 | + "source": [ |
| 29 | + "## Optional: Install & run in online notebook\n", |
| 30 | + "In case you want to run this tutorial in a throw-away environment, you can use an online notebook service, e.g., \n", |
| 31 | + "Google Colab. " |
| 32 | + ], |
| 33 | + "id": "3f70a55ea4a901c5" |
| 34 | + }, |
25 | 35 | { |
26 | 36 | "cell_type": "markdown", |
27 | 37 | "id": "64e0121de7a40c80", |
|
209 | 219 | "\n", |
210 | 220 | "## Installation\n", |
211 | 221 | "\n", |
212 | | - "In case you just want to try the package in a throw-away environment, refer to the [Tutorial: Start tutorial](./start_tutorial.ipynb) Jupyter notebook.\n", |
| 222 | + "In case you just want to try the package in a throw-away environment, refer to the section [Optional: Run in online notebook](#Optional-Run-in-online-notebook) Jupyter notebook.\n", |
213 | 223 | "\n", |
214 | 224 | "### Downloading the library (optional)\n", |
215 | 225 | "The osw-python library is available as GitHub repository and can be downloaded as a ZIP file or via git:\n", |
|
601 | 611 | ] |
602 | 612 | }, |
603 | 613 | { |
604 | | - "cell_type": "code", |
605 | | - "id": "64e0678b77f00772", |
606 | 614 | "metadata": {}, |
| 615 | + "cell_type": "code", |
607 | 616 | "source": [ |
608 | 617 | "# Let's document all storing processes in a list\n", |
609 | 618 | "stored = []\n", |
|
620 | 629 | ") # All default values included\n", |
621 | 630 | "# osw_obj.store_entity(params)" |
622 | 631 | ], |
| 632 | + "id": "78ecbe8be2788f1d", |
623 | 633 | "outputs": [], |
624 | 634 | "execution_count": null |
625 | 635 | }, |
626 | 636 | { |
627 | | - "cell_type": "markdown", |
628 | | - "id": "78f959815e0fe8f", |
629 | 637 | "metadata": {}, |
| 638 | + "cell_type": "markdown", |
630 | 639 | "source": [ |
631 | 640 | "Like most methods and functions in the osw-python library, the `store_entity` takes only a single argument. Usually \n", |
632 | 641 | "either a specific object type or a dedicated params object is accepted. If an object of type other than the params \n", |
|
635 | 644 | "\n", |
636 | 645 | "This ensures that the method signature is as simple as possible and at the same time allows full typing and validation \n", |
637 | 646 | "of input parameters that the method is easy to use. " |
638 | | - ] |
| 647 | + ], |
| 648 | + "id": "2e30dd888a08ca78" |
639 | 649 | }, |
640 | 650 | { |
641 | 651 | "cell_type": "markdown", |
|
1280 | 1290 | "# Test if john is in the list of persons\n", |
1281 | 1291 | "john.get_iri() in persons" |
1282 | 1292 | ], |
1283 | | - "id": "ea4ac48cd87af92a", |
| 1293 | + "id": "c47281593ceed2bf", |
1284 | 1294 | "outputs": [], |
1285 | 1295 | "execution_count": null |
1286 | 1296 | }, |
|
0 commit comments