Skip to content

Latest commit

 

History

History
77 lines (50 loc) · 8.57 KB

CHANGELOG.md

File metadata and controls

77 lines (50 loc) · 8.57 KB

Changelog

v1.2.0 (April 2024)

This release adds significant but optional new functionality to the specification; it also provides several clarifications to existing behaviour.

Minor OPTIMADE releases are always intended to be backwards-compatible for clients, meaning that any client code written for v1.1 should continue to work. Although the majority of features added in this release are optional for servers, there are a couple of mandatory format additions that are discussed below in the notes for implementations. We have clarified our approach to versioning explicitly in the specification under Versioning of this standard.

For a more academic summary of the changes, please see our preprint: arXiv:2402.00572.

In addition to the specification document itself, machine-readable schemas from this repository can now be found hosted at schemas.optimade.org, and HTML builds of the specification can be found at specification.optimade.org.

New features

  • Property definitions (#376): A new section titled Property Definitions has been added to the specification which significantly extends the way in which implementations can define and describe the custom properties they serve, including URIs, unit definitions, API support levels (for querying and sorting) as well as full support for JSON Schema constructs for describing the JSON representation of the property. These definitions form the basis of a new machine-readable form of the OPTIMADE specification found in the main repository and served at schemas.optimade.org.
  • Namespace prefixes for definitions (#473): The mechanism for providers to define custom properties under their own namespace/prefix has been extended to allow implementations to share common definitions. These so-called definition namespaces can be registered as providers in their own right and can serve property definitions in the new format.
  • Partial data (#467): Adds a mechanism and format for streaming, paginating or slicing individual properties within entries.
  • Per entry/property metadata (#463): Added a mechanism for providing metadata specific to a given entry or property.
  • Files endpoint (#360): The files entry type has been added to provide a robust way of linking entries to arbitrary file-based data relevant to the entry, such as alternative crystal structure representation formats, input or output files from computational procedures, or experimental data files.
  • Symmetry operation specification and space group fields (#480, #405, #464): Several fields have been added to the structures entry type to fully describe symmetry. Symmetry operations can be provided explicitly in space_group_symmetry_operations_xyz, as well as space group specifications in various forms: space_group_symbol_hall, space_group_symbol_hermann_mauguin, space_group_symbol_hermann_mauguin_extended, space_group_it_number.
  • Database licenses (#414,#497): Several fields have been added to programmatically describe the licensing status of data served by OPTIMADE APIs. A database-wide license can be provided as a set of SPDX identifiers in available_licenses, with a related field available_licenses_for_entries specifying specifically which licenses apply to individual entries and other non-substantial extracts from the database for cases where these differ from the database-wide licenses. The global field license can be used point to a human-readable license page (external or otherwise) that explains any caveats to the licensing arrangement.
  • Database metadata field (#424): Added an additional metadata field database for providing a human-readable description of a given database.
  • Backoff time (#411): Databases can now request ahead of time that clients apply a particular rate limit or back-off time via the request_delay metadata field.

Patches

  • Fuzzy comparisons on lists (#415): String comparisons like CONTAINS, STARTS WITH and ENDS WITH are now compatible with list filter operations like HAS, HAS ALL etc.
  • Boolean values (#348): Boolean values were overlooked in the first version of the filter grammar as no OPTIMADE fields required them. This functionality has been introduced for boolean fields using the syntax TRUE and FALSE. Only strict equality (=) and inequality (!=) comparisons on individual fields are supported.
  • Compatibility with JSON:API v1.1 (#461): References to JSON:API v1.0 have been updated to v1.1.
  • Typo, formatting and code snippet fixes.

Notes for implementations

As discussed above, the majority of this release involves the addition of more expressive metadata fields for property definitions, definition namespaces shared across providers, and licensing information, as well as mechanisms for serving files and partial data responses (for large entries, e.g., giant structures). We hope that the machine-readable schemas and property definitions now available at schemas.optimade.org will make implementing the specification much easier.

The mandatory format changes required to support v1.2 are limited to the following:

  • /info/<entry_type> endpoints MUST now have a top-level id and type field, e.g., the /info/structures MUST now serve {"id": "structures", "type": "info"}. This is for compliance with JSON:API and their previous omission should be treated as a specification bug.
  • In cases where a server implementation treats filters on non-prefixed but unknown OPTIMADE fields as errors, implementations MUST update their known property list to handle new fields added to OPTIMADE in this version, such that they can continue to follow the expected behaviour for Handling unknown property names.

v1.1.0 (July 8, 2021)

This is release v1.1.0 of the OPTIMADE API specification.

This is a minor release that primarily patches minor specification errors and introduces one new feature.

New features

  • The implementation field of the general meta response has been updated to include an issue_tracker field (#339).

Patches

  • The mass field of the species attribute for the structures entry type has been updated from a float to a list of floats (#344).
    • This was deemed a specification bug that now is fixed in both the specification text and the schemas.
    • Note: this could constitute a breaking change for software implemented to strictly adhere to the v1.0.0 specification.
  • The specification text has been clarified in several places without change of intended meaning.
  • Multiple typos, grammatical errors, and incorrect API examples have been fixed.
  • The OpenAPI schemas are now fully compliant with the Swagger validator.

v1.0.1 (July 28, 2021)

This is release v1.0.1 of the OPTIMADE API specification.

This release contains all of the patches from v1.1.0, whilst maintaining compatibility with v1.0.0.

v1.0.0 (July 1, 2020)

This is release v1.0.0 of the OPTIMADE API specification.