httk.atomistic.httk_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_defs/.
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 vendored definitions, given a map of served name to definition file stem. |
Module Contents¶
- httk.atomistic.httk_definitions.load_httk_definitions(names: collections.abc.Mapping[str, str]) dict[str, httk.core.PropertyDefinition][source]¶
Load vendored definitions, given a map of served name to definition file stem.
Each document is loaded verbatim,
$idincluded. Note that a definition’s ownx-optimade-definition.namestays 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.