Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

ROR

ror_notebook.livemd

ROR

Mix.install([{:ror, ">= 0.1.0"}])
Logger.configure(level: :info)
alias ROR.{Admin,Client,Domain,ExternalID,Filter,ID,Link,Location,Match,Matches,Name,Organization,Relationship,Results,Status,Type}

Getting a record

org = ROR.get!("https://ror.org/04h699437")

Listing Organizations

results = ROR.list!(page: 2)

Using Results

results = ROR.list!(page: 1)
Results.number_of_results(results)
results
|> Enum.sort_by(&(&1.established), :asc)
|> Enum.map(fn o -> "#{o.id} was established in #{o.established}" end)

Quick Search/Queries

results = ROR.quick_search!("Berlin")

Advanced Search

results = ROR.search!("names.value:Cornell AND locations.geonames_details.name:Ithaca")

Chosen Organization Matches

ROR.chosen_organization!("Department of Civil and Industrial Engineering, University of Pisa, Largo Lucio Lazzarino 2, Pisa 56126, Italy")