export Quad via a function

This commit is contained in:
Barak Michener 2015-05-01 18:53:37 -04:00
parent fa9945ed92
commit 2356ba4a64

View file

@ -14,8 +14,6 @@ type QuadWriter graph.QuadWriter
type Path path.Path
type Quad quad.Quad
var StartMorphism = path.StartMorphism
var StartPath = path.StartPath
@ -26,6 +24,10 @@ type Handle struct {
graph.QuadWriter
}
func Quad(subject, predicate, object, label string) quad.Quad {
return quad.Quad{subject, predicate, object, label}
}
func NewMemoryGraph() (*Handle, error) {
qs, err := graph.NewQuadStore("memstore", "", nil)
if err != nil {