Commit graph

16 commits

Author SHA1 Message Date
kortschak
0e0e382d2b Use error returns and interface type for parsing
Fixes issue #72

This change simplifies interactions with parsing N-Quads and makes
reading datasets more robust. Changes made while here also improve
performance:

benchmark           old ns/op     new ns/op     delta
BenchmarkParser     1058          667           -36.96%

We still use string concatenation which I'm not wildly happy about, but
I think this can be left for a later change.

Initial changes towards idiomatic error handling have been made. More
significant changes are needed, but these have subtle design implication
and need to be thought about more.

30kmoviesdata.nt.gz has been altered to properly escape double quotes.
This was done mechanically and with manual curation to pick up
straglers.
2014-07-22 20:34:37 +09:30
Alex Peters
4d34ea50cc Fix typos and minor cleanup 2014-07-10 13:19:30 +02:00
kortschak
3f6cfc98d5 Clean up testing code
Ugh on the error comparison.
2014-07-04 10:29:14 +09:30
kortschak
1768e593a8 Move iterators into separate package
Also reduce API exposure and use standard library more - and fix bugs I
previously introduces in mongo.
2014-07-01 09:21:32 +09:30
kortschak
0a03cec497 Replace string type with graph.Direction
This conversion is not complete as there are still uses of string
directions via the Direction.String method in leveldb.
2014-06-30 12:41:03 +09:30
kortschak
913d567ae1 Destutter mql 2014-06-28 12:58:03 +09:30
kortschak
3a673a333c Destutter gremlin 2014-06-28 12:55:21 +09:30
kortschak
388618bfa7 Destutter cayley/config 2014-06-28 12:42:15 +09:30
kortschak
c4a19a4e35 Simplify names in cmd source 2014-06-28 12:38:51 +09:30
kortschak
47c9752e5e Destutter filenames 2014-06-28 12:31:33 +09:30
7a24e5e998 Allow assets to come from more places than PWD, do some autodetection, add a build file, and update the README 2014-06-27 22:34:29 -04:00
kortschak
cf2f5219b2 Fix non-pathological package shadowing
This is smelly more than anything but I should not have missed it
previously.
2014-06-28 02:23:02 +09:30
kortschak
c66d6d3994 Move query language packages into query 2014-06-28 01:43:13 +09:30
kortschak
d37c6caa8e Don't rename imports unless necessary 2014-06-26 09:20:22 +09:30
kortschak
0c9de61413 Use Go-conventional filenaming 2014-06-26 09:10:57 +09:30
kortschak
e0df752618 Reorganize to go get will work
This makes almost no changes to source, but touches every almost file.

Also fixes error in gremlin test code.
2014-06-26 09:04:17 +09:30