grodata

package
v0.0.0-...-978eaa1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	AuthorName             string `json:"authorName,omitempty"`
	AuthorAffiliation      string `json:"authorAffiliation,omitempty"`
	AuthorIdentifierScheme string `json:"authorIdentifierScheme,omitempty"`
	AuthorIdentifier       string `json:"authorIdentifier,omitempty"`
}

type CustomDate

type CustomDate struct {
	time.Time
}

func (CustomDate) MarshalJSON

func (cd CustomDate) MarshalJSON() ([]byte, error)

func (*CustomDate) UnmarshalJSON

func (cd *CustomDate) UnmarshalJSON(b []byte) error

type DataFile

type DataFile struct {
	ID                int    `json:"id"`
	PersistentId      string `json:"persistentId,omitempty"`
	PidURL            string `json:"pidURL,omitempty"`
	Filename          string `json:"filename,omitempty"`
	ContentType       string `json:"contentType,omitempty"`
	FriendlyType      string `json:"friendlyType,omitempty"`
	Filesize          int    `json:"filesize,omitempty"`
	Description       string `json:"description,omitempty"`
	StorageIdentifier string `json:"storageIdentifier,omitempty"`
	RootDataFileId    int    `json:"rootDataFileId,omitempty"`
	Md5               string `json:"md5,omitempty"`
	Checksum          struct {
		Type  string `json:"type,omitempty"`
		Value string `json:"value,omitempty"`
	} `json:"checksum,omitempty"`
	TabularData       bool       `json:"tabularData,omitempty"`
	CreationDate      CustomDate `json:"creationDate,omitempty"`
	PublicationDate   CustomDate `json:"publicationDate,omitempty"`
	FileAccessRequest bool       `json:"fileAccessRequest,omitempty"`
}

type DatasetContact

type DatasetContact struct {
	DatasetContactName        string `json:"datasetContactName,omitempty"`
	DatasetContactAffiliation string `json:"datasetContactAffiliation,omitempty"`
	DatasetContactEmail       string `json:"datasetContactEmail,omitempty"`
}

type DatasetVersion

type DatasetVersion struct {
	ID                  int        `json:"id"`
	DatasetId           int        `json:"datasetId,omitempty"`
	DatasetPersistentId string     `json:"datasetPersistentId,omitempty"`
	StorageIdentifier   string     `json:"storageIdentifier,omitempty"`
	VersionNumber       int        `json:"versionNumber,omitempty"`
	VersionMinorNumber  int        `json:"versionMinorNumber,omitempty"`
	VersionState        string     `json:"versionState,omitempty"`
	UNF                 string     `json:"UNF,omitempty"`
	LastUpdateTime      CustomDate `json:"lastUpdateTime,omitempty"`
	ReleaseTime         CustomDate `json:"releaseTime,omitempty"`
	CreateTime          CustomDate `json:"createTime,omitempty"`
	PublicationDate     CustomDate `json:"publicationDate,omitempty"`
	CitationDate        CustomDate `json:"citationDate,omitempty"`
	License             License    `json:"license,omitempty"`
	FileAccessRequest   bool       `json:"fileAccessRequest,omitempty"`
	MetadataBlocks      struct {
		Citation   MetadataBlock `json:"citation,omitempty"`
		Geospatial MetadataBlock `json:"geospatial,omitempty"`
		Journal    MetadataBlock `json:"journal,omitempty"`
	} `json:"metadataBlocks,omitempty"`
	Files    []File `json:"files,omitempty"`
	Citation string `json:"citation,omitempty"`
}

type DsDescription

type DsDescription struct {
	DsDescriptionValue string     `json:"dsDescriptionValue,omitempty"`
	DsDescriptionDate  CustomDate `json:"dsDescriptionDate,omitempty"`
}

type Field

type Field struct {
	TypeName  string         `json:"typeName,omitempty"`
	Multiple  bool           `json:"multiple,omitempty"`
	TypeClass string         `json:"typeClass,omitempty"`
	Value     StringOrFields `json:"value,omitempty"`
}

type Fields

type Fields []Field

func (Fields) GetField

func (f Fields) GetField(name string) (Field, bool)

func (Fields) GetFields

func (f Fields) GetFields() []string

type File

type File struct {
	Description      string   `json:"description,omitempty"`
	Label            string   `json:"label,omitempty"`
	Restricted       bool     `json:"restricted,omitempty"`
	Version          int      `json:"version,omitempty"`
	DatasetVersionId int      `json:"datasetVersionId,omitempty"`
	DataFile         DataFile `json:"dataFile,omitempty"`
}

type GrantNumber

type GrantNumber struct {
	GrantNumberAgency string `json:"grantNumberAgency,omitempty"`
	GrantNumberValue  string `json:"grantNumberValue,omitempty"`
}

type Grodata

type Grodata struct {
	ID                int            `json:"id"`
	Identifier        string         `json:"identifier,omitempty"`
	PersistentUrl     string         `json:"persistentUrl,omitempty"`
	Protocol          string         `json:"protocol,omitempty"`
	Authority         string         `json:"authority,omitempty"`
	Publisher         string         `json:"publisher,omitempty"`
	PublicationDate   CustomDate     `json:"publicationDate,omitempty"`
	StorageIdentifier string         `json:"storageIdentifier,omitempty"`
	DatasetVersion    DatasetVersion `json:"datasetVersion,omitempty"`
}

func (Grodata) GetAuthors

func (data Grodata) GetAuthors() []Author

func (Grodata) GetDescription

func (data Grodata) GetDescription() string

func (Grodata) GetTitle

func (data Grodata) GetTitle() string

type Keyword

type Keyword struct {
	KeywordValue         string `json:"keywordValue,omitempty"`
	KeywordVocabulary    string `json:"keywordVocabulary,omitempty"`
	KeywordVocabularyURI string `json:"keywordVocabularyURI,omitempty"`
}

type License

type License struct {
	Name    string `json:"name,omitempty"`
	Uri     string `json:"uri,omitempty"`
	IconUri string `json:"iconUri,omitempty"`
}

type MetadataBlock

type MetadataBlock struct {
	DisplayName string `json:"displayName,omitempty"`
	Name        string `json:"name,omitempty"`
	Fields      Fields `json:"fields,omitempty"`
}

type Publication

type Publication struct {
	PublicationCitation string `json:"publicationCitation,omitempty"`
	PublicationIDType   string `json:"publicationIDType,omitempty"`
	PublicationIDNumber string `json:"publicationIDNumber,omitempty"`
	PublicationURL      string `json:"publicationURL,omitempty"`
}

type StringOrFields

type StringOrFields struct {
	Type   string
	Str    []string           `json:"string,omitempty"`
	Fields []map[string]Field `json:"fields,omitempty"`
}

func (StringOrFields) GetField

func (s StringOrFields) GetField(name string) (Field, bool)

func (StringOrFields) MarshalJSON

func (s StringOrFields) MarshalJSON() ([]byte, error)

func (StringOrFields) String

func (s StringOrFields) String() string

func (*StringOrFields) UnmarshalJSON

func (s *StringOrFields) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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