components

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorComponent

type AuthorComponent struct {
	LastName  string `xml:"cmdp:lastName"`
	FirstName string `xml:"cmdp:firstName,omitempty"`
}

type BibliographicInfoComponent

type BibliographicInfoComponent struct {
	ProjectUrl    string                 `xml:"cmdp:projectUrl,omitempty"`
	Version       string                 `xml:"cmdp:version,omitempty"`
	Titles        formats.MultilangArray `xml:"cmdp:titles>cmdp:title"`
	Authors       []AuthorComponent      `xml:"cmdp:authors>cmdp:author"`
	Dates         *DatesComponent        `xml:"cmdp:dates,omitempty"`
	Identifiers   []formats.TypedElement `xml:"cmdp:identifiers>cmdp:identifier"`
	Funds         *[]FundingComponent    `xml:"cmdp:funding>cmdp:funds,omitempty"`
	ContactPerson ContactPersonComponent `xml:"cmdp:contactPerson"`
	Publishers    []string               `xml:"cmdp:publishers>cmdp:publisher"`
}

type CollectionInfoComponent

type CollectionInfoComponent struct {
	TimePeriods []string `xml:"cmdp:timePeriod,omitempty"`        // When the data were gathered, which era do they come from
	Places      []string `xml:"cmdp:place,omitempty"`             // The origin of the data. e.g. The data were gathered in Bohemia
	Forms       []string `xml:"cmdp:forms>cmdp:form,omitempty"`   // spoken, written,...
	Genres      []string `xml:"cmdp:genres>cmdp:genre,omitempty"` // fiction, news, blog
}

type ContactPersonComponent

type ContactPersonComponent struct {
	LastName    string `xml:"cmdp:lastName"`
	FirstName   string `xml:"cmdp:firstName"`
	Email       string `xml:"cmdp:email"`
	Affiliation string `xml:"cmdp:affiliation"`
}

type DataInfoComponent

type DataInfoComponent struct {
	Type           string                   `xml:"cmdp:type"`                   // e.g. corpus, tool
	DetailedType   string                   `xml:"cmdp:detailedType,omitempty"` // Further specification of the type
	Description    formats.MultilangArray   `xml:"cmdp:description"`
	Languages      *[]LanguageComponent     `xml:"cmdp:languages>cmdp:language,omitempty"`
	Keywords       *[]string                `xml:"cmdp:keywords>cmdp:keyword,omitempty"`
	Links          *[]formats.TypedElement  `xml:"cmdp:links>cmdp:link,omitempty"` // demo url, documentation url
	SizeInfo       *[]SizeComponent         `xml:"cmdp:sizeInfo>cmdp:size,omitempty"`
	Formats        *[]FormatComponent       `xml:"cmdp:formats>cmdp:format,omitempty"`
	Requirements   *[]string                `xml:"cmdp:requirements>cmdp:requirement,omitempty"` // e.g. OS, prerequisities
	CollectionInfo *CollectionInfoComponent `xml:"cmdp:collectionInfo,omitempty"`
	AnnotationInfo *[]string                `xml:"cmdp:annotationInfo>cmdp:annotationType,omitempty"` // tags, lemmas, phrase alignment, coreference, ...
}

type DatesComponent

type DatesComponent struct {
	Dates      []formats.TypedElement `xml:"cmdp:date,omitempty"` // type is value scheme
	DateIssued string                 `xml:"cmdp:dateIssued,omitempty"`
}

type FormatComponent

type FormatComponent struct {
	Type          string `xml:"cmdp:type,attr,omitempty"`
	Name          string `xml:"cmdp:name,omitempty"`
	Medium        string `xml:"cmdp:medium,omitempty"` // text, audio, ...
	Documentation string `xml:"cmdp:documentation,omitempty"`
	Description   string `xml:"cmdp:description,omitempty"` // e.g. vertical format, where each line is "form/lemma/tag"
}

type FundingComponent

type FundingComponent struct {
	Organization string `xml:"cmdp:organization"`
	Code         string `xml:"cmdp:code"` // grant or project id
	ProjectName  string `xml:"cmdp:projectName"`
	FundsType    string `xml:"cmdp:fundsType"`
}

type LanguageComponent

type LanguageComponent struct {
	Name string `xml:"cmdp:name"`
	Code string `xml:"cmdp:code"`
}

type SizeComponent

type SizeComponent struct {
	Size string `xml:"cmdp:size"`
	Unit string `xml:"cmdp:unit"`
}

Jump to

Keyboard shortcuts

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