Ontologies
The Ontology Lookup Service (OLS) is designed to leverage the power of multiple ontologies, providing a structured and semantic framework for organizing, interpreting, and querying data across various domains.
The OLS provides access to a wide range of ontologies, including the following:
The OLS also provides access to the following cross-domain ontologies:
And many more. The OLS is designed to be extensible, allowing users to add their own ontologies to the system.
Listing ontologies
To list all available ontologies, use the following command:
list_ontologies()
This will return a list of all available ontologies in the OLS.
Note, this will return Ontology objects, which contain information about the ontology, such as the name, title, description, and version. If you wish to only get the ids of the ontologies, you can use the following command:
list_ontology_ids()
Getting an ontology
To get information about a specific ontology, use the following command:
get_ontology("CHEBI")
References
OntologyLookup.Ontologies.get_ontology
— Methodget_ontology(ontology_id::String)::Union{Ontology,Missing}
Fetches an ontology from the OLS (Ontology Lookup Service) based on the given ontology_id
. To get a list of available ontologies, use the list_ontologies()
function.
Returns
- If the ontology is found, returns an
Ontology
object containing information about the ontology. - If the ontology is not found or an error occurs during the fetch, returns
missing
.
See also
OntologyLookup.Ontologies.list_ontologies
— Methodlist_ontologies()::Union{Vector{Ontology},Missing}
Fetches a list of ontologies from the OLS (Ontology Lookup Service) API.
Returns
- If successful, returns a vector of
Ontology
objects representing the fetched ontologies. - If an error occurs during the API request, returns
missing
.
See also
OntologyLookup.Ontologies.list_ontologies_ids
— Methodlist_ontologies_ids()::Union{Vector{String},Missing}
Returns a vector of ontology IDs.
Retrieve the list of available ontologies, and returns a vector of their IDs. If an error occurs during the fetch, the function returns missing
.
See also