formatted using gofmt
This commit is contained in:
parent
ce6e21d4aa
commit
f9ee0e77fc
1 changed files with 14 additions and 14 deletions
|
|
@ -1,19 +1,19 @@
|
|||
package exporter
|
||||
|
||||
import (
|
||||
"io"
|
||||
"encoding/json"
|
||||
"io"
|
||||
"strconv"
|
||||
|
||||
"github.com/google/cayley/graph"
|
||||
)
|
||||
|
||||
type Exporter struct {
|
||||
wr io.Writer
|
||||
wr io.Writer
|
||||
qstore graph.QuadStore
|
||||
qi graph.Iterator
|
||||
err error
|
||||
count int
|
||||
qi graph.Iterator
|
||||
err error
|
||||
count int
|
||||
}
|
||||
|
||||
func NewExporter(writer io.Writer, qstore graph.QuadStore) *Exporter {
|
||||
|
|
@ -149,14 +149,14 @@ func (exp *Exporter) ExportGraphml() {
|
|||
exp.Write(" <edge source=")
|
||||
exp.WriteEscString(cur.Subject)
|
||||
exp.Write(" target=")
|
||||
exp.WriteEscString(cur.Object)
|
||||
exp.WriteEscString(cur.Object)
|
||||
exp.Write(">\n")
|
||||
exp.Write(" <data key=\"predicate\">")
|
||||
exp.Write(cur.Predicate)
|
||||
exp.Write("</data>\n </edge>\n")
|
||||
exp.count++
|
||||
}
|
||||
exp.Write(" </graph>\n</graphml>\n");
|
||||
exp.Write(" </graph>\n</graphml>\n")
|
||||
}
|
||||
|
||||
//print out the string quoted, escaped
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue