Documentation ¶
Index ¶
- func EnableDebugging()
- type Concept
- type ConceptScheme
- func (conceptScheme *ConceptScheme) CalculateFolderPath(webRootContentPath string) string
- func (conceptScheme *ConceptScheme) GetConceptById(id string) *Concept
- func (conceptScheme *ConceptScheme) Initialise(id, title, uri, namespace, description, version, skosSourceFolderPath string, ...) error
- func (conceptScheme *ConceptScheme) Marshal() ([]byte, error)
- type Label
- type Match
- type Website
- func (website *Website) GenerateConceptPages(conceptScheme *ConceptScheme) error
- func (website *Website) GenerateHtmlTree(conceptScheme *ConceptScheme) error
- func (website *Website) GeneratePrintableSinglePage(conceptScheme *ConceptScheme) error
- func (website *Website) GenerateZip(conceptScheme *ConceptScheme, filesPathsToZip []string) error
- func (website *Website) Initialise(webrootPath string)
- func (website *Website) ProcessConceptScheme(conceptScheme *ConceptScheme) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableDebugging ¶
func EnableDebugging()
Types ¶
type Concept ¶
type Concept struct { ki.Node `yaml:"-"` ID string `yaml:"-"` Title string `yaml:"title"` Uri string `yaml:"uri"` Definition string `yaml:"description"` HugoLayout string `yaml:"layout"` EditorialNote string `yaml:"-"` RelatedMatches []Match `yaml:"related"` PrefLabels []Label `yaml:"pref_labels"` AltLabels []Label `yaml:"alt_labels"` Body string `yaml:"-"` Updated time.Time `yaml:"date"` IsTopConcept bool `yaml:"isTopConcept"` NarrowerConcepts []string `yaml:"narrower_concepts"` BroaderConcepts []string `yaml:"broader_concepts"` }
type ConceptScheme ¶
type ConceptScheme struct { ki.Node `yaml:"-"` ID string `yaml:"-"` Version string `yaml:"version"` Title string `yaml:"title"` Description string `yaml:"description"` Namespace string `yaml:"namespace"` Uri string `yaml:"uri"` SkosProcessedFolderPath string `yaml:"-"` WorkingFilePathNTriples string `yaml:"-"` Updated time.Time `yaml:"date"` Creators []string `yaml:"creators"` Contributors []string `yaml:"contributors"` Concepts []*Concept `yaml:"-"` HugoLayout string `yaml:"layout,omitempty"` }
func (*ConceptScheme) CalculateFolderPath ¶
func (conceptScheme *ConceptScheme) CalculateFolderPath(webRootContentPath string) string
func (*ConceptScheme) GetConceptById ¶
func (conceptScheme *ConceptScheme) GetConceptById(id string) *Concept
func (*ConceptScheme) Initialise ¶
func (*ConceptScheme) Marshal ¶
func (conceptScheme *ConceptScheme) Marshal() ([]byte, error)
type Website ¶
type Website struct { WebrootFolderPath string ContentFolderPath string StaticContentFolderPath string }
func (*Website) GenerateConceptPages ¶
func (website *Website) GenerateConceptPages(conceptScheme *ConceptScheme) error
func (*Website) GenerateHtmlTree ¶
func (website *Website) GenerateHtmlTree(conceptScheme *ConceptScheme) error
func (*Website) GeneratePrintableSinglePage ¶
func (website *Website) GeneratePrintableSinglePage(conceptScheme *ConceptScheme) error
func (*Website) GenerateZip ¶
func (website *Website) GenerateZip(conceptScheme *ConceptScheme, filesPathsToZip []string) error
func (*Website) Initialise ¶
func (*Website) ProcessConceptScheme ¶
func (website *Website) ProcessConceptScheme(conceptScheme *ConceptScheme) error
Click to show internal directories.
Click to hide internal directories.