mappingxml

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serialize

func Serialize(g *rdf.Graph, w io.Writer, cfg *FilterConfig) error

Serialize serialize the Graph to explicit XML. When rootType is given it will use the rdf:type as the root of the XML. When contextLevels is 0 no nested resources are inlined in the XML. A max of 5 levels can be given.

Types

type FilterConfig

type FilterConfig struct {
	RDFType               rdf.IRI
	Subject               rdf.Subject
	URIPrefixFilter       string // to filter out private triples
	HubID                 string
	ContextLevels         int
	WikiBaseTypes         []string
	WikiBaseTypePredicate rdf.Predicate
}

Jump to

Keyboard shortcuts

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