rdf

package
v0.0.0-...-c0f2935 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(b []byte, v any) error

Types

type BlankNode

type BlankNode any // TODO figure out what this should actually be

type Graph

type Graph struct {
	Prefixes map[string]Prefix
	Triples  map[string]Triple
}

An RDF Graph is a collection of RDF Triples

type IRI

type IRI *url.URL

type InvalidUnmarshalError

type InvalidUnmarshalError struct {
	Type reflect.Type
}

func (*InvalidUnmarshalError) Error

func (e *InvalidUnmarshalError) Error() string

type Literal

type Literal any

type Object

type Object Objector

type Objector

type Objector interface {
	IRI | Literal | BlankNode
}

type Predicate

type Predicate string

type Prefix

type Prefix Objector

type Subject

type Subject Objector

SPARQL permits RDF Literals as the subject of RDF triples So Subject implements the Objector interface here

type Triple

type Triple struct {
	Subject   Subject
	Predicate Predicate
	Object    Object
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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