Exemple #1
0
func init() {
	quad.RegisterFormat(quad.Format{
		Name:   "gml",
		Ext:    []string{".gml"},
		Writer: func(w io.Writer) quad.WriteCloser { return NewWriter(w) },
	})
}
Exemple #2
0
func init() {
	quad.RegisterFormat(quad.Format{
		Name:   "graphml",
		Ext:    []string{".graphml"},
		Mime:   []string{"application/xml"},
		Writer: func(w io.Writer) quad.WriteCloser { return NewWriter(w) },
	})
}
Exemple #3
0
func init() {
	quad.RegisterFormat(quad.Format{
		Name:   "cquads",
		Ext:    []string{".nq", ".nt"},
		Mime:   []string{"application/n-quads", "application/n-triples"},
		Reader: func(r io.Reader) quad.ReadCloser { return NewDecoder(r) },
		Writer: func(w io.Writer) quad.WriteCloser { return NewEncoder(w) },
	})
}
Exemple #4
0
func init() {
	quad.RegisterFormat(quad.Format{
		Name:   "jsonld",
		Ext:    []string{".jsonld"},
		Mime:   []string{"application/ld+json"},
		Writer: func(w io.Writer) quad.WriteCloser { return NewWriter(w) },
		Reader: func(r io.Reader) quad.ReadCloser { return NewReader(r) },
	})
}
Exemple #5
0
func init() {
	quad.RegisterFormat(quad.Format{
		Name:   "pquads",
		Ext:    []string{".pq"},
		Mime:   []string{"application/octet-stream", "application/protobuf"},
		Reader: func(r io.Reader) quad.ReadCloser { return NewReader(r) },
		Writer: func(w io.Writer) quad.WriteCloser { return NewWriter(w) },
	})
}