Skip to content

Commit

Permalink
biothings semmeddb: adjust fields, response-mapping for post-processing
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenXu committed Aug 21, 2024
1 parent cb3e1b3 commit 5f7ac52
Show file tree
Hide file tree
Showing 4 changed files with 10,080 additions and 10,088 deletions.
20 changes: 10 additions & 10 deletions semmeddb/AutoGen_SEMMEDDB.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9139,7 +9139,7 @@
" 'inputs': [{'id': 'UMLS', 'semantic': 'GrossAnatomicalStructure'}],\n",
" 'requestBody': {'body': {'q': '{{ queryInputs }}',\n",
" 'scopes': 'subject.umls'}},\n",
" 'parameters': {'fields': 'object.umls,predication.pmid,predication.sentence,subject.name,object.name',\n",
" 'parameters': {'fields': 'object.umls,predication,pmid_count,subject.name,object.name',\n",
" 'size': 1000,\n",
" 'filter': 'predicate:LOCATION_OF AND object.semantic_type_abbreviation:neop AND _exists_:object.umls AND pmid_count:>3'},\n",
" 'outputs': [{'id': 'UMLS', 'semantic': 'Disease'}],\n",
Expand Down Expand Up @@ -9184,7 +9184,7 @@
" 'inputs': [{'id': 'NCBIGene', 'semantic': 'Gene'}],\n",
" 'requestBody': {'body': {'q': '{{ queryInputs }}',\n",
" 'scopes': 'subject.ncbigene'}},\n",
" 'parameters': {'fields': 'object.umls,predication.pmid,predication.sentence,subject.name,object.name',\n",
" 'parameters': {'fields': 'object.umls,predication,pmid_count,subject.name,object.name',\n",
" 'size': 1000,\n",
" 'filter': 'predicate:ASSOCIATED_WITH AND object.semantic_type_abbreviation:neop AND _exists_:object.umls AND pmid_count:>3'},\n",
" 'outputs': [{'id': 'UMLS', 'semantic': 'Disease'}],\n",
Expand Down Expand Up @@ -9229,7 +9229,7 @@
" 'inputs': [{'id': 'UMLS', 'semantic': 'Polypeptide'}],\n",
" 'requestBody': {'body': {'q': '{{ queryInputs }}',\n",
" 'scopes': 'subject.umls'}},\n",
" 'parameters': {'fields': 'object.ncbigene,predication.pmid,predication.sentence,subject.name,object.name',\n",
" 'parameters': {'fields': 'object.ncbigene,predication,pmid_count,subject.name,object.name',\n",
" 'size': 1000,\n",
" 'filter': 'predicate:STIMULATES AND object.semantic_type_abbreviation:gngm AND _exists_:object.ncbigene AND pmid_count:>3'},\n",
" 'outputs': [{'id': 'NCBIGene', 'semantic': 'Gene'}],\n",
Expand Down Expand Up @@ -9277,7 +9277,7 @@
" 'inputs': [{'id': 'NCBIGene', 'semantic': 'Gene'}],\n",
" 'requestBody': {'body': {'q': '{{ queryInputs }}',\n",
" 'scopes': 'subject.ncbigene'}},\n",
" 'parameters': {'fields': 'object.ncbigene,predication.pmid,predication.sentence,subject.name,object.name',\n",
" 'parameters': {'fields': 'object.ncbigene,predication,pmid_count,subject.name,object.name',\n",
" 'size': 1000,\n",
" 'filter': 'predicate:STIMULATES AND object.semantic_type_abbreviation:gngm AND _exists_:object.ncbigene AND pmid_count:>3'},\n",
" 'outputs': [{'id': 'NCBIGene', 'semantic': 'Gene'}],\n",
Expand Down Expand Up @@ -10023,7 +10023,7 @@
" 'inputs': [{'id': 'UMLS', 'semantic': 'Disease'}],\n",
" 'requestBody': {'body': {'q': '{{ queryInputs }}',\n",
" 'scopes': 'object.umls'}},\n",
" 'parameters': {'fields': 'subject.umls,predication.pmid,predication.sentence,subject.name,object.name',\n",
" 'parameters': {'fields': 'subject.umls,predication,pmid_count,subject.name,object.name',\n",
" 'size': 1000,\n",
" 'filter': 'predicate:LOCATION_OF AND subject.semantic_type_abbreviation:bpoc AND _exists_:subject.umls AND pmid_count:>3'},\n",
" 'outputs': [{'id': 'UMLS', 'semantic': 'GrossAnatomicalStructure'}],\n",
Expand Down Expand Up @@ -10068,7 +10068,7 @@
" 'inputs': [{'id': 'UMLS', 'semantic': 'Disease'}],\n",
" 'requestBody': {'body': {'q': '{{ queryInputs }}',\n",
" 'scopes': 'object.umls'}},\n",
" 'parameters': {'fields': 'subject.ncbigene,predication.pmid,predication.sentence,subject.name,object.name',\n",
" 'parameters': {'fields': 'subject.ncbigene,predication,pmid_count,subject.name,object.name',\n",
" 'size': 1000,\n",
" 'filter': 'predicate:ASSOCIATED_WITH AND subject.semantic_type_abbreviation:gngm AND _exists_:subject.ncbigene AND pmid_count:>3'},\n",
" 'outputs': [{'id': 'NCBIGene', 'semantic': 'Gene'}],\n",
Expand Down Expand Up @@ -10113,7 +10113,7 @@
" 'inputs': [{'id': 'NCBIGene', 'semantic': 'Gene'}],\n",
" 'requestBody': {'body': {'q': '{{ queryInputs }}',\n",
" 'scopes': 'object.ncbigene'}},\n",
" 'parameters': {'fields': 'subject.umls,predication.pmid,predication.sentence,subject.name,object.name',\n",
" 'parameters': {'fields': 'subject.umls,predication,pmid_count,subject.name,object.name',\n",
" 'size': 1000,\n",
" 'filter': 'predicate:STIMULATES AND subject.semantic_type_abbreviation:aapp AND _exists_:subject.umls AND pmid_count:>3'},\n",
" 'outputs': [{'id': 'UMLS', 'semantic': 'Polypeptide'}],\n",
Expand Down Expand Up @@ -10161,7 +10161,7 @@
" 'inputs': [{'id': 'NCBIGene', 'semantic': 'Gene'}],\n",
" 'requestBody': {'body': {'q': '{{ queryInputs }}',\n",
" 'scopes': 'object.ncbigene'}},\n",
" 'parameters': {'fields': 'subject.ncbigene,predication.pmid,predication.sentence,subject.name,object.name',\n",
" 'parameters': {'fields': 'subject.ncbigene,predication,pmid_count,subject.name,object.name',\n",
" 'size': 1000,\n",
" 'filter': 'predicate:STIMULATES AND subject.semantic_type_abbreviation:gngm AND _exists_:subject.ncbigene AND pmid_count:>3'},\n",
" 'outputs': [{'id': 'NCBIGene', 'semantic': 'Gene'}],\n",
Expand Down Expand Up @@ -10334,7 +10334,7 @@
" 'inputs': [{'id': 'NCBIGene', 'semantic': 'Gene'}],\n",
" 'requestBody': {'body': {'q': '{{ queryInputs }}',\n",
" 'scopes': 'object.ncbigene'}},\n",
" 'parameters': {'fields': 'subject.umls,predication.pmid,predication.sentence,subject.name,object.name',\n",
" 'parameters': {'fields': 'subject.umls,predication,pmid_count,subject.name,object.name',\n",
" 'size': 1000,\n",
" 'filter': 'predicate:INHIBITS AND '\n",
" 'subject.semantic_type_abbreviation:orch AND '\n",
Expand Down Expand Up @@ -10380,7 +10380,7 @@
" 'useTemplating': True,\n",
" 'inputs': [{'id': 'UMLS', 'semantic': 'ChemicalEntity'}],\n",
" 'requestBody': {'body': {'q': '{{ queryInputs }}', 'scopes': 'subject.umls'}},\n",
" 'parameters': {'fields': 'object.umls,predication.pmid,predication.sentence,subject.name,object.name',\n",
" 'parameters': {'fields': 'object.umls,predication,pmid_count,subject.name,object.name',\n",
" 'size': 1000,\n",
" 'filter': 'predicate:CAUSES AND '\n",
" 'object.semantic_type_abbreviation:neop AND '\n",
Expand Down
Loading

0 comments on commit 5f7ac52

Please sign in to comment.