htmlmicrodata

package
v0.0.0-...-0d6f1c8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

see https://html.spec.whatwg.org/multipage/microdata.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(doc *encodinghtml.Document, opts ...DecoderOption) (*Decoder, error)

func (*Decoder) Close

func (r *Decoder) Close() error

func (*Decoder) Err

func (w *Decoder) Err() error

func (*Decoder) GetStatement

func (w *Decoder) GetStatement() rdfio.Statement

func (*Decoder) GetTriple

func (w *Decoder) GetTriple() rdf.Triple

func (*Decoder) Next

func (w *Decoder) Next() bool

type DecoderConfig

type DecoderConfig struct {
	// contains filtered or unexported fields
}

func (DecoderConfig) SetVocabularyResolver

func (b DecoderConfig) SetVocabularyResolver(v VocabularyResolver) DecoderConfig

type DecoderOption

type DecoderOption interface {
	// contains filtered or unexported methods
}

type DocumentResource

type DocumentResource struct{}

func (*DocumentResource) ContainerResourceString

func (*DocumentResource) ContainerResourceString() string

type VocabularyResolver

type VocabularyResolver interface {
	ResolveMicrodataProperty(itemtypes []string, itemprop string) (string, error)
}
var ItemtypeVocabularyResolver VocabularyResolver = &itemtypeVocabularyResolver{}
var LiteralVocabularyResolver VocabularyResolver = &literalVocabularyResolver{}

Jump to

Keyboard shortcuts

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