Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDeprecated = errors.New("vocab: deprecated") ErrUnknown = errors.New("vocab: unknown") )
Functions ¶
func AudienceOptions ¶
func BindingOptions ¶
Types ¶
type Audience ¶
type Audience string
const ( TG1000 Audience = "TG1000" TG1001 Audience = "TG1001" TG1002 Audience = "TG1002" TG1003 Audience = "TG1003" TG1004 Audience = "TG1004" TG1005 Audience = "TG1005" TG1006 Audience = "TG1006" TG1007 Audience = "TG1007" TG1008 Audience = "TG1008" TG1009 Audience = "TG1009" TG1010 Audience = "TG1010" TG1011 Audience = "TG1011" TG1012 Audience = "TG1012" TG1013 Audience = "TG1013" TG1014 Audience = "TG1014" TG1015 Audience = "TG1015" TG1016 Audience = "TG1016" TG1017 Audience = "TG1017" )
func ParseAudience ¶
func ParseAudienceCode ¶
func ParseAudienceURL ¶
type Identifier ¶
Identifier is an external, known Identifier.
func ParseIdentifier ¶
func ParseIdentifier(code, value string) Identifier
ParseIdentifier creates an Identifier from the give code and value. If the code is not known, the Identifier Label will be set as the code, and the URL will be empty.
type Relation ¶
type Relation string
const ( RelationInvalid Relation = "invalid" RelationHasContributor Relation = "has_contributor" RelationHasSubject Relation = "has_subject" RelationPublishedBy Relation = "published_by" RelationInSeries Relation = "in_series" RelationHasParent Relation = "has_parent" RelationHasPart Relation = "has_part" RelationHasClassification Relation = "has_classification" // has_dewey? RelationSubsidiaryOf Relation = "subsidiary_of" // TODO has_parent is enough? RelationImprintOf Relation = "imprint_of" )
func ParseRelation ¶
type Term ¶
type Term interface { // Code is the coded value of a Term. Code() string // URI is the canonical representation of the Term. // The URI does not need to resolve. URI() string // Label should return a localized string representation of a Term. Label(language.Tag) string // Alias or synonyms for the term. Only aliases matching the language.Tag // should be returned. Alias(language.Tag) []string }
Term is a vocabulary term.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
bs
|
|
Code generated by go generate; DO NOT EDIT.
|
Code generated by go generate; DO NOT EDIT. |
Code generated by go generate; DO NOT EDIT.
|
Code generated by go generate; DO NOT EDIT. |
Code generated by go generate; DO NOT EDIT.
|
Code generated by go generate; DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.