export

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectTerm

func ObjectTerm(cols []sql.NullString) rdflibgo.Term

ObjectTerm rebuilds the RDF term the object columns held, writing the stored value exactly as-is. The object_type column carries the datatype IRI the literal was built with, so a typed literal is restored with its exact datatype whichever column its value landed in; a typed value column only supplies a fallback for a row written without one. The object_language column carries the language tag of an rdf:langString, which is restored ahead of the datatype since tagging a literal is what makes it a langString. A blank node object lands in object_string carrying the "_:" prefix build stored it with, which is what tells it apart from a plain string literal there; only a literal whose own text starts with "_:" would be misread, and nothing SAL builds writes one.

func SubjectTerm

func SubjectTerm(value string) rdflibgo.Subject

SubjectTerm rebuilds the subject column as the IRI or blank node it names, writing the stored value exactly as-is (no base resolution): a relative IRI in the table is exported as a relative IRI, since export mirrors what build wrote rather than rewriting it.

Types

type ExportCmd

type ExportCmd struct{}

ExportCmd streams the built triples table to standard out as N-Triples, so its data can be piped into another RDF-aware program.

func (*ExportCmd) Run

func (cmd *ExportCmd) Run() error

Jump to

Keyboard shortcuts

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