storage

package
v0.0.0-...-9c67b44 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstructedResource

type ConstructedResource struct {
	Resources    []json.RawMessage `json:"@graph"`
	ResourceType resource.ResourceType
}

type ModelSrc

type ModelSrc string

type ResourceStore

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

func NewResourceStore

func NewResourceStore(quadStoreUrl *url.URL, eulerUrl *url.URL) *ResourceStore

func (*ResourceStore) ConstructRdfData

func (rs *ResourceStore) ConstructRdfData(templateName string, iris []string) (ConstructedResource, error)

func (*ResourceStore) ExecSparql

func (q *ResourceStore) ExecSparql(query string, acceptContentType string) ([]byte, error)

func (*ResourceStore) FetchResourceIds

func (rs *ResourceStore) FetchResourceIds(resType resource.ResourceType, fields log.Fields) ([]resource.ProcessingReq, error)

func (*ResourceStore) FetchSanitizedEulerJson

func (rs *ResourceStore) FetchSanitizedEulerJson(resType resource.ResourceType, iris []string) ([]json.RawMessage, error)

func (*ResourceStore) GetResourcesWithReverseLinksToBeIndexed

func (rs *ResourceStore) GetResourcesWithReverseLinksToBeIndexed(resourceType resource.ResourceType, iris ...string) ([]string, error)

func (*ResourceStore) SelectRdfData

func (rs *ResourceStore) SelectRdfData(templateName string, iris []string) ([]map[string]string, error)

Jump to

Keyboard shortcuts

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