file

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRecordSeparator

func IsRecordSeparator(line []byte) bool

Types

type OAIPMHStore

type OAIPMHStore struct {
	Path string // TODO(kiivihal): replace with bucket later
}

func NewOAIPMHStore

func NewOAIPMHStore() (*OAIPMHStore, error)

func (*OAIPMHStore) ListIdentifiers

func (o *OAIPMHStore) ListIdentifiers(ctx context.Context, q *oaipmh.RequestConfig) (
	headers []oaipmh.Header, errors []oaipmh.Error, err error,
)

func (*OAIPMHStore) ListSets

func (o *OAIPMHStore) ListSets(ctx context.Context, q *oaipmh.RequestConfig) (sets []oaipmh.Set, errors []oaipmh.Error, err error)

type RecordSeparator

type RecordSeparator struct {
	OrgID       string `json:"orgID"`
	DatasetID   string `json:"datasetID"`
	HubID       string `json:"hubID"`
	LocalID     string `json:"localID"`
	GraphURI    string `json:"graphURI"`
	ContentHash string `json:"contentHash"`
}

RecordSeparator is single-line json comment that separates Ntriple Records generated by Narthex.

func NewRecordSeparator

func NewRecordSeparator(line []byte) (RecordSeparator, error)

func (RecordSeparator) String

func (sep RecordSeparator) String() string

type SourceFormat

type SourceFormat int
const (
	FormatRaw SourceFormat = iota
	FormatNTriples
	FormatEAD
)

func (SourceFormat) String

func (i SourceFormat) String() string

type Store

type Store struct {
}

Jump to

Keyboard shortcuts

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