Documentation ¶ Index ¶ func Serialize(g *rdf.Graph, w io.Writer, cfg *FilterConfig) error type FilterConfig 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 } Source Files ¶ View all Source files serializer.go Click to show internal directories. Click to hide internal directories.