cerif

package
v0.0.0-...-2888ca3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNonCompliantXml = errors.New("non compliant cerif xml")

Functions

This section is empty.

Types

type Classification

type Classification struct {
	URI         string               `json:"uri,omitempty"`
	Name        []TranslatedString   `json:"name,omitempty"`
	Description []TranslatedString   `json:"description,omitempty"`
	Terms       []ClassificationTerm `json:"terms,omitempty"`
}

type ClassificationTerm

type ClassificationTerm struct {
	URI       string             `json:"uri,omitempty"`
	Term      []TranslatedString `json:"term,omitempty"`
	StartDate time.Time          `json:"start_date,omitempty"`
	EndDate   time.Time          `json:"end_date,omitempty"`
}

type FederatedID

type FederatedID struct {
	ID        string             `json:"id,omitempty"`
	URI       string             `json:"uri,omitempty"`
	Term      []TranslatedString `json:"term,omitempty"`
	StartDate time.Time          `json:"start_date,omitempty"`
	EndDate   time.Time          `json:"end_date,omitempty"`
}

type FederatedIDClassification

type FederatedIDClassification struct {
	URI         string             `json:"uri,omitempty"`
	Name        []TranslatedString `json:"name,omitempty"`
	Description []TranslatedString `json:"description,omitempty"`
	IDS         []FederatedID      `json:"ids,omitempty"`
}

type Project

type Project struct {
	ID             string                      `json:"id,omitempty"`
	StartDate      string                      `json:"start_date,omitempty"`
	EndDate        string                      `json:"end_date,omitempty"`
	Acronym        string                      `json:"acronym,omitempty"`
	Title          []TranslatedString          `json:"title,omitempty"`
	Abstract       []TranslatedString          `json:"abstract,omitempty"`
	Keyword        []TranslatedString          `json:"keyword,omitempty"`
	Classification []Classification            `json:"classfication,omitempty"`
	FederatedIDS   []FederatedIDClassification `json:"federated_ids,omitempty"`
	SentDateTime   time.Time                   `json:"sent_date_time,omitempty"`
	Action         string                      `json:"action,omitempty"`
}

func ParseProject

func ParseProject(buf []byte) (*Project, error)

type TranslatedString

type TranslatedString struct {
	Translation string `json:"translation,omitempty"`
	Lang        string `json:"lang,omitempty"`
	Value       string `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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