Skip to contents

The source companion and its pinned dictionary files are validated by the upstream data-dict CLI and retained in one immutable artifact selection. After publication, the function reads the typed release back from the store and returns it.

Usage

graft_publish_vocabulary(store, path)

Arguments

store

An ArtifactStore returned by graft_store() or graft_store_postgres().

path

Path to a graft-bindings/1 JSON companion file. Referenced vocabulary JSON and dictionary YAML files must be siblings pinned by SHA-256.

Value

A VocabularyRelease containing the verified selection and the complete retained vocabulary, bindings, dictionaries, references, and context.