Node
Return nodes, sorted by similarity to the search term.
Use search=<str>
to search identifier
for prefix match, and name
for substring and trigram searches (similarity defaults to 0.3);
Use search=<str>&similarity=<value>
to set your own similarity
value in the range of (0, 1.0].
Set similarity=1.0
to exclude trigram search.
Filter for select metanodes using metanodes=<str>
, where <str>
is a comma-separated list of metanode abbreviations.
For example, metanodes=C,D
will restrict to Compound and Disease nodes.
Set other-node=<node_id>
to return non-null values for metapath_count
.
metapath_counts
measures the number of metapaths stored in the database between the result node and other node.
If search
and other-node
and both specified, results are sorted by search similarity and results with metapath_count == 0
are returned.
If other-node
is specified but not search
, results are sorted by metapath_count
(descending) and only results with metapath_count > 0
are returned.
GET /v1/nodes/?format=api&offset=47025
http://search-api.het.io/v1/nodes/?format=api&limit=25&offset=47000", "results": [ { "id": 47025, "identifier": "GO:0048239", "identifier_type": "str", "name": "negative regulation of DNA recombination at telomere", "properties": { "url": "http://purl.obolibrary.org/obo/GO_0048239", "source": "Gene Ontology", "license": "CC BY 4.0" }, "metanode": "Biological Process" }, { "id": 47026, "identifier": "GO:0005581", "identifier_type": "str", "name": "collagen trimer", "properties": { "url": "http://purl.obolibrary.org/obo/GO_0005581", "source": "Gene Ontology", "license": "CC BY 4.0" }, "metanode": "Cellular Component" }, { "id": 47027, "identifier": "977", "identifier_type": "int", "name": "CD151", "properties": { "url": "http://identifiers.org/ncbigene/977", "source": "Entrez Gene", "license": "CC0 1.0", "chromosome": "11", "description": "CD151 molecule (Raph blood group)" }, "metanode": "Gene" }, { "id": 47028, "identifier": "51015", "identifier_type": "int", "name": "ISOC1", "properties": { "url": "http://identifiers.org/ncbigene/51015", "source": "Entrez Gene", "license": "CC0 1.0", "chromosome": "5", "description": "isochorismatase domain containing 1" }, "metanode": "Gene" }, { "id": 47029, "identifier": "GO:0055029", "identifier_type": "str", "name": "nuclear DNA-directed RNA polymerase complex", "properties": { "url": "http://purl.obolibrary.org/obo/GO_0055029", "source": "Gene Ontology", "license": "CC BY 4.0" }, "metanode": "Cellular Component" }, { "id": 47030, "identifier": "GO:0002562", "identifier_type": "str", "name": "somatic diversification of immune receptors via germline recombination within a single locus", "properties": { "url": "http://purl.obolibrary.org/obo/GO_0002562", "source": "Gene Ontology", "license": "CC BY 4.0" }, "metanode": "Biological Process" } ] }{ "count": 47031, "next": null, "previous": "