schemas

package
v0.0.0-...-040724e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2019 License: BSD-3-Clause, GPL-2.0, BSD-3-Clause, + 1 more Imports: 1 Imported by: 1

Documentation

Overview

Package schemas contains utilities for defining data schemas.

It is designed to complement package github.com/antha/antha/anthalib/data with concrete names and types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Columns

type Columns struct {
	// If set, this should contain human-readable column names in the same order
	// as the physical dataset. This may be useful if the file format does not
	// allow arbitrary names in the physical schema.
	Names []string `json:"names,omitempty"`
}

Columns holds column-level metadata.

type DataInfo

type DataInfo struct {
	Tool    *Tool    `json:"tool,omitempty"`
	Origin  *Origin  `json:"origin,omitempty"`
	Columns *Columns `json:"columns,omitempty"`

	// A short name identifying the type of data represented - such as
	// "spectrometer" or "cell count". This is not human-readable and may be
	// used in future as as key in a schema registry or ontology.
	Kind string `json:"kind,omitempty"`

	// A longer comment on the provenance of the data, which might be useful to
	// end-users.
	Comment string `json:"comment,omitempty"`
}

DataInfo contains metadata that cannot be inferred from a file directly. All fields should be considered optional.

type Origin

type Origin struct {
	// If the data was transformed from a vendor-specific file format, this
	// can be used to identify that format (eg. "xml" or "csv")
	Format string `json:"format,omitempty"`

	// Arbitrary key-value properties from a vendor-specific file.
	Properties map[string]json.RawMessage `json:"properties,omitempty"`
}

Origin describes the original source of this data, if any.

type Tool

type Tool struct {
	// An artifact version, in machine-readable form such as a docker image
	// name.
	ExternalID string `json:"external_id,omitempty"`
}

Tool describes the software tool that generated this data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL