View Source ROR.Match (ROR v0.1.0)

Functions for extracting and using Match data from a ROR Organization record

Each Organization with a match from the ROR.identify!/2 function is wrapped up in a Match struct

Summary

Functions

Extracts Match records from the JSON returned by an affiliation API call

List possible types of match

Types

t()

@type t() :: %ROR.Match{
  chosen: boolean(),
  matching_type: atom(),
  organization: ROR.Organization.t(),
  score: float(),
  substring: binary()
}

Functions

extract(data)

@spec extract(data :: map()) :: [t()]

Extracts Match records from the JSON returned by an affiliation API call

vocab()

@spec vocab() :: [atom()]

List possible types of match