|
18 | 18 | "metadata": {},
|
19 | 19 | "outputs": [],
|
20 | 20 | "source": [
|
21 |
| - "from linkml_runtime.utils.schemaview import SchemaView\n", |
22 | 21 | "import requests\n",
|
23 | 22 | "\n",
|
| 23 | + "from linkml_runtime.utils.schemaview import SchemaView\n", |
| 24 | + "\n", |
24 | 25 | "# note you can also use a path on a local filesystem\n",
|
25 | 26 | "view = SchemaView(\"https://raw.githubusercontent.com/biolink/biolink-model/master/biolink-model.yaml\")"
|
26 | 27 | ]
|
|
91 | 92 | "# object = 'phenotypic feature'\n",
|
92 | 93 | "object = \"sequence variant\"\n",
|
93 | 94 | "\n",
|
94 |
| - "query_prefix = f\"https://www.ebi.ac.uk/ols/api/ontologies/_ontology/terms/\"\n", |
| 95 | + "query_prefix = \"https://www.ebi.ac.uk/ols/api/ontologies/_ontology/terms/\"\n", |
95 | 96 | "mappings = view.get_mappings(object)\n",
|
96 | 97 | "if len(mappings) == 0:\n",
|
97 | 98 | " print(\"no exact mappings found for: \" + object)\n",
|
|
197 | 198 | "source": [
|
198 | 199 | "# find predicates for those associations\n",
|
199 | 200 | "# at this point, navigating the online doc might be easiest if you just want answers.\n",
|
200 |
| - "# programatically, we can get the predicates that have equivalent domain and range constraints to find which\n", |
201 |
| - "# coudl be used for associations above.\n" |
| 201 | + "# programmatically, we can get the predicates that have equivalent domain and range constraints to find which\n", |
| 202 | + "# could be used for associations above.\n" |
202 | 203 | ]
|
203 | 204 | },
|
204 | 205 | {
|
|
0 commit comments