monarch-initiative / phenol

phenol: Phenotype ontology library
https://phenol.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
23 stars 4 forks source link

Offer versions in data containers/resource objects #418

Closed ielis closed 2 years ago

ielis commented 2 years ago

It is desirable to keep track of the versions of the used resources. The PR adds Versioned interface that is implemented by resource objects/containers. The version is just a simple string and it is optional:

public interface Versioned {

  /**
   * @return {@link Optional} version {@link String} or an empty {@link Optional} if the version is not available.
   */
  Optional<String> version();

}

For start, Versioned is implemented by MinimalOntology and HpoDiseases.