rdfmimetypes

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContentTypes = []RdfFormatMapping{
	{
		Header:    "application/n-triples",
		Extension: ".nt",
		Format:    rdf.NTriples,
	},
	{
		Header:    "application/rdf+xml",
		Extension: ".rdf",
		Format:    rdf.RDFXML,
	},
	{
		Header:    "text/turtle",
		Extension: ".ttl",
		Format:    rdf.Turtle,
	},
}

ContentTypes -- List of supported RDF types

Functions

This section is empty.

Types

type RdfFormatMapping

type RdfFormatMapping struct {
	// The mime header, e.g. `application/rdf+xml`
	Header string
	// Includes the ., e.g. `.rdf`
	Extension string
	// The Knakk.RDF format
	Format rdf.Format
}

RdfFormatMapping - An RDF format

Jump to

Keyboard shortcuts

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