Esempio n. 1
0
File: gml.go Progetto: dennwc/cayley
func init() {
	quad.RegisterFormat(quad.Format{
		Name:   "gml",
		Ext:    []string{".gml"},
		Writer: func(w io.Writer) quad.WriteCloser { return NewWriter(w) },
	})
}
Esempio n. 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) },
	})
}
Esempio n. 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) },
	})
}
Esempio n. 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) },
	})
}
Esempio n. 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) },
	})
}