httk.atomistic.entries.definitions

Loading the vendored property definitions published by schemas.httk.org.

OPTIMADE standardises a good deal about a structure but nothing about which setting it is written in, nor about how precisely its numbers were stated. Both are served here as database-specific properties, and rather than describing them locally the descriptions are taken from the published definitions at schemas.httk.org, vendored verbatim in httk.registry.schemas.atomistic.

The served name carries the _httk_ prefix that OPTIMADE requires of a database-specific property; the definition keeps its own $id, so a client following the link reaches the authoritative schema rather than a local paraphrase.

Functions

load_httk_definitions(names)

Load vendored property definitions by served name.

Module Contents

httk.atomistic.entries.definitions.load_httk_definitions(names)[source]

Load vendored property definitions by served name.

Each document is loaded verbatim, $id included. Note that a definition’s own x-optimade-definition.name stays the unprefixed name it was published under, which will differ from the prefixed name httk serves it as — that is correct, and rewriting a published document to match a local naming choice would defeat the point of pointing at it.

Parameters:

names (collections.abc.Mapping[str, str]) – A map from served property name to vendored definition stem.

Returns:

The loaded definitions keyed by served property name.

Return type:

dict[str, httk.core.PropertyDefinition]